/* ============================================================
   Yerim Chat — Stil dosyası
   Açık + Koyu tema (CSS değişkenleri), 3 sütunlu sohbet lobisi,
   story barı, kategorili emoji, mesaj silme, responsive
   ============================================================ */

:root {
  --pink: #fd267d;
  --orange: #ff7854;
  --grad: linear-gradient(135deg, #fd267d 0%, #ff7854 100%);

  /* AÇIK TEMA (varsayılan değişkenler) */
  --bg: #eef0f5;
  --card: #ffffff;
  --card-2: #f3f4f8;
  --input: #f3f4f8;
  --hover: #f1f2f6;
  --text: #20232a;
  --muted: #8a8f9c;
  --line: #e9eaf0;
  --chip: rgba(0, 0, 0, 0.06);
  --chat-bg: #f7f8fb;
  --scroll: #d2d5e0;
  --shadow: 0 10px 30px rgba(20, 20, 40, 0.10);
  --shadow-sm: 0 3px 12px rgba(20, 20, 40, 0.06);

  --radius: 16px;
  --nav-h: 60px;
}

/* KOYU TEMA */
:root[data-theme="dark"] {
  --bg: #14161d;
  --card: #1d2029;
  --card-2: #262a35;
  --input: #262a35;
  --hover: #2a2e3a;
  --text: #e8eaf0;
  --muted: #8b909e;
  --line: #2b2f3a;
  --chip: rgba(255, 255, 255, 0.09);
  --chat-bg: #181b22;
  --scroll: #353a47;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 3px 14px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overscroll-behavior: none;
  transition: background 0.25s, color 0.25s;
}
.hidden {
  display: none !important;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
input,
textarea {
  font-family: inherit;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--scroll);
  border-radius: 8px;
}

/* ============================================================
   SPLASH
   ============================================================ */
.splash {
  position: fixed;
  inset: 0;
  background: var(--grad);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  z-index: 1000;
}
.splash-logo {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}
.splash-logo span {
  opacity: 0.85;
}
.spinner {
  width: 38px;
  height: 38px;
  border: 4px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   GİRİŞ / KAYIT / KURULUM
   ============================================================ */
.screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.auth-card,
.setup-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px 22px;
}
.brand {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(
    90deg,
    #fd267d 0%,
    #ff7854 22%,
    #ffd56b 48%,
    #fff3c4 50%,
    #ffd56b 52%,
    #ff7854 78%,
    #fd267d 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
  animation: brandShine 3.2s linear infinite, brandGlow 2.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .brand {
    animation: none;
  }
}
.brand span {
  -webkit-text-fill-color: transparent;
}
.brand-sub {
  text-align: center;
  color: var(--muted);
  margin: 6px 0 22px;
  font-size: 0.92rem;
}
.tabs {
  display: flex;
  background: var(--card-2);
  border-radius: 14px;
  padding: 5px;
  margin-bottom: 20px;
}
.tab {
  flex: 1;
  padding: 11px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.95rem;
  transition: 0.2s;
}
.tab.active {
  background: var(--card);
  color: var(--pink);
  box-shadow: var(--shadow-sm);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* Şifre göster/gizle + şifremi unuttum */
.pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pw-wrap input {
  width: 100%;
  padding-right: 46px;
}
.pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  padding: 6px;
  opacity: 0.55;
  transition: opacity 0.15s;
}
.pw-toggle:hover,
.pw-toggle.on {
  opacity: 1;
}
.auth-link {
  align-self: center;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 2px 6px;
  text-decoration: underline;
  transition: color 0.15s;
}
.auth-link:hover {
  color: var(--pink);
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
  width: 100%;
  background: var(--input);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 14px 15px;
  font-size: 0.98rem;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--pink);
}
textarea {
  resize: vertical;
  min-height: 60px;
}
.row {
  display: flex;
  gap: 12px;
}
.row > * {
  flex: 1;
  min-width: 0;
}

/* Butonlar */
.btn-primary {
  width: 100%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(253, 38, 125, 0.35);
  transition: transform 0.12s, opacity 0.2s;
}
.btn-primary:active {
  transform: scale(0.97);
}
.btn-primary:disabled {
  opacity: 0.6;
  box-shadow: none;
}
.btn-ghost {
  width: 100%;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  padding: 13px;
  border-radius: 14px;
  margin-top: 8px;
}
.btn-ghost:active {
  background: var(--hover);
}
.btn-soft {
  display: inline-block;
  background: var(--card-2);
  color: var(--pink);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 16px;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
}
.btn-soft.block {
  display: block;
  width: 100%;
}
.btn-mini {
  background: var(--card-2);
  color: var(--pink);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 10px;
}
.auth-error {
  color: #e7385b;
  text-align: center;
  font-size: 0.88rem;
  margin: 12px 0 0;
  min-height: 1em;
}

/* Kurulum */
.setup-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 92vh;
  overflow-y: auto;
}
.setup-card h2 {
  margin: 0;
  text-align: center;
  font-size: 1.4rem;
}
.muted {
  color: var(--muted);
}
.muted.small {
  font-size: 0.82rem;
}
.setup-card > .muted {
  text-align: center;
  margin: -4px 0 6px;
  font-size: 0.88rem;
}
.photo-upload {
  display: flex;
  justify-content: center;
  margin: 4px 0 8px;
}
.photo-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--card-2);
  border: 2px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
}
.chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  flex: 1;
  min-width: 70px;
  padding: 11px 8px;
  border-radius: 12px;
  background: var(--card-2);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1.5px solid transparent;
  transition: 0.18s;
}
.chip.active {
  background: rgba(253, 38, 125, 0.12);
  border-color: var(--pink);
  color: var(--pink);
}

