:root {
  --pistachio: #93C572;
  --pistachio-dark: #6FA64F;
  --pistachio-deep: #4E7C36;
  --pistachio-light: #EAF4DE;
  --bg: #F6FAF0;
  --white: #ffffff;
  --ink: #22381A;
  --muted: #6B7A5E;
  --line: #DCEACB;
  --shadow: 0 10px 30px rgba(79, 108, 51, 0.12);
  --radius: 18px;
  --font: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  font-family: var(--font);
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
}

body { -webkit-font-smoothing: antialiased; }

.hidden { display: none !important; }

/* ---------- Genel ---------- */
.btn {
  font-family: var(--font);
  font-weight: 800;
  border: none;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 15px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: scale(.96); }

.btn-green {
  background: linear-gradient(135deg, var(--pistachio), var(--pistachio-dark));
  color: #fff;
  box-shadow: 0 6px 18px rgba(111, 166, 79, .35);
}
.btn-green:hover { box-shadow: 0 8px 24px rgba(111, 166, 79, .5); }

.btn-outline {
  background: #fff;
  color: var(--pistachio-deep);
  border: 2px solid var(--pistachio);
}
.btn-outline:hover { background: var(--pistachio-light); }

.btn-block { width: 100%; }

.icon-btn {
  font-size: 22px;
  background: var(--pistachio-light);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--pistachio-deep);
}
.icon-btn:hover { background: var(--pistachio); color: #fff; }

/* ---------- Giriş / Kayıt ---------- */
.auth-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f5f7f2;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 34px;
  text-align: center;
}

.auth-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: 0 auto 4px;
  display: block;
}
.auth-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--pistachio-deep);
  margin-bottom: 2px;
}

.tagline {
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  margin: 4px auto 24px;
  max-width: 300px;
}

.brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; }

.logo-badge {
  width: 56px; height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--pistachio), var(--pistachio-deep));
  color: #fff;
  font-size: 30px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(78, 124, 54, .4);
}
.logo-badge.small { width: 38px; height: 38px; border-radius: 12px; font-size: 20px; }

.logo-img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; box-shadow: 0 6px 16px rgba(78, 124, 54, .35); }
.logo-img.small { width: 36px; height: 36px; border-radius: 10px; box-shadow: none; }

.logo-text { font-size: 34px; font-weight: 900; letter-spacing: 1px; color: var(--pistachio-deep); }
.logo-text.small { font-size: 20px; }

.tagline { text-align: center; color: var(--muted); font-weight: 600; margin-bottom: 22px; }

.auth-tabs {
  display: flex;
  background: var(--pistachio-light);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 22px;
}
.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-weight: 800;
  font-size: 15px;
  padding: 11px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
}
.auth-tab.active { background: var(--white); color: var(--pistachio-deep); box-shadow: 0 3px 8px rgba(0,0,0,.08); }

.auth-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin: 12px 0 0;
  text-align: left;
}
.auth-form input,
.auth-form select,
.auth-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid #dbdbdb;
  border-radius: 9px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  background: #fafafa;
  outline: none;
  transition: border-color .12s, background .12s;
}
.auth-form input:focus, .auth-form select:focus, .auth-form textarea:focus {
  border-color: var(--pistachio-dark);
  background: #fff;
}
.auth-form textarea { resize: vertical; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.auth-form .btn { margin-top: 18px; }

.auth-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.auth-link {
  background: none;
  border: none;
  color: var(--pistachio-deep);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: var(--font);
}
.auth-link:hover { color: var(--pistachio-dark); }

/* ---------- Chip'ler ---------- */
.chip-group-label {
  font-size: 13px; font-weight: 700; color: var(--muted);
  margin: 18px 0 8px;
  text-align: left;
}
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; text-align: left; }
.chip {
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all .12s;
}
.chip.selected {
  background: var(--pistachio);
  border-color: var(--pistachio-dark);
  color: #fff;
  box-shadow: 0 3px 10px rgba(111,166,79,.35);
}

.photo-upload {
  border: 2px dashed var(--pistachio);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  margin-top: 16px;
  color: var(--pistachio-deep);
  font-weight: 700;
  font-size: 14px;
}
.photo-upload input { display: none; }

/* ---------- Uygulama ---------- */
.app-view { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--white);
  border-bottom: 2px solid var(--pistachio-light);
  position: sticky;
  top: 0;
  z-index: 20;
}

.content { flex: 1; padding: 18px 16px 90px; max-width: 560px; width: 100%; margin: 0 auto; }

