:root {
  --bg: #0b0e17;
  --bg2: #111527;
  --card: #161b30;
  --line: #232a47;
  --text: #eef1ff;
  --muted: #8a92b2;
  --pink: #ff4d7d;
  --violet: #7c5cff;
  --ok: #2dd4a7;
  --grad: linear-gradient(135deg, var(--pink), var(--violet));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(124, 92, 255, .18), transparent),
              radial-gradient(900px 500px at -10% 110%, rgba(255, 77, 125, .14), transparent), var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
.muted { color: var(--muted); }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 23, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.brand span { color: var(--pink); }
.nav { display: flex; align-items: center; gap: 18px; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--pink); }
.nav-avatar img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
.badge {
  background: var(--pink); color: #fff; font-size: 12px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
}
.page { padding: 28px 20px 60px; flex: 1 0 auto; width: 100%; }

/* ---------- Hero (landing) ---------- */
.hero { text-align: center; padding: 70px 10px 40px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.12; font-weight: 800; letter-spacing: -1.5px; }
.hero-sub { color: var(--muted); max-width: 520px; margin: 18px auto 26px; font-size: 17px; line-height: 1.6; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats { margin-top: 26px; color: var(--muted); font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding-bottom: 50px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; text-align: center; }
.feature-icon { font-size: 30px; margin-bottom: 10px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---------- Auth ---------- */
.auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.auth-wrap { width: 100%; max-width: 480px; }
.auth-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 32px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card > .muted { margin-bottom: 20px; }
.auth-alt { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; }
.auth-alt a { color: var(--pink); font-weight: 600; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
select, textarea {
  width: 100%; background: var(--bg2); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 11px 13px; font-size: 15px; outline: none; font-family: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 92, 255, .18); }
textarea { resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.error { color: #ff7a95; font-size: 12.5px; display: block; margin-top: 5px; }

.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.alert-error { background: rgba(255, 77, 125, .12); border: 1px solid rgba(255, 77, 125, .4); color: #ffb3c4; }
.alert-ok { background: rgba(45, 212, 167, .1); border: 1px solid rgba(45, 212, 167, .4); color: #9af0d9; }

.gender-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick {
  border: 1px solid var(--line); border-radius: 10px; padding: 11px; text-align: center;
  cursor: pointer; font-weight: 600; color: var(--muted); transition: all .15s;
}
.pick input { display: none; }
.pick.active, .pick:has(input:checked) { border-color: var(--pink); color: var(--text); background: rgba(255, 77, 125, .08); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 15px;
  padding: 11px 22px; border-radius: 12px; transition: transform .1s, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { opacity: .9; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--violet); }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-sm { padding: 7px 13px; font-size: 14px; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---------- Welcome / blocks ---------- */
.welcome { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.welcome h2 { font-size: 26px; }
.block { margin-bottom: 34px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.block-head h3 { font-size: 19px; }
.block-head a { color: var(--pink); font-size: 14px; font-weight: 600; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform .15s, border-color .15s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); border-color: var(--violet); }
.card-photo { position: relative; aspect-ratio: 1; background: var(--bg2); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.dot {
  position: absolute; bottom: 8px; right: 8px; width: 13px; height: 13px; border-radius: 50%;
  background: #555f80; border: 2.5px solid var(--card);
}
.dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.card-body { padding: 11px 13px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.card-body strong { font-size: 15px; }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; background: var(--card); border: 1px solid var(--line); padding: 14px; border-radius: 14px; margin-bottom: 20px; }
.filters input[type="text"] { flex: 2; min-width: 160px; width: auto; }
.filters select { flex: 1; min-width: 130px; width: auto; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.empty { text-align: center; padding: 40px 0; }

/* ---------- Conversations ---------- */
.conv-list { display: flex; flex-direction: column; gap: 8px; }
.conv {
  display: flex; align-items: center; gap: 13px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 15px; transition: border-color .15s;
}
.conv:hover { border-color: var(--violet); }
.conv img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.conv-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.conv-body span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.conv time { font-size: 12.5px; white-space: nowrap; }
.conv.has-unread { border-color: rgba(255, 77, 125, .5); }
.pill { background: var(--pink); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }

/* ---------- Chat ---------- */
.chat {
  display: flex; flex-direction: column; height: calc(100vh - 170px); min-height: 420px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-peer { display: flex; align-items: center; gap: 11px; }
.chat-peer img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.chat-peer strong { display: block; font-size: 15px; }
.chat-peer .muted { font-size: 12.5px; }
.chat-box { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 9px; }
.bubble {
  max-width: 72%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5;
  word-break: break-word; animation: pop .15s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }
.bubble.mine { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.bubble.theirs { align-self: flex-start; background: var(--bg2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble.mine .m-ticks { display: block; text-align: right; font-size: 11px; letter-spacing: 1px; margin-top: 3px; color: rgba(255,255,255,.55); user-select: none; }
.bubble.mine.seen .m-ticks { color: #9fe8ff; }
.chat-form { display: flex; gap: 10px; padding: 13px 15px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; }

/* ---------- Profile ---------- */
.profile { display: grid; grid-template-columns: 280px 1fr; gap: 26px; align-items: start; }
@media (max-width: 720px) { .profile { grid-template-columns: 1fr; } }
.profile-side { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; text-align: center; }
.profile-side p { margin-bottom: 8px; }
.card-photo.big { aspect-ratio: 1; border-radius: 16px; overflow: hidden; margin-bottom: 15px; }
.profile-side h2 { margin-bottom: 5px; }
.profile-side .btn { margin-top: 15px; }
.profile-main { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.profile-main h3 { margin-bottom: 14px; }
.bio { line-height: 1.65; font-size: 15px; }

.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 26px 0; border-top: 1px solid var(--line); margin-top: auto; flex-shrink: 0; }

.topbar-mobile { display: none; }
.bottom-nav { display: none; }

@media (max-width: 640px) {
  .topbar-inner { height: 56px; }
  .brand { font-size: 19px; }
  .nav { display: none; }
  .topbar-mobile { display: flex; align-items: center; gap: 14px; }
  .topbar-mobile .nav-logout {
    width: 34px; height: 34px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--bg2);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: var(--muted); padding: 0; margin-left: 0;
  }
  .grid-2 { grid-template-columns: 1fr; }
  .chat { height: calc(100vh - 240px); }
  .chat-form input { min-width: 0; }
  input[type="text"], input[type="password"], input[type="email"],
  input[type="number"], select, textarea { font-size: 16px !important; }
  .page { padding: 20px 14px 50px; }

  /* Alt menü (uygulama tarzı) */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    display: flex; justify-content: space-around;
    background: rgba(11, 14, 23, .97);
    border-top: 1px solid var(--line);
    padding: 5px 2px env(safe-area-inset-bottom);
  }
  .bottom-nav a {
    position: relative; flex: 1; min-width: 0;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-size: 10px; font-weight: 600; color: var(--muted);
    padding: 4px 0 3px;
  }
  .bottom-nav a.active { color: var(--pink); }
  .b-icon { font-size: 19px; line-height: 1; }
  .bottom-nav .badge {
    position: absolute; top: -3px; right: calc(50% - 24px);
    padding: 1px 6px; font-size: 9.5px;
  }
}

/* ---------- v2 components ---------- */
.tick { color: #38bdf8; font-size: .8em; }
.star { color: #fbbf24; font-size: .85em; }

.nav-premium { color: #fbbf24 !important; font-weight: 800; }
.msg-nav { position: relative; }

/* ---------- Bildirimler ---------- */
.notif-nav { position: relative; font-size: 17px; line-height: 1; text-decoration: none; }
.notif-badge {
  position: absolute; top: -9px; right: -12px;
  padding: 1px 6px; font-size: 10.5px;
}
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif-item {
  display: flex; align-items: center; gap: 13px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 16px; transition: border-color .15s, background .15s;
}
.notif-item:hover { border-color: var(--pink); }
.notif-item.unread {
  background: rgba(255, 77, 125, .07);
  border-left: 3px solid var(--pink);
}
.notif-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); flex-shrink: 0; }
.notif-icon {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg2); border: 1px solid var(--line); font-size: 18px;
}
.notif-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif-text { font-size: 14.5px; line-height: 1.45; }
.notif-emoji { margin-right: 2px; }
.notif-time { color: var(--muted); font-size: 12.5px; }
.notif-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); margin-left: auto; flex-shrink: 0; }
.nav-logout { color: var(--muted) !important; font-weight: 600; }

/* ---------- Admin panel ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin-bottom: 22px; }
.stat-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 10px; text-align: center;
}
.stat-tile.alert-tile { border-color: rgba(255, 77, 125, .55); background: rgba(255, 77, 125, .07); }
.stat-icon { font-size: 20px; }
.stat-num { font-size: 22px; font-weight: 800; margin-top: 4px; }
.stat-label { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.admin-search { display: flex; gap: 8px; margin-bottom: 12px; }
.admin-search input { flex: 1; }
.admin-table td { vertical-align: middle; padding-top: 9px; padding-bottom: 9px; }
.u-cell { display: flex; align-items: center; gap: 11px; }
.u-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
.u-sub { font-size: 12.5px; }
.you-tag {
  background: var(--grad); color: #fff; font-size: 10.5px; font-weight: 700;
  padding: 1px 7px; border-radius: 999px; margin-left: 4px; vertical-align: middle;
}
.u-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; white-space: nowrap; }
.u-badges { min-width: 30px; text-align: right; }
.btn-xs { padding: 5px 10px; font-size: 12px; }
.btn-gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1a1a1a;
}
.table-wrap { overflow-x: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.chip {
  display: inline-block;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 13px; font-size: 13px; font-weight: 600; color: var(--text);
}
.chip-intent { background: rgba(124,92,255,.14); border-color: rgba(124,92,255,.45); }

.chips-pick { display: flex; flex-wrap: wrap; gap: 7px; }
.pick-sm { padding: 6px 12px; font-size: 13px; border-radius: 999px; }

.profile-actions {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}
.link-danger {
  background: none; border: 0; color: #ff7a95; cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 600; text-decoration: underline;
}
.link-muted {
  background: none; border: 0; color: var(--muted); cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 600;
}
.link-muted:hover { color: var(--text); }
.report-box summary { cursor: pointer; list-style: none; }
.report-box form { display: flex; gap: 6px; margin-top: 8px; }
.report-box input[type="text"] { font-size: 13px; padding: 7px 10px; }
.verify-note { font-size: 12.5px; margin-top: 12px; }
.psec { margin-bottom: 22px; }
.bio { line-height: 1.65; font-size: 15px; }
.liked-btn { color: var(--pink); border-color: rgba(255,77,125,.5) !important; }
.filters-age { display: flex; gap: 8px; flex: 1; min-width: 220px; max-width: 300px; }
.filters-age input {
  min-width: 0; width: 100%; text-align: center;
}
.filters-age input::placeholder { text-align: center; opacity: .75; }
.filters .btn { flex-shrink: 0; }
.filter-note { flex-basis: 100%; font-size: 13px; }
.filters select[disabled], .filters input[disabled] { color: var(--muted); }
.filters input[disabled], .filters select[disabled] { opacity: .45; cursor: not-allowed; }
.filter-note { width: 100%; font-size: 13px; }
.filter-note a { color: #fbbf24; font-weight: 700; }

.card-link { display: block; }
.heart-btn {
  position: absolute; top: 9px; left: 9px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(11,14,23,.72); color: #fff; font-size: 16px; backdrop-filter: blur(4px);
}
.heart-btn:hover { transform: scale(1.1); }
.heart-btn.liked { color: var(--pink); }
.card { position: relative; }
.msg-btn {
  display: block; text-align: center; padding: 9px; font-weight: 700; font-size: 13.5px;
  border-top: 1px solid var(--line); color: var(--pink);
}
.msg-btn:hover { background: rgba(255,77,125,.08); }

.teaser { position: relative; text-align: center; }
.teaser-count { font-size: 20px; margin-bottom: 16px; }
.teaser-count span { color: var(--pink); font-weight: 800; }
.cards.blurred { filter: blur(10px); opacity: .55; user-select: none; pointer-events: none; }
.teaser-cta {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px;
  align-items: center; justify-content: center; z-index: 3;
}

.composer {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; margin-bottom: 14px; transition: border-color .2s, box-shadow .2s;
}
.composer:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 92, 255, .14); }
.composer-top { display: flex; gap: 12px; align-items: flex-start; }
.composer-avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--line); flex-shrink: 0; margin-top: 2px;
}
.composer textarea {
  border: 0; background: transparent; padding: 9px 4px; resize: vertical;
  font-size: 16px; line-height: 1.55; min-height: 68px;
}
.composer textarea:focus { box-shadow: none; }
.composer-bar {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px;
}
.attach-chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px dashed var(--line); border-radius: 999px; padding: 8px 16px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: all .15s; user-select: none; white-space: nowrap;
}
.attach-chip:hover { border-color: var(--pink); color: var(--text); background: rgba(255, 77, 125, .05); }
.char-counter { margin-left: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.char-counter b { color: var(--text); font-weight: 700; }
.btn-share { padding: 9px 28px; }
.btn-share:disabled { opacity: .45; cursor: not-allowed; }
.composer-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.composer-preview[hidden] { display: none !important; }
.preview-thumb { position: relative; }
.preview-thumb img {
  width: 120px; height: 120px; border-radius: 12px;
  object-fit: cover; border: 1px solid var(--line); display: block;
}
.preview-thumb video {
  width: 120px; height: 120px; border-radius: 12px;
  object-fit: cover; border: 1px solid var(--line); display: block; background: #000;
}
.preview-video-badge {
  position: absolute; left: 6px; bottom: 6px;
  background: rgba(0, 0, 0, .65); color: #fff;
  font-size: 10.5px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px; pointer-events: none;
}
.video-error-note {
  margin-top: 8px; font-size: 13px; color: #ff8fa3;
  background: rgba(229, 72, 77, .08); border: 1px solid rgba(229, 72, 77, .25);
  border-radius: 10px; padding: 10px 12px;
}
.preview-remove {
  position: absolute; top: -8px; right: -8px; width: 24px; height: 24px;
  border-radius: 50%; background: #e5484d; color: #fff; border: 2px solid var(--card);
  cursor: pointer; font-size: 14px; line-height: 1; display: flex;
  align-items: center; justify-content: center; transition: transform .12s;
}
.preview-remove:hover { transform: scale(1.12); }

.feed-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.feed-tabs a {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.feed-tabs a.active { background: var(--grad); color: #fff; border-color: transparent; }

.post {
  background: linear-gradient(180deg, rgba(124, 92, 255, .05), transparent 45%), var(--card);
  border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  margin-bottom: 16px; scroll-margin-top: 80px;
  transition: border-color .2s, box-shadow .25s;
}
.post:hover { border-color: rgba(124, 92, 255, .42); box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.post-avatar {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box;
}
.post-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.post-author {
  font-weight: 800; font-size: 15px; letter-spacing: -.2px;
  width: max-content; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.post-author:hover { color: var(--pink); }
.post-sub { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.post-del button {
  background: none; border: 0; cursor: pointer; color: var(--text);
  padding: 6px 8px; border-radius: 8px; transition: all .15s;
  display: flex; align-items: center;
}
.post-del svg { width: 16px; height: 16px; opacity: .7; display: block; }
.post-del button:hover { background: rgba(229, 72, 77, .14); }
.post-del button:hover svg { opacity: 1; color: var(--pink); }
.post-body { line-height: 1.65; font-size: 15px; margin-bottom: 12px; white-space: pre-wrap; word-break: break-word; }
.post-img-wrap {
  display: block; margin: -2px -2px 12px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); max-height: 480px;
}
.post-img { width: 100%; max-height: 478px; object-fit: cover; display: block; transition: transform .3s; }
.post-img:hover { transform: scale(1.02); }
.post-imgs { display: grid; gap: 6px; margin-bottom: 12px; }
.post-imgs.multi { grid-template-columns: 1fr 1fr; }
.post-imgs a {
  display: block; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg2);
}
.post-imgs img { width: 100%; height: 230px; object-fit: cover; display: block; transition: transform .25s; }
.post-imgs video {
  width: 100%; max-height: 500px; object-fit: contain;
  display: block; background: #000;
}
.post-imgs a:hover img { transform: scale(1.03); }

/* ---------- Carousel (çoklu foto) ---------- */
.post-imgs.multi.car-on {
  display: block; position: relative; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--line); background: #000;
}
.car-track { display: flex; transition: transform .28s ease; touch-action: pan-y; }
.car-track > a {
  flex: 0 0 100%; min-width: 0;
  aspect-ratio: 4 / 5; max-height: 500px;
  background: #000;
}
.car-track > a:hover img { transform: none; }
.car-track img { width: 100%; height: 100% !important; object-fit: contain !important; transition: none !important; }
.car-track video { width: 100%; height: 100% !important; object-fit: contain !important; background: #000; }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff;
  border: 0; cursor: pointer; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit; padding-bottom: 3px;
  transition: background .15s;
}
.car-btn:hover { background: rgba(0, 0, 0, .8); }
.car-prev { left: 10px; }
.car-next { right: 10px; }
.car-btn[hidden] { display: none !important; }
.car-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; gap: 5px; justify-content: center; pointer-events: auto;
}
.car-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .45); cursor: pointer; transition: all .2s;
}
.car-dot.active { background: #fff; width: 18px; }
.car-count {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0, 0, 0, .6); color: #fff;
  font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
}
.post-foot { display: flex; align-items: flex-start; gap: 10px; margin-top: 2px; }
.like-post-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg2); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 7px 16px; font-size: 13.5px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all .15s;
}
.like-post-btn .hp { font-size: 19px; line-height: 1; transition: transform .15s; }
.like-post-btn:hover .hp { transform: scale(1.18); }
.like-post-btn:hover { border-color: rgba(255, 77, 125, .55); color: var(--pink); transform: translateY(-1px); }
.like-post-btn.liked { color: #fff; background: var(--grad); border-color: transparent; }
.c-toggle {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none;
  color: var(--muted); font-size: 13.5px; font-weight: 700; font-family: inherit;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 17px; transition: all .15s;
}
.c-toggle:hover { border-color: var(--violet); color: var(--text); }
.comments-panel { width: 100%; margin-top: 12px; }
.comments-panel[hidden] { display: none !important; }
.c-count { background: var(--grad); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }

.share-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 34px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; font-family: inherit;
  color: var(--text);
  transition: all .15s;
}
.share-toggle svg { width: 17px; height: 17px; }
.share-toggle:hover, .share-toggle.active { border-color: var(--pink); color: var(--pink); background: rgba(255, 77, 125, .09); transform: translateY(-1px); }
.share-panel {
  width: 100%; margin-top: 12px;
  display: flex; flex-direction: column; gap: 7px;
}
.share-panel[hidden] { display: none !important; }
.share-title { font-size: 13px; padding-left: 4px; }
.share-target {
  display: flex; align-items: center; gap: 11px; width: 100%;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 13px;
  padding: 9px 13px; cursor: pointer; font-family: inherit; color: var(--text);
  text-align: left; transition: all .15s; font-size: 14px;
}
.share-target:hover { border-color: var(--pink); transform: translateY(-1px); }
.share-target img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.share-go { margin-left: auto; color: var(--pink); font-weight: 700; font-size: 13px; }
.comments { display: flex; flex-direction: column; gap: 8px; }
.comment {
  display: flex; gap: 9px; align-items: flex-start;
  background: var(--bg2); border-radius: 13px; padding: 9px 13px; font-size: 13.5px;
  line-height: 1.55; border: 1px solid var(--line);
}
.comment img { width: 27px; height: 27px; border-radius: 50%; object-fit: cover; flex-shrink: 0; margin-top: 1px; }
.comment div { min-width: 0; word-break: break-word; }
.comment strong { color: var(--pink); margin-right: 5px; }
.comment-form { display: flex; gap: 8px; margin-top: 11px; }
.comment-form input { flex: 1; padding: 9px 14px; font-size: 13.5px; border-radius: 999px; }

.chat-form .attach-btn {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line);
  cursor: pointer; font-size: 17px; flex-shrink: 0;
}
.attach-btn:hover { border-color: var(--violet); }
.bubble-img { max-width: 240px; max-height: 240px; border-radius: 10px; display: block; }
.attach-btn.has-file { border-color: var(--pink); color: var(--pink); background: rgba(255,77,125,.08); }
.attach-state {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  background: rgba(255, 77, 125, .09); border: 1px solid rgba(255, 77, 125, .35);
  color: var(--pink); border-radius: 999px; padding: 5px 6px 5px 13px;
  font-size: 12.5px; font-weight: 700;
}
.attach-state[hidden] { display: none !important; }
.attach-state button {
  width: 18px; height: 18px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--pink); color: #fff; font-size: 12px; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.attach-state button:hover { filter: brightness(1.1); }

/* ---------- Emoji picker ---------- */
.emoji-wrap { position: relative; flex-shrink: 0; }
.emoji-btn {
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg2); cursor: pointer; font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding: 0;
  font-family: inherit; transition: all .15s;
}
.emoji-btn:hover { border-color: var(--violet); }
.emoji-pop {
  position: absolute; bottom: calc(100% + 8px); right: 0; z-index: 60;
  width: 264px; max-width: calc(100vw - 40px); max-height: 208px; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 9px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
}
.emoji-pop[hidden] { display: none !important; }
.emoji-item {
  background: none; border: 0; font-size: 19px; line-height: 1;
  padding: 4px 0; border-radius: 8px; cursor: pointer; font-family: inherit;
}
.emoji-item:hover { background: rgba(255, 77, 125, .12); transform: scale(1.15); }
.bubble-imgs { display: grid; gap: 4px; margin-bottom: 4px; max-width: 300px; }
.bubble-imgs .bubble-img { margin-bottom: 0; }
.bubble-imgs.multi { grid-template-columns: 1fr 1fr; }
.bubble-imgs.multi .bubble-img { max-width: none; width: 100%; height: 110px; object-fit: cover; }

.premium-hero { text-align: center; margin-bottom: 26px; }
.premium-hero h1 { font-size: 32px; letter-spacing: -1px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-items: stretch; }
.plan {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.plan-hot { border-color: var(--pink); box-shadow: 0 0 40px rgba(255,77,125,.18); }
.plan-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 800;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 16px; color: var(--muted); }
.price { font-size: 30px; font-weight: 800; }
.price span { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 14px; flex: 1; }
.center-note { text-align: center; margin-top: 24px; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.ta-r { text-align: right; }
.btn-danger { background: #e5484d; color: #fff; }
.report-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--card); border: 1px solid rgba(255,77,125,.35); border-radius: 12px;
  padding: 13px 16px; margin-bottom: 10px;
}
.report-row p { font-size: 13.5px; margin-top: 3px; }
.report-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

@media (max-width: 720px) {
  .nav { gap: 9px; font-size: 12.5px; }
  .nav-premium { display: none; }
  .report-row { flex-direction: column; align-items: stretch; }
  .report-actions { justify-content: flex-end; }
}
.bubble.pending { opacity: .55; }

/* ---------- Sohbet girdisi (emoji input içinde) ---------- */
.chat-input-wrap { position: relative; flex: 1; display: flex; align-items: center; min-width: 0; }
.chat-input-wrap input { flex: 1; min-width: 0; padding-right: 42px; }
.chat-input-wrap .emoji-wrap { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); }
.chat-input-wrap .emoji-btn {
  width: 34px; height: 34px; background: transparent; border: none;
  font-size: 19px; border-radius: 8px; color: var(--muted);
}
.chat-input-wrap .emoji-btn:hover { background: var(--bg2); color: var(--text); }
.chat-input-wrap .emoji-pop { bottom: calc(100% + 8px); right: 0; top: auto; transform: none; }

/* ---------- Yazıyor balonu ---------- */
.typing-bubble {
  display: inline-flex; align-items: center; gap: 4px;
  width: fit-content; margin: 0 auto 0 14px; padding: 6px 14px;
  font-size: 12px; color: var(--muted);
  background: var(--bg2); border: 1px solid var(--line); border-radius: 999px;
}
.typing-bubble[hidden] { display: none !important; }
.typing-bubble .tb-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--pink);
  animation: tb-bounce 1.2s ease infinite;
}
.typing-bubble .tb-dot:nth-child(2) { animation-delay: .2s; }
.typing-bubble .tb-dot:nth-child(3) { animation-delay: .4s; }
.typing-bubble .tb-txt { margin-left: 4px; color: var(--pink); font-weight: 700; }
@keyframes tb-bounce { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ---------- Yazıyor göstergesi ---------- */
.peer-status.typing-on { color: var(--pink); font-weight: 700; }
.peer-status.typing-on::after {
  content: '';
  display: inline-block; width: 1.3em; text-align: left;
  animation: typing-dots 1.2s steps(1, end) infinite;
}
@keyframes typing-dots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
}

