:root {
  --activity-w: 420px;
  --pink: #E91E84;
  --pink-bg: #DE377A;
  --font: -apple-system, "SF Pro", "Inter", system-ui, sans-serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body { height: 100%; }

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

input {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

::-webkit-scrollbar { display: none; }

[hidden] { display: none !important; }

body {
  min-height: 100vh;
  font-family: var(--font);
  color: #eee;
  overflow: hidden;

  background:
    radial-gradient(ellipse at 30% 20%, #1a1520 0%, transparent 55%),
    radial-gradient(ellipse at 70% 80%, #161218 0%, transparent 55%),
    #0c0b0d;
}

.wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity {
  width: var(--activity-w);
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0A0A0B;
}

@media (min-width: 500px) {
  .activity {
    height: 94vh;
    max-height: 960px;
    border-radius: 28px;
    border: 1px solid rgba(243, 226, 235, 0.08);
    box-shadow:
      0 0 100px rgba(200, 40, 60, 0.06),
      0 40px 80px rgba(0, 0, 0, 0.5);
  }
}

@media (min-width: 1200px) {
  .activity { height: 96vh; max-height: 100%; }
}

@media (max-width: 499px) {
  :root { --activity-w: 100%; }
  .activity { width: 100%; border-radius: 0; }
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.feed-end {
  text-align: center;
  padding: 20px 40px 40px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 22px;
}

.home-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
  padding: 12px 0;
  background: rgba(10, 10, 11, 0.2);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, rgba(0,0,0,0.65) 92%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 78%, rgba(0,0,0,0.65) 92%, rgba(0,0,0,0) 100%);
  transition: background 240ms ease;
}
.home-topbar.is-scrolled { background: rgba(10, 10, 11, 0.55); }

.home-tabs {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0 12px;
  height: 44px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.home-tabs::-webkit-scrollbar { display: none; }

.home-tab {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  font-weight: 400;
  position: relative;
  transition: all 160ms ease;
  white-space: nowrap;
}

.home-tab.is-active {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
}

.home-tab--paid { color: rgba(255, 255, 255, 0.35); }
.home-tab--paid:hover { color: rgba(255, 255, 255, 0.6); }

.home-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 66px;
  padding-bottom: 90px;
  scroll-snap-type: y mandatory;
  scroll-padding-top: 66px;
  scroll-padding-bottom: 90px;
  -webkit-overflow-scrolling: touch;
}

.home-feed { position: relative; }

@keyframes card-fly-in {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}

.feed-card {
  padding: 80px 14px 80px;
  opacity: 0;
  display: flex;
  flex-direction: column;
  height: 80svh;
  min-height: 340px;
  scroll-snap-align: start;
}
.feed-card.is-visible {
  animation: card-fly-in 0.38s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.feed-card--limited {
  position: relative;
}
.feed-card--limited .fpc-body {
  filter: blur(14px);
  transform: scale(1.05);   pointer-events: none;
  user-select: none;
}
.feed-limit-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
}
.feed-limit-plate {
  transform: rotate(5deg);   background: #BD03C6;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
}
.feed-limit-text {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}
.feed-limit-btn {
  background: #222224;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 8px;
  cursor: pointer;
}
.feed-limit-btn:active { opacity: 0.85; }

.fpc-body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(to top, #111111 0%, #191816 100%);
  border-radius: 16px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.fpc-body:active { cursor: grabbing; }

.fpc-track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 320ms cubic-bezier(0.25, 0.8, 0.25, 1);
}
.fpc-track.no-anim { transition: none; }
.fpc-track.slow-anim { transition: transform 640ms cubic-bezier(0.25, 0.8, 0.25, 1); }

.fpc-cell {
  flex: 0 0 72%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 8px 10px;
  will-change: transform, opacity;
  transition: opacity 280ms ease, transform 280ms ease;
  opacity: 0.4;
  transform: scale(0.86);
  transform-origin: center center;
}
.fpc-cell.is-focus,
.fpc-cell.is-peek-bright {
  opacity: 1;
  transform: scale(1);
}

.feed-card.no-cell-anim .fpc-cell,
.feed-card.no-cell-anim .fpc-photo-frame,
.feed-card.no-cell-anim .fpc-photo-empty {
  transition: none !important;
}

.fpc-cell.fpc-cell-desc {
  flex: 0 0 65%;
  padding: 22px 30px 86px 14px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  font-family: var(--font);
}

.feed-card.is-flipped .fpc-cell.fpc-cell-desc {
  padding: 22px 14px 86px 30px;
  align-items: flex-end;
}
.feed-card.is-flipped .fpc-desc-text,
.feed-card.is-flipped .fpc-desc-meta {
  text-align: right;
}

.fpc-photo-frame {
  width: 100%;
  height: 75%;
  border-radius: 14px;
  background-size: cover;
  background-position: center top;
  background-color: #0f0e13;
  transform: rotate(var(--rot, 0deg)) scale(1.06);
  transform-origin: center center;
  transition: transform 280ms ease;
  filter: saturate(0.92) contrast(1.05);
}
.fpc-cell.is-focus .fpc-photo-frame {
  transform: rotate(var(--rot-focus, 0deg)) scale(1.06);
}

.fpc-photo-empty {
  width: 100%;
  height: 75%;
  border-radius: 14px;
  background: linear-gradient(135deg, #a5a2a2 0%, #b17b95 50%, #893c8d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(var(--rot, 0deg)) scale(1.04);
  transform-origin: center center;
  transition: transform 280ms ease;
}
.fpc-cell.is-focus .fpc-photo-empty {
  transform: rotate(var(--rot-focus, 0deg)) scale(1.04);
}
.fpc-photo-empty svg {
  width: 48px;
  height: 48px;
}

.fpc-desc-text {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  text-align: left;
  font-family: var(--font);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 10;
  -webkit-box-orient: vertical;
}
.fpc-desc-text--empty {
  color: rgba(255,255,255,0.3);
  font-style: italic;
}
.fpc-desc-meta {
  margin-top: 30px;
  font-size: 14px;
  color: #797876;
  font-family: var(--font);
  text-align: left;
}

.fpc-bottom-row {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 14px;
  z-index: 2;
  pointer-events: none;
}
.fpc-card-meta {
  min-width: 0;
  flex: 1;
  pointer-events: none;
  transition: opacity 220ms;
}
.fpc-name {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  letter-spacing: -0.3px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}
.fpc-city {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.fpc-card-btns {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  pointer-events: auto;
}
.ink-btn {
  width: 46px;
  height: 46px;
  border-radius: 23px;
  background: rgba(12, 10, 18, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms;
  flex-shrink: 0;
  pointer-events: auto;
}
.ink-btn.is-liked { background: #ff3d5f; }

.screen--chats { background: #1a1620; }

.chats-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding-top: 12px;
  padding-bottom: 90px;
}

.promo-banner {
  position: relative;
  margin: 0 12px 4px;
  padding: 16px 16px 18px;
  background: linear-gradient(135deg, #6840F8 0%, #7B5CFF 60%, #9D7DFF 100%);
  border-radius: 14px;
  color: #fff;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.promo-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 24px; height: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-content { flex: 1; padding-right: 50px; }
.promo-title   { font-size: 17px; font-weight: 700; line-height: 21px; margin-bottom: 6px; }
.promo-text    { font-size: 12.5px; line-height: 16px; color: rgba(255, 255, 255, 0.92); }

.promo-illust {
  flex-shrink: 0;
  width: 56px; height: 62px;
  margin-top: 2px;
}
.promo-illust svg { width: 100%; height: 100%; }

.chats-wrap {
  margin-top: -18px;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  background: #1a1620;
  padding: 20px 0 6px;
}

.chats-heading {
  padding: 0 18px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.95);
  transform: rotate(-0.5deg);
}

.chat-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  width: 100%;
  text-align: left;
}
.chat-row.is-muted { opacity: 0.55; }

.chat-row-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}
.chat-row-avatar.is-empty {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-row-verified {
  position: absolute;
  right: -2px; bottom: -2px;
  width: 18px; height: 18px;
  border-radius: 9px;
  background: #4CD964;
  border: 2px solid #19161c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-row-body { flex: 1; min-width: 0; }

.chat-row-time {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}
.chat-row-text {
  font-size: 17px;
  color: #b5b2b2;
  font-weight: 400;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-row-title {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

.chat-row-unread {
  min-width: 22px; height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: #FF2D55;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.screen--chat-detail { background: #000; }

.chat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 16px 16px;   border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-back {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  background-size: cover;
  background-position: center;
}

.chat-title { flex: 1; min-width: 0; }

.chat-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.chat-status {
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.chat-status.is-online { color: #FF4DA6; }

.chat-menu {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-bomb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-bomb-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.chat-bomb-off {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: underline;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble {
  max-width: 75%;
  color: #fff;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 18px;
  white-space: pre-wrap;
  flex-shrink: 0;
}
.bubble.from-me {
  align-self: flex-end;
  background: #1f1d23;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-right-radius: 4px;
}
.bubble.from-them {
  align-self: flex-start;
  background: #2a2830;
  border-bottom-left-radius: 4px;
}

.bubble--typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 12px 16px;
  min-width: 52px;
}
.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  animation: typing-bounce 1.1s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.18s; }
.typing-dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.55; }
  30%           { transform: translateY(-5px); opacity: 1; }
}

.limit-card {
  align-self: center;
  max-width: 240px;
  background: #7B5CFF;
  border-radius: 18px;
  padding: 16px 20px;
  text-align: center;
  color: #fff;
  margin-top: 28px;
  margin-bottom: 10px;
}
.limit-card-text {
  font-size: 15px;
  font-weight: 500;
  line-height: 19px;
  margin-bottom: 14px;
}
.limit-card-btn {
  background: #1a1325;
  color: #fff;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.chat-composer {
  padding: 8px 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.composer-btn {
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.composer-btn + .composer-btn { margin-left: -6px;
}

.composer-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: #1e1c22;
  border-radius: 20px;
  padding: 0 16px;
  height: 38px;
}

.composer-input {
  flex: 1;
  font-size: 14px;
}

.screen--profile { background: #0a0a0b; }

.profile-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding-bottom: 160px;
}

.profile-hero {
  position: relative;
  height: 260px;
  width: 100%;
  overflow: hidden;
}

.profile-pattern {
  width: 100%;
  height: 100%;
  display: block;
}

.profile-hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 11, 0.92) 100%);
}

.profile-round-btn {
  position: absolute;
  top: 12px;
  width: 38px; height: 38px;
  border-radius: 19px;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.profile-round-btn--left  { left: 14px; }
.profile-round-btn--right { right: 14px; }

/* ── PROFILE CARD: рваный край бумаги ───────────────────── */
.profile-card {
  position: relative;
  margin: -80px 20px 0;
  padding: 34px 16px 16px;
  background: transparent;     /* фон ушёл на ::before, рвём только его */
  border: none;                /* рваный силуэт вместо рамки */
  border-radius: 0;
  box-shadow: none;            /* тень теперь на ::before, по рваному контуру */
  text-align: center;
  z-index: 2;
  transform: rotate(-0.3deg);
}
.profile-card::before {
  content: "";
  position: absolute;
  inset: 11px;
  z-index: -1;                 /* за контентом, но над фоном страницы */
  background: #16141A;         /* прежний цвет карточки */
  filter: url(#torn-edges);
}


.torn-edge {
  position: relative;
  background: transparent;   /* фон уходит на слой ::before */
  border: none;
  border-radius: 0;
  box-shadow: none;          /* никаких теней */
}
.torn-edge::before {
  content: "";
  position: absolute;
  inset: 11px;                       /* ≈ scale/2 */
  z-index: -1;
  background: var(--torn-fill, #16141A);
  filter: url(#torn-edges);
}

.profile-avatar-wrap {
  position: absolute;
  top: -62px;          left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 100px;
}
.profile-avatar {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50px;
  overflow: hidden;
  cursor: pointer;
}
.profile-avatar-img {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}
.profile-avatar-img.is-empty {
  background-color: #0e0c12;
}
.profile-avatar-img:not(.is-empty) > svg { display: none; }
.profile-avatar-check {
  position: absolute;
  right: 2px; bottom: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #4CD964;
  border: 2px solid #16141a;
  z-index: 3;
  pointer-events: none;
}

.profile-edit {
  position: absolute;
  top: 14px; right: 14px;
  padding: 4px;
  z-index: 10;
}

.profile-rank {
  font-size: 12px;
  font-weight: 500;
  color: #969697;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 12px;
  margin-bottom: 4px;
}
.profile-name {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 2px;
}
.profile-info {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
}
.profile-age {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 2px;
}
.profile-langs {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1.2px;
  margin-top: 4px;
}

.profile-tabs {
  margin-top: 18px;
  display: flex;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.profile-tabs::-webkit-scrollbar { display: none; }

.profile-tab {
  padding: 12px 10px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1.2px;
  position: relative;
  white-space: nowrap;
}
.profile-tab.is-active {
  color: #fff;
  font-weight: 700;
}

.profile-panes { padding: 16px 16px 20px; min-height: 280px; }
.profile-pane { display: none; }
.profile-pane.is-active { display: block; }
.profile-pane p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 22px;
}
.profile-pane p + p { margin-top: 4px; }

.profile-photos-count {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}
.profile-photos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.profile-photo {
  aspect-ratio: 3 / 4;
  background: #1a1620;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  touch-action: none;   }
.profile-photo:nth-child(odd)  { transform: rotate(-0.8deg); }
.profile-photo:nth-child(even) { transform: rotate( 0.8deg); }

.profile-photo-del {
  position: absolute;
  top: 8px; right: 8px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(220, 200, 175, 0.18);
  border: 1px solid rgba(220, 200, 175, 0.35);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 180ms ease;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.profile-photo:hover .profile-photo-del { opacity: 1; }

.profile-photo-set-main {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 6px 0;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.85);
  font-size: 10px;
  letter-spacing: 0.3px;
  text-align: center;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 180ms;
  backdrop-filter: blur(4px);
}
.profile-photo:hover .profile-photo-set-main { opacity: 1; }

.profile-photo-main-badge {
  position: absolute;
  bottom: 6px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  pointer-events: none;
  white-space: nowrap;
}

.profile-photo-add {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px dashed rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 160ms, border-color 160ms;
}
.profile-photo-add:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.5); }

.profile-photo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 180ms ease;
  z-index: 2;
}
.profile-photo-arrow--left  { left: 0;  border-radius: 0 9px 9px 0; }
.profile-photo-arrow--right { right: 0; border-radius: 9px 0 0 9px; }
.profile-photo:hover .profile-photo-arrow { opacity: 1; }

.profile-photo.is-drag-source { opacity: 0.3; }
.profile-photo.is-drag-over {
  outline: 2px solid var(--pink);
  outline-offset: -2px;
}
.profile-photo-ghost {
  position: fixed;
  z-index: 300;
  pointer-events: none;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
  opacity: 0.95;
}

.profile-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.profile-chip {
  min-height: 113px;
  border-radius: 12px;
  border: none;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
  transform: none;
  transition: background 180ms ease, color 180ms ease;
  gap: 5px;
}

.chip-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.15;
  margin-bottom: 5px;
}

.chip-desc {
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.65;
}

.profile-pane[data-pane="lures"] .profile-chip {
  background: #222224;
  color: #fff;
}
.profile-pane[data-pane="lures"] .profile-chip.is-active {
  background: #D2BB92;
  color: #1E1409;
}

.profile-pane[data-pane="looking"] .profile-chip {
  background: #222224;
  color: #fff;
}
.profile-pane[data-pane="looking"] .profile-chip.is-active {
  background: #3E347B;
  color: #fff;
}

.profile-pane[data-pane="zodiac"] .profile-chip {
  background: #1C1C2A;
  color: rgba(255, 255, 255, 0.9);
}
.profile-pane[data-pane="zodiac"] .profile-chip.is-active {
  background: #3E347B;
  color: #fff;
}
.profile-pane[data-pane="zodiac"] .chip-title {
  font-style: normal;
}

.profile-hide {
  position: absolute;
  left: 0; right: 0; bottom: 76px;
  padding: 10px 16px 12px;
  background: linear-gradient(180deg, rgba(10,10,11,0) 0%, rgba(10,10,11,0.85) 40%, rgba(10,10,11,0.98) 100%);
  z-index: 6;
}
.profile-hide-btn {
  width: 100%;
  padding: 14px 0;
  background: var(--pink);
  border: 1.5px solid transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  transform: rotate(-0.3deg);
  transition: background 180ms, opacity 180ms;
  border-radius: 10px;
}
.profile-hide-btn.is-disabled {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
.profile-hide-btn.is-published {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.7);
}

@keyframes publish-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(104, 64, 248, 0); }
  50%      { box-shadow: 0 0 0 7px rgba(104, 64, 248, 0.4); }
}
.profile-hide-btn.is-pulsing {
  animation: publish-pulse 0.8s ease-in-out 3;
}

.toast-notify {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  background: rgba(20, 18, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 22px;
  white-space: nowrap;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms, transform 200ms;
  backdrop-filter: blur(12px);
}
.toast-notify.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.bottom-nav {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 0 12px;
  background: linear-gradient(180deg,
    rgba(10,10,11,0)    0%,
    rgba(10,10,11,0.72) 38%,
    rgba(10,10,11,0.96) 100%);
  display: flex;
  z-index: 40;
}
.bottom-nav.is-hidden { display: none; }

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  position: relative;
}

.nav-btn svg { opacity: 1; transition: opacity 160ms; }
.nav-btn:not(.is-active) svg { opacity: 0.45; }

.nav-dot {
  position: absolute;
  top: 8px; right: calc(50% - 18px);
  width: 8px; height: 8px;
  border-radius: 4px;
  background: #FF2D55;
  display: none;
}
.nav-dot.is-visible { display: block; }

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms cubic-bezier(0.32, 0.72, 0, 1),
              background-color 280ms cubic-bezier(0.32, 0.72, 0, 1);
  will-change: opacity;
  z-index: 60;
}
.sheet-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.sheet-backdrop--filter {
  top: var(--topbar-h, 68px);
  background: rgba(0, 0, 0, 0.16);
}

.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: #14111c;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  transform: translateY(110%);
  transition: transform 340ms cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
  z-index: 61;
  overflow: hidden;
  color: #fff;
  max-height: 70%;
  display: flex;
  flex-direction: column;
}
.sheet.is-open { transform: translateY(0); }

.sheet--plans {
  max-height: 68%;
  background: #B23763;
}

.sheet-title {
  padding: 22px 20px 16px;
  font-size: 30px;
  line-height: 36px;
  font-weight: 400;
  font-family: 'Source Serif 4', Georgia, serif;
  text-align: center;
  letter-spacing: 0;
}
.sheet-title b { font-weight: 700; }

.plans-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 28px 20px 16px;
  scrollbar-width: none;
}
.plans-scroll::-webkit-scrollbar { display: none; }

.plan-card {
  flex: 0 0 250px;
  height: 151px;
  border-radius: 22px;
  background: #D04073;
  border: 2.5px solid transparent;
  padding: 16px 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  cursor: pointer;
  transition: border-color 150ms;
  position: relative;
  overflow: visible;
}
.plan-card.is-selected { border-color: rgba(255,255,255,0.7); }
.plan-card--featured {
  background: #ffffff;
  color: #070707;
}
.plan-card--featured.is-selected { border-color: #D04073; }

.plan-card-top {
  display: flex;
  align-items: center;
}

.plan-card-top-label {
  background: #070707;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.plan-card--featured .plan-card-top-label {
  background: #B23763;
}

.plan-card-bestseller {
  position: absolute;
  top: -11px;
  right: 0;
  background: #070707;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 18px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-card-price {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -1px;
}
.plan-card-rub {
  font-size: 44px;
  font-weight: 600;
}

.plan-card-old {
  font-size: 18px;
  text-decoration: line-through;
  opacity: 0.5;
  margin-top: 4px;
  font-family: 'Source Serif 4', Georgia, serif;
}

.sheet-actions { padding: 14px 20px 22px; }

.sheet-cta {
  width: 100%;
  height: 48px;
  background: #070707;
  color: #fff;
  border-radius: 26px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.sheet--pay {
  padding: 28px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pay-amount-label {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}
.pay-amount {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.5px;
  font-family: "Playfair Display", Georgia, serif;
  margin-top: 6px;
  text-align: center;
}

.pay-cta {
  width: 100%;
  height: 54px;
  background: var(--pink);
  color: #fff;
  border-radius: 28px;
  font-size: 15px;
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 4px;
  transition: opacity 160ms;
}
.pay-cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pay-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 10.5px;
  line-height: 13px;
}
.pay-check input { display: none; }

.pay-check-box {
  flex-shrink: 0;
  margin-top: 1px;
  width: 14px; height: 14px;
  border-radius: 3px;
  border: 1.5px solid #fff;
  background: transparent;
  position: relative;
  transition: background 120ms;
}
.pay-check input:checked + .pay-check-box { background: #fff; }
.pay-check input:checked + .pay-check-box::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px; right: 2px; bottom: 2px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'><path d='M1 4 L3 6 L7 2' stroke='%23DE377A' stroke-width='2' fill='none'/></svg>") no-repeat center;
  background-size: contain;
}

.pay-check-text { color: rgba(255, 255, 255, 0.9); }

.pay-logos {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
}
.pay-logo {
  display: block;
  height: 22px;
  width: auto;
  flex: 0 1 auto;
  object-fit: contain;
}

.screen--settings {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #111111 0%, #191816 100%);
  overflow: hidden;
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 20px;
  height: 56px;
  background: #000;
  flex-shrink: 0;
}
.settings-back {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.settings-title {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  text-align: center;
}

.settings-tabs-row {
  display: flex;
  padding: 5px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.settings-tab {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  padding: 10px 16px 10px 0;
  color: #7F7E7C;
  margin-right: 16px;
}
.settings-tab.is-active { color: #fff; }

.settings-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
}
.settings-scroll::-webkit-scrollbar { display: none; }

.settings-sub-card {
  display: flex;
  min-height: 108px;
}
.settings-sub-card-left {
  flex: 1;
  background: #343434;
  padding: 14px 14px 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.settings-sub-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}
.settings-sub-desc {
  font-size: 11px;
  color: #A1A1A1;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  line-height: 1.45;
  flex: 1;
  margin-bottom: 10px;
}
.settings-sub-card-right {
  width: 76px;
  background: #343434;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settings-purple-cta {
  font-size: 13px;
  font-weight: 700;
  color: #A00F93;
  letter-spacing: 0.3px;
  text-align: left;
  line-height: 1;
}

.settings-product-row {
  padding: 14px 12px 14px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.settings-product-status {
  font-size: 14px;
  font-weight: 500;
  color: #7C7B79;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}
.settings-product-row .settings-purple-cta {
  font-size: 14px;
  margin-top: 2px;
}

.settings-spacer { flex: 1; min-height: 24px; }

.settings-footer-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.31);
  text-align: center;
  line-height: 2;
  padding: 10px 100px;
}
.settings-footer-link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.31);
  display: inline;
}

.settings-write-btn {
  margin: 0 12px 24px;
  height: 56px;
  background: transparent;
  border: 1px solid #343331;
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  border-radius: 4px;
  flex-shrink: 0;
}

.screen--cancel-sub {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #111111 0%, #191816 100%);
  overflow: hidden;
}

.cancel-sub-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
  padding: 20px 22px 0;
}
.cancel-sub-scroll::-webkit-scrollbar { display: none; }

.cancel-sub-intro {
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  line-height: 1.55;
  margin-bottom: 16px;
}

.cancel-sub-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cancel-sub-num {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.cancel-sub-body p {
  font-size: 12px;
  font-weight: 400;
  color: #D0D0D0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  line-height: 1.7;
}
.cancel-sub-white {
  color: #fff;
}
.cancel-sub-link {
  color: #3C50FF;
  font-size: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  text-decoration: underline;
  display: inline;
}

.cancel-sub-btn {
  margin: 20px 0 0;
  height: 53px;
  background: #B23763;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  font-family: 'Source Serif 4', Georgia, serif;
  letter-spacing: 0;
  flex-shrink: 0;
  width: 100%;
}

.cancel-sub-footer-gap {
  flex: 1;
  min-height: 24px;
}

.cancel-sub-footer {
  padding: 12px 100px 96px;
}

.screen--pause-sub {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #111111 0%, #191816 100%);
  overflow: hidden;
  position: absolute;
}
.screen--pause-sub .cancel-sub-link { white-space: nowrap; }

.pause-success-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pause-success-plate {
  background: #6840F8;
  padding: 26px 30px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 320px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}
.pause-success-text {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}
.pause-success-ok {
  background: #222224;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 36px;
  border-radius: 8px;
  min-width: 120px;
}
.pause-success-ok:active { opacity: 0.85; }

.screen--cancel-form {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #111111 0%, #191816 100%);
  overflow: hidden;
}

.cancel-form-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
  padding: 28px 0 0;
  gap: 30px;
}
.cancel-form-scroll::-webkit-scrollbar { display: none; }

.cancel-form-fields {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 302px;
  margin: 0 auto;
}

.cancel-form-input {
  width: 100%;
  height: 53px;
  background: #B7B7B7;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 12px;
  font-weight: 400;
  color: #111;
  text-align: center;
  padding: 0 12px;
}
.cancel-form-input::placeholder {
  color: #515151;
}

.cancel-form-btn {
  display: block;
  margin: 12px auto 0;
  width: 302px;
  height: 53px;
  background: #B23763;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  font-family: 'Source Serif 4', Georgia, serif;
  flex-shrink: 0;
}

.settings-main-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.settings-main-label {
  font-size: 14px;
  font-weight: 510;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  letter-spacing: 0.3px;
}
.settings-main-id {
  font-size: 14px;
  font-weight: 700;
  color: #A00F93;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
}

.settings-main-rows {
  margin-top: 0;
}
.settings-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 14px;
  font-weight: 510;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  letter-spacing: 0.3px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.pay-doc-link {
  color: inherit;
  text-decoration: underline;
}
.screen--onboarding {
  background: #0A0A0B;
  justify-content: center;
  align-items: center;
}

.onboarding-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 32px;
  width: 100%;
}

.onboarding-brand {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 38px;
  color: var(--pink);
  margin-bottom: 56px;
  letter-spacing: -0.5px;
}

.onboarding-heading {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  text-align: center;
}

.onboarding-hint {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 44px;
  text-align: center;
}

.onboarding-choices {
  display: flex;
  gap: 12px;
  width: 100%;
}

.onboarding-choice {
  flex: 1;
  padding: 18px 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms, border-color 160ms;
}
.onboarding-choice:hover,
.onboarding-choice:active {
  background: rgba(233, 30, 132, 0.18);
  border-color: var(--pink);
}

.onboarding-login-link {
  margin-top: 20px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 15px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sheet--gate {
  padding: 28px 24px 32px;
  gap: 24px;
}

.sheet--gate-desc { background: #BD03C6; }
.sheet--gate-publish { background: #6840F8; }

.gate-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  text-align: center;
}

.gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gate-btn {
  width: 100%;
  padding: 16px 0;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background 140ms, opacity 140ms;
}

.gate-btn:not(.gate-btn--ghost):not(.gate-btn--light) {
  background: var(--pink);
  color: #fff;
}

.gate-btn.gate-btn--light {
  background: #fff;
  color: #16121d;
}
.gate-btn.gate-btn--light:active { opacity: 0.85; }

.gate-btn--ghost {
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
}

.screen--register,
.screen--login {
  background: #0A0A0B;
  justify-content: flex-start;
  align-items: center;
  padding: 72px 28px 40px;
  position: relative;
}

.screen-back-btn {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.register-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.register-brand {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 32px;
  color: var(--pink);
  margin-bottom: 6px;
  text-align: center;
}

.register-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 24px;
  text-align: center;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.register-input {
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  color: #fff;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.register-input::placeholder { color: rgba(255, 255, 255, 0.3); }
.register-input:focus        { border-color: rgba(255, 255, 255, 0.35); }

.register-input[type="number"]::-webkit-inner-spin-button,
.register-input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.register-input[type="number"] { -moz-appearance: textfield; }

.register-error {
  font-size: 13px;
  color: #FF4DA6;
  margin: 0;
}

.register-submit {
  margin-top: 6px;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.login-back-link {
  margin-top: 20px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  padding: 4px;
}

#desc-pane {
  min-height: 64px;
  outline: none;
  cursor: text;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
#desc-pane:empty::before {
  content: attr(data-placeholder);
  color: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.screen--edit-profile {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #111 0%, #191816 100%);
}
.edit-header {
  position: relative;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #2F2E2C;
  flex-shrink: 0;
}
.edit-back {
  position: absolute;
  left: 16px;
  padding: 8px;
  display: flex; align-items: center; justify-content: center;
}
.edit-title {
  font-size: 16px;
  color: #fff;
  font-weight: 400;
}
.edit-rows { flex: 1; }
.edit-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px;
  border-bottom: 1px solid #2F2E2C;
  background: transparent;
}
.edit-row-label {
  font-size: 16px;
  color: #fff;
}
.edit-row-value {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.45);
}
.edit-bottom {
  padding: 20px 20px 44px;
  border-top: 1px solid #343331;
}
.edit-preview-btn {
  width: 100%;
  padding: 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: #fff;
  border: 1px solid #343331;
  border-radius: 4px;
  background: transparent;
}

.sheet--edit-field { padding: 24px 20px 0; }
.edit-field-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}
.edit-field-num-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.edit-field-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}
.edit-field-input::-webkit-inner-spin-button,
.edit-field-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.edit-field-input--text { width: 100%; }
.edit-field-unit {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
  min-width: 40px;
}
.lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 0 16px;
}
.lang-chip {
  padding: 9px 18px;
  border-radius: 22px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  transition: border-color 140ms, color 140ms, background 140ms;
}
.lang-chip.is-active {
  border-color: var(--pink);
  color: #fff;
  background: rgba(233, 30, 132, 0.15);
}

.profile-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.profile-preview-close {
  position: absolute;
  top: 18px; right: 18px;
  padding: 8px;
}
.profile-preview-wrap {
  width: 100%;
  padding: 0;
}
.profile-preview-wrap .feed-card {
  margin: 0;
}
.profile-preview-wrap .feed-card .ink-btn {
  opacity: 0.55;
  cursor: default;
}

.home-tab--lock { letter-spacing: 0.2px; }

.sheet--filter {
  top: var(--topbar-h, 68px);
  bottom: auto;
  max-height: calc(100% - var(--topbar-h, 68px) - 90px);
  transform: translateY(calc(-100% - var(--topbar-h, 68px) - 20px));
  visibility: hidden;
  transition: transform 340ms cubic-bezier(0.32, 0.72, 0, 1),
              visibility 0s linear 340ms;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}
.sheet--filter.is-open {
  visibility: visible;
  transition: transform 340ms cubic-bezier(0.32, 0.72, 0, 1),
              visibility 0s linear 0s;
}

.filter-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 4px;
}
.filter-sheet-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}
.filter-sheet-reset {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  padding: 6px 4px;
  transition: color 140ms ease;
}
.filter-sheet-reset:active { color: #fff; }

.filter-sheet-hint {
  padding: 6px 20px 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.filter-sheet-body { padding: 22px 20px 6px; }

.filter-sheet-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 4px 20px;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 2px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.filter-option:last-child { border-bottom: none; }
.filter-option-label {
  flex: 1;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  transition: color 140ms ease;
}
.filter-option-check {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  border: 1.6px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 140ms ease, border-color 140ms ease;
}
.filter-option-check svg { opacity: 0; transition: opacity 120ms ease; }
.filter-option.is-checked .filter-option-check {
  background: var(--pink);
  border-color: var(--pink);
}
.filter-option.is-checked .filter-option-check svg { opacity: 1; }
.filter-option.is-checked .filter-option-label { color: #fff; }

.range-values {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
}
.range-val-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 11px 14px;
  cursor: text;
}
.range-val-box:focus-within { border-color: rgba(255, 255, 255, 0.4); }
.range-val-cap {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}
.range-val-input {
  width: 100%;
  min-width: 0;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  -moz-appearance: textfield;
}
.range-val-input::-webkit-inner-spin-button,
.range-val-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.range-val-sep { color: rgba(255, 255, 255, 0.3); }
.range-val-unit {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  flex: 0 0 auto;
}

.range-slider {
  position: relative;
  height: 36px;
}
.range-rail,
.range-rail-fill {
  position: absolute;
  top: 50%;
  height: 4px;
  border-radius: 2px;
  transform: translateY(-50%);
  pointer-events: none;
}
.range-rail {
  left: 0; right: 0;
  background: rgba(255, 255, 255, 0.14);
}
.range-rail-fill { background: var(--pink); }

.range-handle {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 36px;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.range-handle::-webkit-slider-runnable-track { background: none; border: none; }
.range-handle::-moz-range-track { background: none; border: none; }
.range-handle::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  pointer-events: all;
  cursor: grab;
}
.range-handle::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  pointer-events: all;
  cursor: grab;
}
.range-handle:active::-webkit-slider-thumb { cursor: grabbing; }

.range-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

.screen--gallery { background: #0A0A0B; }

.gallery-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  flex: 0 0 56px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.gallery-back {
  position: absolute;
  left: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  letter-spacing: 0.2px;
}

.gallery-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 14px 18px;
}

.gallery-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 140ms ease;
}
.gallery-tile:active { transform: scale(0.97); }

.gallery-tile-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.gallery-tile-del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 140ms ease;
}
.gallery-tile-del:active { background: rgba(0, 0, 0, 0.8); }

.gallery-tile--add {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.08));
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
}
.gallery-tile--add svg { opacity: 0.7; }