.view { display: none; }
.view.active { display: block; animation: fadeUp .25s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 2px solid var(--pistachio-light);
  display: flex;
  justify-content: space-around;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  z-index: 30;
}
.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  font-family: var(--font);
  font-weight: 700;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  padding: 4px 10px;
  border-radius: 12px;
}
.nav-btn .nav-icon { font-size: 22px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.nav-btn .nav-icon svg { width: 23px; height: 23px; }
.nav-btn.active { color: var(--pistachio-deep); }
.nav-btn.active .nav-icon { transform: scale(1.15); }
.badge {
  position: absolute;
  top: 0; right: 4px;
  background: #e55d5d;
  color: #fff;
  font-size: 10px; font-weight: 800;
  min-width: 17px; height: 17px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ---------- Eşleşme kartı ---------- */
.match-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
}
.match-card {
  width: 100%;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  animation: fadeUp .3s ease;
  display: flex;
  flex-direction: column;
}
.match-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  background: var(--pistachio-light);
  max-height: 50vh;
  flex-shrink: 0;
}
.match-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.photo-scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0));
  pointer-events: none;
}
.photo-info {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.photo-info .match-name { color: #fff; }
.photo-info .match-name .age { color: rgba(255,255,255,.85); }

.liked-me-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,.95);
  color: var(--pistachio-deep);
  font-weight: 800;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
  z-index: 2;
}

.match-info { padding: 16px 18px 4px; flex-shrink: 0; }
.match-name {
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}
.match-name .age { color: var(--muted); font-weight: 800; font-size: 20px; }
.match-meta { color: var(--muted); font-size: 14px; margin-top: 2px; font-weight: 600; }
.match-bio { color: var(--ink); font-size: 14px; margin: 12px 0; font-weight: 500; }

.chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sport-tag {
  background: var(--pistachio-light);
  color: var(--pistachio-deep);
  font-weight: 800;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
}

.common-box {
  background: var(--bg);
  border: 2px solid var(--pistachio-light);
  border-radius: 14px;
  padding: 10px 12px;
  margin-top: 12px;
}
.common-box .common-title {
  font-size: 12px; font-weight: 800; color: var(--pistachio-deep);
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 6px;
}
.common-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.common-tag {
  background: var(--pistachio-light);
  color: var(--pistachio-deep);
  font-weight: 800;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
}

.match-actions {
  display: flex;
  justify-content: center;
  gap: 26px;
  padding: 18px 0 24px;
}
.round-btn {
  width: 62px; height: 62px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.14);
  transition: transform .12s;
  display: flex; align-items: center; justify-content: center;
}
.round-btn:active { transform: scale(.9); }
.round-btn.pass { background: #fff; border: 3px solid #e55d5d; }
.round-btn.like { background: linear-gradient(135deg, var(--pistachio), var(--pistachio-dark)); border: 3px solid var(--pistachio-deep); }

.round-btn .heart-icon {
  display: block; width: 30px; height: 30px;
  background: url('data:image/svg+xml;utf8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22%23fff%22%3E%3Cpath d=%22M12 21s-6.7-4.3-9.3-8.1C.9 10.2 2 7 4.8 6.3c1.8-.5 3.8.3 4.9 1.8L12 10l2.3-1.9c1.1-1.5 3.1-2.3 4.9-1.8 2.8.7 3.9 3.9 2.1 6.6C18.7 16.7 12 21 12 21z%22/%3E%3C/svg%3E') center/contain no-repeat;
}
.round-btn .x-icon {
  display: block; width: 28px; height: 28px;
  background: url('data:image/svg+xml;utf8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23e55d5d%22 stroke-width=%223.5%22 stroke-linecap=%22round%22%3E%3Cpath d=%22M6 6l12 12M18 6L6 18%22/%3E%3C/svg%3E') center/contain no-repeat;
}

.match-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.match-empty .big { font-size: 46px; margin-bottom: 10px; }
.match-empty h3 { color: var(--ink); font-weight: 800; margin-bottom: 6px; }

/* ---------- Sohbet ---------- */
.chat-app {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 250px);
  height: calc(100dvh - 250px);
  min-height: 340px;
}

.chat-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  padding: 30px 20px;
}
.chat-empty-emoji { font-size: 40px; margin-bottom: 10px; }
.chat-empty-msg { color: var(--muted); font-weight: 600; font-size: 14px; padding: 30px 10px; text-align: center; }

/* --- Liste paneli --- */
.chat-list-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.chat-list-head {
  font-weight: 900;
  font-size: 18px;
  color: var(--ink);
  padding: 2px 4px 12px;
}
.chat-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
}
.chat-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .12s, background .12s;
}
.chat-list-item:hover { border-color: var(--pistachio); }
.chat-list-item.active { border-color: var(--pistachio-dark); background: var(--pistachio-light); }
.chat-list-item .mini-avatar { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.chat-list-item .mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-item-main { flex: 1; min-width: 0; }
.chat-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat-item-name { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item-time { font-size: 11px; color: var(--muted); font-weight: 700; flex-shrink: 0; }
.chat-item-last { font-size: 13px; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.chat-item-badge {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #e55d5d;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  flex-shrink: 0;
}

/* --- Konuşma paneli --- */
.chat-conversation {
  display: none;
  flex: 1;
  min-width: 0;
  min-height: 0;
}
.chat-app.open .chat-list-panel { display: none; }
.chat-app.open .chat-conversation { display: flex; }
.chat-conversation .chat-empty-state { display: none; }
.chat-app.open .chat-conversation .chat-empty-state { display: none; }

.chat-conv-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.conv-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 2px solid var(--pistachio-light);
}
.conv-back {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  color: var(--pistachio-deep);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#convAvatar { display: inline-flex; flex-shrink: 0; width: 40px; height: 40px; }
.conv-header .mini-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.conv-header .mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.conv-meta { flex: 1; min-width: 0; }
.conv-name { font-weight: 900; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-sub { display: block; font-size: 12px; color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.group-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pistachio), var(--pistachio-deep));
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(78, 124, 54, .3);
}
.chat-list-item .group-avatar { width: 50px; height: 50px; }
.conv-header .group-avatar { width: 40px; height: 40px; font-size: 16px; box-shadow: none; }

.conv-body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  background-color: #fbfdf7;
  overflow: hidden;
}
.chat-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  opacity: .08;
  pointer-events: none;
  z-index: 0;
}

