:root {
  --bg: #1a1a1a;
  --start: #2f9e8f;
  --start-hover: #278f81;
  --stop: #e8a39a;
  --stop-hover: #de9187;
  --stop-disabled: #f0c9c4;
  --dock: #f3f3f3;
  --tile: #fff;
  --line: #d8d8d8;
  --text: #222;
  --muted: #777;
  --font: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: #000;
  color: var(--text);
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

body.app-shell {
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  touch-action: manipulation;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.ome {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: 1fr 200px;
  background: #000;
  padding-bottom: 0;
}

/* Two screens — left partner, right you (like OmeTV photo) */
.screens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
  background: #000;
}

.screen {
  position: relative;
  min-height: 0;
  background: #000;
  overflow: hidden;
}

.screen-remote {
  border-right: 1px solid #111;
  touch-action: pan-y;
  overflow: hidden;
}

.screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  transform: scaleX(-1);
  display: block;
  transition: filter 0.35s ease;
}

.screen video.is-blurred {
  filter: blur(11px);
  transform: scaleX(-1) scale(1.08);
}

.screen-idle {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #0b0b0c;
  z-index: 2;
}

.screen-idle.connected {
  display: none;
}

.brand-block {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  --logo-w: min(210px, 48vw);
  width: var(--logo-w);
  height: auto;
  margin: calc(var(--logo-w) * -0.1) 0 calc(var(--logo-w) * -0.14);
  -webkit-mask-image: radial-gradient(circle closest-side, #000 76%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, #000 76%, transparent 100%);
}

.brand-name {
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  color: #f0f0f0;
}

.online-line {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #eee;
  font-size: 0.95rem;
  font-weight: 600;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.search-wrap {
  position: relative;
  z-index: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #ccc;
}

/* --- Soft TV-static behind the idle/home and searching states --- */
.tv-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.tv-static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  filter: grayscale(1) contrast(0.9);
  pointer-events: none;
}

.tv-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 50% 50%, rgba(11, 11, 12, 0.55), transparent 70%),
    radial-gradient(130% 110% at 50% 50%, transparent 45%, rgba(0, 0, 0, 0.7) 100%);
}

.tv-roll {
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 30%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.035) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: tvRoll 9s linear infinite;
  will-change: transform;
}

@keyframes tvRoll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(340%);
  }
}

.screen-idle.searching #remoteHint {
  margin: 0;
  color: #f4f4f5;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.6);
}

#remoteHint:empty {
  display: none;
}

.match-prompt {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  padding: 0 14px 14px;
  background: radial-gradient(ellipse at 50% 40%, rgba(20, 20, 20, 0.2), rgba(10, 10, 10, 0.5) 85%);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  color: #f2f2f2;
  animation: matchPromptIn 0.25s ease both;
}

@keyframes matchPromptIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.match-info {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.match-prompt .match-avatar {
  width: clamp(64px, 14vh, 96px);
  height: clamp(64px, 14vh, 96px);
  flex-shrink: 0;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 0;
  background: #f4f4f4;
}

.match-silhouette {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.match-silhouette svg {
  width: 72%;
  height: 72%;
  fill: #3c3c3c;
}

.match-silhouette .sil-female,
.match-silhouette.female .sil-male {
  display: none;
}

.match-silhouette.female .sil-female {
  display: block;
}

.match-prompt .match-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
}

.match-country {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d6d6d6;
  font-size: 0.95rem;
}

.match-flag {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 50%;
}

.match-prompt .match-status {
  margin: 4px 0 0;
  min-height: 1.2em;
  color: #a9a9a9;
  font-size: 0.85rem;
}

.match-timer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.match-timer span {
  display: block;
  height: 100%;
  width: 100%;
  background: rgba(67, 192, 143, 0.7);
  transform-origin: left center;
}

.match-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex-shrink: 0;
}

.match-btn {
  height: clamp(60px, 13vh, 96px);
  border-radius: 8px;
  border: 1.5px solid;
  font: inherit;
  font-size: clamp(1.15rem, 3.4vh, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: filter 0.12s ease, transform 0.12s ease;
}

.match-btn.decline {
  background: rgba(120, 50, 34, 0.55);
  border-color: #b8553b;
  color: #e8603c;
}

.match-btn.accept {
  background: rgba(36, 98, 80, 0.55);
  border-color: #3b9c7d;
  color: #47c393;
}

.match-btn:active {
  transform: scale(0.98);
  filter: brightness(1.2);
}

.match-btn:disabled {
  cursor: default;
  opacity: 0.5;
}

.search-wrap.active {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.brand-block.hide-when-search {
  display: none;
}

.search-ring {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: #3fd1bc;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.8));
  animation: spin 0.8s linear infinite;
  will-change: transform;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-ring,
  .tv-roll {
    animation: none;
  }
  .tv-roll {
    display: none;
  }
}

.report-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  border: 0;
  background: rgba(180, 40, 40, 0.85);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.report-btn:disabled {
  opacity: 0;
  pointer-events: none;
}

/* ---------- Report sheet ---------- */
.modal.report-modal {
  z-index: 96;
  align-items: end;
  padding: 0;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal-card.report-card {
  --rp-red: #ff3b5c;
  width: min(480px, 100%);
  max-height: min(94dvh, 860px);
  gap: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, #1a1416 0%, #121214 140px), #121214;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.55);
  animation: rpUp 0.32s cubic-bezier(0.22, 0.9, 0.24, 1) both;
  scrollbar-width: none;
}

.report-card::-webkit-scrollbar {
  display: none;
}

@media (min-width: 700px) {
  .modal.report-modal {
    align-items: center;
    padding: 18px;
  }
  .modal-card.report-card {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding-bottom: 18px;
  }
  .rp-grab {
    display: none;
  }
}

@keyframes rpUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}

.rp-grab {
  justify-self: center;
  width: 38px;
  height: 4px;
  margin: 2px 0 -4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.rp-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rp-shield {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 59, 92, 0.28), rgba(255, 59, 92, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 59, 92, 0.35);
  color: #ff6b84;
}

.rp-shield svg,
.rp-ico svg,
.rp-info-ico svg,
.rp-shot-reveal svg,
.rp-block svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rp-shield svg {
  width: 23px;
  height: 23px;
}

.rp-head-text {
  flex: 1;
  min-width: 0;
}

.modal-card .rp-head-text h2 {
  margin: 0;
  text-align: left;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.rp-head-text p {
  margin: 2px 0 0;
  text-align: left;
  color: #9a9aa0;
  font-size: 0.8rem;
}

.rp-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  align-self: flex-start;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #d1d1d6;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.report-shot-wrap {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #050506;
}

.report-shot-wrap img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.rp-shot.is-blur img {
  filter: blur(18px) brightness(0.7);
  transform: scale(1.12);
}

.rp-shot-reveal {
  position: absolute;
  left: 50%;
  top: 50%;
  display: none;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.rp-shot-reveal svg {
  width: 17px;
  height: 17px;
}

.rp-shot.is-blur.has-shot .rp-shot-reveal {
  display: inline-flex;
}

.rp-shot-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #e5e5ea;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.rp-shot:not(.has-shot) .rp-shot-tag {
  display: none;
}

.report-shot-miss {
  margin: 0;
  padding: 22px;
  color: #8e8e93;
  font-size: 0.84rem;
  text-align: center;
}

.report-reasons {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.report-reasons legend {
  margin-bottom: 8px;
  padding: 0;
  color: #f2f2f7;
  font-size: 0.86rem;
  font-weight: 800;
}

.rp-reason {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.rp-reason:active {
  transform: scale(0.97);
}

.rp-reason.is-wide {
  grid-column: 1 / -1;
}

.rp-reason input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rp-ico {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #c7c7cc;
  transition: background 0.15s ease, color 0.15s ease;
}

.rp-ico svg {
  width: 18px;
  height: 18px;
}

.rp-txt {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rp-txt b {
  overflow: hidden;
  color: #f2f2f7;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.rp-txt small {
  color: #8e8e93;
  font-size: 0.7rem;
  line-height: 1.25;
}

.rp-reason:has(input:checked) {
  border-color: var(--rp-red);
  background: rgba(255, 59, 92, 0.1);
}

.rp-reason:has(input:checked) .rp-ico {
  background: var(--rp-red);
  color: #fff;
}

.rp-reason:has(input:focus-visible) {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.field.rp-note {
  gap: 7px;
}

.rp-note > span {
  color: #f2f2f7;
  font-size: 0.86rem;
  font-weight: 800;
}

.rp-note em {
  color: #8e8e93;
  font-style: normal;
  font-weight: 500;
}

.report-card textarea {
  width: 100%;
  min-height: 64px;
  resize: none;
  padding: 11px 13px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.report-card textarea:focus {
  border-color: rgba(255, 255, 255, 0.28);
}

.report-card textarea::placeholder {
  color: #6e6e73;
}

.rp-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255, 196, 46, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 46, 0.2);
}

.rp-info-ico {
  flex: 0 0 auto;
  color: #ffc42e;
}

.rp-info-ico svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.rp-info p {
  margin: 0;
  color: #d8d8dc;
  font-size: 0.78rem;
  line-height: 1.45;
}

.rp-info b {
  color: #fff;
}

.crop-actions.rp-actions {
  grid-template-columns: 1fr 1.6fr;
  margin-top: 0;
}

.crop-cancel.rp-cancel {
  min-height: 50px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #f2f2f7;
}

.report-send {
  min-height: 50px;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff5470, #e8173f);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(255, 59, 92, 0.8);
  transition: transform 0.12s ease, filter 0.15s ease;
}

.report-send:active {
  transform: scale(0.97);
}

.report-send:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: #8e8e93;
  box-shadow: none;
  cursor: default;
  transform: none;
}

/* Swipe coach: a floating gesture demo (no card, no box) — finger ripple, glowing teal trail, label underneath */
.swipe-coach {
  position: absolute;
  left: 50%;
  z-index: 5;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  animation: coachIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.coach-gesture {
  position: relative;
  flex: 0 0 auto;
  width: 96px;
  height: 44px;
  display: grid;
  place-items: center;
}

.coach-gesture svg {
  position: relative;
  z-index: 2;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.55));
}

.coach-hand {
  display: none;
}

/* glowing trail the fingertip leaves behind (grows from right to left) */
.swipe-coach.ready .coach-gesture::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 18px;
  top: 11px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to left, rgba(94, 234, 212, 0.95), rgba(63, 191, 169, 0.45) 55%, transparent);
  box-shadow: 0 0 14px rgba(63, 191, 169, 0.55);
  transform-origin: right center;
  animation: coachTrail 2s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

/* touch ripple where the finger lands */
.swipe-coach.ready .coach-gesture::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(94, 234, 212, 0.9);
  animation: coachTap 2s ease-out infinite;
}

.swipe-coach.ready .coach-globe {
  display: none;
}

.swipe-coach.ready .coach-hand {
  display: block;
  margin-top: 10px;
  animation: coachSwipe 2s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.swipe-coach:not(.ready) .coach-globe {
  color: #7fefdc;
  filter: drop-shadow(0 0 12px rgba(63, 191, 169, 0.7));
  animation: coachPulse 2.2s ease-in-out infinite;
}

.coach-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1.15;
}

.coach-text strong {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75), 0 0 2px rgba(0, 0, 0, 0.5);
}

.coach-text small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

@keyframes coachIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes coachSwipe {
  0% {
    transform: translateX(28px) rotate(10deg) scale(1);
    opacity: 0;
  }
  12% {
    transform: translateX(28px) rotate(10deg) scale(0.92);
    opacity: 1;
  }
  64% {
    transform: translateX(-26px) rotate(-8deg) scale(0.92);
    opacity: 1;
  }
  80%,
  100% {
    transform: translateX(-30px) rotate(-8deg) scale(1);
    opacity: 0;
  }
}

@keyframes coachTrail {
  0%,
  12% {
    transform: scaleX(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  64% {
    transform: scaleX(1);
    opacity: 1;
  }
  82%,
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

@keyframes coachTap {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  10% {
    transform: scale(0.6);
    opacity: 1;
  }
  30%,
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes coachPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

.swipe-hint {
  display: none;
  top: 50%;
  margin-top: -22px;
}

@media (max-width: 900px) {
  .swipe-hint:not(.hidden) {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .swipe-coach,
  .swipe-coach .coach-hand,
  .swipe-coach .coach-globe,
  .swipe-coach .coach-gesture::before,
  .swipe-coach .coach-gesture::after {
    animation: none !important;
  }

  .swipe-coach {
    transform: translateX(-50%);
  }
}

.swipe-hint.hidden {
  display: none !important;
}

.swipe-start-hint {
  display: none;
}

.screen-remote.is-swiping {
  z-index: 12;
  will-change: transform, opacity;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
}

.screen-remote.swipe-out-left {
  pointer-events: none;
}

.swipe-next-badge {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 13;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(47, 158, 143, 0.9);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.screen-remote.is-swiping .swipe-next-badge {
  opacity: 1;
}

.swipe-next-badge.is-stop {
  right: auto;
  left: 16px;
  background: rgba(192, 57, 43, 0.92);
}

.partner-card {
  position: absolute;
  left: 12px;
  top: 12px;
  bottom: auto;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #f2f2f2;
  max-width: calc(100% - 100px);
}

.partner-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #3a3a3a;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.partner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gender-icon {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ddd;
}

.gender-icon.female {
  color: #f0a0c0;
}

.gender-icon.male {
  color: #8ec8ff;
}

.partner-meta {
  min-width: 0;
}

.partner-name {
  font-weight: 800;
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.partner-sub {
  margin-top: 2px;
  font-size: 0.8rem;
  color: #cfcfcf;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.partner-sub .dot {
  opacity: 0.5;
}

.match-preview {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  background: rgba(10, 10, 10, 0.88);
  text-align: center;
  color: #f2f2f2;
}

.match-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  background: #3a3a3a;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.15);
}

.match-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gender-icon.big {
  font-size: 2.6rem;
}

.match-name {
  font-size: 1.55rem;
  font-weight: 800;
  margin-top: 6px;
}

.match-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  color: #cfcfcf;
  font-size: 0.95rem;
}

.match-status {
  margin-top: 4px;
  color: #bdbdbd;
  font-size: 0.9rem;
}

.accept-btn {
  margin-top: 8px;
  border: 0;
  min-width: 180px;
  padding: 14px 28px;
  border-radius: 12px;
  background: #2f9e8f;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  cursor: pointer;
}

.accept-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

.accept-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.match-hint {
  font-size: 0.82rem;
  color: #9a9a9a;
}

.reveal-overlay {
  display: none !important;
}

.reveal-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: #f5f5f5;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(20, 20, 20, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  animation: revealIn 0.45s ease both;
}

.reveal-countdown {
  margin-top: 8px;
  font-weight: 700;
  color: #cfcfcf;
  font-size: 0.95rem;
}

@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.local-idle {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  background: #000;
  z-index: 2;
}

.account-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(260px, calc(100% - 24px));
  padding: 6px 8px 6px 6px;
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  color: #f3f3f3;
}

.account-chip-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: #2f9e8f;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 0.85rem;
}

.account-chip-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-chip-meta {
  min-width: 0;
  display: grid;
  line-height: 1.15;
}

.account-chip-name {
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-chip-user {
  font-size: 0.68rem;
  color: #b8b8b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(243, 243, 243, 0.72);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.settings-btn:hover,
.settings-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.settings-btn:focus-visible {
  outline: 2px solid rgba(47, 158, 143, 0.65);
  outline-offset: 1px;
}

.settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
}

.settings-head-text {
  display: grid;
  gap: 2px;
}

.settings-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2f9e8f;
  font-weight: 700;
}

.settings-head h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.settings-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #eee;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.settings-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.gender-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: #1c1c1c;
  border: 1px solid #3a3a3a;
}

.gender-opt {
  border: 0;
  border-radius: 9px;
  padding: 10px 8px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: #aaa;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.gender-opt[data-gender="male"]:not(.active) {
  color: #8ec8ff;
}

.gender-opt[data-gender="female"]:not(.active) {
  color: #f0a0c0;
}

.gender-opt[data-gender="male"].active {
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 6px 14px rgba(59, 130, 246, 0.35);
}

.gender-opt[data-gender="female"].active {
  background: #ec4899;
  color: #fff;
  box-shadow: 0 6px 14px rgba(236, 72, 153, 0.35);
}

.gender-opt[data-gender="male"]:not(.active):hover {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.12);
}

.gender-opt[data-gender="female"]:not(.active):hover {
  color: #fbcfe8;
  background: rgba(236, 72, 153, 0.12);
}

/* Settings sheet */
.st-modal {
  z-index: 85;
  padding: 18px;
}

.st-sheet {
  width: min(460px, 100%);
  height: min(860px, 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0f0f10;
  color: #f2f2f2;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: stSheetIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes stSheetIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.st-topbar {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  min-height: 54px;
  padding: 0 8px;
  background: rgba(15, 15, 16, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.st-topbar h2 {
  margin: 0;
  text-align: center;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.st-icon-btn {
  justify-self: start;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: #f2f2f2;
  cursor: pointer;
}

.st-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.st-save-top {
  justify-self: end;
  border: 0;
  background: none;
  color: #3fbfa9;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 8px 6px;
  cursor: pointer;
}

.st-save-top:disabled {
  color: #555;
  cursor: default;
}

.st-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px));
}

.st-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 24px 0 18px;
  text-align: center;
}