/* ============================================================
   ANA UYGULAMA + ÜST MENÜ
   ============================================================ */
.app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.navbar {
  height: var(--nav-h);
  background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-brand {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin: 0 auto 0 8px;
}
.nav-link {
  padding: 9px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.15s;
}
.nav-link span {
  filter: grayscale(1);
  opacity: 0.6;
}
.nav-link:hover {
  background: var(--hover);
}
.nav-link.active {
  background: rgba(253, 38, 125, 0.12);
  color: var(--pink);
}
.nav-link.active span {
  filter: none;
  opacity: 1;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-2);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: 0.15s;
}
.icon-btn:hover {
  background: var(--hover);
}
.nav-me {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 5px 5px 14px;
  border-radius: 30px;
  background: var(--card-2);
  transition: 0.15s;
}
.nav-me:hover {
  box-shadow: var(--shadow-sm);
}
.nav-me-name {
  font-weight: 600;
  font-size: 0.9rem;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-me-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Premium hareketli logo */
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-brand .brand-text {
  background: linear-gradient(
    90deg,
    #fd267d 0%,
    #ff7854 22%,
    #ffd56b 48%,
    #fff3c4 50%,
    #ffd56b 52%,
    #ff7854 78%,
    #fd267d 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brandShine 3.2s linear infinite, brandGlow 2.8s ease-in-out infinite;
}
.nav-brand .brand-gem {
  -webkit-text-fill-color: initial;
  font-size: 1.05rem;
  display: inline-block;
  transform-origin: center;
  animation: gemTwinkle 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 5px rgba(255, 213, 107, 0.8));
}
@keyframes brandShine {
  to {
    background-position: 220% center;
  }
}
@keyframes brandGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 2px rgba(253, 38, 125, 0.25));
  }
  50% {
    filter: drop-shadow(0 0 9px rgba(255, 120, 84, 0.55));
  }
}
@keyframes gemTwinkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  45% {
    transform: scale(1.22) rotate(-10deg);
    opacity: 0.85;
  }
  70% {
    transform: scale(1.08) rotate(6deg);
  }
}

/* Premium Satın Al butonu (navbar — elmas ikonu yerine) */
.premium-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  background: linear-gradient(135deg, #fd267d 0%, #ff7854 50%, #fd267d 100%);
  background-size: 200% auto;
  box-shadow: 0 4px 14px rgba(253, 38, 125, 0.4);
  animation: ctaShine 3.5s linear infinite, ctaPulse 2.4s ease-in-out infinite;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.premium-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.premium-cta:active {
  transform: translateY(0);
}
.cta-short {
  display: none;
}
@keyframes ctaShine {
  to {
    background-position: 200% center;
  }
}
@keyframes ctaPulse {
  0%,
  100% {
    box-shadow: 0 4px 14px rgba(253, 38, 125, 0.35);
  }
  50% {
    box-shadow: 0 4px 22px rgba(255, 120, 84, 0.6);
  }
}
@media (max-width: 760px) {
  .premium-cta {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .cta-long {
    display: none;
  }
  .cta-short {
    display: inline;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-brand .brand-text,
  .nav-brand .brand-gem,
  .premium-cta {
    animation: none;
  }
}

/* E-posta doğrulama bannerı */
.verify-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #ffb347, #ff7854);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 14px;
}
.verify-banner button {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 8px;
}
.verify-banner .vb-close {
  background: transparent;
  padding: 4px 8px;
}

/* Ayarlar bölümleri */
.settings-section {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.settings-title {
  font-weight: 700;
  font-size: 0.92rem;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  cursor: pointer;
}
.toggle-row input[type="checkbox"] {
  appearance: none;
  width: 44px;
  height: 26px;
  border-radius: 14px;
  background: var(--line);
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-row input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.toggle-row input[type="checkbox"]:checked {
  background: var(--pink);
}
.toggle-row input[type="checkbox"]:checked::after {
  transform: translateX(18px);
}
.blocked-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blocked-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
}
.blocked-row .btn-mini {
  background: rgba(255, 80, 105, 0.14);
  color: #ff5069;
}

/* ============================================================
   STORY BARI
   ============================================================ */
.stories-wrap {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.stories-bar {
  display: flex;
  gap: 16px;
  padding: 0 20px;
  overflow-x: auto;
  max-width: 1280px;
  margin: 0 auto;
  scrollbar-width: none;
}
.stories-bar::-webkit-scrollbar {
  display: none;
}
.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  width: 72px;
}
.story-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 3px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-ring.seen {
  background: var(--line);
}
.story-ring.add {
  background: var(--card-2);
  border: 2px dashed var(--muted);
}
.story-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--card) center/cover no-repeat;
  border: 2px solid var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  font-weight: 700;
  font-size: 1.5rem;
}
.story-item.add .story-avatar {
  color: var(--muted);
  font-size: 1.8rem;
}
.story-name {
  font-size: 0.74rem;
  color: var(--text);
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   LOBİ — 3 SÜTUN
   ============================================================ */
.lobby {
  overflow: hidden;
}
.lobby-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 290px 1fr 290px;
  gap: 16px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px;
}
.panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.panel-head {
  padding: 16px 18px;
  font-weight: 700;
  font-size: 1rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-head .count {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.panel-search {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.panel-search input {
  padding: 9px 12px;
  font-size: 0.86rem;
  border-radius: 10px;
}
.panel-empty {
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ---- SOL: DM LİSTESİ ---- */
.dm-list {
  overflow-y: auto;
  flex: 1;
}
.dm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--line);
}
.dm-row:hover,
.dm-row.active {
  background: var(--hover);
}
.dm-avatar {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad) center/cover no-repeat;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}
.dm-avatar .dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
  border: 2px solid var(--card);
}
.dm-avatar .dot.online {
  background: #38d39f;
}

/* Profil tamamlama çubuğu */
.comp-row {
  width: 100%;
  margin: 4px 0 10px;
}
.comp-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--card-2);
  overflow: hidden;
}
.comp-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--grad);
  transition: width 0.4s ease;
}
.comp-label {
  display: block;
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--muted);
}