/* ---------- Sohbet araçları (engelle/şikâyet) ---------- */
.chat-tools { margin-left: auto; display: flex; gap: 6px; flex-shrink: 0; }
.dist-badge {
  display: inline-block; vertical-align: middle;
  background: var(--bg2); border: 1px solid var(--line); color: var(--muted);
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  white-space: nowrap; align-self: center; margin-right: 2px;
}
.chat-tool-btn {
  width: 30px; height: 30px; border-radius: 8px;
  background: none; border: 1px solid var(--line);
  cursor: pointer; font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding: 0;
  color: var(--muted); transition: all .15s;
}
.chat-tool-btn:hover { border-color: var(--pink); color: var(--text); transform: translateY(-1px); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5, 7, 15, .93);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox img {
  max-width: min(1100px, 94vw); max-height: 86vh;
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .65);
}
.lb-close {
  position: absolute; top: 12px; right: 16px;
  background: rgba(0, 0, 0, .5); border: 0; border-radius: 50%;
  width: 40px; height: 40px; font-size: 26px; line-height: 1;
  color: #fff; cursor: pointer; transition: background .15s;
}
.lb-close:hover { background: var(--pink); }
.lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 32px; line-height: 1; cursor: pointer; padding-bottom: 4px;
  transition: background .15s;
}
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255, 77, 125, .8); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
.lb-count {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: rgba(0, 0, 0, .6); color: #fff;
  font-size: 12.5px; font-weight: 700; padding: 4px 14px; border-radius: 999px;
}