.st-avatar {
  position: relative;
  width: 104px;
  height: 104px;
  margin-bottom: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #2f9e8f, #1d5f56);
  cursor: pointer;
}

.st-avatar-ring {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #0f0f10, 0 0 0 5px rgba(63, 191, 169, 0.55);
}

.st-avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.st-avatar-ring span {
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
}

.st-avatar-badge {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f2f2f2;
  color: #111;
  box-shadow: 0 0 0 3px #0f0f10;
}

.st-avatar-badge svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.st-hero-name {
  max-width: 100%;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-hero-user {
  color: #8d8d92;
  font-size: 0.9rem;
}

.st-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(63, 191, 169, 0.12);
  color: #5fd3bd;
  font-size: 0.75rem;
  font-weight: 600;
}

.st-verified svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.st-group-title {
  margin: 22px 4px 8px;
  color: #8d8d92;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.st-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.st-group-head .st-group-title {
  margin-bottom: 8px;
}

.st-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 2px 6px 0;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(63, 191, 169, 0.14);
  color: #5fd3bd;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.st-edit-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.st-edit-btn.is-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: #c7c7cc;
}

.st-edit-btn.is-cancel svg {
  display: none;
}

.st-profile:not(.is-editing) .st-input {
  color: #8d8d92;
  pointer-events: none;
}

.st-profile:not(.is-editing) .st-seg {
  pointer-events: none;
}

.st-profile:not(.is-editing) .st-seg .gender-opt:not(.active) {
  opacity: 0.35;
}

.st-profile.is-editing {
  box-shadow: 0 0 0 1.5px rgba(63, 191, 169, 0.55);
}

.st-profile.is-editing .st-input {
  padding: 6px 10px;
  border-radius: 8px;
  background: #2c2c2e;
}

.st-group {
  overflow: hidden;
  border-radius: 14px;
  background: #1c1c1e;
}

.st-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  width: 100%;
  padding: 8px 14px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.st-row + .st-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 58px;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.st-group.st-plain .st-row + .st-row::before {
  left: 14px;
}

button.st-row,
a.st-row {
  cursor: pointer;
}

button.st-row:active,
a.st-row:active {
  background: rgba(255, 255, 255, 0.05);
}

.st-ico {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
}