/* Yeni üye rozeti */
.new-badge {
  display: inline-block;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  vertical-align: middle;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #38d39f, #2bb98a);
  color: #fff;
  box-shadow: 0 1px 5px rgba(56, 211, 159, 0.45);
}

/* Keşfet kartı niyet etiketi */
.card-goal {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: #fff;
}

/* @kullanıcı etiketleme (mention) önerileri */
.mention-box {
  display: flex;
  flex-direction: column;
  max-height: 190px;
  overflow-y: auto;
  background: var(--card);
  border-top: 1px solid var(--line);
}
.mention-box button {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  padding: 9px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
}
.mention-box button:hover {
  background: var(--hover);
}
.mb-name {
  font-weight: 600;
  color: var(--text);
}
.mb-uname {
  color: var(--muted);
  font-size: 0.8rem;
}
.mention {
  color: var(--pink);
  font-weight: 600;
}
/* Okundu bilgisi (✓ İletildi / ✓✓ Görüldü) */
.msg-receipt {
  font-size: 0.64rem;
  color: var(--muted);
  text-align: right;
  margin-top: 2px;
  padding-right: 2px;
}
.msg-receipt.seen {
  color: var(--pink);
}
.bubble.me .mention {
  color: #fff;
  text-decoration: underline;
}

/* Mesaja cevap (reply) — giriş üstü alıntı çubuğu */
.reply-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--card-2);
  border-top: 1px solid var(--line);
  border-left: 3px solid var(--pink);
}
.reply-bar-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.reply-bar-name {
  color: var(--pink);
  font-weight: 700;
  font-size: 0.72rem;
}
.reply-bar-text {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reply-bar-x {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
  flex-shrink: 0;
}
.reply-bar-x:hover {
  color: var(--text);
}
/* Baloncuk içinde alıntılanan mesaj */
.bubble-reply {
  display: block;
  border-left: 3px solid rgba(255, 255, 255, 0.45);
  padding: 3px 8px;
  margin-bottom: 5px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.14);
  font-size: 0.78rem;
}
.bubble-reply b {
  display: block;
  font-size: 0.7rem;
  opacity: 0.95;
}
.bubble-reply span {
  display: block;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 230px;
}

/* Akış: kendi gönderine düzenle/sil */
.post-actions {
  margin-left: auto;
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.post-act {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 5px 7px;
  border-radius: 8px;
  opacity: 0.65;
  transition: 0.15s;
}
.post-act:hover {
  background: var(--hover);
  opacity: 1;
}
.post-act.danger:hover {
  background: rgba(255, 80, 105, 0.14);
}

/* Premium rozeti (özelliğin premium olduğunu gösterir) */
.premium-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  vertical-align: middle;
  padding: 1px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5c518, #ff7854);
  color: #fff;
  margin-left: 4px;
}