.gallery-hint {
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.4);
  padding: 8px 36px 24px;
}

.sheet--gallery {
  height: 90%;
  max-height: 90%;
  background: #14111c;
  }

.gallery-sheet-header {
  position: relative;
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.gallery-sheet-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}
.gallery-sheet-close {
  position: absolute;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-sheet-close:active { background: rgba(255, 255, 255, 0.16); }

.sheet--choice {
  padding: 22px 16px 22px;
  background: #14111c;
}
.choice-title {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.3px;
  padding: 0 0 18px;
}
.choice-btn {
  width: 100%;
  height: 54px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: background 120ms ease;
}
.choice-btn:active { background: rgba(255, 255, 255, 0.16); }
.choice-cancel {
  width: 100%;
  height: 54px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  margin-top: 6px;
  transition: background 120ms ease;
}
.choice-cancel:active { background: rgba(255, 255, 255, 0.1); }

.chat-row-avatar-initial {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}
.chat-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.chat-row-name {
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.chat-row-head .chat-row-time {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}
.chat-row-body > .chat-row-text:only-child {
  font-size: 17px;
}

.chats-loading,
.chats-empty {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  padding: 32px 24px;
  line-height: 1.5;
}

.screen--likes { background: #0A0A0B; }

.likes-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  flex: 0 0 56px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.likes-back {
  position: absolute;
  left: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.likes-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  letter-spacing: 0.2px;
}

.likes-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y mandatory;
}
.likes-list { position: relative; padding: 0; }

.likes-loading,
.likes-empty {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  padding: 48px 24px;
  line-height: 1.5;
}

.btn-like.is-liked svg path { fill: var(--pink); stroke: var(--pink); }
.btn-like:disabled { opacity: 0.9; cursor: default; }

.chat-row-avatar-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #a5a2a2 0%, #b17b95 50%, #893c8d 100%);
}
.chat-row-avatar-empty svg { width: 48%; height: 48%; }

.feed-card.is-vanish {
  transition: opacity 220ms ease, transform 220ms ease;
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
}

.bubble--media {
  padding: 3px;
  background: transparent;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.bubble.from-me.bubble--media,
.bubble.from-them.bubble--media {
  background: transparent;
  border: none;
}

.bubble--media-single {
  width: 260px;
  max-width: 70%;
  padding: 0;
  border-radius: 0;
}

.bubble--media-grid   { width: 280px; max-width: 80%; display: grid; gap: 3px; }
.bubble--media-grid.cells-2 { grid-template-columns: 1fr 1fr; }
.bubble--media-grid.cells-3 { grid-template-columns: 1fr 1fr 1fr; }
.bubble--media-grid.cells-4 { grid-template-columns: 1fr 1fr; }
.bubble--media-grid.cells-5 { grid-template-columns: 1fr 1fr 1fr; }
.bubble--media-grid.cells-3 .media-tile:nth-last-child(1) { grid-column: 1 / -1; }

.media-tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #2a2830;
}
.bubble--media-grid .media-tile {
  aspect-ratio: 1 / 1;
}
.bubble--media-single .media-tile { display: block; }

.bubble-media-img,
.bubble-media-video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  cursor: pointer;
}
.bubble--media-single .bubble-media-img,
.bubble--media-single .bubble-media-video {
  height: auto;
}