.st-ico svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.st-ico.teal { background: #2f9e8f; }
.st-ico.blue { background: #3478f6; }
.st-ico.purple { background: #8e5cf0; }
.st-ico.orange { background: #f08a24; }
.st-ico.pink { background: #e8457c; }
.st-ico.gray { background: #636366; }
.st-ico.green { background: #30b05c; }
.st-ico.red { background: #e5484d; }

.st-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.96rem;
}

.st-label small {
  display: block;
  margin-top: 2px;
  color: #8d8d92;
  font-size: 0.76rem;
  line-height: 1.3;
}

.st-value {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 58%;
  color: #8d8d92;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-chev {
  flex: 0 0 auto;
  width: 8px;
  height: 13px;
  fill: none;
  stroke: #5a5a5f;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.st-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: none;
  color: #f2f2f2;
  font: inherit;
  font-size: 0.96rem;
  text-align: right;
}

.st-input::placeholder {
  color: #5a5a5f;
}

.st-input[type="number"] {
  -moz-appearance: textfield;
}

.st-input[type="number"]::-webkit-inner-spin-button,
.st-input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.st-field-label {
  flex: 0 0 auto;
  width: 96px;
  font-size: 0.96rem;
}

.st-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-left: auto;
  padding: 2px;
  border-radius: 9px;
  background: #2c2c2e;
}

.st-seg .gender-opt {
  min-height: 0;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 0.82rem;
  box-shadow: none;
}

.st-switch {
  position: relative;
  flex: 0 0 auto;
  width: 51px;
  height: 31px;
}

.st-switch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.st-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #39393d;
  transition: background 0.2s ease;
}

.st-switch span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.st-switch input:checked + span {
  background: #30b05c;
}

.st-switch input:checked + span::after {
  transform: translateX(20px);
}

.st-note {
  margin: 8px 6px 0;
  color: #6e6e73;
  font-size: 0.76rem;
  line-height: 1.4;
}

.st-error {
  margin: 12px 4px 0;
}

.st-row.st-danger .st-label {
  color: #ff5a5f;
  font-weight: 600;
}

.st-footer {
  margin: 26px 0 4px;
  text-align: center;
  color: #5a5a5f;
  font-size: 0.74rem;
  line-height: 1.6;
}

.st-ico.slate { background: #5b6470; }

/* ---- Settings subpages (slide-in within the same sheet) ---- */
.st-modal .st-sheet {
  position: relative;
}

.st-sub {
  position: absolute;
  inset: 54px 0 0 0;
  background: #0f0f10;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 4px 16px calc(28px + env(safe-area-inset-bottom, 0px));
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.28s;
  z-index: 3;
}

.st-sub.is-open {
  transform: none;
  visibility: visible;
}

.st-sheet > .st-topbar {
  z-index: 4;
}

@media (max-width: 900px) {
  .st-sub {
    top: calc(54px + env(safe-area-inset-top, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .st-sub {
    transition: none;
  }
}

.st-sub-intro {
  margin: 16px 2px 2px;
  color: #8d8d92;
  font-size: 0.86rem;
  line-height: 1.5;
}

.st-sub .st-group-title:first-child {
  margin-top: 18px;
}

.stf {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 14px 0 0;
}

.stf > span {
  padding-left: 2px;
  color: #8d8d92;
  font-size: 0.8rem;
}

.stf input,
.stf select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  outline: 0;
  background: #1c1c1e;
  color: #f2f2f2;
  font: inherit;
  font-size: 0.96rem;
}

.stf input:focus,
.stf select:focus {
  border-color: #2f9e8f;
}

.st-primary {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  border: 0;
  border-radius: 14px;
  background: #2f9e8f;
  color: #06231f;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.st-primary:disabled {
  opacity: 0.5;
  cursor: default;
}

.st-primary.is-busy {
  color: transparent;
  position: relative;
}

.st-primary.is-busy::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(6, 35, 31, 0.4);
  border-top-color: #06231f;
  border-radius: 50%;
  animation: stSpin 0.7s linear infinite;
}

@keyframes stSpin {
  to {
    transform: rotate(360deg);
  }
}

.st-ghost {
  width: 100%;
  margin-top: 10px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: none;
  color: #f2f2f2;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.st-ghost.danger {
  color: #ff5a5f;
  border-color: rgba(255, 90, 95, 0.4);
}

.st-sub .auth-error {
  margin: 12px 2px 0;
}

.st-ok-msg {
  margin: 12px 2px 0;
  color: #3fbfa9;
  font-size: 0.86rem;
}

/* ---- Change password ---- */
.pw-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(47, 158, 143, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(47, 158, 143, 0.16), rgba(47, 158, 143, 0.04) 60%), #161618;
}

.pw-hero-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #2f9e8f;
  color: #fff;
  box-shadow: 0 6px 18px rgba(47, 158, 143, 0.35);
}

.pw-hero-ico svg,
.pw-done-ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pw-hero-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pw-hero-text strong {
  font-size: 0.98rem;
}

.pw-hero-text span {
  overflow: hidden;
  color: #8d8d92;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pw-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(48, 176, 92, 0.14);
  color: #4cd27a;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.pw-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(76, 210, 122, 0.2);
}

.pw-form {
  display: flex;
  flex-direction: column;
}

.pwf {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 16px;
}

.pwf.hidden {
  display: none;
}

.pwf-label {
  padding-left: 2px;
  color: #a1a1a6;
  font-size: 0.8rem;
  font-weight: 600;
}

.pwf-input {
  position: relative;
  display: flex;
  align-items: center;
}

.pwf-ico {
  position: absolute;
  left: 13px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #6e6e73;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: stroke 0.15s ease;
}

.pwf-input input {
  width: 100%;
  padding: 13px 46px 13px 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  outline: 0;
  background: #1c1c1e;
  color: #f2f2f2;
  font: inherit;
  font-size: 0.96rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pwf-input input:focus {
  border-color: #2f9e8f;
  box-shadow: 0 0 0 3px rgba(47, 158, 143, 0.18);
}

.pwf-input:focus-within .pwf-ico {
  stroke: #3fbfa9;
}

.pwf.is-error .pwf-input input {
  border-color: rgba(255, 90, 95, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.14);
}

.pwf-input input.pwf-code {
  font-family: "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.35em;
}

.pwf-input input.pwf-code:placeholder-shown {
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 400;
  letter-spacing: normal;
}

.pwf-eye {
  position: absolute;
  right: 6px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: #8d8d92;
  cursor: pointer;
}

.pwf-eye:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f2f2f2;
}

.pwf-eye svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pwf-link {
  align-self: flex-end;
  padding: 2px;
  border: 0;
  background: none;
  color: #3fbfa9;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.pwf-link:disabled {
  color: #6b6b70;
  cursor: default;
}

.pwf-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.pwf-hint {
  padding-left: 2px;
  color: #8d8d92;
  font-size: 0.78rem;
  line-height: 1.45;
}

.pw-meter2-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.pw-meter2 {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.pw-meter2 i {
  height: 4px;
  border-radius: 999px;
  background: #2c2c2e;
  transition: background 0.2s ease;
}

.pw-meter2.level-1 i:nth-child(-n + 1) { background: #ff5a5f; }
.pw-meter2.level-2 i:nth-child(-n + 2) { background: #f0a020; }
.pw-meter2.level-3 i:nth-child(-n + 3) { background: #3fbfa9; }
.pw-meter2.level-4 i { background: #30b05c; }

.pw-meter2-label {
  min-width: 64px;
  color: #8d8d92;
  font-size: 0.74rem;
  font-weight: 700;
  text-align: right;
}

.pw-meter2-label.weak { color: #ff5a5f; }
.pw-meter2-label.fair { color: #f0a020; }
.pw-meter2-label.good { color: #3fbfa9; }
.pw-meter2-label.strong { color: #4cd27a; }

.pw-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.pw-rules li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6e6e73;
  font-size: 0.75rem;
  line-height: 1.3;
  transition: color 0.15s ease;
}

.pw-rules svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  padding: 2px;
  border-radius: 50%;
  background: #2c2c2e;
  fill: none;
  stroke: transparent;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: background 0.15s ease, stroke 0.15s ease;
}

.pw-rules li.ok {
  color: #c7c7cc;
}

.pw-rules li.ok svg {
  background: #30b05c;
  stroke: #fff;
}

.pwf-match {
  padding-left: 2px;
  font-size: 0.76rem;
  font-weight: 600;
}

.pwf-match.hidden {
  display: none;
}

.pwf-match.ok { color: #4cd27a; }
.pwf-match.bad { color: #ff5a5f; }

.pw-so {
  margin-top: 18px;
}

.pw-so.hidden {
  display: none;
}

.pw-form .st-note {
  margin-top: 14px;
}

.pw-sessions .st-label {
  color: #ff6b6f;
}

.pw-tips {
  margin: 22px 0 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #161618;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pw-tips strong {
  display: block;
  margin-bottom: 8px;
  color: #c7c7cc;
  font-size: 0.82rem;
}

.pw-tips ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #8d8d92;
  font-size: 0.78rem;
  line-height: 1.45;
}

.pw-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 28px;
  padding: 26px 18px 18px;
  border-radius: 18px;
  background: #161618;
  border: 1px solid rgba(48, 176, 92, 0.25);
  text-align: center;
  animation: pwDoneIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.pw-done-ico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #30b05c;
  color: #fff;
  box-shadow: 0 10px 26px rgba(48, 176, 92, 0.35);
}

.pw-done strong {
  margin-top: 14px;
  font-size: 1.08rem;
}

.pw-done p {
  margin: 6px 0 0;
  color: #8d8d92;
  font-size: 0.84rem;
  line-height: 1.5;
}

@keyframes pwDoneIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pw-done { animation: none; }
}

.st-cam-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-top: 16px;
  border-radius: 16px;
  background: #000;
  object-fit: cover;
}

.st-cam-preview.mirror {
  transform: scaleX(-1);
}

.st-cam-hint {
  margin: 10px 2px 0;
  color: #8d8d92;
  font-size: 0.8rem;
  line-height: 1.4;
}

.st-radio .st-row {
  cursor: pointer;
}

.st-radio .st-check {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  opacity: 0;
  color: #2f9e8f;
}

.st-radio .st-row.is-active .st-check {
  opacity: 1;
}

.st-radio .st-check svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.st-unblock {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: none;
  color: #f2f2f2;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.st-unblock:disabled {
  opacity: 0.5;
  cursor: default;
}

.st-block-av {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2c2c2e;
  color: #f2f2f2;
  font-weight: 700;
  overflow: hidden;
}

.st-block-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.st-empty {
  padding: 48px 16px;
  text-align: center;
  color: #8d8d92;
  font-size: 0.9rem;
  line-height: 1.5;
}

.st-empty svg {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  fill: none;
  stroke: #46464b;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.report-block {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 90, 95, 0.4);
  border-radius: 12px;
  background: none;
  color: #ff5a5f;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.report-block:active {
  background: rgba(255, 90, 95, 0.08);
}

.rp-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: -4px;
  border: 0;
  color: #ff6b84;
  font-size: 0.86rem;
}

.rp-block svg {
  width: 17px;
  height: 17px;
}

.st-footer strong {
  color: #8d8d92;
  font-weight: 700;
}

body.no-mirror #localVideo {
  transform: none;
}

.local-idle.has-camera {
  display: none;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 180px;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: linear-gradient(135deg, #34b3a2, var(--start) 55%, #23786c);
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(47, 158, 143, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  animation: ghost-btn-pulse 2.6s ease-in-out infinite;
}

.ghost-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.ghost-btn:active {
  transform: scale(0.97);
}

.ghost-btn-ico {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes ghost-btn-pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(47, 158, 143, 0.35), 0 0 0 0 rgba(47, 158, 143, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
  50% { box-shadow: 0 10px 30px rgba(47, 158, 143, 0.35), 0 0 0 12px rgba(47, 158, 143, 0), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
}

@media (prefers-reduced-motion: reduce) {
  .ghost-btn {
    animation: none;
  }
}

.local-off {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #111;
  color: #aaa;
  font-weight: 700;
  z-index: 3;
}

/* ===== Bottom dock like OmeTV ===== */
.dock {
  display: block;
  min-height: 0;
  background: var(--dock);
  border-top: 1px solid #ccc;
  z-index: 4;
}

.dock-left {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  width: 50%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.country-pop {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  z-index: 30;
  max-height: min(52vh, 420px);
  display: flex;
  flex-direction: column;
  background: #f7f7f7;
  border: 1px solid #cfcfcf;
  border-bottom: 0;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.28);
}

.country-pop.hidden {
  display: none !important;
}

.country-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #ddd;
  font-weight: 800;
  font-size: 0.9rem;
  color: #333;
  background: #fff;
}

.country-pop-close {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 0 4px;
}

.country-grid {
  overflow-y: auto;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
}

.country-card {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 10px;
  padding: 8px 8px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.country-card:hover {
  border-color: #2f9e8f;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.country-card.selected {
  border-color: #2f9e8f;
  background: #e8f7f4;
  box-shadow: 0 0 0 2px rgba(47, 158, 143, 0.25);
}

.country-card img {
  width: 56px;
  height: 38px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
  background: #eee;
}

.country-card span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  line-height: 1.2;
}

.dock-controls {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.05fr 0.95fr;
  min-width: 0;
  min-height: 0;
}

.media-menu {
  position: relative;
  min-height: 0;
  border-left: 1px solid var(--line);
  display: grid;
}

.media-more-btn {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-left: 0 !important;
  border-radius: 0;
  display: grid;
  place-items: center;
  gap: 0 !important;
  padding: 0 !important;
}

.more-dots {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #333;
}

.media-more-btn.active .more-dots,
.media-more-btn[aria-expanded="true"] .more-dots {
  color: #c0392b;
}

.media-pop {
  position: absolute;
  right: 8px;
  bottom: calc(100% + 8px);
  z-index: 40;
  min-width: 168px;
  display: grid;
  gap: 4px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #d8d8d8;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.media-pop.hidden {
  display: none !important;
}

.media-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  border: 0;
  border-radius: 9px;
  background: #f5f5f5;
  color: #222;
  padding: 11px 12px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  text-align: left;
}

.media-opt:hover {
  background: #eaf7f4;
}

.media-opt.active {
  background: #fdecea;
}

.media-opt-state {
  font-size: 0.78rem;
  font-weight: 800;
  color: #2f9e8f;
  min-width: 28px;
  text-align: right;
}

.media-opt.active .media-opt-state {
  color: #c0392b;
}

.country-btn-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.country-btn-flag {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid #ddd;
}

.dock-country {
  background: #fff;
}

.server-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 10px;
  font-size: 0.72rem;
  color: #666;
  background: #efefef;
  border-top: 1px solid #ddd;
}

.server-status > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 4px;
  animation: authRise 0.7s 0.55s ease both;
}

.auth-tab {
  border: 1px solid #555;
  background: #3a3a3a;
  color: #ddd;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.15s ease;
}

.auth-tab:hover {
  transform: translateY(-1px);
}

.auth-tab.active {
  background: #2f9e8f;
  border-color: #2f9e8f;
  color: #fff;
}

.auth-error {
  color: #ff8e8e;
  font-size: 0.82rem;
}

.pw-meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 8px;
}

.pw-bar {
  height: 6px;
  border-radius: 99px;
  background: #4a4a4a;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.pw-meter.level-1 .pw-bar[data-i="0"] {
  background: #e74c3c;
  box-shadow: 0 0 8px rgba(231, 76, 60, 0.45);
}
.pw-meter.level-2 .pw-bar[data-i="0"],
.pw-meter.level-2 .pw-bar[data-i="1"] {
  background: #f1c40f;
  box-shadow: 0 0 8px rgba(241, 196, 15, 0.4);
}
.pw-meter.level-3 .pw-bar[data-i="0"],
.pw-meter.level-3 .pw-bar[data-i="1"],
.pw-meter.level-3 .pw-bar[data-i="2"] {
  background: #2ecc71;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.35);
}
.pw-meter.level-4 .pw-bar {
  background: #27ae60;
  box-shadow: 0 0 8px rgba(39, 174, 96, 0.4);
}

.pw-hint {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #aaa;
}

.pw-hint.weak {
  color: #e74c3c;
}
.pw-hint.fair {
  color: #f1c40f;
}
.pw-hint.good {
  color: #2ecc71;
}
.pw-hint.strong {
  color: #27ae60;
}

/* ---------- Ban lock (violation notice) ---------- */
.ban-lock {
  --bl-brand: #2f9e8f;
  --bl-brand-soft: rgba(47, 158, 143, 0.14);
  --bl-red: #ff4d61;
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(6, 7, 8, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(0.8);
  backdrop-filter: blur(14px) saturate(0.8);
}

.ban-lock-card {
  width: min(380px, 100%);
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
  border-radius: 22px;
  background: #232325;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 30px 80px -20px rgba(0, 0, 0, 0.8);
  color: #f2f2f2;
  animation: blIn 0.35s cubic-bezier(0.22, 0.9, 0.24, 1) both;
}

@keyframes blIn {
  from {
    transform: translateY(12px) scale(0.98);
    opacity: 0;
  }
}

.bl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bl-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ban-lock-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.bl-notice {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bl-brand-soft);
  color: #5fd0c0;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bl-countdown {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px 10px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(47, 158, 143, 0.12), rgba(47, 158, 143, 0.03));
  box-shadow: inset 0 0 0 1px rgba(47, 158, 143, 0.22);
}

.bl-cd-label {
  color: #5fd0c0;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bl-cd-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.bl-cd-seg {
  position: relative;
  display: grid;
  justify-items: center;
  min-width: 58px;
  gap: 2px;
}

.bl-cd-seg + .bl-cd-seg::before {
  content: ":";
  position: absolute;
  left: -3px;
  top: 0;
  color: rgba(255, 255, 255, 0.28);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
}

.bl-cd-seg.hidden + .bl-cd-seg::before {
  content: none;
}

.bl-cd-seg b {
  color: #fff;
  font-size: 1.9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.bl-cd-seg small {
  color: #8e8e93;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bl-head {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding-top: 2px;
  text-align: center;
}

.bl-badge {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  border-radius: 14px;
  background: rgba(255, 77, 97, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 77, 97, 0.28);
  color: var(--bl-red);
}

.bl-badge svg,
.bl-thumb svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bl-badge svg {
  width: 22px;
  height: 22px;
}

.bl-head .bl-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.ban-lock-card h2 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-align: center;
}

.bl-head p {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: #9a9aa0;
  font-size: 0.84rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bl-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bl-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 196, 46, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 46, 0.25);
  color: #ffcf5c;
  font-size: 0.76rem;
  font-weight: 600;
}

.bl-pill strong {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bl-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: banAppealPulse 1.6s ease-in-out infinite;
}

.ban-lock.is-permanent .bl-pill {
  background: rgba(255, 77, 97, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 77, 97, 0.3);
  color: #ff7c8b;
}

.ban-lock.is-permanent .bl-pill-dot {
  animation: none;
}

.bl-case {
  color: #6e6e73;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.bl-violation {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.bl-ev {
  flex: 0 0 auto;
}

.bl-ev:empty {
  display: none;
}

.bl-thumb {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #1a1a1c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: #6e6e73;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 700;
}

.bl-thumb svg {
  width: 22px;
  height: 22px;
}

.bl-thumb.is-photo {
  cursor: pointer;
}

.bl-thumb.is-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(9px) brightness(0.55);
  transform: scale(1.2);
}

.bl-thumb-eye {
  position: relative;
  width: 20px;
  height: 20px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.bl-thumb-cta {
  position: relative;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
}

.bl-thumb.is-photo:focus-visible {
  outline: 2px solid var(--bl-brand);
  outline-offset: 2px;
}

.bl-thumb.is-loading {
  background: linear-gradient(100deg, #1a1a1c 30%, #2a2a2e 50%, #1a1a1c 70%) 0 0 / 200% 100%;
  animation: blSkel 1.3s linear infinite;
}

@keyframes blSkel {
  to {
    background-position: -200% 0;
  }
}

.bl-violation-text {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.bl-label {
  color: #8e8e93;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ban-lock-reason {
  margin: 0;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.bl-rule {
  justify-self: start;
  color: #5fd0c0;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.bl-rule:hover {
  text-decoration: underline;
}

.bl-quote-slot:empty {
  display: none;
}

.bl-quote {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--bl-red);
  border-radius: 4px 12px 12px 4px;
  background: rgba(255, 77, 97, 0.06);
}

.bl-quote-k {
  display: block;
  margin-bottom: 3px;
  color: #ff7c8b;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bl-quote p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #e5e5ea;
  font-size: 0.86rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.bl-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.bl-fact {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px 11px;
  background: #232325;
}

.bl-fact dt {
  color: #8e8e93;
  font-size: 0.66rem;
  font-weight: 700;
}

.bl-fact dd {
  margin: 0;
  overflow: hidden;
  color: #f2f2f7;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bl-legal {
  margin: 0;
  color: #77777c;
  font-size: 0.7rem;
  line-height: 1.5;
}

.bl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: max(20px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.92);
  animation: blFade 0.2s ease both;
}

@keyframes blFade {
  from {
    opacity: 0;
  }
}

.bl-lightbox-fig {
  display: grid;
  gap: 10px;
  margin: 0;
  max-width: min(560px, 100%);
}

.bl-lightbox-fig img {
  display: block;
  max-width: 100%;
  max-height: 70dvh;
  border-radius: 14px;
  object-fit: contain;
}

.bl-lightbox-fig figcaption {
  color: #a1a1a6;
  font-size: 0.76rem;
  text-align: center;
}

.bl-lightbox-close {
  min-width: 120px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.ban-appeal {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  text-align: left;
}

.ban-appeal-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  color: #f2f2f7;
  font-size: 0.86rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.ban-appeal-title::-webkit-details-marker {
  display: none;
}

.ban-appeal-title::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #8e8e93;
  border-bottom: 2px solid #8e8e93;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.ban-appeal[open] .ban-appeal-title::after {
  transform: translateY(2px) rotate(-135deg);
}

.ban-appeal-body,
.ban-appeal > .ban-appeal-error {
  padding: 0 14px 14px;
}

.ban-appeal-note {
  margin: 0;
  color: #a8a8a8;
  font-size: 0.86rem;
  line-height: 1.45;
}

.ban-appeal-note.is-loading {
  animation: banAppealPulse 1.2s ease-in-out infinite;
}

@keyframes banAppealPulse {
  50% {
    opacity: 0.45;
  }
}

.ban-appeal-form {
  display: grid;
  gap: 8px;
}

.ban-appeal-input {
  width: 100%;
  min-height: 84px;
  max-height: 180px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #1a1a1c;
  color: #f2f2f2;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  box-sizing: border-box;
}

.ban-appeal-input::placeholder {
  color: #77777c;
}

.ban-appeal-input:focus {
  outline: none;
  border-color: rgba(47, 158, 143, 0.7);
  box-shadow: 0 0 0 3px rgba(47, 158, 143, 0.18);
}

.ban-appeal-input:read-only {
  opacity: 0.7;
}

.ban-appeal-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: #8f8f94;
  font-size: 0.76rem;
  line-height: 1.35;
}

.ban-appeal-count {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.ban-appeal-count.is-full {
  color: #ff8d8d;
}

.ban-appeal-send,
.ban-appeal-retry {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #2f9e8f;
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.ban-appeal-send:disabled {
  opacity: 0.45;
  cursor: default;
}

.ban-appeal-retry {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ban-appeal-error {
  margin: 8px 0 0;
  color: #ff9a9a;
  font-size: 0.84rem;
  line-height: 1.4;
}

.ban-appeal-form .ban-appeal-error {
  margin: 0;
}

.ban-appeal-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
}

.ban-appeal-status.is-pending {
  color: #ffd27a;
}

.ban-appeal-status.is-rejected {
  color: #ff8d8d;
}

.ban-appeal-status.is-accepted {
  color: #6fe0a5;
}

.ban-appeal-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: banAppealPulse 1.6s ease-in-out infinite;
}

.ban-appeal-quote {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-left: 3px solid rgba(47, 158, 143, 0.6);
  border-radius: 0 10px 10px 0;
  background: rgba(0, 0, 0, 0.35);
  color: #d6d6d6;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ban-appeal-reply {
  margin: 0 0 8px;
  color: #e6e6e6;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ban-appeal-reply strong {
  color: #5fd0c0;
}

.ban-appeal-date {
  margin: 0;
  color: #8f8f94;
  font-size: 0.76rem;
}

@media (max-width: 480px) {
  .ban-appeal-meta {
    flex-direction: column;
    gap: 2px;
  }

  .ban-appeal-count {
    align-self: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ban-appeal-note.is-loading,
  .ban-appeal-dot,
  .ban-lock-card,
  .bl-thumb.is-loading,
  .bl-pill-dot,
  .bl-lightbox {
    animation: none;
  }
}

.black-warn {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  z-index: 11000;
  width: min(440px, calc(100% - 24px));
  transform: translateX(-50%);
  animation: blackWarnIn 0.25s ease both;
}

.black-warn.hidden {
  display: none;
}

@keyframes blackWarnIn {
  from {
    opacity: 0;
    transform: translate(-50%, -12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.black-warn-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 120, 120, 0.35);
  background: rgba(22, 16, 16, 0.95);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  color: #f2f2f2;
}

.black-warn-count {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #ff8d8d;
  color: #ffd0d0;
  font-size: 1.5rem;
  font-weight: 800;
  animation: blackWarnPulse 1s ease-in-out infinite;
}

@keyframes blackWarnPulse {
  50% {
    box-shadow: 0 0 0 6px rgba(255, 120, 120, 0.18);
  }
}

.black-warn-body {
  min-width: 0;
}

.black-warn-kicker {
  margin: 0;
  color: #ff8d8d;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.black-warn-body h3 {
  margin: 2px 0 4px;
  font-size: 1.1rem;
}

.black-warn-text {
  margin: 0;
  color: #d0d0d0;
  font-size: 0.88rem;
  line-height: 1.4;
}

.black-warn-btn {
  margin-top: 10px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--start);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.black-warn-btn:hover {
  background: var(--start-hover);
}

.black-warn-btn.hidden {
  display: none;
}

/* Staff announcement / maintenance banner */
.announce-bar {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  z-index: 10900;
  width: min(560px, calc(100% - 20px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(47, 158, 143, 0.45);
  background: rgba(14, 22, 22, 0.96);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  color: #eef2f4;
  animation: blackWarnIn 0.25s ease both;
}

.announce-bar.hidden {
  display: none;
}

.announce-bar.warn {
  border-color: rgba(201, 137, 45, 0.6);
  background: rgba(26, 20, 12, 0.96);
}

.announce-badge {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2f9e8f;
  color: #fff;
  font-weight: 900;
}

.announce-bar.warn .announce-badge {
  background: #c9892d;
}

.announce-body {
  flex: 1;
  min-width: 0;
}

.announce-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8fd3c8;
}

.announce-bar.warn .announce-kicker {
  color: #ffcf8f;
}

.announce-text {
  margin: 2px 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.announce-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #eef2f4;
  font-size: 1.2rem;
  cursor: pointer;
}

.announce-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.auth-modal {
  display: grid;
  place-items: center;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 16px 48px;
}

.auth-shell {
  position: relative;
  z-index: 2;
  width: min(420px, 100%);
  margin: 0 auto;
}

.auth-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Blurred still of the same scene fills whatever the video box doesn't cover */
.auth-stage::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: url("/media/auth-bg.jpg?v=8") 50% 30% / cover no-repeat;
  filter: blur(28px) saturate(0.7) brightness(0.55);
}

/* The footage is vertical (9:16): full-screen on phones, a tall panel on the right on wide screens */
.auth-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  opacity: 0.3;
  filter: saturate(0.8) brightness(0.85);
}

@media (min-aspect-ratio: 3/4) {
  .auth-video {
    left: auto;
    width: auto;
    aspect-ratio: 9 / 16;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%);
    mask-image: linear-gradient(90deg, transparent, #000 30%);
  }
}

/* Keeps the form readable over the footage */
.auth-video-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 8, 0.52) 0%, rgba(7, 7, 8, 0.68) 40%, rgba(7, 7, 8, 0.88) 100%),
    radial-gradient(90% 60% at 50% 40%, rgba(47, 158, 143, 0.1), transparent 70%);
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: authFloat 10s ease-in-out infinite;
}

.auth-orb-a {
  width: 55vw;
  height: 55vw;
  top: -20%;
  left: -15%;
  background: radial-gradient(circle, rgba(47, 158, 143, 0.55), transparent 68%);
}

.auth-orb-b {
  width: 45vw;
  height: 45vw;
  right: -12%;
  bottom: -18%;
  background: radial-gradient(circle, rgba(244, 162, 97, 0.4), transparent 70%);
  animation-delay: -4s;
}

.auth-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.015) 3px,
    rgba(255, 255, 255, 0.015) 4px
  );
  opacity: 0.6;
}

@keyframes authFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(4%, 3%) scale(1.08);
  }
}

.auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-height: min(92vh, 820px);
  overflow-y: auto;
  animation: authCardIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(47, 158, 143, 0.12);
}

.auth-legal {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 8px;
}

.policy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  color: #cfcfcf;
  line-height: 1.4;
  cursor: pointer;
}

.policy-check input {
  margin-top: 3px;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  accent-color: #2f9e8f;
}

.auth-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 0.78rem;
  line-height: 1.4;
}

.auth-legal-links a {
  color: #6db3ff;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(109, 179, 255, 0.45);
}

.auth-legal-links a:hover {
  color: #9cccff;
  text-decoration-color: rgba(156, 204, 255, 0.8);
}

.legal-dot {
  color: #777;
}

@keyframes authCardIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.94);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.auth-brand {
  text-align: center;
  margin-bottom: 4px;
}

.auth-logo-pop {
  animation: authLogoIn 0.9s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes authLogoIn {
  from {
    opacity: 0;
    transform: scale(0.4) rotate(-12deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

.auth-title {
  min-height: 1.4em;
  letter-spacing: -0.03em;
}

.auth-title .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  animation: letterIn 0.45s ease forwards;
}

@keyframes letterIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-tagline {
  min-height: 1.4em;
  color: #b0b0b0;
  font-size: 0.92rem;
  margin-top: 4px;
}

.auth-tagline .ch {
  display: inline-block;
  opacity: 0;
  animation: letterFade 0.35s ease forwards;
}

@keyframes letterFade {
  to {
    opacity: 1;
  }
}

.reg-lead {
  margin: 0 0 2px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #9ad9cf;
  text-align: center;
}

.auth-pane {
  display: grid;
  gap: 12px;
}

.auth-pane .field span {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #b8b8b8;
}

#registerForm .field-row {
  align-items: end;
}

#registerForm .gender-toggle {
  min-height: 46px;
}

#registerForm .gender-opt {
  font-size: 0.72rem;
  padding: 10px 4px;
}

.auth-field {
  animation: authRise 0.55s ease both;
}

.auth-pane .auth-field:nth-child(1) {
  animation-delay: 0.15s;
}
.auth-pane .auth-field:nth-child(2) {
  animation-delay: 0.22s;
}
.auth-pane .auth-field:nth-child(3) {
  animation-delay: 0.29s;
}
.auth-pane .auth-field:nth-child(4) {
  animation-delay: 0.36s;
}
.auth-pane .auth-field:nth-child(5) {
  animation-delay: 0.43s;
}
.auth-pane .auth-field:nth-child(6) {
  animation-delay: 0.5s;
}