/* Keşfet filtre butonu */
.discover-top {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.discover-filter-btn {
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s;
}
.discover-filter-btn:hover {
  background: var(--hover);
}
.discover-filter-btn.active {
  border-color: var(--pink);
  color: var(--pink);
}

/* Bağlantı koptu uyarısı */
.conn-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #e0344e;
  color: #fff;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  animation: connSlide 0.25s ease;
}
@keyframes connSlide {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}
.dm-meta {
  flex: 1;
  min-width: 0;
}
.dm-meta .name {
  font-weight: 700;
  font-size: 0.93rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.dm-meta .last {
  color: var(--muted);
  font-size: 0.83rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dm-unread {
  background: var(--pink);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  min-width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- ORTA: CHATBOX ---- */
.chat-panel {
  position: relative;
}
.chat-panel-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
}
.chat-panel-title {
  font-weight: 700;
  font-size: 1.05rem;
}
/* Genel sohbet başlığı animasyonlu (yalnızca #chat-panel-title; DM'de boş) */
#chat-panel-title {
  background: linear-gradient(
    90deg,
    #fd267d,
    #ff7854,
    #ffd56b,
    #ff7854,
    #fd267d
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brandShine 3.5s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  #chat-panel-title {
    animation: none;
  }
}
.chat-panel-peer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-panel-peer .pa {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}
.chat-panel-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--chat-bg);
}
.msg-row {
  display: flex;
  gap: 8px;
  max-width: 78%;
  align-items: flex-end;
}
.msg-row.me {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.msg-row.them {
  align-self: flex-start;
}
.msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--grad) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.msg-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.msg-body .author {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--pink);
  margin: 0 0 2px 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
}
.bubble {
  padding: 9px 14px;
  border-radius: 16px;
  font-size: 0.93rem;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  position: relative;
  max-width: 100%;
}
.bubble.them {
  background: var(--card-2);
  color: var(--text);
  border-bottom-left-radius: 5px;
}
.bubble.me {
  background: var(--grad);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.bubble a {
  color: inherit;
  text-decoration: underline;
}
.bubble .time {
  display: block;
  font-size: 0.64rem;
  opacity: 0.7;
  margin-top: 3px;
  text-align: right;
}
.msg-del {
  position: absolute;
  top: -10px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ff5069;
  color: #fff;
  font-size: 0.7rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.msg-row.me:hover .msg-del,
.bubble .msg-del.show {
  display: flex;
}
.chat-day {
  align-self: center;
  background: var(--chip);
  color: var(--muted);
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 10px;
  margin: 6px 0;
}
.chat-panel-input {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  align-items: center;
}
.chat-panel-input input {
  flex: 1;
  border-radius: 22px;
}
.send-btn {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(253, 38, 125, 0.35);
}
.chat-call-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(56, 211, 159, 0.16);
  color: #18b083;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-call-btn:first-of-type {
  margin-left: auto;
}
.chat-call-btn:hover {
  filter: brightness(0.95);
}
.chat-call-btn.danger {
  background: rgba(255, 80, 105, 0.16);
  color: #ff5069;
}

/* ---- SAĞ: KULLANICI LİSTESİ ---- */
.users-list {
  overflow-y: auto;
  flex: 1;
  padding: 6px;
}
.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.user-row:hover {
  background: var(--hover);
}
.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad) center/cover no-repeat;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  position: relative;
}
.user-avatar .dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
  border: 2px solid var(--card);
}
.user-avatar .dot.online {
  background: #38d39f;
}
.user-meta {
  flex: 1;
  min-width: 0;
}
.user-meta .name {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-meta .sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.lobby-mtabs {
  display: none;
}

/* ============================================================
   PREMIUM ROZET + MESAJ İSİM
   ============================================================ */
.vbadge {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   EMOJI PANELİ (kategorili)
   ============================================================ */
.emoji-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 1.3rem;
  background: var(--card-2);
}
.emoji-btn:hover {
  background: var(--hover);
}
.emoji-panel {
  position: absolute;
  bottom: 72px;
  left: 12px;
  right: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 5;
  overflow: hidden;
}
.emoji-cats {
  display: flex;
  gap: 2px;
  padding: 6px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.emoji-cats::-webkit-scrollbar {
  display: none;
}
.emoji-cat-btn {
  font-size: 1.15rem;
  padding: 5px 9px;
  border-radius: 9px;
  flex-shrink: 0;
  opacity: 0.6;
}
.emoji-cat-btn.active {
  background: var(--card-2);
  opacity: 1;
}
.emoji-grid {
  max-height: 190px;
  overflow-y: auto;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
  gap: 2px;
}
.emoji-grid button {
  font-size: 1.35rem;
  padding: 3px;
  border-radius: 8px;
  line-height: 1;
}
.emoji-grid button:hover {
  background: var(--hover);
}

/* ============================================================
   KEŞFET / SWIPE
   ============================================================ */
.discover-wrap {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-stack {
  position: relative;
  width: 100%;
  height: min(60vh, 540px);
  margin: 4px auto 14px;
}
.swipe-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: var(--card-2) center/cover no-repeat;
  box-shadow: var(--shadow);
  overflow: hidden;
  will-change: transform;
  user-select: none;
  touch-action: pan-y;
}
.swipe-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.25) 38%,
    rgba(0, 0, 0, 0) 60%
  );
}
.swipe-card .card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  color: #fff;
}
.swipe-card .card-name {
  font-size: 1.6rem;
  font-weight: 700;
}
.swipe-card .card-name small {
  font-weight: 400;
  font-size: 1.1rem;
  opacity: 0.9;
}
.swipe-card .card-city {
  font-size: 0.95rem;
  opacity: 0.92;
  margin-top: 2px;
}
.swipe-card .card-bio {
  font-size: 0.88rem;
  opacity: 0.85;
  margin-top: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.swipe-card .card-noimg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: var(--grad);
  color: #fff;
}
.swipe-card .stamp {
  position: absolute;
  top: 26px;
  padding: 6px 16px;
  border: 4px solid;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 2px;
  opacity: 0;
}
.swipe-card .stamp.like {
  left: 20px;
  color: #38d39f;
  border-color: #38d39f;
  transform: rotate(-18deg);
}
.swipe-card .stamp.nope {
  right: 20px;
  color: #ff5069;
  border-color: #ff5069;
  transform: rotate(18deg);
}
.swipe-buttons {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 6px 0 4px;
}
.swipe-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s;
}
.swipe-btn:active {
  transform: scale(0.9);
}
.swipe-btn.pass {
  color: #ff5069;
}
.swipe-btn.like {
  color: #38d39f;
  font-size: 1.8rem;
}
.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
}
.empty-emoji {
  font-size: 3rem;
  margin-bottom: 12px;
}
.empty-state p {
  line-height: 1.5;
}