.conv-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
  -webkit-overflow-scrolling: touch;
}
.msg { position: relative; z-index: 1; }
.msg {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.msg.mine { align-self: flex-end; background: linear-gradient(135deg, var(--pistachio), var(--pistachio-dark)); color: #fff; border-bottom-right-radius: 5px; }
.msg.theirs { align-self: flex-start; background: var(--white); border-bottom-left-radius: 5px; }
.msg-who { display: block; font-size: 11px; font-weight: 800; color: var(--pistachio-deep); margin-bottom: 2px; }
.msg.mine .msg-who { color: #d8f0c0; }
.msg-time { display: block; font-size: 10px; opacity: .75; margin-top: 3px; font-weight: 700; }
.msg.mine .msg-time { text-align: right; color: #eef7e6; }

.conv-input { display: flex; gap: 8px; padding: 12px; border-top: 2px solid var(--pistachio-light); flex-shrink: 0; }
.conv-input input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  outline: none;
}
.conv-input input:focus { border-color: var(--pistachio); }
.conv-input .btn { padding: 12px 18px; flex-shrink: 0; white-space: nowrap; }

/* ---------- Aktiviteler ---------- */
.view > h2 { font-weight: 900; font-size: 20px; margin-bottom: 12px; }

.card-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }

.act-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.act-head h2 { font-weight: 900; font-size: 22px; }
.act-sub { color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 2px; }
.fab-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--pistachio-deep);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  transition: transform .12s;
}
.fab-btn svg { width: 22px; height: 22px; }
.fab-btn:active { transform: scale(.92); }

.act-tabs {
  display: flex;
  gap: 6px;
  background: var(--pistachio-light);
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 12px;
}
.act-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  padding: 8px 4px;
  border-radius: 11px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.act-tab.active { background: var(--white); color: var(--pistachio-deep); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

.act-sports {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.act-sports::-webkit-scrollbar { display: none; }
.act-chip {
  flex-shrink: 0;
  border: 1.5px solid var(--pistachio);
  background: var(--white);
  color: var(--pistachio-deep);
  font-weight: 800;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.act-chip.active { background: var(--pistachio-deep); color: var(--white); }

.act-filters { margin-bottom: 6px; }
.act-filter-label { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin: 10px 0 6px; }
.act-dist { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.act-dist::-webkit-scrollbar { display: none; }
.act-filter-row { display: flex; gap: 8px; margin-top: 10px; }
.act-select {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  -webkit-appearance: none;
  appearance: none;
}
.act-loc-hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--pistachio-deep);
  background: var(--pistachio-light);
  border-radius: 10px;
  padding: 8px 12px;
  margin-top: 8px;
}
.act-distance {
  display: inline-block;
  background: var(--pistachio-light);
  color: var(--pistachio-deep);
  font-weight: 800;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 4px;
}

.act-card {
  background: var(--white);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .12s;
}
.act-card:active { transform: scale(.99); }
.act-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.act-sport {
  display: inline-block;
  background: var(--pistachio);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}
.act-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--pistachio-deep);
  background: var(--pistachio-light);
  border: 1px solid var(--pistachio);
  padding: 3px 9px;
  border-radius: 999px;
}
.act-badge-out { background: var(--white); }
.act-when { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 700; }
.act-title { font-weight: 900; font-size: 17px; }
.act-meta { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 3px; }
.act-desc {
  font-size: 13.5px;
  font-weight: 500;
  color: #555;
  margin: 8px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.act-progress {
  height: 5px;
  border-radius: 999px;
  background: var(--pistachio-light);
  margin: 12px 0 10px;
  overflow: hidden;
}
.act-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--pistachio-deep);
  transition: width .3s;
}
.act-row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.act-avatars { display: flex; align-items: center; }
.act-avatars .mini-avatar { width: 32px; height: 32px; margin-left: -8px; border: 2px solid #fff; border-radius: 50%; overflow: hidden; }
.act-avatars .mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.act-avatars .mini-avatar:first-child { margin-left: 0; }
.act-more {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pistachio-light);
  color: var(--pistachio-deep);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -8px;
  border: 2px solid #fff;
}
.act-cap { font-size: 12px; color: var(--muted); font-weight: 700; }
.act-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
}
.act-creator { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.act-creator .mini-avatar { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.act-creator .mini-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Aktiviteler — detay modalı */
.activity-detail-card { text-align: left; }
.ad-close-spacer { height: 8px; }
.activity-detail-card .act-sport { margin-bottom: 10px; }
.activity-detail-card h2 { font-size: 20px; margin-bottom: 6px; }
.ad-meta { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.ad-creator {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--pistachio-light);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  color: #444;
  margin-bottom: 12px;
}
.ad-creator .mini-avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.ad-creator .mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ad-creator b { color: var(--pistachio-deep); }
.ad-desc { font-size: 14px; font-weight: 500; color: #444; line-height: 1.55; margin: 0 0 14px; }
.ad-progress-block { margin-bottom: 6px; }
.ad-cap-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}
.ad-cap-line b { color: var(--pistachio-deep); }
.ad-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.ad-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--pistachio-light);
  border-radius: 14px;
  padding: 12px 6px;
  cursor: pointer;
  text-align: center;
}
.ad-member .mini-avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.ad-member .mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ad-member span { font-size: 12.5px; font-weight: 800; line-height: 1.2; }
.ad-member small { font-size: 11px; color: var(--muted); font-weight: 700; }
.ad-owner-note { font-size: 13px; color: var(--muted); font-weight: 600; margin: 0; }
.ad-join-block { width: 100%; margin-top: 4px; }