@keyframes authRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-cta {
  animation: authRise 0.55s 0.45s ease both;
  position: relative;
  overflow: hidden;
}

.auth-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.25), transparent 70%);
  transform: translateX(-120%);
  animation: ctaShine 2.8s 1.2s ease-in-out infinite;
}

@keyframes ctaShine {
  0%,
  60%,
  100% {
    transform: translateX(-120%);
  }
  80% {
    transform: translateX(120%);
  }
}

/* Auth — login / register */
.auth-modal.modal {
  background:
    radial-gradient(120% 60% at 50% -12%, rgba(47, 158, 143, 0.2), transparent 62%),
    #070708;
}

.auth-modal .auth-card {
  gap: 16px;
  padding: 30px 26px 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(26, 26, 29, 0.9), rgba(14, 14, 16, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #f5f5f7;
}

.auth-modal .auth-brand {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 0 0 4px;
}

.auth-modal .modal-logo {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  box-shadow:
    0 14px 34px rgba(47, 158, 143, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.auth-modal .auth-title {
  margin: 10px 0 0;
  font-size: 1.65rem;
  font-weight: 800;
}

.auth-modal .auth-tagline {
  margin: 0;
  color: #8d8d92;
  font-size: 0.9rem;
}

.auth-modal .auth-tabs {
  gap: 4px;
  margin: 0;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-modal .auth-tab {
  border: 0;
  border-radius: 10px;
  padding: 11px 10px;
  background: transparent;
  color: #8d8d92;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.auth-modal .auth-tab:hover {
  transform: none;
  color: #d8d8dc;
}

.auth-modal .auth-tab.active {
  background: #27272c;
  color: #fff;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.auth-modal .auth-pane {
  gap: 14px;
}

.auth-modal .field {
  gap: 7px;
}

.auth-modal .field-label {
  color: #a1a1a6;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.input-wrap {
  position: relative;
  display: block;
}

.input-ico {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  fill: none;
  stroke: #6e6e73;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: stroke 0.2s ease;
}

.auth-modal .field input,
.auth-modal .field select {
  height: 52px;
  padding: 0 14px 0 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  color: #f5f5f7;
  font-size: 16px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-modal .field input::placeholder {
  color: #5c5c61;
}

.auth-modal .field input:focus,
.auth-modal .field select:focus {
  border-color: rgba(47, 158, 143, 0.85);
  background: rgba(47, 158, 143, 0.06);
  box-shadow: 0 0 0 4px rgba(47, 158, 143, 0.16);
}

.input-wrap:focus-within .input-ico {
  stroke: #4fc2b1;
}

.auth-modal .input-wrap:has(.pw-toggle) input {
  padding-right: 50px;
}

.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #8d8d92;
  cursor: pointer;
}

.pw-toggle:hover,
.pw-toggle:focus-visible {
  color: #e5e5ea;
  background: rgba(255, 255, 255, 0.06);
}

.pw-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pw-toggle .eye-off,
.pw-toggle.is-on .eye-on {
  display: none;
}

.pw-toggle.is-on .eye-off {
  display: block;
}

.auth-modal .select-wrap select {
  padding: 0 38px 0 14px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -6px;
  border-right: 2px solid #8d8d92;
  border-bottom: 2px solid #8d8d92;
  transform: rotate(45deg);
  pointer-events: none;
}

.auth-modal #registerForm .gender-toggle {
  height: 52px;
  min-height: 52px;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.auth-modal #registerForm .gender-opt {
  min-height: 0;
  padding: 0 4px;
  border-radius: 10px;
  font-size: 0.84rem;
}

.auth-modal .pw-meter {
  gap: 4px;
  margin-top: 2px;
}

.auth-modal .pw-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-modal .pw-hint {
  display: block;
  margin: 0;
  color: #8d8d92;
  font-size: 0.76rem;
}

.auth-modal .reg-lead {
  margin: 0;
  color: #8d8d92;
  font-size: 0.84rem;
}

.auth-modal .auth-error:not(.hidden) {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 69, 58, 0.1);
  border: 1px solid rgba(255, 69, 58, 0.25);
  color: #ff8a80;
  font-size: 0.84rem;
  line-height: 1.4;
}

.auth-modal .auth-cta {
  height: 54px;
  margin-top: 4px;
  border-radius: 14px;
  background: linear-gradient(180deg, #38b6a5, #2a9384);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow:
    0 12px 30px rgba(47, 158, 143, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-modal .auth-cta:hover {
  filter: brightness(1.06);
}

.auth-modal .auth-cta:active {
  transform: scale(0.985);
}

.auth-modal .auth-cta:disabled {
  opacity: 0.6;
  cursor: default;
}

.auth-modal .auth-legal {
  margin-top: 2px;
  padding-top: 16px;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-modal .policy-check {
  position: relative;
  align-items: center;
  gap: 12px;
  color: #c7c7cc;
  font-size: 0.86rem;
}

.auth-modal .policy-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.policy-box {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.policy-box svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.policy-check input:checked + .policy-box {
  background: #2f9e8f;
  border-color: #2f9e8f;
}

.policy-check input:checked + .policy-box svg {
  opacity: 1;
  transform: scale(1);
}

.policy-check input:focus-visible + .policy-box {
  box-shadow: 0 0 0 4px rgba(47, 158, 143, 0.25);
}

.auth-modal .auth-legal-links {
  justify-content: center;
  font-size: 0.78rem;
}

.auth-modal .auth-legal-links a {
  color: #8d8d92;
  text-decoration-color: rgba(141, 141, 146, 0.4);
}

.auth-modal .auth-legal-links a:hover {
  color: #e5e5ea;
}

@media (max-width: 900px) {
  .auth-modal.modal {
    padding: 0;
    place-items: stretch;
    align-items: stretch;
  }

  .auth-modal .auth-shell {
    width: 100%;
    min-height: 100%;
    display: flex;
  }

  .auth-modal .auth-card {
    width: 100%;
    max-height: none;
    min-height: 100dvh;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: calc(30px + env(safe-area-inset-top, 0px)) 22px calc(20px + env(safe-area-inset-bottom, 0px));
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
  }

  .auth-modal .auth-brand {
    margin: auto 0 12px;
    padding-top: 10px;
  }

  .auth-modal .modal-logo {
    width: 78px;
    height: 78px;
    border-radius: 23px;
  }

  .auth-modal .auth-title {
    font-size: 1.9rem;
  }

  .auth-modal .auth-legal {
    margin-top: auto;
  }

  .auth-scanlines {
    display: none;
  }

  .auth-orb-a {
    width: 120vw;
    height: 120vw;
    top: -45%;
    left: -35%;
  }

  .auth-orb-b {
    width: 90vw;
    height: 90vw;
    bottom: -30%;
  }
}

/* Register is the long form: tighten it so it fits one phone screen without scrolling */
.auth-modal:has(#registerForm:not(.hidden)) .auth-card {
  gap: 12px;
}

.auth-modal:has(#registerForm:not(.hidden)) .auth-brand {
  margin-bottom: 0;
  padding-top: 0;
}

.auth-modal:has(#registerForm:not(.hidden)) .modal-logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
}

.auth-modal:has(#registerForm:not(.hidden)) .auth-title {
  margin-top: 6px;
  font-size: 1.45rem;
}

.auth-modal:has(#registerForm:not(.hidden)) .auth-tagline,
.auth-modal #registerForm .reg-lead {
  display: none;
}

.auth-modal #registerForm {
  gap: 10px;
}

.auth-modal #registerForm .field {
  gap: 6px;
}

.auth-modal #registerForm .field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.auth-modal #registerForm .field input,
.auth-modal #registerForm .field select,
.auth-modal #registerForm .gender-toggle {
  height: 48px;
  min-height: 48px;
}

.auth-modal #registerForm .pw-meter {
  margin-top: 0;
}

.auth-modal #registerForm .auth-cta {
  height: 50px;
  margin-top: 2px;
}

.auth-modal:has(#registerForm:not(.hidden)) .auth-legal {
  padding-top: 12px;
  gap: 8px;
}

/* Email verification step */
.auth-modal:has(#verifyForm:not(.hidden)) .auth-tabs,
.auth-modal:has(#verifyForm:not(.hidden)) .auth-legal {
  display: none;
}

.verify-head {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.verify-ico {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 4px;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 25%, rgba(63, 209, 188, 0.32), rgba(63, 209, 188, 0.08));
  border: 1px solid rgba(63, 209, 188, 0.35);
  box-shadow: 0 10px 30px -12px rgba(63, 209, 188, 0.6);
  animation: verifyIcoIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.verify-ico svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #3fd1bc;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.verify-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.verify-sub {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #8d8d92;
}

.verify-sub b {
  color: #e5e5ea;
  font-weight: 700;
  word-break: break-all;
}

.otp {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  max-width: 340px;
  width: 100%;
  margin: 4px auto 0;
}

.otp-digit {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 18, 20, 0.82);
  color: #fff;
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  caret-color: #3fd1bc;
  transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.auth-pane .otp-digit {
  font-size: 1.5rem;
}

.otp-digit:focus {
  outline: none;
  border-color: #3fd1bc;
  background: rgba(63, 209, 188, 0.08);
  box-shadow: 0 0 0 3px rgba(63, 209, 188, 0.18);
}

.otp-digit.filled {
  border-color: rgba(63, 209, 188, 0.5);
  transform: translateY(-1px);
}

.otp.is-error .otp-digit {
  border-color: rgba(255, 69, 58, 0.6);
  background: rgba(255, 69, 58, 0.08);
}

.otp.is-error {
  animation: otpShake 0.38s ease;
}

.otp.is-ok .otp-digit {
  border-color: #3fd1bc;
  background: rgba(63, 209, 188, 0.16);
}

.verify-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
}

.verify-link {
  padding: 4px 2px;
  border: 0;
  background: none;
  color: #3fd1bc;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.verify-link:disabled {
  color: #6b6b70;
  cursor: default;
}

.forgot-link {
  justify-self: end;
  margin: -4px 0 -2px;
  font-size: 0.82rem;
}

.verify-reset {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.verify-reset.hidden {
  display: none;
}

.verify-note,
.verify-dev {
  margin: 0;
  text-align: center;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #6b6b70;
}

.verify-note b {
  color: #8d8d92;
}

.verify-dev {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 196, 0, 0.08);
  border: 1px dashed rgba(255, 196, 0, 0.3);
  color: #e0b84a;
}

@keyframes verifyIcoIn {
  from {
    opacity: 0;
    transform: scale(0.6) rotate(-8deg);
  }
}

@keyframes otpShake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-orb,
  .auth-cta::after {
    animation: none;
  }

  .auth-video {
    display: none;
  }
}

/* Guided tour */
.tour {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.tour:not(.hidden) {
  pointer-events: auto;
}

.tour-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  animation: tourFade 0.3s ease both;
}

.tour-spotlight {
  position: absolute;
  border-radius: 14px;
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.62),
    0 0 0 3px rgba(47, 158, 143, 0.9),
    0 12px 40px rgba(0, 0, 0, 0.35);
  transition: top 0.35s ease, left 0.35s ease, width 0.35s ease, height 0.35s ease;
  pointer-events: none;
  background: transparent;
}

.tour-card {
  position: absolute;
  z-index: 2;
  width: min(340px, calc(100vw - 28px));
  background: #1f1f1f;
  color: #f2f2f2;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  animation: authRise 0.35s ease both;
}

.tour-step {
  font-size: 0.75rem;
  color: #2f9e8f;
  font-weight: 800;
  margin-bottom: 6px;
}

.tour-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.tour-card p {
  color: #cfcfcf;
  font-size: 0.9rem;
  line-height: 1.45;
}

.tour-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.tour-skip,
.tour-next {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.tour-skip {
  background: transparent;
  color: #aaa;
  border: 1px solid #555;
}

.tour-next {
  background: #2f9e8f;
  color: #fff;
  margin-left: auto;
}

@keyframes tourFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.tour-target-pulse {
  position: relative;
  z-index: 91 !important;
}

.dock-btn {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  transition: filter 0.15s ease, background 0.15s ease;
}

.dock-btn:disabled {
  cursor: not-allowed;
  filter: none;
  opacity: 0.55;
}

.dock-start {
  background: var(--start);
  color: #fff;
}

.dock-start:hover:not(:disabled) {
  background: var(--start-hover);
}

.dock-stop {
  background: var(--stop);
  color: #fff;
}

.dock-stop:hover:not(:disabled) {
  background: var(--stop-hover);
}

.dock-stop:disabled {
  background: var(--stop-disabled);
  color: rgba(255, 255, 255, 0.85);
  opacity: 1;
}

.dock-tile {
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--tile);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #333;
}

.dock-tile:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dock-tile.active {
  background: #fff4ef;
  color: #c45d3a;
}

.tile-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
}

.chat-panel {
  position: fixed;
  left: 50%;
  right: 0;
  bottom: 0;
  top: auto;
  height: 200px;
  z-index: 5;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  background: #5a5a5a;
  border-left: 1px solid #4a4a4a;
  color: #ececec;
}

.chat-rules {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #6a6a6a;
  color: #d4d4d4;
  font-size: 0.78rem;
  line-height: 1.35;
}

.rules-logo {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
}

.typing {
  margin-left: auto;
  color: #b8f0e6;
  font-weight: 700;
  white-space: nowrap;
}

.chat-panel > .typing {
  display: none;
  padding: 0 12px 2px;
  font-size: 0.75rem;
  text-align: left;
  margin: 0;
}

.chat-panel > .typing:not(.hidden) {
  display: block;
}

.chat-messages {
  min-height: 0;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  scroll-behavior: smooth;
}

.chat-messages:empty::before {
  content: "Mesazhet shfaqen këtu kur lidhesh me dikë.";
  color: #b0b0b0;
  font-size: 0.82rem;
  text-align: center;
  margin: auto;
  padding: 12px;
}

.msg {
  max-width: 88%;
  font-size: 0.9rem;
  line-height: 1.35;
  word-break: break-word;
  white-space: pre-wrap;
}

.msg.system {
  align-self: center;
  color: #c0c0c0;
  font-size: 0.78rem;
  max-width: 100%;
  text-align: center;
}

.chat-messages .msg.system.blocked,
.msg.system.blocked,
.dm-blocked {
  align-self: center;
  max-width: 92%;
  margin: 6px auto;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.55);
  background: rgba(127, 29, 29, 0.85);
  color: #fecaca;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-shadow: none;
}

.msg.system.blocked small,
.dm-blocked small {
  display: block;
  margin-top: 3px;
  color: #fca5a5;
  font-size: 0.72rem;
  font-weight: 500;
}

.dm-blocked {
  display: block;
  width: fit-content;
}

.msg.self {
  align-self: flex-end;
  background: #2f9e8f;
  border: 1px solid #278f81;
  padding: 7px 11px;
  border-radius: 12px 12px 4px 12px;
  color: #fff;
}

.msg.remote {
  align-self: flex-start;
  background: #454545;
  border: 1px solid #5c5c5c;
  padding: 7px 11px;
  border-radius: 12px 12px 12px 4px;
  color: #f0f0f0;
}

.chat-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-top: 1px solid #6a6a6a;
  background: #4f4f4f;
}

.chat-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 12px 14px;
  background: #636363;
  color: #f2f2f2;
  font-size: 16px;
}

.chat-form input::placeholder {
  color: #bdbdbd;
}

.chat-form input:disabled {
  background: #555;
  color: #aaa;
  cursor: not-allowed;
}

.chat-form input:not(:disabled):focus {
  background: #6c6c6c;
}

.chat-form button {
  flex: 0 0 auto;
  border: 0;
  padding: 0 16px;
  background: #2f9e8f;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
}

.chat-form button:hover:not(:disabled) {
  background: #278f81;
}

.reaction-bar {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #4f4f4f;
  border-top: 1px solid #6a6a6a;
}

body.chat-ready .reaction-bar {
  display: flex;
}

.reaction-emojis {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.reaction-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease;
}

.reaction-btn:active {
  transform: scale(1.3);
}

.chat-toggle {
  display: none;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.chat-toggle svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
}

.reaction-float {
  position: absolute;
  bottom: 18%;
  z-index: 12;
  font-size: 2.6rem;
  line-height: 1;
  pointer-events: none;
  animation: reactionRise 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

.reaction-float.is-mine {
  font-size: 1.9rem;
}

@keyframes reactionRise {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.4);
  }
  12% {
    opacity: 1;
    transform: translate(-50%, -12px) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift, 0px)), -220px) scale(1);
  }
}

.chat-form button:disabled {
  background: #6a6a6a;
  color: #aaa;
  cursor: not-allowed;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 168px;
  transform: translateX(-50%);
  z-index: 50;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.92);
  color: #fff;
  font-size: 0.88rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
}

.modal.hidden {
  display: none !important;
}

.modal-card {
  width: min(420px, 100%);
  background: #2f2f2f;
  color: #f0f0f0;
  border: 1px solid #4a4a4a;
  border-radius: 18px;
  padding: 22px;
  display: grid;
  gap: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.modal-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  justify-self: center;
  object-fit: cover;
}

.modal-card h2 {
  text-align: center;
  font-size: 1.35rem;
}