/* ============================================================
   AKIŞ (FEED)
   ============================================================ */
.feed-wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}
.feed-composer {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.feed-composer .btn-soft {
  align-self: flex-start;
}
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feed-post {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.feed-post .post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}
.feed-post .post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.feed-post .post-author {
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.feed-post .post-time {
  font-size: 0.78rem;
  color: var(--muted);
}
.feed-post .post-image {
  width: 100%;
  display: block;
}
.feed-post .post-caption {
  padding: 10px 14px 14px;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* ============================================================
   PROFİL (görünüm)
   ============================================================ */
.profile-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--grad) center/cover no-repeat;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
}
.profile-view h2 {
  margin: 12px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
#profile-meta {
  margin: 0 0 10px;
}
.profile-edit {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.profile-edit .field-label {
  margin-top: 6px;
}

/* ============================================================
   OVERLAY / MODAL / PROFİL KARTI
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 6, 14, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade 0.2s ease;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.modal-inner,
.profile-card-inner {
  position: relative;
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 380px;
  padding: 26px 22px;
  max-height: 90vh;
  overflow-y: auto;
  animation: pop 0.22s ease;
}
@keyframes pop {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
}
.overlay-close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 1.2rem;
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  z-index: 2;
}
.overlay-close:hover {
  background: var(--hover);
}

.profile-card-inner {
  text-align: center;
}
.pc-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 6px auto 0;
  background: var(--grad) center/cover no-repeat;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.6rem;
  font-weight: 700;
}
.pc-name {
  margin: 14px 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pc-meta {
  margin: 0 0 10px;
}
.pc-bio {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 18px;
}
.pc-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Kullanıcı profili (Instagram tarzı) */
.up-inner {
  max-width: 460px;
}
.up-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.up-photo {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--grad) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}
.up-info h2 {
  margin: 0 0 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.up-info .muted {
  margin: 0;
}
.up-bio {
  margin: 14px 0;
  font-size: 0.93rem;
  line-height: 1.5;
}
.up-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.up-actions button {
  flex: 1;
  margin: 0;
}
.up-posts-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-bottom: 10px;
}
.up-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.up-post {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--card-2) center/cover no-repeat;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  padding: 6px;
  overflow: hidden;
}
.up-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 24px;
  font-size: 0.88rem;
}

/* ============================================================
   SESLİ ARAMA
   ============================================================ */