/* Ayrıl — sade IG/Tinder tarzı */
.btn-leave {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-leave svg { width: 15px; height: 15px; }
.btn-leave:hover { border-color: #e8b4b4; color: #d94848; background: #fff8f8; }
.btn-leave.confirming {
  border-color: #e57373;
  background: #fdecec;
  color: #d94848;
}
.btn-leave-block { width: 100%; justify-content: center; margin-top: 4px; padding: 12px; }


/* ---------- Beğeniler ---------- */
.like-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.like-card .mini-avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.like-card .mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.like-card .like-info { flex: 1; min-width: 0; }
.like-card .like-name { font-weight: 800; font-size: 15px; }
.like-card .like-sub { font-size: 12px; color: var(--muted); font-weight: 600; }
.like-card .btn { padding: 8px 14px; font-size: 13px; }

/* ---------- Profil ---------- */
.profile-card {
  background: var(--white);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.profile-head .mini-avatar { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.profile-head .mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-head .profile-name { font-weight: 900; font-size: 20px; }
.profile-head .profile-sub { color: var(--muted); font-size: 13px; font-weight: 600; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.stat {
  background: var(--pistachio-light);
  border-radius: 14px;
  text-align: center;
  padding: 12px 6px;
}
.stat .val { font-weight: 900; font-size: 20px; color: var(--pistachio-deep); }
.stat .lbl { font-size: 11px; color: var(--muted); font-weight: 700; }

.chip.static { cursor: default; background: var(--pistachio-light); border-color: var(--pistachio); color: var(--pistachio-deep); }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(34, 56, 26, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  animation: fadeUp .2s ease;
}
.modal-card {
  background: var(--white);
  border-radius: 24px;
  padding: 28px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  text-align: center;
}
.modal-card h2 { font-weight: 900; font-size: 22px; margin-bottom: 8px; }
.modal-card p { color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.modal-confetti { font-size: 52px; margin-bottom: 6px; }
.modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.modal-actions .btn { flex: 1; min-width: 130px; }
.modal-card .auth-form { text-align: left; }

/* ---------- Profil İnceleme Modalı ---------- */
.profile-modal-card { text-align: left; position: relative; }
.pm-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .85);
  color: #444;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.pm-close:hover { background: #eee; }
.pm-photo {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--pistachio-light);
  margin-bottom: 16px;
}
.pm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-modal-card h2 { margin-bottom: 4px; }
.profile-modal-card .match-meta { margin-bottom: 8px; }
.profile-modal-card h2, .profile-modal-card .match-meta { text-align: center; }
.pm-bio {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  margin: 6px 0 2px;
  line-height: 1.5;
}
.chip-group-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 14px 0 6px;
}
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 2px; }
.common-tag {
  background: var(--pistachio-light);
  border: 1px solid var(--pistachio);
  color: var(--pistachio-deep);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
}
.pm-none { color: var(--muted); font-size: 13px; font-weight: 600; }
.common-box {
  background: var(--pistachio-light);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 14px;
}
.common-box .common-title { font-size: 13px; font-weight: 900; color: var(--pistachio-deep); margin-bottom: 8px; }
.common-box .common-tag { background: var(--white); border-color: var(--pistachio); }
.common-box .pm-none { display: block; }

/* ---------- Minimal aksiyon çubuğu (IG/Tinder tarzı) ---------- */
.pm-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 20px;
}
.pm-icon-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--pistachio-light);
  color: var(--pistachio-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .12s, background .15s;
}
.pm-icon-btn:hover { background: var(--pistachio); }
.pm-icon-btn:active { transform: scale(.94); }
.pm-icon-btn svg { width: 25px; height: 25px; }
.pm-icon-btn.liked { background: var(--pistachio-deep); color: var(--white); }
.pm-icon-btn.liked svg { fill: currentColor; }
.pm-icon-btn.disabled { opacity: .35; cursor: not-allowed; }
.pm-icon-btn.disabled:hover { background: var(--pistachio-light); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
[data-user] { cursor: pointer; }
.clickable { cursor: pointer; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  z-index: 200;
  animation: fadeUp .2s ease;
}

/* ---------- Mobil uyum ---------- */
@media (max-width: 640px) {
  .auth-card { padding: 26px 20px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  /* Eşleşme */
  .match-area { max-height: calc(100vh - 130px); gap: 10px; }
  .match-photo { max-height: 42vh; aspect-ratio: 3 / 3.5; }
  .match-name { font-size: 20px; }
  .match-name .age { font-size: 16px; }
  .match-info { padding: 10px 14px 2px; }
  .match-bio { font-size: 13px; margin: 6px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .round-btn { width: 56px; height: 56px; }
  .round-btn .heart-icon { width: 24px; height: 24px; }
  .round-btn .x-icon { width: 22px; height: 22px; }
  .match-actions { gap: 20px; padding: 10px 0 16px; }
  .common-box { padding: 6px 8px; margin-top: 6px; }
  .common-tag { font-size: 10px; padding: 3px 7px; }
  .sport-tag { font-size: 10px; padding: 3px 8px; }
  /* Profil */
  .profile-card { padding: 18px 16px; border-radius: 18px; }
  .profile-head { gap: 12px; margin-bottom: 12px; }
  .profile-head .mini-avatar { width: 60px; height: 60px; }
  .profile-head .profile-name { font-size: 18px; }
  .profile-head .profile-sub { font-size: 12px; word-break: break-all; }
  .stat-row { gap: 8px; }
  .stat { padding: 10px 4px; border-radius: 12px; }
  .stat .val { font-size: 17px; }
  .stat .lbl { font-size: 10px; }
  .auth-form label { font-size: 12px; margin-top: 10px; }
  .auth-form input, .auth-form select, .auth-form textarea { font-size: 14px; padding: 10px; }
  .auth-form .btn { padding: 11px; font-size: 14px; }
  .photo-upload { padding: 12px; font-size: 13px; }
  .chip { padding: 6px 12px; font-size: 12px; }
  /* Aktiviteler */
  .act-head h2 { font-size: 20px; }
  .act-card { padding: 14px; border-radius: 16px; }
  .act-title { font-size: 16px; }
  .act-meta { font-size: 12px; }
  .act-desc { font-size: 12px; }
  .act-tabs { gap: 4px; padding: 3px; }
  .act-tab { font-size: 12px; padding: 7px 4px; }
  .act-select { font-size: 12px; padding: 8px 10px; }
  /* Beğeniler */
  .like-card { padding: 12px; border-radius: 14px; gap: 10px; }
  .like-card .mini-avatar { width: 44px; height: 44px; }
  .like-card .like-name { font-size: 14px; }
  .like-card .like-sub { font-size: 11px; }
  .like-card .btn { padding: 7px 12px; font-size: 12px; }
  /* Sohbet */
  .chat-app { height: calc(100vh - 235px); height: calc(100dvh - 235px); min-height: 320px; }
  .chat-conv-inner { border-radius: 16px; }
  .conv-name { font-size: 15px; }
  .conv-input input { font-size: 13px; padding: 10px 12px; }
  .conv-input .btn { padding: 10px 14px; font-size: 13px; }
  /* Genel */
  .content { padding: 14px 12px 90px; }
  .topbar { padding: 12px 16px; }
  .modal-card { border-radius: 18px; padding: 24px 20px; margin: 12px; }
}

/* ---------- Masaüstü: sohbet çift panel ---------- */
@media (min-width: 641px) {
  .chat-app {
    flex-direction: row;
    gap: 14px;
    height: calc(100vh - 210px);
    min-height: 460px;
  }
  .chat-list-panel { flex: 0 0 36%; min-width: 250px; }
  .chat-conversation { display: flex; }
  .chat-app.open .chat-list-panel { display: flex; }
  .conv-back { display: none; }
}

/* ---------- Tablet ---------- */
@media (min-width: 641px) and (max-width: 1024px) {
  .match-card { max-width: 400px; margin: 0 auto; }
  .match-photo { aspect-ratio: 3 / 4; max-height: 50vh; }
  .profile-card { max-width: 500px; margin-left: auto; margin-right: auto; }
  .act-card { max-width: 500px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1025px) {
  .match-card { max-width: 420px; margin: 0 auto; }
  .match-photo { aspect-ratio: 3 / 4; max-height: 55vh; }
  .match-info { padding: 18px 22px 6px; }
  .match-name { font-size: 26px; }
  .match-actions { padding: 20px 0 28px; }
  .round-btn { width: 66px; height: 66px; }
  .profile-card { max-width: 560px; margin-left: auto; margin-right: auto; }
  .act-card { max-width: 560px; }
  .like-card { max-width: 560px; }
}

/* =====================================================================
   YENİ UX UYGULAMALARI — skeleton, swipe, pull-to-refresh, accessibility,
   onboarding, improved toasts, confirm dialog, city search, multi-step,
   password strength, typing indicator, read receipts, responsive
   ===================================================================== */

/* ---------- 1. Skeleton Loading ---------- */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--pistachio-light) 25%, #e8f0dc 37%, var(--pistachio-light) 63%);
  background-size: 800px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 12px;
}
.skeleton-card {
  width: 100%;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.skeleton-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(90deg, var(--pistachio-light) 25%, #e8f0dc 37%, var(--pistachio-light) 63%);
  background-size: 800px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.skeleton-line {
  height: 14px;
  margin: 8px 18px;
  border-radius: 8px;
}
.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 65%; }
.skeleton-line.long { width: 90%; }
.skeleton-chips {
  display: flex; gap: 6px; padding: 0 18px 16px;
}
.skeleton-chip {
  height: 28px; width: 70px; border-radius: 999px;
  background: linear-gradient(90deg, var(--pistachio-light) 25%, #e8f0dc 37%, var(--pistachio-light) 63%);
  background-size: 800px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
/* Sohbet listesi skeleton */
.skeleton-chat-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; background: var(--white); border-radius: 16px;
}
.skeleton-avatar-sm {
  width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(90deg, var(--pistachio-light) 25%, #e8f0dc 37%, var(--pistachio-light) 63%);
  background-size: 800px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.skeleton-chat-lines { flex: 1; }
.skeleton-msg {
  height: 12px; margin: 4px 0; border-radius: 6px;
  background: linear-gradient(90deg, var(--pistachio-light) 25%, #e8f0dc 37%, var(--pistachio-light) 63%);
  background-size: 800px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
/* Aktivite kartı skeleton */
.skeleton-act-card {
  background: var(--white); border-radius: 18px; padding: 16px;
  box-shadow: var(--shadow);
}
/* Profil skeleton */
.skeleton-profile-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.skeleton-avatar-lg {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(90deg, var(--pistachio-light) 25%, #e8f0dc 37%, var(--pistachio-light) 63%);
  background-size: 800px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

/* ---------- 2. Swipe Animation ---------- */
.match-card {
  transition: transform 0.3s ease, opacity 0.3s ease;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.match-card.swiping {
  transition: none;
}
.match-card.swipe-left {
  animation: swipeLeft 0.35s ease forwards;
}
.match-card.swipe-right {
  animation: swipeRight 0.35s ease forwards;
}
@keyframes swipeLeft {
  0% { transform: translateX(0) rotate(0); opacity: 1; }
  100% { transform: translateX(-120%) rotate(-15deg); opacity: 0; }
}
@keyframes swipeRight {
  0% { transform: translateX(0) rotate(0); opacity: 1; }
  100% { transform: translateX(120%) rotate(15deg); opacity: 0; }
}
.swipe-indicator {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 48px; font-weight: 900; padding: 8px 16px;
  border-radius: 12px; border: 4px solid; pointer-events: none;
  opacity: 0; transition: opacity 0.15s;
  z-index: 10;
}
.swipe-indicator.like-ind {
  right: 20px; color: #4CAF50; border-color: #4CAF50;
  background: rgba(76, 175, 80, 0.1);
  transform: translateY(-50%) rotate(15deg);
}
.swipe-indicator.pass-ind {
  left: 20px; color: #e55d5d; border-color: #e55d5d;
  background: rgba(229, 93, 93, 0.1);
  transform: translateY(-50%) rotate(-15deg);
}
/* Kart yığını — arkadaki kartlar */
.match-stack { position: relative; width: 100%; }
.match-stack .match-card { position: absolute; top: 0; left: 0; right: 0; }
.match-stack .match-card:nth-child(2) { transform: scale(0.95) translateY(10px); opacity: 0.7; z-index: -1; }
.match-stack .match-card:nth-child(3) { transform: scale(0.9) translateY(20px); opacity: 0.4; z-index: -2; }

/* ---------- 3. Pull-to-Refresh ---------- */
.pull-refresh {
  position: relative;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.pull-indicator {
  position: absolute; top: -50px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--pistachio-light); border: 2px solid var(--pistachio);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, top 0.3s;
  z-index: 5;
}
.pull-indicator.visible { top: 10px; }
.pull-indicator.refreshing svg {
  animation: spin 0.8s linear infinite;
}
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.pull-indicator svg { width: 18px; height: 18px; color: var(--pistachio-deep); }

/* ---------- 4. Improved Toasts ---------- */
.toast {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 200;
  animation: toastIn 0.3s ease;
  display: flex; align-items: center; gap: 8px;
  max-width: 90vw;
}
.toast.success { background: #2e7d32; color: #fff; }
.toast.error { background: #c62828; color: #fff; }
.toast.info { background: #1565c0; color: #fff; }
.toast.warning { background: #f57f17; color: #fff; }
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-text { flex: 1; }
.toast-close {
  background: none; border: none; color: rgba(255,255,255,.7); font-size: 18px;
  cursor: pointer; padding: 0 0 0 8px; line-height: 1;
}
.toast-close:hover { color: #fff; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.toast.hiding {
  animation: toastOut 0.3s ease forwards;
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

/* ---------- 5. Confirm Dialog ---------- */
.confirm-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 300; display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.confirm-card {
  background: var(--white); border-radius: 20px; padding: 28px 24px;
  max-width: 360px; width: 90%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  animation: fadeUp 0.25s ease;
}
.confirm-icon { font-size: 42px; margin-bottom: 12px; }
.confirm-title { font-size: 18px; font-weight: 900; margin-bottom: 6px; }
.confirm-msg { font-size: 14px; color: var(--muted); margin-bottom: 20px; line-height: 1.5; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; }
.confirm-actions .btn { flex: 1; padding: 11px; font-size: 14px; }
.btn-danger { background: #c62828; color: #fff; }
.btn-danger:hover { background: #b71c1c; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 6. Onboarding ---------- */
.onboarding-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  z-index: 400; display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.3s ease;
}
.onboarding-card {
  background: var(--white); border-radius: 24px; padding: 32px 28px;
  max-width: 400px; width: 90%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: fadeUp 0.3s ease;
}
.onboarding-emoji { font-size: 56px; margin-bottom: 12px; }
.onboarding-title { font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.onboarding-text { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.onboarding-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
.onboarding-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); transition: background 0.2s;
}
.onboarding-dot.active { background: var(--pistachio-deep); width: 24px; border-radius: 4px; }
.onboarding-skip {
  background: none; border: none; color: var(--muted); font-size: 13px;
  font-weight: 700; cursor: pointer; margin-top: 8px;
}
.onboarding-skip:hover { color: var(--ink); }

/* ---------- 7. Accessibility ---------- */
*:focus-visible {
  outline: 3px solid var(--pistachio);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible, .nav-btn:focus-visible, .chip:focus-visible {
  outline: 3px solid var(--pistachio);
  outline-offset: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 8. City Search ---------- */
.city-search-wrap {
  position: relative;
}
.city-search-input {
  width: 100%; padding: 11px 12px 11px 40px;
  border: 1px solid #dbdbdb; border-radius: 9px;
  font-family: var(--font); font-weight: 600; font-size: 15px;
  color: var(--ink); background: #fafafa; outline: none;
  transition: border-color .12s;
  height: 44px;
}
.city-search-input:focus { border-color: var(--pistachio-dark); background: #fff; }
.city-search-icon {
  position: absolute; left: 12px; top: 0; bottom: 0;
  width: 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 15px; pointer-events: none;
}
.city-search-results {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; max-height: 200px; overflow-y: auto;
  z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,.12);
  display: none;
}
.city-search-results.open { display: block; }
.city-search-result {
  padding: 10px 14px; cursor: pointer; font-size: 14px; font-weight: 600;
  transition: background .1s;
}
.city-search-result:hover, .city-search-result.focused {
  background: var(--pistachio-light); color: var(--pistachio-deep);
}

/* ---------- 9. Password Strength ---------- */
.pw-strength {
  display: flex; gap: 4px; margin-top: 6px;
}
.pw-bar {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--line); transition: background 0.3s;
}
.pw-bar.weak { background: #e55d5d; }
.pw-bar.medium { background: #f5a623; }
.pw-bar.strong { background: #4CAF50; }
.pw-label {
  font-size: 11px; font-weight: 700; margin-top: 2px;
}
.pw-label.weak { color: #e55d5d; }
.pw-label.medium { color: #f5a623; }
.pw-label.strong { color: #4CAF50; }

/* ---------- 10. Multi-step Form ---------- */
.step-indicator {
  display: flex; justify-content: center; gap: 6px; margin: 16px 0 8px;
}
.step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); transition: all 0.3s;
}
.step-dot.active { background: var(--pistachio-deep); width: 24px; border-radius: 4px; }
.step-dot.done { background: var(--pistachio); }
.form-step { display: none; }
.form-step.active { display: block; animation: fadeUp 0.25s ease; }
.form-nav {
  display: flex; gap: 10px; margin-top: 16px;
}
.form-nav .btn { flex: 1; }

/* ---------- 11. Typing Indicator ---------- */
.typing-indicator {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; align-self: flex-start;
  background: var(--white); border-radius: 18px;
  border-bottom-left-radius: 5px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.typing-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted); animation: typingBounce 1.4s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* ---------- 12. Read Receipts ---------- */
.msg-status {
  display: inline-flex; align-items: center; margin-left: 4px;
  font-size: 12px; vertical-align: middle;
}
.msg-status svg { width: 14px; height: 14px; }
.msg-status.sent { color: rgba(255,255,255,.6); }
.msg-status.delivered { color: rgba(255,255,255,.8); }
.msg-status.read { color: #81d4fa; }
.msg.mine .msg-time { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }

/* ---------- 13. Profile Completion ---------- */
.profile-progress {
  background: var(--pistachio-light); border-radius: 12px;
  padding: 12px 16px; margin-bottom: 16px;
}
.profile-progress-label {
  font-size: 12px; font-weight: 800; color: var(--pistachio-deep);
  margin-bottom: 6px; display: flex; justify-content: space-between;
}
.profile-progress-bar {
  height: 6px; background: var(--line); border-radius: 3px; overflow: hidden;
}
.profile-progress-fill {
  height: 100%; background: var(--pistachio-deep); border-radius: 3px;
  transition: width 0.5s ease;
}

/* ---------- 14. Responsive Enhancements ---------- */
@media (min-width: 768px) {
  .content { max-width: 680px; }
  .match-card { max-width: 420px; margin: 0 auto; }
  .chat-app { height: calc(100vh - 200px); }
  .chat-list-panel { flex: 0 0 320px; }
}
@media (min-width: 1024px) {
  .content { max-width: 800px; }
  .bottom-nav { max-width: 600px; left: 50%; transform: translateX(-50%); border-radius: 20px 20px 0 0; }
}
/* Landscape mobil */
@media (max-height: 500px) and (orientation: landscape) {
  .chat-app { height: calc(100dvh - 180px); min-height: 200px; }
  .match-photo { aspect-ratio: 4/3; }
}
/* Klavye açıkken sohbet alanı */
.chat-input-area {
  position: sticky; bottom: 0; background: var(--white);
  z-index: 10;
}
@supports (height: 100dvh) {
  .chat-app { height: calc(100dvh - 250px); }
  @media (max-width: 640px) {
    .chat-app { height: calc(100dvh - 235px); }
  }
}

/* ---------- 15. Form Field Error ---------- */
.field-error input,
.field-error select,
.field-error textarea {
  border-color: #e55d5d !important;
  background: #fff5f5 !important;
}
.field-error-msg {
  color: #e55d5d; font-size: 12px; font-weight: 700;
  margin-top: 4px; display: block;
}

/* ---------- 16. Like Card Actions ---------- */
.like-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: 16px;
  padding: 14px; box-shadow: var(--shadow);
}
.like-info { flex: 1; min-width: 0; }
.like-name { font-weight: 800; font-size: 15px; }
.like-sub { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 2px; }

/* ---------- 17. Emoji Picker Mini ---------- */
.emoji-btn {
  background: none; border: none; font-size: 22px; cursor: pointer;
  padding: 4px; border-radius: 8px; transition: background .1s;
}
.emoji-btn:hover { background: var(--pistachio-light); }
.emoji-panel {
  display: none;
  position: absolute; bottom: 100%; right: 0;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
  max-width: 280px;
  z-index: 20;
}
.emoji-panel.open { display: block; }
.emoji-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
}
.emoji-grid button {
  background: none; border: none; font-size: 22px; padding: 4px;
  cursor: pointer; border-radius: 6px; transition: background .1s;
}
.emoji-grid button:hover { background: var(--pistachio-light); }

/* ---------- 18. Feature Spotlight ---------- */
.spotlight {
  position: relative;
}
.spotlight::after {
  content: 'YENİ';
  position: absolute; top: -6px; right: -6px;
  background: #e55d5d; color: #fff;
  font-size: 9px; font-weight: 900;
  padding: 2px 6px; border-radius: 6px;
  pointer-events: none;
}

/* ---------- 19. Empty State Improved ---------- */
.empty-state {
  text-align: center; padding: 40px 20px;
}
.empty-state-icon { font-size: 52px; margin-bottom: 12px; }
.empty-state-title {
  font-size: 18px; font-weight: 900; margin-bottom: 6px;
}
.empty-state-text {
  font-size: 14px; color: var(--muted); line-height: 1.5; max-width: 280px;
  margin: 0 auto 16px;
}

/* ---------- 20. Notification Badge Pulse ---------- */
.badge {
  animation: badgePulse 2s infinite;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ---------- 21. Eksik Stillendirme ---------- */
.locate-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 10px 14px;
  border: 2px dashed var(--pistachio);
  border-radius: 12px;
  background: var(--pistachio-light);
  color: var(--pistachio-deep);
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  margin-top: 10px;
}
.locate-btn:hover { background: var(--pistachio); color: #fff; border-color: var(--pistachio-dark); }
.locate-btn:disabled { opacity: .6; cursor: not-allowed; }

.act-locate-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--pistachio);
  border-radius: 12px;
  background: var(--white);
  color: var(--pistachio-deep);
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s, color .15s;
  margin-top: 8px;
}
.act-locate-bar:hover { background: var(--pistachio); color: #fff; }
.act-locate-bar:disabled { opacity: .6; cursor: not-allowed; }

.act-join {
  padding: 8px 18px;
  font-size: 13px;
}

.ad-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}