.modal-sub {
  text-align: center;
  color: #b0b0b0;
  font-size: 0.9rem;
  margin-top: -6px;
}

.photo-pick {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.photo-preview {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 2px dashed #666;
  background: #3a3a3a;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #aaa;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
  font: inherit;
  position: relative;
}

.photo-preview:hover {
  border-color: #2f9e8f;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.photo-hint {
  font-size: 0.72rem;
  color: #999;
  text-align: center;
}

.photo-crop-modal {
  z-index: 95;
}

.photo-crop-card {
  width: min(420px, 94vw);
}

.crop-stage {
  position: relative;
  width: min(320px, 78vw);
  aspect-ratio: 1;
  margin: 8px auto 0;
  overflow: hidden;
  border-radius: 18px;
  background: #1a1a1a;
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.crop-stage:active {
  cursor: grabbing;
}

.crop-stage img {
  position: absolute;
  max-width: none;
  will-change: left, top, width, height;
  pointer-events: none;
}

.crop-circle {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 2;
}

.crop-zoom {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: #cfcfcf;
  font-size: 0.85rem;
}

.crop-zoom input[type="range"] {
  width: 100%;
  accent-color: #2f9e8f;
}

.crop-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.crop-cancel,
.crop-apply {
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
  font: inherit;
}

.crop-cancel {
  background: #3a3a3a;
  color: #eee;
}

.crop-apply {
  background: #2f9e8f;
  color: #fff;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: #cfcfcf;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field input,
.field select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #555;
  background: #3a3a3a;
  color: #f2f2f2;
  padding: 11px 12px;
  outline: none;
  font-size: 16px;
}

.field input:focus,
.field select:focus {
  border-color: #2f9e8f;
}

.modal-submit {
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  background: #2f9e8f;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.danger-modal {
  z-index: 96;
}

.danger-card {
  width: min(440px, 94vw);
  border: 1px solid rgba(196, 59, 59, 0.45);
}

.danger-warn {
  color: #ffc9c9 !important;
}

.danger-intro {
  margin: 2px 0 0;
  color: #cfcfcf;
  font-size: 0.88rem;
}

.danger-list {
  margin: 2px 0 6px;
  padding-left: 18px;
  color: #d8d8d8;
  font-size: 0.88rem;
  display: grid;
  gap: 4px;
}

.danger-keep {
  margin: 0;
  color: #9aa8a2;
  font-size: 0.8rem;
  line-height: 1.4;
}

.danger-field input {
  background: #3a3a3a;
}

.danger-confirm {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.86rem;
  color: #eee;
  cursor: pointer;
  line-height: 1.4;
}

.danger-confirm input {
  margin-top: 2px;
  accent-color: #c43b3b;
  flex: 0 0 auto;
}

.danger-go:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .ome {
    --mobile-controls-h: 64px;
    position: relative;
    grid-template-rows: minmax(0, 1fr) calc(var(--mobile-controls-h) + env(safe-area-inset-bottom, 0px));
  }

  /* OmeTV style: partner top, you bottom — equal halves */
  .screens {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    min-height: 0;
  }

  .screen-local,
  .screen-remote {
    border-right: 0;
  }

  .screen-remote {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* OmeTV-style: transparent chat sitting at bottom of YOUR camera */
  .chat-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    height: auto;
    width: auto;
    z-index: 6;
    display: grid;
    grid-template-rows: 1fr auto;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-left: 0;
    color: #fff;
    pointer-events: none;
  }

  .screen-local {
    z-index: 2;
  }

  .dock {
    position: static;
    display: block;
    height: calc(var(--mobile-controls-h) + env(safe-area-inset-bottom, 0px));
    background: transparent;
    border-top: 0;
    z-index: 8;
    overflow: visible;
  }

  .dock-left {
    position: relative;
    display: grid;
    grid-template-rows: var(--mobile-controls-h);
    width: 100%;
    height: calc(var(--mobile-controls-h) + env(safe-area-inset-bottom, 0px));
    background: var(--dock);
    border-top: 1px solid #ccc;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    z-index: 10;
  }

  .server-status {
    display: none;
  }

  .chat-rules {
    display: none !important;
  }

  .chat-panel > .typing:not(.hidden) {
    display: block;
    position: absolute;
    left: 12px;
    bottom: 50px;
    color: #9ff0e2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    padding: 0;
    z-index: 2;
  }

  .chat-messages {
    align-self: end;
    width: 100%;
    max-height: min(42%, 200px);
    padding: 8px 12px 6px;
    background: transparent;
    justify-content: flex-end;
    gap: 5px;
    pointer-events: auto;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
  }

  .chat-messages:empty::before {
    content: none;
  }

  .msg {
    max-width: 86%;
    font-size: 0.88rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  }

  .msg.system {
    color: rgba(255, 255, 255, 0.88);
    background: transparent;
    border: 0;
    font-size: 0.74rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  }

  .msg.self {
    background: rgba(0, 0, 0, 0.32);
    border: 0;
    border-radius: 12px 12px 4px 12px;
    padding: 6px 10px;
    box-shadow: none;
    color: #fff;
  }

  .msg.remote {
    background: rgba(0, 0, 0, 0.32);
    border: 0;
    border-radius: 12px 12px 12px 4px;
    padding: 6px 10px;
    box-shadow: none;
    color: #fff;
  }

  .chat-form {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.2);
    border-top: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .chat-form input {
    background: transparent;
    color: #fff;
    padding: 11px 12px;
  }

  .chat-form input::placeholder {
    color: rgba(255, 255, 255, 0.55);
  }

  .chat-form input:disabled {
    background: transparent;
    color: rgba(255, 255, 255, 0.35);
  }

  .chat-form input:not(:disabled):focus {
    background: rgba(255, 255, 255, 0.06);
  }

  .chat-form button {
    background: rgba(47, 158, 143, 0.9);
    padding: 0 14px;
    font-size: 0.78rem;
  }

  .dock-controls {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    min-height: var(--mobile-controls-h);
  }

  .dock-btn,
  .dock-tile,
  .media-more-btn {
    min-height: var(--mobile-controls-h);
    font-size: 0.92rem;
    padding: 4px;
  }

  .tile-label {
    font-size: 0.65rem;
  }

  .media-menu {
    min-height: var(--mobile-controls-h);
  }

  .more-dots {
    font-size: 1.7rem;
  }

  .media-pop {
    right: 6px;
    min-width: 158px;
  }

  .country-grid {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  }

  .country-pop {
    max-height: min(46vh, 360px);
    bottom: 100%;
  }

  .account-chip {
    top: 8px;
    right: 8px;
    z-index: 8;
    max-width: min(200px, calc(100% - 16px));
    padding: 4px 6px 4px 4px;
    gap: 6px;
  }

  .account-chip-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }

  .account-chip-name {
    font-size: 0.7rem;
  }

  .account-chip-user {
    font-size: 0.62rem;
  }

  .settings-btn {
    width: 26px;
    height: 26px;
  }

  .partner-card {
    left: 8px;
    top: 8px;
    bottom: auto;
    padding: 5px 10px 5px 5px;
    gap: 8px;
    max-width: calc(100% - 88px);
  }

  .partner-avatar {
    width: 40px;
    height: 40px;
  }

  .partner-name {
    font-size: 0.88rem;
  }

  .partner-sub {
    font-size: 0.72rem;
  }

  .report-btn {
    top: 8px;
    right: 8px;
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .brand-logo {
    --logo-w: min(150px, 40vw);
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .online-line {
    font-size: 0.82rem;
  }

  .reveal-content {
    padding: 16px;
  }

  .match-avatar {
    width: 88px;
    height: 88px;
  }

  .toast {
    bottom: calc(var(--mobile-controls-h) + 16px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 24px);
    font-size: 0.82rem;
  }

  .auth-modal {
    padding: 12px 12px calc(16px + env(safe-area-inset-bottom, 0px));
    place-items: start center;
  }

  .auth-shell {
    width: min(420px, 100%);
  }

  .auth-card {
    max-height: min(92dvh, 920px);
    padding: 18px 16px;
    border-radius: 16px;
  }

  .modal-logo {
    width: 58px;
    height: 58px;
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .gender-opt {
    font-size: 0.76rem;
    padding: 9px 6px;
  }

  .tour-card {
    width: min(340px, calc(100vw - 20px));
  }

  .ghost-btn {
    min-width: 140px;
    padding: 12px 14px;
  }

  .local-idle .ghost-btn {
    position: relative;
    z-index: 7;
  }

  .local-idle,
  .local-off {
    z-index: 7;
  }
}

@media (max-width: 600px) {
  .ome {
    --mobile-controls-h: 58px;
  }

  .dock-btn,
  .dock-tile,
  .media-more-btn {
    font-size: 0.84rem;
    border-radius: 0;
  }

  .account-chip-meta {
    display: none;
  }

  .account-chip {
    border-radius: 999px;
    padding: 3px;
  }

  .chat-messages {
    max-height: min(36%, 150px);
  }

  .msg {
    font-size: 0.84rem;
    max-width: 90%;
  }

  .photo-preview {
    width: 92px;
    height: 92px;
  }

  .country-card img {
    width: 48px;
    height: 32px;
  }

  .country-card span {
    font-size: 0.7rem;
  }
}

@media (max-width: 400px) {
  .dock-controls {
    grid-template-columns: 1fr 1fr 1fr 0.85fr;
  }

  .tile-label {
    display: none;
  }

  .dock-btn {
    font-size: 0.9rem;
  }
}

@media (max-height: 700px) and (max-width: 900px) {
  .brand-logo {
    --logo-w: min(120px, 34vw);
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .chat-form input {
    padding: 10px 12px;
  }
}

/* Phone / PWA installable shell */
@media (max-width: 900px) {
  .dock-btn,
  .dock-tile,
  .dock-more,
  .report-btn,
  .modal-submit,
  .auth-cta,
  .gender-opt {
    min-height: 44px;
  }

  .auth-modal,
  .report-modal,
  .photo-crop-modal {
    padding: max(8px, env(safe-area-inset-top, 0px)) 10px
      max(10px, env(safe-area-inset-bottom, 0px));
    align-items: flex-end;
  }

  .auth-card,
  .report-card,
  .photo-crop-card {
    width: min(100%, 480px);
    max-height: min(92dvh, 920px);
    margin-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .st-modal {
    padding: 0;
    background: #000;
  }

  .st-sheet {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .st-topbar {
    padding-top: env(safe-area-inset-top, 0px);
    min-height: calc(54px + env(safe-area-inset-top, 0px));
  }

  .st-input,
  .st-field-label {
    font-size: 16px;
  }

  .chat-form input,
  .field input,
  .field select,
  .auth-pane input,
  .auth-pane select {
    font-size: 16px;
  }

  .toast {
    bottom: calc(var(--mobile-controls-h, 64px) + 20px + env(safe-area-inset-bottom, 0px));
  }
}

/* Phone: OmeTV app layout — no bottom bar, swipe left for Next */
@media (max-width: 900px) {
  .ome {
    grid-template-rows: minmax(0, 1fr);
  }

  .dock,
  .dock-left,
  .dock-controls {
    display: contents;
  }

  .dock-start,
  .dock-stop {
    display: none;
  }

  .swipe-start-hint {
    display: flex;
    bottom: 20px;
  }

  body.in-session .swipe-start-hint,
  .swipe-start-hint.hidden {
    display: none;
  }

  .dock-country {
    position: absolute;
    left: 8px;
    top: calc(50% + 8px);
    height: 34px;
    min-height: 34px;
    padding: 0 12px;
    flex-direction: row;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.8rem;
    z-index: 9;
  }

  .dock-country .tile-label {
    display: none;
  }

  .dock-country .country-btn-flag {
    border-color: rgba(255, 255, 255, 0.3);
  }

  .media-menu {
    position: absolute;
    right: 10px;
    top: calc(50% + 4px);
    min-height: 0;
    border: 0;
    z-index: 9;
  }

  .media-more-btn {
    width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .media-more-btn .more-dots {
    color: #fff;
    font-size: 1.3rem;
  }

  .media-pop {
    right: calc(100% + 8px);
    top: 0;
    bottom: auto;
  }

  .country-pop {
    top: auto;
    bottom: 0;
    max-height: 60dvh;
    border: 0;
    border-radius: 16px 16px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    z-index: 40;
  }

  .chat-panel {
    grid-template-rows: 1fr auto auto;
  }

  .chat-form {
    display: none;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  body.chat-open.chat-ready .chat-form {
    display: flex;
  }

  body.chat-open .reaction-bar {
    display: none;
  }

  .reaction-bar {
    pointer-events: auto;
    padding: 2px 6px calc(18px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
    border-top: 0;
  }

  .reaction-btn {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
  }

  .chat-toggle {
    display: grid;
  }

  .toast {
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }

  .ome {
    height: var(--app-h, 100dvh);
  }

  body.kb-open .chat-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    max-height: 60%;
    z-index: 30;
  }

  body.kb-open .chat-form {
    padding-bottom: 0;
  }

  body.kb-open .dock-country,
  body.kb-open .media-menu {
    display: none;
  }
}

@media (display-mode: standalone) {
  body.app-shell {
    background: #000;
  }

  .ome {
    height: var(--app-h, 100dvh);
  }
}

/* ===== Social: tabs, search, profiles ===== */
.toast {
  z-index: 100;
}

.tabbar {
  display: none;
}

.modal.st-modal {
  z-index: 85;
}

.modal.sx-modal {
  z-index: 83;
}

.account-chip-avatar,
.account-chip-meta {
  cursor: pointer;
}

.st-topbar .sx-action {
  justify-self: end;
}

#socialBack .sx-ico-close,
#socialBack.is-close .sx-ico-back {
  display: none;
}

#socialBack.is-close .sx-ico-close {
  display: block;
}

#socialBack.is-hidden {
  visibility: hidden;
}

#socialTitle {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sx-i {
  display: inline-grid;
  place-items: center;
}

.sx-i svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sx-search {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 -16px;
  padding: 12px 16px 6px;
  background: #0f0f10;
}

.sx-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  background: #1f1f22;
  color: #8d8d92;
}

.sx-search-field:focus-within {
  box-shadow: 0 0 0 1.5px rgba(63, 191, 169, 0.55);
}

.sx-search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: #f2f2f2;
  font: inherit;
  font-size: 16px;
}

.sx-search-field input::-webkit-search-cancel-button {
  display: none;
}

.sx-clear {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #48484c;
  color: #e5e5ea;
  font-size: 11px;
  cursor: pointer;
}

.sx-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 2px 4px;
}

.sx-section-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
}