.ci-photo,
.cs-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 6px auto 14px;
  background: var(--grad) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.6rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.ci-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.call-btn {
  font-weight: 700;
  font-size: 1rem;
  padding: 14px;
  border-radius: 14px;
  color: #fff;
  flex: 1;
}
.call-btn.accept {
  background: #38d39f;
}
.call-btn.reject,
.call-btn.hangup {
  background: #ff5069;
}
.call-screen {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: linear-gradient(160deg, #2a1430, #4a1c3a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  gap: 6px;
}
.cs-photo {
  width: 150px;
  height: 150px;
  font-size: 3.4rem;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(253, 38, 125, 0.5);
  }
  50% {
    box-shadow: 0 0 0 18px rgba(253, 38, 125, 0);
  }
}
.cs-name {
  margin: 8px 0 0;
  font-size: 1.6rem;
}
.cs-status {
  color: rgba(255, 255, 255, 0.8);
  margin: 4px 0;
}
.cs-timer {
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.9);
}
.cs-actions {
  display: flex;
  gap: 24px;
  margin-top: 40px;
}
.cs-actions .call-btn {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  flex: none;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-actions .mute {
  background: rgba(255, 255, 255, 0.18);
}
.cs-actions .mute.on {
  background: #fff;
  color: #4a1c3a;
}

/* ============================================================
   HİKAYE GÖRÜNTÜLEYİCİ
   ============================================================ */
.story-viewer {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(8, 4, 10, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.sv-progress {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
  max-width: 440px;
  margin: 0 auto;
}
.sv-progress .seg {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}
.sv-progress .seg .fill {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}
.sv-progress .seg.done .fill {
  width: 100%;
}
.sv-progress .seg.active .fill {
  animation: storyFill 5s linear forwards;
}
@keyframes storyFill {
  to {
    width: 100%;
  }
}
.sv-top {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  max-width: 460px;
  margin: 0 auto;
  z-index: 2;
}
.sv-author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
}
.sv-author .sa-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.sv-close {
  color: #fff;
  font-size: 1.5rem;
}
.sv-image {
  width: min(440px, 92vw);
  height: min(78vh, 760px);
  border-radius: 14px;
  background: #111 center/contain no-repeat;
}
.sv-caption {
  color: #fff;
  margin-top: 14px;
  text-align: center;
  max-width: 440px;
  padding: 0 20px;
  font-size: 0.95rem;
}
.sv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2.4rem;
  width: 56px;
  height: 80px;
  opacity: 0.7;
}
.sv-prev {
  left: 2vw;
}
.sv-next {
  right: 2vw;
}

/* ============================================================
   EŞLEŞME POPUP + TOAST
   ============================================================ */
.match-popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 8, 20, 0.62);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fade 0.25s ease;
}
.match-popup-inner {
  text-align: center;
  max-width: 360px;
  width: 100%;
}
.match-title {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 22px;
}
.match-photos {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.match-photos .mp {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: var(--grad) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.6rem;
}
.match-photos .mp:nth-child(2) {
  margin-left: -22px;
}
.match-popup .muted {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 22px;
}
.match-popup .btn-ghost {
  color: rgba(255, 255, 255, 0.9);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #20202e;
  color: #fff;
  padding: 12px 22px;
  border-radius: 24px;
  font-size: 0.9rem;
  z-index: 200;
  box-shadow: var(--shadow);
  animation: toastIn 0.25s ease;
  max-width: 90%;
  text-align: center;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .lobby-grid {
    grid-template-columns: 230px 1fr 230px;
    gap: 12px;
    padding: 12px;
  }
}

@media (max-width: 760px) {
  .nav-links {
    margin: 0 auto;
  }
  .nav-link {
    padding: 9px 12px;
    font-size: 0;
    gap: 0;
  }
  .nav-link span {
    font-size: 1.25rem;
    filter: none;
    opacity: 1;
  }
  .nav-me-name {
    display: none;
  }

  .lobby-mtabs {
    display: flex;
    gap: 6px;
    padding: 10px 12px 0;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
  .lobby-mtab {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    background: var(--card);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--muted);
    box-shadow: var(--shadow-sm);
  }
  .lobby-mtab.active {
    background: rgba(253, 38, 125, 0.14);
    color: var(--pink);
  }

  .lobby-grid {
    display: block;
    flex: 1;
    overflow: hidden;
    padding: 10px 12px;
  }
  .panel {
    display: none;
    height: 100%;
  }
  .panel.panel-active {
    display: flex;
  }

  .msg-row {
    max-width: 88%;
  }
  .msg-del {
    display: flex;
  }
  .up-posts {
    grid-template-columns: repeat(3, 1fr);
  }
  .cs-name {
    font-size: 1.4rem;
  }
}

/* ============================================================
   STORY BEĞENİ / YANIT
   ============================================================ */
.sv-footer {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, 92vw);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}
.sv-reply {
  flex: 1;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 24px;
  padding: 12px 16px;
  color: #fff !important;
  font-size: 0.95rem;
}
.sv-reply::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.sv-reply:focus {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: #fff !important;
  outline: none;
}
.sv-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sv-like {
  font-size: 1.9rem;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.12s;
}
.sv-like:active {
  transform: scale(1.3);
}
.sv-likecount {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}
.reply-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.8;
  margin-bottom: 3px;
}

/* ============================================================
   MİSAFİR / KİLİT
   ============================================================ */
.auth-or {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin: 18px 0 10px;
}
.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-or span {
  padding: 0 12px;
}
.pc-lock {
  text-align: center;
}
.pc-lock-icon {
  font-size: 2.6rem;
  margin-bottom: 6px;
}
.pc-lock p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 16px;
}

/* DM "yazıyor..." göstergesi */
.chat-typing {
  padding: 5px 18px;
  font-size: 0.8rem;
  color: var(--pink);
  font-style: italic;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

/* DM güvenlik uyarısı (para/IBAN dolandırıcılık koruması) */
.dm-safety {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 176, 32, 0.13);
  border-bottom: 1px solid var(--line);
  border-left: 3px solid #ffb020;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--text);
}
.dm-safety-ico {
  flex: 0 0 auto;
  font-size: 0.95rem;
}
.dm-safety-txt {
  flex: 1 1 auto;
}
.dm-safety-txt b {
  color: #d98300;
}
.dm-safety-act {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.7rem;
  cursor: pointer;
  white-space: nowrap;
}
.dm-safety-act:hover {
  background: var(--hover);
}
.dm-safety-x {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}
.dm-safety-x:hover {
  color: var(--text);
}
@media (max-width: 600px) {
  .dm-safety {
    flex-wrap: wrap;
    font-size: 0.7rem;
  }
}