/* ---------- Eşleşme modalı ---------- */
.match-modal {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(5, 7, 15, .88);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.match-card {
  background: var(--card); border: 1px solid rgba(255, 77, 125, .45);
  border-radius: 24px; padding: 36px 28px 28px;
  max-width: 350px; width: 100%; text-align: center;
  box-shadow: 0 24px 80px rgba(255, 77, 125, .25), 0 10px 40px rgba(0, 0, 0, .5);
  animation: match-pop .4s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes match-pop {
  from { transform: scale(.55) rotate(-4deg); opacity: 0; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}
.match-title {
  font-size: 27px; font-weight: 900; letter-spacing: -.5px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 20px;
}
.match-avatars { display: flex; justify-content: center; margin-bottom: 16px; }
.match-avatars img {
  width: 86px; height: 86px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--pink); box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
.match-avatars img + img { margin-left: -20px; border-color: var(--violet); }
.match-sub { font-size: 14px; line-height: 1.5; }
.match-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 22px; }

/* ---------- Keşfet destesi (tek tek kart) ---------- */
.deck-zone { max-width: 420px; margin: 0 auto; }
.deck-count { text-align: center; margin-bottom: 14px; font-size: 13.5px; }
.deck-hint { color: var(--muted); }
.deck {
  position: relative;
  /* Kartların yüksek z-index'i header/bottom-nav'in üstüne çıkmasın:
     kendi stacking context'ini oluşturur */
  z-index: 0;
  height: min(58vh, 520px);
  min-height: 360px;
  touch-action: pan-y;
}
.deck-card {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .38);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
  transition: transform .25s, filter .25s, opacity .25s;
}
.deck-card[data-pos] { display: flex; }
.deck-card[data-pos="0"] { cursor: grab; filter: none; }
.deck-card[data-pos="1"] { transform: translateY(13px) scale(.963); filter: brightness(.8); cursor: default; }
.deck-card[data-pos="2"] { transform: translateY(25px) scale(.926); filter: brightness(.62); cursor: default; }
.deck-card.dragging { transition: none !important; cursor: grabbing; }
.deck-card a { pointer-events: auto; }
.deck-photo { flex: 1 1 auto; min-height: 0; position: relative; background: var(--bg2); overflow: hidden; }
.deck-photo img {
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}
.stamp {
  position: absolute; top: 20px;
  padding: 5px 16px; border: 3px solid; border-radius: 12px;
  font-weight: 900; font-size: 21px; letter-spacing: 2px;
  opacity: 0; pointer-events: none;
}
.stamp-like { left: 18px; color: var(--ok); border-color: var(--ok); transform: rotate(-14deg); }
.stamp-nope { right: 18px; color: #ff5f6d; border-color: #ff5f6d; transform: rotate(14deg); }
.deck-info {
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--card); border-top: 1px solid var(--line);
}
.deck-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.deck-id strong { font-size: 17px; }
.deck-id strong a:hover { color: var(--pink); }
.deck-meta { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck-dist { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.deck-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 24px;
  background: var(--bg2);
  border: 1px dashed var(--line); border-radius: 22px;
}
.deck-actions { display: flex; justify-content: center; gap: 20px; margin-top: 20px; }
.act-btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line);
  font-size: 25px; line-height: 1; cursor: pointer; padding: 0;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s, color .15s, border-color .15s, background .15s;
}
.act-btn:active { transform: scale(.92); }
.act-btn:hover { transform: scale(1.08); color: var(--text); }
.act-pass:hover { color: #ff5f6d; border-color: #ff5f6d; }
.act-like { color: var(--pink); }
.act-like:hover { color: var(--pink); border-color: var(--pink); box-shadow: 0 0 18px rgba(255, 77, 125, .35); }
.act-like.liked { background: rgba(255, 77, 125, .16); border-color: var(--pink); }
@media (max-width: 640px) {
  .deck { height: min(56vh, 480px); min-height: 320px; }
}


/* ---------- RESPONSIVE İYİLEŞTİRME (mobil öncelikli) ---------- */
@media (max-width: 720px) {
  /* Sohbet başlığı: kompakt ama okunur */
  .chat-head { padding: 10px 12px; gap: 8px; }
  .chat-peer img { width: 36px; height: 36px; }
  .chat-peer > div { min-width: 0; max-width: 34vw; }
  .chat-peer strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .peer-status { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

  /* Mesaj baloncukları daha geniş, kutu daha az boşluklu */
  .bubble { max-width: 86%; font-size: 14px; }
}

@media (max-width: 640px) {
  /* Sohbet ekranı: üst bar + alt menüye rağmen maksimum yükseklik (dvh mobil tarayıcı çubuğunu hesaba katar) */
  .chat {
    height: calc(100vh - 208px);
    height: calc(100dvh - 196px);
    min-height: 360px;
    border-radius: 14px;
  }
  .chat-box { padding: 12px; gap: 8px; }

  /* MESAJ YAZMA SATIRI: girdi alanına yer aç */
  .chat-form { padding: 9px 10px; gap: 6px; }
  .chat-form .attach-btn,
  .emoji-btn { width: 38px; height: 40px; font-size: 16px; }
  .chat-form input[type="text"] { padding-left: 12px; padding-right: 40px; }
  .chat-form .btn-primary { padding: 10px 13px; font-size: 13px; border-radius: 10px; flex-shrink: 0; }
  .attach-state { padding: 4px 5px 4px 10px; font-size: 11.5px; gap: 5px; }
  .bubble-img { max-width: min(220px, 58vw); max-height: min(220px, 42vh); }

  /* Mesaj listesi sayfası */
  .conv { padding: 12px 13px; }
}

@media (max-width: 460px) {
  /* Çok dar ekranlar: mesafe rozetini gizle, araçları sıkılaştır */
  .dist-badge { display: none; }
  .chat-tools { gap: 4px; }
  .chat-tool-btn { width: 29px; height: 29px; font-size: 12.5px; border-radius: 7px; }
  .chat-peer > div { max-width: 30vw; }
  .btn-lg { width: 100%; justify-content: center; }
}