.media-tile.is-blurred { cursor: pointer; }
.bubble-media-stub {
  width: 100%;
  height: 100%;
  min-height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #2a2830;
  filter: blur(22px);
  transform: scale(1.08);   }
.media-tile.is-blurred[data-kind="video"] .bubble-media-stub {
  background: linear-gradient(135deg, #3a3540, #2a2830);
  filter: none;
  transform: none;
}

.bubble-media-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.32);
  cursor: pointer;
}
.bubble-media-lock svg { opacity: 0.95; }
.bubble-media-lock span {
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.bubble-media-lock:active { background: rgba(0, 0, 0, 0.45); }

.media-lightbox {
  position: absolute;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-lightbox-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.media-lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  object-fit: contain;
}
.media-lightbox-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.media-lightbox-close:active { background: rgba(255, 255, 255, 0.22); }

.choice-btn--danger { color: #FF453A; }
.choice-btn--danger:active { background: rgba(255, 69, 58, 0.18); }

.chat-limit-plate {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
  background: #6840F8;
  padding: 22px 26px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 50;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}
.chat-limit-text {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}
.chat-limit-btn {
  background: #222224;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
}
.chat-limit-btn:active { opacity: 0.85; }

.chat-composer.is-locked .composer-btn,
.chat-composer.is-locked .composer-input-wrap {
  opacity: 0.45;
  pointer-events: none;
}

.chat-block-plate {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 14px 24px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  background: #0A0A0B;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 45;
}

.report-thanks-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.report-thanks-card {
  background: #6840F8;
  padding: 24px 28px;
  border-radius: 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 290px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.report-thanks-title {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.report-thanks-back {
  align-self: center;
  background: #222224;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 8px;
}
.report-thanks-back:active { background: #6c6c70; }