/* Bilgi & yasal sayfalar + hesap silme */
.legal-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-links .btn-soft {
  text-align: left;
}
.settings-section.danger {
  border: 1px solid rgba(224, 52, 78, 0.28);
}
.btn-danger {
  width: 100%;
  margin-top: 8px;
  background: transparent;
  color: #e0344e;
  border: 1px solid rgba(224, 52, 78, 0.5);
  border-radius: var(--radius);
  padding: 11px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-danger:hover {
  background: rgba(224, 52, 78, 0.12);
}
.info-title {
  margin: 2px 0 12px;
  font-size: 1.1rem;
}
.info-body {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
  text-align: left;
  max-height: 56vh;
  overflow-y: auto;
  margin-bottom: 14px;
}
.info-body h3 {
  font-size: 0.92rem;
  margin: 14px 0 6px;
  color: var(--pink);
}
.info-body p {
  margin: 0 0 8px;
}
.info-body ul {
  margin: 0 0 8px;
  padding-left: 18px;
}
.info-body li {
  margin: 0 0 5px;
}
.info-body .muted {
  color: var(--muted);
  font-size: 0.78rem;
}

/* Yenilikler (changelog) */
.cl-entry {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cl-entry:last-child {
  border-bottom: none;
}
.cl-date {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 8px;
}
.cl-group {
  margin: 6px 0;
}
.cl-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 4px;
}
.cl-tag.add {
  background: rgba(56, 211, 159, 0.16);
  color: #2bb98a;
}
.cl-tag.fix {
  background: rgba(255, 176, 32, 0.16);
  color: #d98300;
}
.cl-group ul {
  margin: 2px 0 0;
  padding-left: 18px;
}
.cl-group li {
  margin: 0 0 4px;
  font-size: 0.84rem;
}

/* Ayarlar akordeonu (profil modali) — premium kart görünümü */
.acc-item {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.acc-item.open {
  border-color: rgba(253, 38, 125, 0.4);
}
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
}
.acc-head:hover {
  background: var(--hover);
}
.acc-item.open .acc-head {
  color: var(--pink);
}
.acc-chev {
  color: var(--muted);
  font-size: 0.9rem;
  transition: transform 0.18s ease;
}
.acc-item.open .acc-chev {
  transform: rotate(90deg);
  color: var(--pink);
}
.acc-item.danger .acc-head {
  color: #e0344e;
}
.acc-body {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 14px;
}
.acc-item.open .acc-body {
  display: flex;
}
.settings-logout {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-2);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.15s;
}
.settings-logout:hover {
  background: var(--hover);
}

/* Anonim (misafir) modunda gizlenenler */
body.anon .emoji-btn,
body.anon .feed-composer,
body.anon .swipe-buttons {
  display: none !important;
}

/* ============================================================
   MESAJ İFADELERİ (REACTIONS)
   ============================================================ */