/* ---------- Kërko: layered backdrop, glass header + search field, labelled sections ---------- */
.sx-modal[data-view="search"] .st-sheet {
  background:
    radial-gradient(120% 55% at 50% -12%, rgba(63, 191, 169, 0.17), transparent 62%),
    radial-gradient(70% 45% at 105% 28%, rgba(124, 77, 255, 0.11), transparent 65%),
    radial-gradient(70% 45% at -5% 72%, rgba(255, 184, 46, 0.06), transparent 65%),
    linear-gradient(180deg, #0c0c10 0%, #09090c 100%);
}

.sx-modal[data-view="search"] .st-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask: radial-gradient(90% 55% at 50% 0%, #000 0%, transparent 100%);
  mask: radial-gradient(90% 55% at 50% 0%, #000 0%, transparent 100%);
  pointer-events: none;
}

.sx-modal[data-view="search"] .sx-body {
  position: relative;
  z-index: 1;
}

.sx-modal[data-view="search"] .st-topbar {
  background: rgba(12, 12, 16, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}

.sx-modal[data-view="search"] .st-topbar h2 {
  font-weight: 800;
  letter-spacing: -0.015em;
}

.sx-modal[data-view="search"] .sx-search {
  padding: 14px 16px 10px;
  background: linear-gradient(180deg, rgba(11, 11, 15, 0.94) 0%, rgba(11, 11, 15, 0.86) 70%, rgba(11, 11, 15, 0) 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.sx-modal[data-view="search"] .sx-search-field {
  height: 48px;
  padding: 0 14px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 28px -18px rgba(0, 0, 0, 0.9);
  color: #8e8e95;
  transition: box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.sx-modal[data-view="search"] .sx-search-field:focus-within {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
  box-shadow:
    inset 0 0 0 1px rgba(63, 191, 169, 0.65),
    0 0 0 4px rgba(63, 191, 169, 0.13),
    0 12px 30px -16px rgba(63, 191, 169, 0.45);
  color: #5eead4;
}

.sx-modal[data-view="search"] .sx-search-field input::placeholder {
  color: #7a7a82;
}

.sx-modal[data-view="search"] .sx-section-head {
  margin: 22px 2px 8px;
}

.sx-modal[data-view="search"] .sx-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sx-modal[data-view="search"] .sx-section-title::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 15px;
  border-radius: 3px;
  background: linear-gradient(180deg, #8f8f96, #5c5c63);
}

.sx-modal[data-view="search"] .sx-top .sx-section-title::before {
  background: linear-gradient(180deg, #ffe27a, #f2b02a 60%, #c98a0b);
  box-shadow: 0 0 10px rgba(245, 197, 66, 0.55);
}

.sx-modal[data-view="search"] .sx-top-followed .sx-section-title::before {
  background: linear-gradient(180deg, #7ff3e2, #2dd4bf 60%, #0f9488);
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.5);
}

.sx-modal[data-view="search"] .sx-link {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(63, 191, 169, 0.1);
  box-shadow: inset 0 0 0 1px rgba(63, 191, 169, 0.25);
  font-size: 0.74rem;
  font-weight: 750;
}

.sx-modal[data-view="search"] .sx-top-followed {
  margin-top: 30px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (hover: hover) {
  .sx-modal[data-view="search"] .sx-user:not(.sx-top-row.is-top-1, .sx-top-row.is-top-2, .sx-top-row.is-top-3):hover {
    background: rgba(255, 255, 255, 0.035);
  }
}

.sx-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.6);
  animation: sxLive 1.8s ease-out infinite;
  vertical-align: 1px;
}

@keyframes sxLive {
  to {
    box-shadow: 0 0 0 8px rgba(48, 209, 88, 0);
  }
}

.sx-link {
  border: 0;
  background: none;
  color: #3fbfa9;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.sx-list {
  display: flex;
  flex-direction: column;
}

.sx-user {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 4px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  animation: sxFadeUp 0.25s ease both;
}

.sx-user:active {
  background: rgba(255, 255, 255, 0.05);
}

@keyframes sxFadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.sx-user-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sx-user-name {
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sx-user-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #8d8d92;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
}

.sx-flag {
  flex: 0 0 auto;
  width: 16px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
}

.sx-tag {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.sx-tag.online {
  background: rgba(48, 209, 88, 0.14);
  color: #30d158;
}

.sx-tag.busy {
  background: rgba(255, 159, 10, 0.14);
  color: #ff9f0a;
}

.sx-remove {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #8d8d92;
  cursor: pointer;
}

/* Avatars */
.sx-av {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.sx-av-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #2f9e8f, #1d5f56);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

.sx-av.female .sx-av-inner {
  background: linear-gradient(145deg, #c2457a, #6d2a5a);
}

.sx-av-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sx-av.is-online::after,
.sx-av.is-busy::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 3px #0f0f10;
}

.sx-av.is-busy::after {
  background: #ff9f0a;
}

.sx-av.xl {
  width: 92px;
  height: 92px;
}

.sx-av.xl .sx-av-inner {
  inset: 4px;
  font-size: 2.2rem;
  box-shadow: 0 0 0 3px #0f0f10;
}

.sx-av.xl::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #2c2c2e;
}

.sx-av.xl.ring::before {
  background: conic-gradient(from 200deg, #3fbfa9, #3478f6, #8e5cf0, #e8457c, #f08a24, #3fbfa9);
  animation: sxRing 6s linear infinite;
}

@keyframes sxRing {
  to {
    transform: rotate(360deg);
  }
}

.sx-av.xl.is-online::after,
.sx-av.xl.is-busy::after {
  right: 5px;
  bottom: 5px;
  width: 18px;
  height: 18px;
  box-shadow: 0 0 0 4px #0f0f10;
}

/* Profile */

.sx-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.sx-btn {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 10px;
  background: #2c2c2e;
  color: #f2f2f2;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease;
}

.sx-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sx-btn.primary {
  background: #2f9e8f;
  color: #fff;
}

.sx-btn.call {
  background: linear-gradient(135deg, #30b05c, #2f9e8f);
  color: #fff;
}

.sx-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.sx-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.sx-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 44px 20px;
  color: #8d8d92;
  text-align: center;
}

.sx-empty-ico {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  border: 2px solid #3a3a3d;
  border-radius: 50%;
  color: #f2f2f2;
}

.sx-empty-ico svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.8;
}

.sx-empty strong {
  color: #f2f2f2;
  font-size: 1.05rem;
}

.sx-empty p {
  max-width: 270px;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
}

.sx-skel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
}

.sx-skel-av,
.sx-skel-line {
  background: linear-gradient(90deg, #1c1c1e 0%, #2a2a2d 50%, #1c1c1e 100%);
  background-size: 200% 100%;
  animation: sxShimmer 1.2s linear infinite;
}

.sx-skel-av {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.sx-skel-lines {
  flex: 1;
  display: grid;
  gap: 8px;
}

.sx-skel-line {
  height: 11px;
  border-radius: 6px;
}

.sx-skel-line.short {
  width: 45%;
}

@keyframes sxShimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

.st-row-bio {
  align-items: flex-start;
}

.st-row-bio .st-field-label small {
  display: block;
  margin-top: 2px;
  color: #6e6e73;
  font-size: 0.72rem;
}

.st-input.st-bio {
  min-height: 64px;
  resize: none;
  text-align: left;
  line-height: 1.4;
}

/* Notifications & follow requests */
.notif-btn,
.tab-btn {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff3040;
  box-shadow: 0 0 0 2px #000;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  animation: notifPop 0.35s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.tab-btn .notif-badge {
  top: 7px;
  right: calc(50% - 22px);
}

.online-badge {
  position: absolute;
  bottom: 7px;
  right: calc(50% - 22px);
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 2px #000;
  color: #04230f;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
  animation: notifPop 0.35s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

@keyframes notifPop {
  from {
    transform: scale(0.3);
  }
}

.sx-req-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
  padding: 10px 4px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sx-req-summary:active {
  background: rgba(255, 255, 255, 0.05);
}

.sx-req-stack {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
}

.sx-req-stack .sx-av {
  position: absolute;
  width: 38px;
  height: 38px;
}

.sx-req-stack .sx-av:first-child {
  top: 0;
  left: 0;
}

.sx-req-stack .sx-av:nth-child(2) {
  right: 0;
  bottom: 0;
}

.sx-req-stack .sx-av:nth-child(2) .sx-av-inner {
  box-shadow: 0 0 0 2.5px #0f0f10;
}

.sx-req-stack .sx-av .sx-av-inner {
  font-size: 0.9rem;
}

.sx-req-stack .sx-av::after {
  display: none;
}

.sx-req-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3478f6;
}

.sx-act {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 4px;
  border-radius: 12px;
  animation: sxFadeUp 0.25s ease both;
}

.sx-act.unread {
  background: rgba(52, 120, 246, 0.07);
}

.sx-act .sx-av {
  cursor: pointer;
  width: 46px;
  height: 46px;
}

.sx-act-text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  cursor: pointer;
  word-break: break-word;
}

.sx-act-text strong {
  font-weight: 700;
}

.sx-act-time {
  color: #8d8d92;
  white-space: nowrap;
}

.sx-act-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 59, 48, 0.14);
  color: #ff453a;
}

.sx-act-icon svg {
  width: 17px;
  height: 17px;
}

.sx-act-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
}

.sx-act-actions .sx-btn {
  height: 32px;
  padding: 0 14px;
  font-size: 0.84rem;
}

.sx-btn.blue {
  background: #3478f6;
  color: #fff;
}

.sx-act-done {
  flex: 0 0 auto;
  color: #8d8d92;
  font-size: 0.82rem;
  font-weight: 600;
}

.sx-req-banner {
  margin: 4px 0 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #1c1c1e;
  animation: sxFadeUp 0.25s ease both;
}

.sx-req-banner p {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.sx-req-banner .sx-actions {
  margin-top: 0;
}

/* Direct video call */
.call-sheet {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: calc(52px + env(safe-area-inset-top, 0px)) 24px calc(40px + env(safe-area-inset-bottom, 0px));
  background: #05070a;
  color: #fff;
  animation: callSheetIn 0.42s cubic-bezier(0.22, 0.9, 0.24, 1) both;
}

@keyframes callSheetIn {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.call-bg {
  position: absolute;
  inset: -80px;
  background: radial-gradient(circle at 50% 30%, #1f6b60, #070a0d 70%) center / cover no-repeat;
  filter: blur(44px) brightness(0.52) saturate(1.1);
  transform: scale(1.1);
}

.call-sheet::before,
.call-sheet::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
}

.call-sheet::before {
  top: -12%;
  left: -18%;
  width: 60vw;
  max-width: 420px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(63, 191, 169, 0.5), transparent 70%);
  animation: callGlowA 9s ease-in-out infinite;
}

.call-sheet::after {
  bottom: 4%;
  right: -22%;
  width: 66vw;
  max-width: 440px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(52, 120, 246, 0.32), transparent 70%);
  animation: callGlowB 11s ease-in-out infinite;
}

@keyframes callGlowA {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(8%, 6%, 0) scale(1.12);
  }
}

@keyframes callGlowB {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1.05);
  }
  50% {
    transform: translate3d(-6%, -8%, 0) scale(0.95);
  }
}

.call-sheet > .call-content,
.call-sheet > .call-actions {
  width: 100%;
  max-width: 420px;
}

.call-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 6vh;
  text-align: center;
}

.call-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 30px;
  padding: 7px 15px 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.call-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fbfa9;
  box-shadow: 0 0 10px rgba(63, 191, 169, 0.9);
  animation: callBlink 1.6s ease-in-out infinite;
}

.call-sheet.is-video .call-kicker::before {
  background: #4f9bf6;
  box-shadow: 0 0 10px rgba(79, 155, 246, 0.9);
}

.call-avatar {
  position: relative;
  width: 148px;
  height: 148px;
  margin-bottom: 26px;
}

.call-avatar-inner {
  position: absolute;
  inset: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #3fbfa9, #1d5f56);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 0 0 7px rgba(255, 255, 255, 0.06),
    0 24px 60px rgba(0, 0, 0, 0.55);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.call-avatar-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.call-pulse {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(63, 191, 169, 0.6);
  border-radius: 50%;
  animation: callPulse 2.4s ease-out infinite;
}

.call-pulse.delay {
  animation-delay: 1.2s;
}

@keyframes callPulse {
  from {
    transform: scale(0.82);
    opacity: 0.85;
  }
  to {
    transform: scale(1.35);
    opacity: 0;
  }
}

.call-name {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

.call-user {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  font-weight: 500;
}

.call-status {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  font-weight: 500;
  animation: callBlink 1.8s ease-in-out infinite;
}

@keyframes callBlink {
  50% {
    opacity: 0.4;
  }
}

.call-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 72px;
}

.call-sheet.is-outgoing .call-actions {
  justify-content: center;
}

.call-sheet.is-outgoing #callAcceptWrap {
  display: none;
}

.call-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.call-btn {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.22, 0.9, 0.24, 1), box-shadow 0.2s ease, filter 0.2s ease;
}

.call-btn:hover {
  filter: brightness(1.06);
}

.call-btn:active {
  transform: scale(0.9);
}