.react-btn {
  opacity: 0.35;
  font-size: 1rem;
  padding: 4px;
  align-self: center;
  flex-shrink: 0;
  transition: opacity 0.15s, transform 0.12s;
}
.msg-row:hover .react-btn {
  opacity: 0.85;
}
.react-btn:hover {
  opacity: 1;
  transform: scale(1.2);
}
.msg-reacts {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.msg-row.me .msg-reacts {
  justify-content: flex-end;
}
.react-chip {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1px 7px;
  font-size: 0.78rem;
  cursor: pointer;
  line-height: 1.5;
}
.react-chip.mine {
  border-color: var(--pink);
  background: rgba(253, 38, 125, 0.12);
}
.react-pop {
  position: absolute;
  z-index: 95;
  display: flex;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 5px 8px;
  box-shadow: var(--shadow);
  animation: pop 0.15s ease;
}
.react-pop button {
  font-size: 1.5rem;
  padding: 2px 4px;
  border-radius: 50%;
  transition: transform 0.12s;
}
.react-pop button:hover {
  transform: scale(1.3);
}

/* ============================================================
   SESLİ EŞLEŞME
   ============================================================ */
.voice-wrap {
  max-width: 460px;
  margin: 0 auto;
  padding: 24px 16px;
  width: 100%;
}
.voice-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}
.voice-card h2 {
  margin: 0;
}
.voice-card .field-label,
.voice-card .chip-group,
.voice-card .row,
.voice-card .toggle-row {
  text-align: left;
}
.voice-emoji {
  font-size: 3rem;
}
.voice-searching {
  align-items: center;
}
.voice-radar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 8px auto;
  background: radial-gradient(circle, rgba(253, 38, 125, 0.28), transparent 70%);
  position: relative;
}
.voice-radar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--pink);
  animation: radar 1.6s ease-out infinite;
}
@keyframes radar {
  0% {
    transform: scale(0.4);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}
.vd-emoji {
  font-size: 3rem;
}
.vd-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

/* ============================================================
   PREMIUM
   ============================================================ */
.premium-btn {
  background: linear-gradient(135deg, #f5c518, #ff7854) !important;
  color: #fff;
}
.premium-inner {
  max-width: 440px;
}
.premium-hero {
  text-align: center;
  margin-bottom: 16px;
}
.premium-crown {
  font-size: 3rem;
  animation: floaty 2.6s ease-in-out infinite;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.premium-tiers {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.premium-tier {
  position: relative;
  border-radius: 16px;
  padding: 18px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: var(--card-2);
}
.premium-tier.gold {
  border-color: #f5c518;
}
.premium-tier.diamond {
  border-color: #4cc9f0;
}
.premium-tier .tier-name {
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.premium-tier .tier-price {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 2px 0 12px;
}
.premium-tier ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.premium-tier li {
  font-size: 0.88rem;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.4;
}
.premium-tier li::before {
  content: "✓";
  color: var(--pink);
  font-weight: 800;
  flex-shrink: 0;
}
.tier-coming {
  width: 100%;
  padding: 11px;
  border-radius: 12px;
  font-weight: 800;
  background: var(--line);
  color: var(--muted);
  cursor: not-allowed;
  letter-spacing: 0.5px;
}
.premium-tier .shine {
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    110deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  transform: skewX(-20deg);
  animation: shine 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine {
  0% {
    left: -60%;
  }
  55%,
  100% {
    left: 140%;
  }
}
/* Premium oval efekt (premium kullanıcı avatarı) */
.pc-photo.prem,
.up-photo.prem,
.pcolor-preview {
  position: relative;
  z-index: 0;
}
/* Oval renkli çerçeve — ince, dönen animasyonlu halka (fotoğrafı KAPATMAZ) */
.pc-photo.prem::before,
.up-photo.prem::before,
.pcolor-preview::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  z-index: -1;
  background: conic-gradient(
    from 0deg,
    var(--prem, #f5c518),
    #ffffff,
    var(--prem, #f5c518),
    var(--prem, #f5c518),
    #ffffff,
    var(--prem, #f5c518)
  );
  box-shadow: 0 0 12px -4px var(--prem, #f5c518);
  animation: premSpin 3s linear infinite;
}
@keyframes premSpin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pc-photo.prem::before,
  .up-photo.prem::before,
  .pcolor-preview::before {
    animation: none;
  }
}
.premium-buy {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  width: 100%;
  background: linear-gradient(135deg, #f5c518, #ff7854, #fd267d);
  background-size: 200% auto;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 15px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(245, 197, 24, 0.4);
  animation: brandShine 3s linear infinite;
}
.pb-shine {
  position: absolute;
  top: 0;
  left: -60%;
  width: 35%;
  height: 100%;
  background: linear-gradient(
    110deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transform: skewX(-20deg);
  animation: shine 2.8s ease-in-out infinite;
}
.premium-soon {
  margin-top: 10px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  background: var(--card-2);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}

/* #ui-modal her zaman en üstte (premium modalının altında kalmasın) */
#ui-modal {
  z-index: 300;
}

/* Premium — tek paket görünümü */
.premium-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(245, 197, 24, 0.35);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(245, 197, 24, 0.06),
    rgba(253, 38, 125, 0.04)
  );
}
.premium-perks .perk {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.premium-perks .perk:last-child {
  border-bottom: none;
}
.perk-ico {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 26px;
  text-align: center;
}
.perk-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.perk-txt b {
  font-size: 0.88rem;
  color: var(--text);
}
.perk-txt small {
  font-size: 0.74rem;
  color: var(--muted);
}
.perk-check {
  flex-shrink: 0;
  color: #2bb98a;
  font-weight: 800;
}
.premium-color-box {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-2);
}
.pcolor-head {
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 10px;
}
.pcolor-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pcolor-preview {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--card-2);
}
/* Hazır renk paleti */
.pcolor-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.pcolor-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--card);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  transition: transform 0.12s;
}
.pcolor-swatch:hover {
  transform: scale(1.18);
}
#prem-color {
  width: 46px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.pcolor-hint {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ŞEHİR / SELECT */
.ui-select {
  width: 100%;
  background: var(--input);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 14px 15px;
  font-size: 0.98rem;
  color: var(--text);
  cursor: pointer;
  appearance: none;
}
.ui-select:focus {
  outline: none;
  border-color: var(--pink);
}

/* KULLANICI ADI CANLI KONTROL */
.uname-hint {
  display: block;
  font-size: 0.78rem;
  margin: -4px 2px 2px;
  min-height: 1em;
  font-weight: 600;
}
.uname-hint.ok {
  color: #2bb673;
}
.uname-hint.err {
  color: #e7385b;
}

/* MESAJ MENÜSÜ (Instagram tarzı) */
.msg-menu {
  position: absolute;
  z-index: 96;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 180px;
  animation: pop 0.14s ease;
}
.mm-reacts {
  display: flex;
  gap: 2px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
}
.mm-reacts button {
  font-size: 1.55rem;
  padding: 2px;
  border-radius: 50%;
  transition: transform 0.12s;
}
.mm-reacts button:hover {
  transform: scale(1.3);
}
.mm-actions {
  display: flex;
  flex-direction: column;
  padding: 5px;
}
.mm-actions button {
  text-align: left;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}
.mm-actions button:hover {
  background: var(--hover);
}
.mm-actions button.danger {
  color: #ff5069;
}
.mm-actions button.danger:hover {
  background: rgba(255, 80, 105, 0.12);
}

/* GENEL MODAL */
.ui-modal-inner {
  max-width: 360px;
  text-align: center;
}
.ui-modal-inner h3 {
  margin: 0 0 8px;
}
.ui-modal-inner #ui-modal-input {
  margin-top: 8px;
}
.ui-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.ui-modal-actions button {
  flex: 1;
  margin: 0;
}