.call-btn svg {
  position: relative;
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.call-btn.decline {
  background: linear-gradient(160deg, #ff5f57, #e5352b);
  box-shadow: 0 14px 36px rgba(229, 53, 43, 0.45);
}

.call-btn.decline svg {
  fill: currentColor;
  stroke: none;
}

.call-sheet.is-outgoing .call-btn.decline svg {
  transform: rotate(135deg);
}

.call-btn.accept {
  background: linear-gradient(160deg, #37df6b, #25b74f);
  box-shadow: 0 14px 36px rgba(37, 183, 79, 0.45);
  animation: callNudge 1.5s ease-in-out infinite;
}

.call-btn.accept::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(55, 223, 107, 0.5);
  opacity: 0;
  animation: callAcceptRing 1.5s ease-out infinite;
}

@keyframes callAcceptRing {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.call-btn.accept:disabled {
  animation: none;
  opacity: 0.6;
}

.call-btn.accept:disabled::after {
  display: none;
}

@keyframes callNudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .call-sheet,
  .call-sheet::before,
  .call-sheet::after,
  .call-pulse,
  .call-status,
  .call-kicker::before,
  .call-btn.accept,
  .call-btn.accept::after {
    animation: none !important;
  }
}

@media (max-width: 900px) {
  body.has-tabs:not(.in-session) .tabbar {
    display: flex;
  }

  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 84;
    height: calc(52px + env(safe-area-inset-bottom, 0px));
    align-items: flex-start;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(0, 0, 0, 0.94);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .tab-btn {
    flex: 1;
    height: 52px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: none;
    color: #f2f2f2;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.12s ease;
  }

  .tab-btn:active {
    transform: scale(0.9);
  }

  .tab-btn.active {
    opacity: 1;
  }

  .tab-btn svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .tab-btn.active svg {
    stroke-width: 2.7;
  }

  .tab-btn[data-tab="home"].active svg {
    fill: currentColor;
  }

  .tab-avatar {
    position: relative;
    width: 27px;
    height: 27px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #2f9e8f;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
  }

  .tab-btn.active .tab-avatar {
    box-shadow: 0 0 0 2px #000, 0 0 0 3.5px #f2f2f2;
  }

  .tab-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body.has-tabs:not(.in-session) .sx-modal {
    bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  }

  .sx-modal .st-body {
    padding-bottom: 24px;
  }

  body.has-tabs .account-chip {
    display: none !important;
  }

  body.has-tabs:not(.in-session) .toast {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}

/* ===== Direct messages ===== */
.sx-actions.three {
  grid-template-columns: 1fr 1fr 44px;
}

.sx-btn.icon-only {
  padding: 0;
}

.sx-av.sm {
  width: 34px;
  height: 34px;
}

.sx-av.sm .sx-av-inner {
  font-size: 0.85rem;
}

.sx-av.sm.is-online::after,
.sx-av.sm.is-busy::after {
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 2px #0f0f10;
}

.sx-av.xs {
  width: 28px;
  height: 28px;
}

.sx-av.xs .sx-av-inner {
  font-size: 0.72rem;
}

.st-topbar.is-thread {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 4px;
}

.st-topbar.is-thread #socialTitle {
  overflow: visible;
  text-align: left;
}

.sx-head-calls {
  display: flex;
  gap: 2px;
  justify-self: end;
}

.sx-head-calls .st-icon-btn {
  width: 42px;
  height: 42px;
  background: none;
}

.sx-head-calls .st-icon-btn svg {
  width: 23px;
  height: 23px;
  stroke-width: 2;
}

.sx-head-calls .st-icon-btn.is-off {
  opacity: 0.4;
}

.dm-head {
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 4px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dm-head-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dm-head-name {
  overflow: hidden;
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dm-head-sub {
  color: #8d8d92;
  font-size: 0.76rem;
  font-weight: 500;
}

.dm-head-sub.online {
  color: #30d158;
}

.sx-body.is-thread {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.dm-scroll {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 6px 12px 10px;
}

.dm-list {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}

.dm-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 26px 8px 18px;
  text-align: center;
}

.dm-intro strong {
  margin-top: 8px;
  font-size: 1.15rem;
}

.dm-intro > span {
  color: #8d8d92;
  font-size: 0.86rem;
}

.dm-intro .sx-btn {
  margin-top: 12px;
  padding: 0 16px;
}

.dm-private {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  color: #6e6e73;
  font-size: 0.76rem;
}

.dm-private .sx-i svg {
  width: 13px;
  height: 13px;
}

.dm-sep {
  margin: 16px 0 6px;
  color: #8d8d92;
  font-size: 0.74rem;
  font-weight: 600;
  text-align: center;
}

.dm-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 8px;
  animation: dmIn 0.22s ease both;
}

.dm-row.cont {
  margin-top: 2px;
}

.dm-row.mine {
  justify-content: flex-end;
}

@keyframes dmIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.dm-av-gap {
  flex: 0 0 28px;
}

.dm-bubble {
  max-width: 74%;
  padding: 9px 14px;
  border-radius: 22px;
  background: #262628;
  color: #f2f2f2;
  font-size: 0.95rem;
  line-height: 1.36;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.dm-row.mine .dm-bubble {
  background: linear-gradient(135deg, #8e5cf0, #3478f6);
  color: #fff;
}

.dm-row.mine.cont .dm-bubble {
  border-top-right-radius: 6px;
}

.dm-row.mine:not(.last) .dm-bubble {
  border-bottom-right-radius: 6px;
}

.dm-row.theirs.cont .dm-bubble {
  border-top-left-radius: 6px;
}

.dm-row.theirs:not(.last) .dm-bubble {
  border-bottom-left-radius: 6px;
}

.dm-row .dm-bubble.emoji {
  padding: 0 2px;
  background: none;
  font-size: 2.6rem;
  line-height: 1.15;
}

.dm-bubble.pending {
  opacity: 0.55;
}

.dm-seen {
  align-self: flex-end;
  margin: 4px 6px 0;
  color: #8d8d92;
  font-size: 0.72rem;
}

.dm-typing {
  display: flex;
  gap: 4px;
  padding: 13px 14px;
}

.dm-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8d8d92;
  animation: dmDot 1.2s ease-in-out infinite;
}

.dm-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.dm-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dmDot {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.dm-call {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(280px, 88%);
  margin: 10px 0 2px;
  padding: 9px 10px 9px 9px;
  border-radius: 18px;
  background: #1c1c1e;
  animation: dmIn 0.22s ease both;
}

.dm-call-ico {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2c2c2e;
}

.dm-call.missed .dm-call-ico,
.dm-call.missed strong {
  color: #ff453a;
}

.dm-call.missed .dm-call-ico {
  background: rgba(255, 69, 58, 0.16);
}

.dm-call-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dm-call-meta strong {
  font-size: 0.88rem;
}

.dm-call-meta span {
  color: #8d8d92;
  font-size: 0.74rem;
}

.dm-call-again {
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: #2c2c2e;
  color: #4a9df8;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.dm-older {
  align-self: center;
  margin: 10px 0;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: #1c1c1e;
  color: #f2f2f2;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.dm-loading {
  display: grid;
  place-items: center;
  padding: 60px 0;
}

.dm-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: #f2f2f2;
  border-radius: 50%;
  animation: dmSpin 0.8s linear infinite;
}

@keyframes dmSpin {
  to {
    transform: rotate(360deg);
  }
}

.dm-composer {
  flex: 0 0 auto;
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #0f0f10;
}

.dm-field {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  min-height: 46px;
  padding: 4px 5px 4px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: #1c1c1e;
}

.dm-input {
  flex: 1;
  min-width: 0;
  max-height: 120px;
  padding: 10px 0;
  border: 0;
  outline: none;
  resize: none;
  background: none;
  color: #f2f2f2;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.35;
}

.dm-input::placeholder {
  color: #7c7c80;
}

.dm-send {
  padding: 10px 11px;
  border: 0;
  background: none;
  color: #4a9df8;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.dm-heart {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: #f2f2f2;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.dm-heart:active {
  transform: scale(0.85);
}

.dm-heart .sx-i svg {
  width: 25px;
  height: 25px;
  stroke-width: 2;
}

.dm-composer.is-locked .dm-field {
  display: none;
}

.dm-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 2px;
  color: #a1a1a6;
  font-size: 0.84rem;
  text-align: center;
}

.dm-locked p {
  margin: 0;
  line-height: 1.4;
}

.dm-locked .sx-btn {
  padding: 0 18px;
}

.dm-conv {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  border-radius: 12px;
  cursor: pointer;
  animation: sxFadeUp 0.25s ease both;
}

.dm-conv:active {
  background: rgba(255, 255, 255, 0.05);
}

.dm-preview {
  display: flex;
  gap: 4px;
  min-width: 0;
  color: #8d8d92;
  font-size: 0.84rem;
}

.dm-preview-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dm-preview-time {
  flex: 0 0 auto;
}

.dm-conv.unread .sx-user-name {
  font-weight: 800;
}

.dm-conv.unread .dm-preview {
  color: #f2f2f2;
  font-weight: 600;
}

.dm-conv-call {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: #f2f2f2;
  cursor: pointer;
}

.dm-conv-call .sx-i svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.9;
}

.dm-conv-call.is-off {
  opacity: 0.35;
}

.dm-active {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 2px 8px;
  scrollbar-width: none;
}

.dm-active::-webkit-scrollbar {
  display: none;
}

.dm-active-item {
  flex: 0 0 auto;
  width: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: #d1d1d6;
  font: inherit;
  font-size: 0.74rem;
  cursor: pointer;
}

.dm-active-item .sx-av {
  width: 62px;
  height: 62px;
}

.dm-active-item > span:last-child {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---------- Mesazhet (inbox): Instagram-style list ---------- */
.sx-modal[data-view="inbox"] .st-sheet,
.sx-modal[data-view="inbox"] .st-topbar,
.sx-modal[data-view="inbox"] .dm-search {
  background: #000;
}

.sx-modal[data-view="inbox"] .st-topbar {
  border-bottom-color: transparent;
}

.sx-modal[data-view="inbox"] .st-topbar h2 {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dm-search {
  padding: 6px 16px 10px;
}

.dm-search .sx-search-field {
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  background: #1f1f1f;
  color: #a8a8a8;
  box-shadow: none;
}

.dm-search .sx-search-field:focus-within {
  background: #262626;
  box-shadow: none;
}

.dm-search .sx-search-field input {
  font-size: 15px;
}

.dm-search .sx-search-field input::placeholder {
  color: #8e8e8e;
}

.dm-search .sx-search-field .sx-i svg {
  width: 17px;
  height: 17px;
}

.sx-modal[data-view="inbox"] .dm-active {
  gap: 16px;
  margin: 0 -16px 4px;
  padding: 16px 16px 12px;
}

.sx-modal[data-view="inbox"] .dm-active-item {
  width: 72px;
  gap: 7px;
  color: #f5f5f5;
  font-size: 0.75rem;
  font-weight: 500;
  transition: transform 0.15s ease;
}

.sx-modal[data-view="inbox"] .dm-active-item:active {
  transform: scale(0.95);
}

.sx-modal[data-view="inbox"] .dm-active-item .sx-av {
  width: 70px;
  height: 70px;
}

.sx-modal[data-view="inbox"] .dm-active-item .sx-av-inner {
  font-size: 1.5rem;
}

.sx-modal[data-view="inbox"] .dm-active-item .sx-av.is-online::after {
  right: 1px;
  bottom: 2px;
  width: 17px;
  height: 17px;
  background: #1cd14f;
  box-shadow: 0 0 0 3.5px #000;
}

.dm-list-head {
  margin: 10px 0 6px !important;
}

.sx-modal[data-view="inbox"] .dm-list-head .sx-section-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.dm-unread-count {
  color: #0095f6;
  font-size: 0.86rem;
  font-weight: 700;
}

.sx-modal[data-view="inbox"] .dm-list {
  margin: 0 -16px;
}

.dm-list .dm-conv {
  gap: 13px;
  padding: 8px 16px;
  border-radius: 0;
  transition: background 0.15s ease;
}

.dm-list .dm-conv:active {
  background: rgba(255, 255, 255, 0.06);
}

@media (hover: hover) {
  .dm-list .dm-conv:hover {
    background: rgba(255, 255, 255, 0.035);
  }
}

.dm-list .dm-conv > .sx-av {
  width: 56px;
  height: 56px;
}

.dm-list .dm-conv > .sx-av .sx-av-inner {
  font-size: 1.25rem;
}

.dm-list .dm-conv > .sx-av.is-online::after {
  width: 15px;
  height: 15px;
  right: 0;
  bottom: 1px;
  background: #1cd14f;
  box-shadow: 0 0 0 3px #000;
}

.dm-list .sx-user-meta {
  gap: 2px;
}

.dm-list .sx-user-name {
  color: #f5f5f5;
  font-size: 0.94rem;
  font-weight: 500;
}

.dm-list .dm-preview {
  color: #a8a8a8;
  font-size: 0.84rem;
  font-weight: 400;
}

.dm-list .dm-conv.unread .sx-user-name {
  color: #fff;
  font-weight: 700;
}

.dm-list .dm-conv.unread .dm-preview {
  color: #fff;
  font-weight: 600;
}

.dm-unread-dot {
  width: 9px;
  height: 9px;
  margin: 0 6px 0 4px;
  background: #0095f6;
  box-shadow: 0 0 10px rgba(0, 149, 246, 0.55);
}

.dm-list .dm-conv-call {
  width: 40px;
  height: 40px;
  margin-right: -6px;
  color: #f5f5f5;
}

.dm-list .dm-conv-call .sx-i svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.7;
}

.dm-noresult {
  margin: 28px 0;
  color: #8e8e8e;
  font-size: 0.9rem;
  text-align: center;
}

/* ---------- Biseda (thread): Instagram-style ---------- */
.sx-modal[data-view="thread"] .st-sheet,
.sx-modal[data-view="thread"] .st-topbar,
.sx-modal[data-view="thread"] .dm-composer {
  background: #000;
}

.sx-modal[data-view="thread"] .st-topbar {
  border-bottom: 1px solid #1a1a1a;
}

.sx-modal[data-view="thread"] .dm-head {
  gap: 11px;
}

.sx-modal[data-view="thread"] .dm-head .sx-av {
  width: 36px;
  height: 36px;
}

.sx-modal[data-view="thread"] .dm-head-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sx-modal[data-view="thread"] .dm-head-sub {
  color: #a8a8a8;
  font-size: 0.75rem;
}

.sx-modal[data-view="thread"] .dm-head-sub.online {
  color: #a8a8a8;
}

.sx-modal[data-view="thread"] .dm-scroll {
  overflow-x: hidden;
  padding: 4px 14px 10px;
}

.sx-modal[data-view="thread"] .dm-intro {
  gap: 2px;
  padding: 30px 8px 26px;
}

.sx-modal[data-view="thread"] .dm-intro .sx-av {
  width: 96px;
  height: 96px;
}

.sx-modal[data-view="thread"] .dm-intro strong {
  margin-top: 12px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.sx-modal[data-view="thread"] .dm-intro > span {
  color: #a8a8a8;
  font-size: 0.88rem;
}

.sx-modal[data-view="thread"] .dm-intro .sx-btn {
  min-height: 34px;
  margin-top: 14px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #262626;
  color: #f5f5f5;
  font-size: 0.86rem;
  font-weight: 700;
}

.sx-modal[data-view="thread"] .dm-private {
  color: #737373;
}

.sx-modal[data-view="thread"] .dm-sep {
  margin: 18px 0 8px;
  color: #a8a8a8;
  font-size: 0.72rem;
  font-weight: 600;
}

.sx-modal[data-view="thread"] .dm-row {
  min-width: 0;
  gap: 8px;
  margin-top: 7px;
}

.sx-modal[data-view="thread"] .dm-row.cont {
  margin-top: 2px;
}

.sx-modal[data-view="thread"] .dm-row .sx-av,
.sx-modal[data-view="thread"] .dm-av-gap {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
}

.sx-modal[data-view="thread"] .dm-bubble {
  max-width: min(72%, 420px);
  padding: 8px 13px;
  border-radius: 22px;
  background: #262626;
  color: #f5f5f5;
  font-size: 0.94rem;
  line-height: 1.34;
}

.sx-modal[data-view="thread"] .dm-row.mine .dm-bubble {
  background: linear-gradient(180deg, #a033ff 0%, #6e48f5 45%, #3797f0 100%);
  background-attachment: fixed;
  color: #fff;
}

.sx-modal[data-view="thread"] .dm-row.mine.cont .dm-bubble,
.sx-modal[data-view="thread"] .dm-row.mine:not(.last) .dm-bubble {
  border-top-right-radius: 22px;
  border-bottom-right-radius: 22px;
}

.sx-modal[data-view="thread"] .dm-row.mine.cont .dm-bubble {
  border-top-right-radius: 5px;
}

.sx-modal[data-view="thread"] .dm-row.mine:not(.last) .dm-bubble {
  border-bottom-right-radius: 5px;
}

.sx-modal[data-view="thread"] .dm-row.theirs.cont .dm-bubble {
  border-top-left-radius: 5px;
}

.sx-modal[data-view="thread"] .dm-row.theirs:not(.last) .dm-bubble {
  border-bottom-left-radius: 5px;
}

.sx-modal[data-view="thread"] .dm-row .dm-bubble.emoji {
  padding: 0 2px;
  background: none;
  font-size: 2.8rem;
}

.sx-modal[data-view="thread"] .dm-seen {
  margin: 3px 4px 0;
  color: #a8a8a8;
  font-size: 0.7rem;
  font-weight: 500;
}

.sx-modal[data-view="thread"] .dm-call {
  width: min(290px, 86%);
  margin: 12px 0 4px;
  padding: 10px 10px 10px 10px;
  border-radius: 20px;
  background: #1a1a1a;
  border: 1px solid #262626;
}

.sx-modal[data-view="thread"] .dm-call-ico {
  width: 38px;
  height: 38px;
  background: #262626;
}

.sx-modal[data-view="thread"] .dm-call-meta span {
  color: #a8a8a8;
}

.sx-modal[data-view="thread"] .dm-call-again {
  background: #262626;
  color: #fff;
}

.sx-modal[data-view="thread"] .dm-older {
  background: #262626;
}

.sx-modal[data-view="thread"] .dm-composer {
  padding: 6px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 0;
}

.sx-modal[data-view="thread"] .dm-field {
  min-height: 46px;
  align-items: center;
  gap: 2px;
  padding: 4px 6px 4px 5px;
  border: 0;
  border-radius: 24px;
  background: #262626;
}

.sx-modal[data-view="thread"] .dm-input {
  padding: 9px 4px 9px 6px;
  color: #f5f5f5;
  font-size: 0.95rem;
}

.sx-modal[data-view="thread"] .dm-field:has(.dm-input:not(:placeholder-shown)) {
  align-items: flex-end;
}

.sx-modal[data-view="thread"] .dm-input::placeholder {
  color: #a8a8a8;
}

/* Gift button sits on the left like Instagram's camera button. */
.sx-modal[data-view="thread"] .dm-field .dm-gift {
  order: -1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffcf4a, #f08a24 55%, #e8457c);
  color: #fff;
}

.sx-modal[data-view="thread"] .dm-field .dm-gift svg {
  width: 19px;
  height: 19px;
}

.sx-modal[data-view="thread"] .dm-heart {
  width: 38px;
  height: 36px;
  color: #f5f5f5;
}

.sx-modal[data-view="thread"] .dm-send {
  padding: 8px 12px;
  color: #0095f6;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Private call */
.pc {
  position: fixed;
  inset: 0;
  z-index: 96;
  overflow: hidden;
  background: #05070a;
  color: #fff;
  animation: callSheetIn 0.42s cubic-bezier(0.22, 0.9, 0.24, 1) both;
}

.pc-bg {
  position: absolute;
  inset: -80px;
  background: radial-gradient(circle at 50% 36%, #245f58, #070a0d 72%) center / cover no-repeat;
  filter: blur(48px) brightness(0.5) saturate(1.1);
  transform: scale(1.1);
  transition: opacity 0.4s ease;
}

.pc.has-remote .pc-bg {
  opacity: 0;
}

.pc::before,
.pc::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.5;
  transition: opacity 0.4s ease;
  will-change: transform;
}

.pc::before {
  top: 8%;
  left: -20%;
  width: 62vw;
  max-width: 420px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(63, 191, 169, 0.42), transparent 70%);
  animation: callGlowA 10s ease-in-out infinite;
}

.pc::after {
  bottom: 2%;
  right: -22%;
  width: 66vw;
  max-width: 440px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(52, 120, 246, 0.3), transparent 70%);
  animation: callGlowB 12s ease-in-out infinite;
}

.pc.has-remote::before,
.pc.has-remote::after {
  opacity: 0;
}

.pc-remote {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pc.is-video.has-remote .pc-remote {
  opacity: 1;
}

.pc.is-video.has-remote::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: none;
  aspect-ratio: auto;
  opacity: 1;
  border-radius: 0;
  filter: none;
  pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0.32), transparent 22%, transparent 68%, rgba(0, 0, 0, 0.5));
  animation: none;
}

.pc-center {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  transition: opacity 0.3s ease;
}

.pc.has-remote .pc-center {
  opacity: 0;
}

.pc-avatar {
  position: relative;
  width: 168px;
  height: 168px;
}

.pc-avatar .call-avatar-inner {
  font-size: 3.4rem;
}

.pc.is-connected .call-pulse {
  border-color: rgba(63, 191, 169, 0.42);
  animation: pcSpeak 3s ease-in-out infinite;
}

.pc.is-connected .call-pulse.delay {
  animation-delay: 1.5s;
}

@keyframes pcSpeak {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.12;
  }
}

.pc-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 48px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), transparent);
  text-align: center;
  pointer-events: none;
}

.pc-lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pc-lock svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.pc-name {
  margin: 14px 0 3px;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.pc-status {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.pc:not(.is-connected) .pc-status {
  animation: callBlink 1.8s ease-in-out infinite;
}

.pc-local {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  background: #111;
  transition: top 0.4s cubic-bezier(0.22, 0.9, 0.24, 1), right 0.4s cubic-bezier(0.22, 0.9, 0.24, 1),
    width 0.4s cubic-bezier(0.22, 0.9, 0.24, 1), height 0.4s cubic-bezier(0.22, 0.9, 0.24, 1),
    border-radius 0.4s ease, opacity 0.25s ease;
}

.pc.has-remote .pc-local {
  top: calc(104px + env(safe-area-inset-top, 0px));
  right: 16px;
  z-index: 4;
  width: 108px;
  height: 152px;
  border-radius: 18px;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.18), 0 16px 40px rgba(0, 0, 0, 0.6);
}

.pc.is-audio .pc-local {
  display: none;
}

.pc.cam-off .pc-local {
  opacity: 0;
}

.pc-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px calc(32px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.pc-controls::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.pc-dock {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(22, 26, 30, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.pc-btn {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: transform 0.14s cubic-bezier(0.22, 0.9, 0.24, 1), background 0.2s ease, color 0.2s ease;
}

.pc-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.pc-btn:active {
  transform: scale(0.9);
}

.pc-btn svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pc-btn .pc-off {
  display: none;
}

.pc.mic-off #pcMuteBtn,
.pc.cam-off #pcCamBtn {
  background: #fff;
  color: #14181c;
}

.pc.mic-off #pcMuteBtn .pc-on,
.pc.cam-off #pcCamBtn .pc-on {
  display: none;
}

.pc.mic-off #pcMuteBtn .pc-off,
.pc.cam-off #pcCamBtn .pc-off {
  display: block;
}

.pc.is-audio #pcCamBtn {
  display: none;
}

.pc-btn.end {
  width: 66px;
  height: 66px;
  background: linear-gradient(160deg, #ff5f57, #e5352b);
  box-shadow: 0 12px 30px rgba(229, 53, 43, 0.5);
}

.pc-btn.end:hover {
  background: linear-gradient(160deg, #ff6a63, #e5352b);
}

.pc-btn.end svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
  stroke: none;
}

@media (min-width: 760px) {
  .pc.is-audio .pc-bg,
  .pc.is-audio::before,
  .pc.is-audio::after {
    max-width: none;
  }

  .pc.is-video.has-remote .pc-local {
    width: 150px;
    height: 206px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pc,
  .pc::before,
  .pc::after,
  .pc .call-pulse,
  .pc-status,
  .pc-local {
    animation: none !important;
    transition: opacity 0.2s ease !important;
  }
}

@media (max-width: 900px) {
  body.in-thread .tabbar {
    display: none !important;
  }

  body.has-tabs.in-thread:not(.in-session) .sx-modal {
    bottom: 0;
  }

  .sx-modal .sx-body.is-thread {
    padding: 0;
  }
}

/* App-open intro (Wise-style): brand-colour circles ripple open, video-tile shapes spring in around the
   logo lockup, then three sheets lift away into the app */
.app-intro {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  overflow: hidden;
  background: #06231f;
  pointer-events: auto;
  animation: introBgOut 0.01s 0.45s forwards;
}

.intro-sheet {
  position: absolute;
  inset: 0;
  will-change: transform, clip-path;
}

.intro-sheet-back {
  background: #0d3a33;
  animation:
    introReveal 0.42s 0s cubic-bezier(0.22, 1, 0.36, 1) both,
    introLift 0.5s 1.12s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.intro-sheet-mid {
  background: #a6f0e4;
  animation:
    introReveal 0.42s 0.07s cubic-bezier(0.22, 1, 0.36, 1) both,
    introLift 0.5s 1.06s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.intro-sheet-front {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #3fd1bc;
  animation:
    introReveal 0.46s 0.14s cubic-bezier(0.22, 1, 0.36, 1) both,
    introLift 0.5s 1s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

/* Flat video-tile shapes that frame the logo */
.intro-shape {
  position: absolute;
  display: block;
  transform: rotate(var(--r));
  animation:
    introShapeIn 0.7s var(--d) cubic-bezier(0.34, 1.4, 0.64, 1) both,
    introShapeOut 0.4s 0.96s cubic-bezier(0.6, 0, 0.8, 0.4) forwards;
}

.intro-shape-a {
  --r: -12deg;
  --d: 0.3s;
  --from: -70vw, 10vh;
  --to: -30vw, -60vh;
  left: -14vmin;
  top: 9%;
  width: 46vmin;
  height: 60vmin;
  border-radius: 7vmin;
  background: #0d3a33;
}

.intro-shape-b {
  --r: 10deg;
  --d: 0.36s;
  --from: 70vw, -10vh;
  --to: 30vw, -70vh;
  right: -12vmin;
  bottom: 7%;
  width: 42vmin;
  height: 56vmin;
  border-radius: 7vmin;
  background: #a6f0e4;
}

.intro-shape-c {
  --r: 0deg;
  --d: 0.44s;
  --from: 0, -50vh;
  --to: 10vw, -60vh;
  right: 14%;
  top: 13%;
  width: 13vmin;
  height: 13vmin;
  border-radius: 50%;
  background: #fff;
}

.intro-mark {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: introMarkOut 0.42s 0.98s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.intro-lockup {
  display: flex;
  align-items: center;
  gap: clamp(10px, 3vw, 16px);
}

.intro-logo-wrap {
  position: relative;
  display: block;
  animation: introPop 0.6s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* One "live signal" ring pulses out of the logo */
.intro-logo-wrap::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 26%;
  border: 3px solid #06231f;
  opacity: 0;
  animation: introRing 0.7s 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.intro-logo {
  display: block;
  width: clamp(58px, 17vw, 84px);
  height: clamp(58px, 17vw, 84px);
  border-radius: 22%;
  box-shadow: 0 12px 30px rgba(6, 35, 31, 0.3);
}

.intro-word {
  display: flex;
  overflow: hidden;
  padding: 0.04em 0.04em 0.1em;
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 12.5vw, 3.8rem);
  letter-spacing: -0.05em;
  line-height: 1;
  color: #06231f;
}

.intro-word > * {
  display: inline-block;
  font-weight: 800;
  animation: introRise 0.5s calc(0.34s + var(--i) * 0.04s) cubic-bezier(0.22, 1, 0.36, 1) both;
}

.intro-word b {
  color: #fff;
}

.intro-tag {
  display: block;
  overflow: hidden;
  font-family: Manrope, system-ui, sans-serif;
  font-size: clamp(0.8rem, 3.6vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(6, 35, 31, 0.72);
}

.intro-tag > span {
  display: block;
  animation: introRise 0.5s 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.intro-live {
  position: absolute;
  top: -34px;
  right: -14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #06231f;
  color: #fff;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  transform: rotate(6deg);
  animation: introLive 0.5s 0.62s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.intro-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3b30;
}

body:has(#appIntro) .ome {
  animation: introAppIn 0.6s 1.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body:has(#appIntro) .auth-logo-pop {
  animation-delay: 1.2s;
}

@keyframes introReveal {
  from {
    clip-path: circle(0% at 50% 50%);
  }
  to {
    clip-path: circle(75% at 50% 50%);
  }
}

@keyframes introLift {
  from {
    transform: translateY(0);
    border-radius: 0;
  }
  to {
    transform: translateY(-104%);
    border-radius: 0 0 48px 48px;
  }
}

@keyframes introBgOut {
  to {
    background: transparent;
  }
}

@keyframes introShapeIn {
  from {
    opacity: 0;
    transform: translate(var(--from)) rotate(calc(var(--r) - 25deg));
  }
  to {
    opacity: 1;
    transform: rotate(var(--r));
  }
}

@keyframes introShapeOut {
  to {
    transform: translate(var(--to)) rotate(calc(var(--r) + 20deg));
  }
}

@keyframes introPop {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-14deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes introRing {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes introRise {
  from {
    transform: translateY(115%);
  }
  to {
    transform: none;
  }
}

@keyframes introLive {
  from {
    opacity: 0;
    transform: scale(0.4) rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: rotate(6deg);
  }
}

@keyframes introMarkOut {
  to {
    opacity: 0;
    transform: translateY(-70px) scale(0.94);
  }
}

@keyframes introAppIn {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ===== Profile ===== */
.pf {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 0 16px;
  animation: sxFadeUp 0.25s ease both;
}

.pf-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 14px;
}

.pf-cover {
  position: absolute;
  top: -8px;
  left: -16px;
  right: -16px;
  height: 96px;
  background: radial-gradient(circle at 50% -10%, rgba(63, 209, 188, 0.25), transparent 72%),
              linear-gradient(180deg, rgba(20, 32, 30, 0.5) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 20px 20px 0 0;
}

.pf-avatar-box {
  position: relative;
  width: 114px;
  height: 114px;
  margin: 4px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.pf-avatar,
.pf-avatar-box .sx-av.xl {
  width: 114px;
  height: 114px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65),
              0 0 0 3.5px #0f0f10,
              0 0 0 5px rgba(255, 255, 255, 0.09);
  background: linear-gradient(145deg, #1f423b, #0f2320);
  transition: transform 0.15s ease;
}

.pf-avatar.female,
.pf-avatar-box .sx-av.xl.female {
  background: linear-gradient(145deg, #441a33, #220b19);
}

.pf-avatar-box .sx-av.xl::before,
.pf-avatar-box .sx-av.xl::after {
  display: none !important;
}

.pf-avatar-inner,
.pf-avatar-box .sx-av.xl .sx-av-inner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 2.8rem;
  font-weight: 800;
  color: #f5f5f7;
  line-height: 1;
  user-select: none;
  background: inherit;
  box-shadow: none;
}

.pf-avatar img,
.pf-avatar-box .sx-av.xl img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.pf-online-dot {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #31a24c;
  border: 3.5px solid #0f0f10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  z-index: 4;
  pointer-events: none;
}

.pf-online-dot.is-me {
  top: 4px;
  bottom: auto;
  right: 4px;
}

.pf-online-dot.is-busy {
  background: #ff9f0a;
}

.pf-avatar-cam {
  position: absolute;
  right: 0px;
  bottom: 0px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: #242526;
  border: 3.5px solid #0f0f10;
  color: #e4e6eb;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  z-index: 5;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pf-avatar-cam:hover {
  background: #3a3b3c;
  color: #fff;
  transform: scale(1.08);
}

.pf-avatar-cam:active {
  transform: scale(0.94);
}

.pf-avatar-cam svg {
  width: 17px;
  height: 17px;
}

.pf-name-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  padding: 0 8px;
}

.pf-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #f5f5f7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-name-line {
  font-size: 1.35rem;
}

.pf-name-line > .ub {
  margin-left: 0;
}

.pf-handle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #8d8d92;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pf-handle-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e5e5ea;
  border-color: rgba(255, 255, 255, 0.16);
}

.pf-handle-pill:active {
  transform: scale(0.96);
}

.pf-handle-ico svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

.pf-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.pf-tags:empty {
  display: none;
}

.pf-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #a1a1a6;
  font-size: 0.72rem;
  font-weight: 600;
}

.pf-tag.is-follow {
  color: #3fd1bc;
  background: rgba(63, 209, 188, 0.1);
  border-color: rgba(63, 209, 188, 0.25);
}

.pf-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 290px;
  width: 100%;
  margin: 0 auto;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.045);
  padding: 4px;
}

.pf-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: inherit;
  font: inherit;
  transition: background 0.15s ease;
}

.pf-stat + .pf-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: rgba(255, 255, 255, 0.06);
}

button.pf-stat {
  cursor: pointer;
}

button.pf-stat:hover {
  background: rgba(255, 255, 255, 0.04);
}

button.pf-stat:active {
  transform: scale(0.97);
}

.pf-stat-val {
  font-size: 1.08rem;
  font-weight: 800;
  color: #f5f5f7;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.pf-stat-lbl {
  color: #8d8d92;
  font-size: 0.72rem;
  font-weight: 550;
  line-height: 1;
}

.pf-bio {
  margin: 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  color: #e5e5ea;
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
  white-space: pre-wrap;
  word-break: break-word;
}

.pf-bio-add {
  padding: 12px 16px;
  border: 1px dashed rgba(63, 209, 188, 0.35);
  border-radius: 14px;
  background: rgba(63, 209, 188, 0.04);
  color: #3fd1bc;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pf-bio-add:hover {
  background: rgba(63, 209, 188, 0.08);
  border-color: rgba(63, 209, 188, 0.55);
}

.pf-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 48px;
  gap: 8px;
}

.pf-actions.is-other {
  grid-template-columns: 1fr 1fr 48px;
}

.pf-btn {
  height: 44px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f7;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.pf-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.pf-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.pf-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.pf-btn.primary {
  background: linear-gradient(135deg, #38cfb7 0%, #239987 100%);
  border-color: rgba(63, 209, 188, 0.4);
  color: #071917;
  font-weight: 800;
  box-shadow: 0 4px 16px -4px rgba(63, 209, 188, 0.4);
}

.pf-btn.primary:hover:not(:disabled) {
  filter: brightness(1.08);
}

.pf-btn.icon {
  padding: 0;
}

.pf-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pf-section-title {
  margin: 10px 4px 0;
  color: #8d8d92;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pf-card {
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.065);
}

.pf-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  transition: background 0.12s ease;
}

.pf-row + .pf-row {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pf-row.is-link {
  cursor: pointer;
}

.pf-row.is-link:hover {
  background: rgba(255, 255, 255, 0.03);
}

.pf-row.is-link:active {
  background: rgba(255, 255, 255, 0.06);
}

.pf-row-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.pf-row-ico svg {
  width: 16px;
  height: 16px;
}

.pf-row-ico.blue   { background: rgba(52, 120, 246, 0.16); color: #58a6ff; }
.pf-row-ico.pink   { background: rgba(255, 55, 95, 0.16);  color: #ff6482; }
.pf-row-ico.teal   { background: rgba(63, 209, 188, 0.16); color: #3fd1bc; }
.pf-row-ico.amber  { background: rgba(255, 159, 10, 0.16); color: #ff9f0a; }
.pf-row-ico.purple { background: rgba(175, 82, 222, 0.16); color: #bf7af0; }
.pf-row-ico.green  { background: rgba(48, 209, 88, 0.16);  color: #30d158; }
.pf-row-ico.red    { background: rgba(255, 69, 58, 0.16);  color: #ff5a5f; }

.pf-row-label {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 500;
  color: #e5e5ea;
}

.pf-row-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8d8d92;
  font-size: 0.88rem;
}

.pf-row-arr {
  color: #5a5a5f;
  display: grid;
  place-items: center;
}

.pf-row-arr svg {
  width: 14px;
  height: 14px;
}

.pf-row.is-danger {
  color: #ff5a5f;
}

.pf-row.is-danger .pf-row-label {
  color: #ff5a5f;
}

.pf .sx-req-banner {
  margin: 0;
}

/* User badges (verified / VIP) */
.ub-line {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  max-width: 100%;
  min-width: 0;
  vertical-align: top;
}

.ub-text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-left: 0.3em;
  line-height: 1;
  letter-spacing: normal;
  text-shadow: none;
  vertical-align: -0.14em;
  user-select: none;
}

.ub-line > .ub {
  margin-left: 0;
}

.ub-verified {
  width: 0.95em;
  height: 0.95em;
  color: #1d9bf0;
}

.ub.ub-verified > svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  clip-path: circle(32%);
  transform: scale(1.48);
}

.ub-vip {
  padding: 0.2em 0.45em 0.18em;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5c542, #d99a1e);
  color: #2a1c00;
  font-size: max(0.6em, 9.5px);
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 1px 6px rgba(217, 154, 30, 0.35);
  vertical-align: 0.12em;
}

/* ===== Random chat: bigger gift button + raised reactions bar ===== */
.reaction-bar .gift-btn {
  width: 52px;
  height: 52px;
  margin: 0 2px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.22),
    0 6px 18px -4px rgba(240, 138, 36, 0.85),
    0 0 20px -6px rgba(232, 69, 124, 0.65);
  animation: liveGiftGlow 2.8s ease-in-out infinite;
}

.reaction-bar .gift-btn svg {
  width: 26px;
  height: 26px;
  stroke-width: 2.1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.reaction-bar .gift-btn:active {
  transform: scale(0.9);
}

@media (hover: hover) {
  .reaction-bar .gift-btn:hover {
    transform: scale(1.06);
  }
}

@keyframes liveGiftGlow {
  0%,
  100% {
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.22),
      0 6px 18px -4px rgba(240, 138, 36, 0.85),
      0 0 20px -6px rgba(232, 69, 124, 0.65);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(255, 255, 255, 0.3),
      0 6px 22px -2px rgba(240, 138, 36, 0.95),
      0 0 28px -4px rgba(232, 69, 124, 0.8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reaction-bar .gift-btn {
    animation: none;
  }
}

@media (min-width: 901px) {
  .chat-panel > .chat-form {
    order: 1;
  }

  .reaction-bar {
    align-self: end;
    padding: 3px 10px;
  }
}

@media (max-width: 900px) {
  .reaction-bar {
    padding-bottom: calc(38px + env(safe-area-inset-bottom, 0px));
  }

  body:not(.chat-open) .chat-panel > .typing:not(.hidden) {
    bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }
}

/* ===== Coins: gold ===== */
body [data-gf-coins],
body .gf-price,
body .gf-pack-coins,
body .gf-card.coins strong,
body .gf-pf-chip.is-link b {
  background: linear-gradient(180deg, #fff4b8 0%, #ffd23f 42%, #f0a81c 72%, #c9800f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #f5c542;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(255, 196, 46, 0.45)) drop-shadow(0 1px 0 rgba(120, 70, 0, 0.55));
}

/* Emoji glyphs must keep their own colors inside gradient text. */
body .gf-price i,
body .gf-pack-coins i {
  -webkit-text-fill-color: initial;
}

body .gf-coin,
body .gf-price i,
body .gf-pack-coins i,
body .gf-card.coins .gf-card-ico {
  filter: drop-shadow(0 0 5px rgba(255, 200, 50, 0.7));
}

body .gf-balance {
  border-color: rgba(255, 205, 60, 0.6);
  background: linear-gradient(135deg, rgba(255, 214, 80, 0.22), rgba(201, 128, 15, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 180, 0.25),
    0 0 14px -4px rgba(255, 196, 46, 0.55);
}

body .gf-card.coins {
  background: linear-gradient(145deg, rgba(255, 210, 63, 0.32), rgba(201, 128, 15, 0.1));
  box-shadow:
    inset 0 0 0 1px rgba(255, 205, 60, 0.45),
    0 8px 24px -10px rgba(255, 180, 30, 0.45);
}
