/* ============================================================
   EmlakPro — app.css
   ============================================================ */

/* ── Reset & Root ─────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  /* ── Marka ───────────────────────────────── */
  --navy:    #0d1b3e;   /* ana koyu — header, başlık, koyu butonlar */
  --navy2:   #1a2d5a;   /* navy hover */

  /* ── Vurgu (eski gold → teal) ────────────── */
  --gold:    #0d9488;   /* ana vurgu — aktif menü, primary buton */
  --gold2:   #0f766e;   /* vurgu hover */
  --accent:  #0d9488;   /* alias */
  --accent2: #0f766e;

  /* ── Nötr zeminler ───────────────────────── */
  --bg:      #f8fafc;   /* sayfa zemini */
  --card:    #ffffff;   /* kart zemini */
  --border:  #e2e8f0;   /* kenarlık */
  --border2: #cbd5e1;   /* koyu kenarlık (hover) */

  /* ── Metin ───────────────────────────────── */
  --text:    #1e293b;   /* ana metin */
  --muted:   #64748b;   /* soluk metin */

  /* ── Anlamsal renkler ────────────────────── */
  --red:     #dc2626;   /* hata/sil */
  --green:   #16a34a;   /* başarı/aktif */
  --blue:    #2563eb;   /* bilgi/satılık */
  --amber:   #d97706;   /* uyarı */

  /* ── Gölge & köşe ────────────────────────── */
  --shadow:   0 1px 3px rgba(15,23,42,.06);
  --shadow-lg:0 4px 16px rgba(15,23,42,.10);
  --radius:  14px;
  --rsm:     8px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
}

/* ── Layout ───────────────────────────────────────────────── */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.page { display: none; }
.page.active { display: block; }

/* ── Header ───────────────────────────────────────────────── */
.header {
  background: var(--navy);
  padding: 0 20px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 16px rgba(0,0,0,.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: #fff;
}
.logo-box {
  width: 32px; height: 32px;
  background: var(--gold);
  border-radius: var(--rsm);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 16px;
}

/* Nav */
.nav { display: flex; gap: 2px; }
.nav-btn {
  background: none; border: none;
  color: rgba(255,255,255,.6);
  padding: 7px 14px;
  border-radius: var(--rsm);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
.nav-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-btn.active { background: var(--gold); color: #fff; }

.hdr-right { display: flex; align-items: center; gap: 8px; }

.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  cursor: pointer;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  padding: 8px 16px;
  border: none;
  border-radius: var(--rsm);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-gold    { background: var(--gold);  color: #fff; }
.btn-gold:hover { background: var(--gold2); }
.btn-blue    { background: var(--blue);  color: #fff; }
.btn-blue:hover { background: #0d47a1; }
.btn-outline { background: #fff; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: #aaa; background: #f8f8f8; }
.btn-danger  { background: #ffeaea; color: var(--red); border: none; }
.btn-danger:hover { background: #ffcdd2; }
.btn-sm  { padding: 5px 11px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; justify-content: center; }

/* ── Toolbar ──────────────────────────────────────────────── */
.toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.toolbar select,
.toolbar input[type="text"] {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--rsm);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  background: #fff;
  outline: none;
  color: var(--text);
  transition: border-color .15s;
}
.toolbar select:focus,
.toolbar input:focus { border-color: var(--navy); }

/* ── Grid & Cards ─────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-passive { opacity: .65; }

.card-img {
  height: 165px;
  background: #e8eaf0;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.card-img img { width:100%; height:100%; object-fit:cover; }
.card-img-placeholder { font-size: 48px; opacity: .25; }

.card-badges {
  position: absolute; top: 10px; left: 10px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  z-index: 2;
}
.badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px; font-weight: 700;
}
.badge-sale    { background: var(--blue);  color: #fff; }
.badge-rent    { background: var(--green); color: #fff; }
.badge-passive { background: #999;         color: #fff; }

.card-actions {
  position: absolute; top: 8px; right: 8px;
  display: flex; gap: 5px;
  opacity: 0;
  transition: opacity .15s;
}
.card:hover .card-actions { opacity: 1; }

.icon-btn {
  width: 30px; height: 30px;
  border-radius: 6px; border: none;
  cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.icon-btn-edit   { background: rgba(255,255,255,.9); color: var(--navy); }
.icon-btn-toggle { background: rgba(255,255,255,.9); color: var(--navy); }
.icon-btn-del    { background: rgba(255,220,220,.95); color: var(--red); }

.card-body { padding: 14px; }
.card-title {
  font-size: 15px; font-weight: 700;
  margin-bottom: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.meta-tag {
  background: #f0f4ff; color: #334;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 11px; font-weight: 500;
}
.card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.price { font-size: 17px; font-weight: 800; color: var(--red); }
.card-agent { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; }

/* ── Empty state ──────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .big-icon { font-size: 52px; margin-bottom: 12px; opacity: .4; display: block; }
.empty-state p { font-size: 14px; }

/* ── Overlay & Modal ──────────────────────────────────────── */
.overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10,20,50,.55);
  z-index: 100;
  justify-content: center; align-items: center;
  padding: 20px;
}
.overlay.open { display: flex; }

.modal {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
}
/* Modal açıkken arka plan scroll'u kilitle */
.overlay.open { overscroll-behavior: contain; }
.modal-lg { max-width: 780px; }

.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.modal-header h3 { font-size: 17px; font-weight: 700; }

.close-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--rsm);
  background: #fff; cursor: pointer;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: background .15s;
}
.close-btn:hover { background: #f5f5f5; }

.modal-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── Form ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 11px; font-weight: 700;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--rsm);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  color: var(--text);
  transition: border-color .15s;
  background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.req { color: var(--red); }
.muted { color: var(--muted); font-weight: 400; font-size: 11px; }

/* ── Upload ───────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed #c8d0e8;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  background: #f8f9ff;
  position: relative;
}
.upload-zone:hover,
.upload-zone.drag-over { border-color: var(--navy); background: #f0f4ff; }
.upload-zone input[type="file"] { display: none; }
.upload-zone-sm { padding: 12px; }
.upload-icon { font-size: 28px; opacity: .4; display: block; margin-bottom: 6px; }
.upload-placeholder p { font-size: 12px; color: var(--muted); }

/* Vitrin önizleme */
.cover-preview {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.remove-cover {
  position: absolute; top: 6px; right: 6px;
  width: 24px; height: 24px;
  background: rgba(0,0,0,.65);
  border: none; border-radius: 50%;
  color: #fff; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* Galeri önizleme */
.gallery-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.photo-thumb {
  position: relative;
  border-radius: var(--rsm);
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--border);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.remove-photo {
  position: absolute; top: 3px; right: 3px;
  width: 20px; height: 20px;
  background: rgba(0,0,0,.65);
  border: none; border-radius: 50%;
  color: #fff; cursor: pointer; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}

/* ── Detay Modal ──────────────────────────────────────────── */
.detail-cover {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 16/9;
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }

.detail-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.detail-table tr { border-bottom: 1px solid var(--border); }
.detail-table td { padding: 8px 12px; font-size: 13px; }
.detail-label { color: var(--muted); font-weight: 600; width: 40%; }

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.detail-gallery img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--rsm);
  cursor: zoom-in;
}
.detail-desc { font-size: 13px; line-height: 1.6; }
.detail-desc b { display: block; margin-bottom: 6px; }

/* ── Talepler ─────────────────────────────────────────────── */
.talep-list { display: flex; flex-direction: column; gap: 10px; }

.talep-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s;
}
.talep-card:hover { box-shadow: var(--shadow-lg); }
.talep-passive { opacity: .6; }

.talep-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  transition: background .15s;
}
.talep-header:hover { background: #fafbff; }

.talep-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.talep-info { flex: 1; min-width: 0; }
.talep-name {
  font-size: 14px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.phone { font-weight: 400; color: var(--muted); font-size: 12px; }
.talep-desc {
  font-size: 12px; color: var(--muted); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.talep-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }

.talep-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Tags */
.tag { padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.tag-blue   { background: #e6f1fb; color: #0c447c; }
.tag-green  { background: #eaf3de; color: #3b6d11; }
.tag-amber  { background: #faeeda; color: #854f0b; }
.tag-purple { background: #eeedfe; color: #3c3489; }
.tag-red    { background: #fcebeb; color: #a32d2d; }

/* Chevron ok butonu */
.ok-btn {
  width: 30px; height: 30px;
  border-radius: var(--rsm);
  border: 1px solid var(--border);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--muted);
  transition: all .2s;
  cursor: pointer;
}
.ok-btn.open { background: var(--navy); border-color: var(--navy); color: #fff; }
.chevron { display: inline-block; transition: transform .25s ease; }
.ok-btn.open .chevron { transform: rotate(180deg); }

/* Zil butonu */
.zil-btn {
  width: 30px; height: 30px;
  border-radius: var(--rsm);
  border: 1px solid var(--border);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  cursor: pointer;
  position: relative;
  transition: all .15s;
}
.zil-btn:hover { background: #f5f5f5; }
.zil-btn.active { background: #fffbe6; border-color: var(--gold); }
.zil-dot {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  position: absolute; top: -3px; right: -3px;
  border: 2px solid #fff;
}

/* Toggle switch */
.toggle-btn {
  width: 36px; height: 20px;
  border-radius: 10px;
  background: #ddd;
  position: relative;
  cursor: pointer;
  transition: background .2s;
  border: none;
  flex-shrink: 0;
}
.toggle-btn.on { background: var(--green); }
.toggle-knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-btn.on .toggle-knob { left: 18px; }

/* Accordion */
.accordion-body {
  display: none;
  border-top: 1px solid var(--border);
  background: #f8f9ff;
  padding: 14px 16px;
  animation: slideDown .2s ease;
}
.accordion-body.open { display: block; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.acc-title {
  font-size: 11px; font-weight: 700;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 10px;
}

/* Mini ilan kartı (accordion içi) */
.ilan-mini-list { display: flex; flex-direction: column; gap: 8px; }
.ilan-mini {
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: box-shadow .15s, transform .15s;
}
.ilan-mini:hover { box-shadow: var(--shadow); transform: translateX(3px); }
.ilan-mini-icon {
  width: 36px; height: 36px;
  border-radius: var(--rsm);
  background: #e6f1fb;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.ilan-mini-info { flex: 1; min-width: 0; }
.ilan-mini-title {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ilan-mini-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.ilan-mini-price { font-size: 14px; font-weight: 800; color: var(--red); flex-shrink: 0; }
.empty-acc { text-align: center; padding: 16px; color: var(--muted); font-size: 13px; }

/* ── Admin ────────────────────────────────────────────────── */
.admin-tabs {
  display: flex; gap: 4px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.admin-tab {
  background: none; border: none;
  padding: 10px 18px;
  font-size: 13px; font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .15s;
}
.admin-tab:hover { color: var(--navy); }
.admin-tab.active { color: var(--navy); border-bottom-color: var(--navy); }

.admin-panel { display: none; }
.admin-panel.active { display: block; }

.admin-table {
  width: 100%; border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.admin-table th {
  background: #f5f7ff;
  padding: 12px 16px;
  font-size: 12px; font-weight: 700;
  color: var(--muted);
  text-align: left;
  text-transform: uppercase; letter-spacing: .5px;
}
.admin-table td {
  padding: 12px 16px;
  font-size: 13px;
  border-top: 1px solid var(--border);
}
.admin-table tr:hover td { background: #fafbff; }

/* ── Login ────────────────────────────────────────────────── */
.login-screen {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  padding: 20px;
}
.login-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 40px;
  width: 100%; max-width: 400px;
  box-shadow: 0 32px 80px rgba(0,0,0,.3);
}
.login-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 24px;
  justify-content: center;
}
.login-logo .logo-box { width: 36px; height: 36px; font-size: 18px; }
.login-card h2 {
  font-size: 18px; font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text);
}

/* Alert */
.alert {
  padding: 10px 14px;
  border-radius: var(--rsm);
  font-size: 13px;
  margin-bottom: 14px;
}
.alert-error { background: #ffeaea; color: var(--red); border: 1px solid #ffcdd2; }

/* ── Toast ────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--navy);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 13px; font-weight: 500;
  transition: transform .3s ease;
  z-index: 300;
  pointer-events: none;
  border-left: 4px solid var(--gold);
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.toast-error { border-left-color: var(--red); }
.toast.toast-info  { border-left-color: #42a5f5; }

/* ── Listing No Badge ─────────────────────────────────────── */
.listing-no {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(13,27,62,.75);
  color: #FFD700;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11px; font-weight: 700;
  backdrop-filter: blur(4px);
}
.detail-no {
  display: inline-block;
  background: #f0f4ff;
  color: var(--navy);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 12px;
}

/* ── Benim İlanlarım checkbox ─────────────────────────────── */
.mine-check {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}
.mine-check input { cursor: pointer; width: 15px; height: 15px; }

/* ── Eşleşme badge ────────────────────────────────────────── */
.eslesme-badge {
  background: var(--navy); color: var(--gold);
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 12px; font-weight: 700;
  min-width: 32px; text-align: center;
}
.eslesme-badge.zero { background: #e8eaf0; color: var(--muted); }
.eslesme-pill {
  padding: 3px 9px; border-radius: 20px;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
}

/* ── Lightbox ─────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 500;
  justify-content: center; align-items: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 95vw; max-height: 95vh;
  object-fit: contain;
  border-radius: 8px;
}

/* ── Logo text mobilde gizle ──────────────────────────────── */
.logo-text { }

/* ═══════════════════════════════════════════════════════
   MOBİL — 768px ve altı
════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Header */
  .header { padding: 0 12px; height: 50px; }
  .logo-text { display: none; }
  .nav-btn { padding: 6px 8px; font-size: 11px; }
  .hdr-right { gap: 6px; }
  .hdr-right #logout-btn { display: none; } /* mobilde avatar'a taşı */

  /* Main */
  .main { padding: 12px; }

  /* Toolbar — dikey scroll */
  .toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .toolbar::-webkit-scrollbar { height: 3px; }
  .toolbar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
  .toolbar select,
  .toolbar input[type="text"],
  .toolbar input[type="number"] {
    min-width: 120px;
    flex-shrink: 0;
    font-size: 12px;
    padding: 7px 10px;
  }
  .toolbar-search { min-width: 150px; }

  /* Grid — tek kolon */
  .grid { grid-template-columns: 1fr; gap: 10px; }

  /* Card */
  .card-img { height: 180px; }

  /* Modal — tam ekran */
  .overlay { padding: 0; align-items: flex-end; }
  .modal {
    border-radius: 18px 18px 0 0;
    max-height: 92vh;
    padding: 20px 16px;
  }
  .modal-lg { max-width: 100%; }
  .form-row { grid-template-columns: 1fr; }

  /* Gallery preview 3 kolon yerine 3 */
  .gallery-preview { grid-template-columns: repeat(3, 1fr); }

  /* Detail gallery */
  .detail-gallery { grid-template-columns: repeat(2, 1fr); }

  /* Talep kartı */
  .talep-header { padding: 12px; gap: 8px; }
  .talep-right { gap: 6px; }
  .talep-desc { display: none; } /* mobilde gizle, accordion'da görünsün */

  /* Admin tablo — yatay scroll */
  .admin-table-wrap { overflow-x: auto; }
  .admin-table { min-width: 500px; }

  /* Nav — mobilde küçük */
  .nav { gap: 1px; }
  .nav-btn span { display: none; } /* emoji göster, metin gizle */
}

@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .nav-btn { padding: 5px 6px; font-size: 16px; }
}

/* ── Logo Stilleri ────────────────────────────────────────── */
.header-logo-img {
  width: 32px; height: 32px;
  border-radius: 8px;
  object-fit: cover;
}
.logo-emlak {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 21px;
  letter-spacing: -0.5px;
}
.logo-pro {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: #2dd4bf;
  font-size: 21px;
  letter-spacing: -0.5px;
}

/* Login logo */
.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
}
.login-logo-img {
  width: 56px; height: 56px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(13,27,62,.2);
}
.login-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.login-logo-text .logo-emlak { font-size: 26px; color: var(--navy); }
.login-logo-text .logo-pro   { font-size: 26px; color: #e65100; }
.login-subtitle {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ── Kart Placeholder (gradient) ─────────────────────────── */
.card-img-gradient {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.card-img-icon  { font-size: 40px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.card-img-label {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.85);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Fiyat aralığı input ──────────────────────────────────── */
.price-range-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-range-row input { flex: 1; }
.price-range-sep { color: var(--muted); font-size: 16px; flex-shrink: 0; }

/* ── Akordiyon mini ilan (geliştirilmiş) ─────────────────── */
.ilan-mini-thumb {
  width: 52px; height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.ilan-mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.ilan-mini-tags .meta-tag { font-size: 10px; padding: 2px 7px; }
.ilan-mini-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.mini-no {
  font-size: 10px;
  color: var(--muted);
  margin-left: 6px;
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════════
   is_listed — gizli ilanlar
════════════════════════════════════════════════════════ */
.card-unlisted { opacity: .75; }
.badge-unlisted {
  position: absolute; top: 34px; left: 8px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 10px; padding: 2px 7px;
  border-radius: 20px;
}
.icon-btn-listed  { opacity: .9; }
.icon-btn-unlisted{ opacity: .5; }

/* ═══════════════════════════════════════════════════════
   Pasif Dialog — durum seçimi
════════════════════════════════════════════════════════ */
.modal-sm { max-width: 420px; }
.passive-desc { margin-bottom: 4px; }
.status-btn-group {
  display: flex; gap: 8px;
}
.status-opt {
  flex: 1;
  padding: 9px 4px;
  border: 2px solid var(--border);
  border-radius: var(--rsm);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
  text-align: center;
}
.status-opt:hover   { border-color: var(--navy2); }
.status-opt-sel     { border-color: var(--navy); background: var(--navy); color: #fff; }

/* ═══════════════════════════════════════════════════════
   Tarihçe
════════════════════════════════════════════════════════ */
.history-list { display: flex; flex-direction: column; gap: 0; }
.history-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
}
.history-item:last-child { border-bottom: none; }
.history-icon {
  width: 32px; height: 32px;
  background: var(--bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.history-info { flex: 1; }
.history-action { font-size: 14px; font-weight: 600; }
.history-meta   { font-size: 12px; color: var(--muted); margin-top: 2px; display:flex; align-items:center; flex-wrap:wrap; gap:4px; }
.history-price  { font-size: 12px; font-weight: 700; color: var(--navy); margin-left: 4px; }
.tag-sm { font-size: 10px !important; padding: 1px 6px !important; }

/* ═══════════════════════════════════════════════════════
   CRM — Müşteriler
════════════════════════════════════════════════════════ */
.crm-list { display: flex; flex-direction: column; gap: 8px; }

.crm-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
  transition: box-shadow .2s, border-color .15s;
}
.crm-card:hover { box-shadow: var(--shadow-lg); border-color: var(--navy2); }
.crm-passive    { opacity: .6; }

.crm-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  flex-shrink: 0;
}
.crm-info  { flex: 1; min-width: 0; }
.crm-name  { font-size: 15px; font-weight: 700; }
.crm-meta  { font-size: 12px; color: var(--muted); margin-top: 3px; }
.crm-notes { font-size: 12px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-actions { display: flex; gap: 6px; flex-shrink: 0; }

.icon-btn-delete { color: var(--red); }

/* Müşteri detay */
.crm-detail-row {
  display: flex; gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.crm-detail-row:last-child { border-bottom: none; }
.crm-detail-row .detail-label {
  min-width: 80px;
  color: var(--muted);
  font-size: 12px;
  padding-top: 2px;
}

/* ═══════════════════════════════════════════════════════
   DASHBOARD
════════════════════════════════════════════════════════ */
.dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.dash-card {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.dash-card-ico {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
}
.ico-blue  { background: #e0f2fe; color: #0369a1; }
.ico-green { background: #dcfce7; color: #15803d; }
.ico-amber { background: #fef3c7; color: #b45309; }
.ico-teal  { background: #ccfbf1; color: #0f766e; }
.dash-card-txt { min-width: 0; }
.dash-card-num  { font-size: 26px; font-weight: 700; line-height: 1; color: var(--text); }
.dash-card-lbl  { font-size: 12px; margin-top: 4px; color: var(--muted); }

.dash-charts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.dash-chart-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.dash-chart-wide { grid-column: 1 / -1; }
.dash-chart-title { font-size: 13px; font-weight: 700; margin-bottom: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* ═══════════════════════════════════════════════════════
   GÖREVLER — Kanban & Liste
════════════════════════════════════════════════════════ */
.view-toggle { display:flex; gap:2px; }
.view-btn {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--rsm); padding: 5px 10px; cursor: pointer;
  font-size: 16px; transition: all .15s;
}
.view-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Kanban board */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: start;
}
@media (max-width: 900px) {
  .kanban-board { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .kanban-board { grid-template-columns: 1fr; }
}

.kanban-col {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  min-height: 200px;
}
.kanban-col.drag-over { border-color: var(--gold); background: #f0fdfa; }

.kanban-col-header {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); padding: 4px 4px 10px;
}
.kanban-count {
  margin-left: auto;
  background: var(--border);
  border-radius: 20px;
  padding: 1px 7px;
  font-size: 11px;
  color: var(--muted);
}
.kanban-cards { display: flex; flex-direction: column; gap: 8px; min-height: 120px; }

/* Status dots */
.status-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
}
.dot-bekliyor  { background: #78909c; }
.dot-devam     { background: #1565C0; }
.dot-tamam     { background: #2e7d32; }
.dot-iptal     { background: #c62828; }

/* Task card */
.task-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rsm);
  padding: 10px 12px;
  cursor: pointer;
  transition: box-shadow .15s, border-color .15s;
  position: relative;
}
.task-card:hover { box-shadow: var(--shadow-lg); border-color: #a0aec0; }
.task-card.dragging { opacity: .5; }

.task-card-title {
  font-size: 13px; font-weight: 600; margin-bottom: 6px;
  color: var(--text); line-height: 1.35;
}
.task-card-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.task-card-assignees {
  display: flex; gap: 2px; margin-left: auto;
}
.assignee-mini {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy2); color: #fff;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  margin-left: -6px;
}
.assignee-mini:first-child { margin-left: 0; }

/* Priority badge */
.priority-badge {
  font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: .03em;
}
.prio-dusuk  { background: #e3f2fd; color: #1565C0; }
.prio-normal { background: #f3f4f6; color: var(--muted); }
.prio-yuksek { background: #fff3e0; color: #e65100; }
.prio-acil   { background: #ffebee; color: #c62828; }

/* Due date chip */
.due-chip {
  font-size: 11px; padding: 2px 6px;
  border-radius: 20px; font-weight: 500;
}
.due-ok      { background: #e8f5e9; color: #2e7d32; }
.due-warning { background: #fff3e0; color: #e65100; }
.due-late    { background: #ffebee; color: #c62828; }

/* Subtask count chip */
.sub-chip {
  font-size: 11px; padding: 2px 6px;
  border-radius: 20px;
  background: #ede7f6; color: #512da8;
  font-weight: 600;
}

/* Task list table */
.task-table {
  width: 100%; border-collapse: collapse;
  background: var(--card); border-radius: var(--radius);
  overflow: hidden;
}
.task-table th {
  text-align: left; padding: 10px 14px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted);
  border-bottom: 2px solid var(--border);
}
.task-table td {
  padding: 10px 14px; font-size: 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.task-table tr:last-child td { border-bottom: none; }
.task-table tr:hover td { background: #fafbff; cursor: pointer; }

/* Task detail modal */
.task-detail-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}
@media (max-width: 700px) {
  .task-detail-body { grid-template-columns: 1fr; }
}
.task-detail-main { display: flex; flex-direction: column; gap: 16px; }
.task-meta-row {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding: 12px; background: var(--bg); border-radius: var(--rsm);
}
.task-meta-item { display: flex; flex-direction: column; gap: 3px; }
.task-meta-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.task-meta-val { font-size: 13px; font-weight: 600; }

.task-desc { font-size: 14px; line-height: 1.6; white-space: pre-wrap; }

/* Assignee chips (detail) */
.assignee-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.assignee-chip {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 12px 4px 6px;
  font-size: 12px; font-weight: 600;
}
.assignee-chip-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Assignee checkboxes (form) */
.assignee-checkboxes {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.assignee-cb-item {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg); border: 2px solid var(--border);
  border-radius: 20px; padding: 5px 12px 5px 8px;
  font-size: 12px; cursor: pointer; transition: all .15s;
}
.assignee-cb-item:hover { border-color: var(--navy2); }
.assignee-cb-item.selected { border-color: var(--navy); background: var(--navy); color: #fff; }
.assignee-cb-item.selected .assignee-chip-avatar { background: rgba(255,255,255,.3); }

/* Subtask rows */
.subtask-list { display: flex; flex-direction: column; gap: 6px; }
.subtask-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: var(--bg); border-radius: var(--rsm);
  font-size: 13px; cursor: pointer;
  transition: background .15s;
}
.subtask-row:hover { background: #e8eaf6; }
.subtask-checkbox {
  width: 16px; height: 16px; flex-shrink: 0;
  cursor: pointer;
}

/* Task images grid */
.task-images-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}
.task-img-wrap {
  position: relative; aspect-ratio: 1;
  border-radius: var(--rsm); overflow: hidden;
}
.task-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; cursor: pointer;
}
.task-img-del {
  position: absolute; top: 4px; right: 4px;
  background: rgba(0,0,0,.6); color: #fff;
  border: none; border-radius: 50%;
  width: 20px; height: 20px; font-size: 12px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* Comments */
.task-detail-comments {
  border-left: 1px solid var(--border);
  padding-left: 20px;
  display: flex; flex-direction: column;
}
.task-comments-list {
  flex: 1; overflow-y: auto; max-height: 340px;
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 12px;
}
.task-comment {
  background: var(--bg); border-radius: var(--rsm);
  padding: 10px 12px; font-size: 13px;
}
.task-comment-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 5px;
}
.task-comment-author { font-weight: 700; font-size: 12px; }
.task-comment-time   { font-size: 11px; color: var(--muted); }
.task-comment-body   { line-height: 1.5; white-space: pre-wrap; }
.task-comment-del    {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 12px; padding: 2px 5px;
}
.task-comment-del:hover { color: var(--red); }
.task-comment-input {
  display: flex; flex-direction: column; gap: 6px;
}
.task-comment-input textarea {
  border: 1px solid var(--border); border-radius: var(--rsm);
  padding: 8px; font-family: inherit; font-size: 13px;
  resize: vertical;
}

/* Status badge */
.status-badge {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600; padding: 3px 10px;
  border-radius: 20px;
}
.status-bekliyor  { background: #eceff1; color: #546e7a; }
.status-devam     { background: #e3f2fd; color: #1565C0; }
.status-tamamlandi{ background: #e8f5e9; color: #2e7d32; }
.status-iptal     { background: #ffebee; color: #c62828; }

/* form-row helper */
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }


/* ── CRM Akordiyon ───────────────────────────────────── */
.crm-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.crm-item .crm-card { border: none; border-radius: 0; margin-bottom: 0; cursor: pointer; }
.crm-chevron { margin-left: 8px; font-size: 13px; color: var(--muted); flex-shrink: 0; transition: transform .2s; }
.crm-accordion { border-top: 1px solid var(--border); background: var(--bg2); padding: 8px; }
.crm-acc-loading, .crm-acc-empty { font-size: 13px; color: var(--muted); padding: 8px; }
.crm-acc-ilan { display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--bg); border-radius: var(--radius); margin-bottom: 6px; }
.crm-acc-thumb { width: 52px; height: 40px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.crm-acc-nophoto { display: flex; align-items: center; justify-content: center; background: var(--border); font-size: 18px; }
.crm-acc-info { flex: 1; min-width: 0; }
.crm-acc-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-acc-meta { font-size: 12px; color: var(--muted); }

/* ── CRM Akordiyon ───────────────────────────────────── */
.crm-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.crm-item .crm-card { border: none; border-radius: 0; margin-bottom: 0; cursor: pointer; }
.crm-chevron { margin-left: 8px; font-size: 13px; color: var(--muted); flex-shrink: 0; }
.crm-accordion { border-top: 1px solid var(--border); background: var(--bg2); padding: 8px; }
.crm-acc-loading, .crm-acc-empty { font-size: 13px; color: var(--muted); padding: 8px; }
.crm-acc-ilan { display:flex; align-items:center; gap:10px; padding:8px; background:var(--bg); border-radius:var(--radius); margin-bottom:6px; }
.crm-acc-thumb { width:52px; height:40px; object-fit:cover; border-radius:6px; flex-shrink:0; }
.crm-acc-nophoto { display:flex; align-items:center; justify-content:center; background:var(--border); font-size:18px; }
.crm-acc-info { flex:1; min-width:0; }
.crm-acc-title { font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.crm-acc-meta { font-size:12px; color:var(--muted); }

/* ── Lightbox ok tuşları ─────────────────────────────── */
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); border: none; color: #fff;
  font-size: 48px; line-height: 1; padding: 8px 16px;
  cursor: pointer; border-radius: 8px; z-index: 10;
  transition: background .2s; user-select: none;
}
.lb-nav:hover { background: rgba(255,255,255,.3); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.15); border: none; color: #fff;
  font-size: 20px; padding: 6px 12px; cursor: pointer;
  border-radius: 8px; z-index: 10;
}
.lb-close:hover { background: rgba(255,255,255,.3); }

/* ── Talep Form ───────────────────────────────────────── */
.talep-musteri-info {
  display: flex; gap: 12px; align-items: center;
  background: var(--bg2); border-radius: var(--radius);
  padding: 8px 12px; margin-top: -8px; margin-bottom: 8px;
  font-size: 13px; font-weight: 500;
}
.talep-notify-row {
  display: flex; align-items: center;
  justify-content: space-between; padding: 4px 0;
}
.talep-notify-label { font-size: 14px; color: var(--text); }
.talep-toggle-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--border); border: none; border-radius: 20px;
  padding: 4px 12px 4px 4px; cursor: pointer;
  transition: background .2s; min-width: 80px;
}
.talep-toggle-btn.on { background: #1565C0; }
.talep-toggle-knob {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.talep-toggle-text {
  font-size: 12px; font-weight: 600;
  color: #fff; flex: 1; text-align: center;
}
.talep-toggle-btn:not(.on) .talep-toggle-text { color: var(--muted); }

/* ── Admin Ayarlar ───────────────────────────────────── */
.settings-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; padding:16px 0; }
@media(max-width:768px){ .settings-grid { grid-template-columns:1fr; } }
.settings-col {}
.settings-section-title { font-size:14px; font-weight:700; color:var(--text); margin:0 0 12px; padding-bottom:6px; border-bottom:2px solid var(--gold); }
.setting-group { background:var(--bg); border:1px solid var(--border); border-radius:var(--radius); padding:12px; margin-bottom:12px; }
.setting-group-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.setting-group-title { font-size:13px; font-weight:600; color:var(--text); }
.setting-tags { display:flex; flex-wrap:wrap; gap:6px; min-height:32px; }
.setting-tag { display:inline-flex; align-items:center; gap:4px; background:var(--bg2); border:1px solid var(--border); border-radius:20px; padding:3px 10px; font-size:12px; }
.setting-tag button { background:none; border:none; cursor:pointer; color:var(--muted); font-size:14px; line-height:1; padding:0 2px; }
.setting-tag button:hover { color:#c62828; }
.setting-toggle-row { display:flex; align-items:center; justify-content:space-between; padding:6px 0; border-bottom:1px solid var(--border); }
.setting-toggle-row:last-child { border-bottom:none; }
.settings-footer { padding:16px 0; text-align:right; border-top:1px solid var(--border); margin-top:8px; }

/* ═══════════════════════════════════════════════════════
   MOBİL İYİLEŞTİRMELER v2
════════════════════════════════════════════════════════ */

/* FAB */
.fab {
  display: none;
  position: fixed; bottom: 24px; right: 20px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  border: none; font-size: 28px; font-weight: 700;
  cursor: pointer; z-index: 90;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  align-items: center; justify-content: center;
  transition: transform .15s, box-shadow .15s;
}
.fab:hover { transform: scale(1.08); }
.fab:active { transform: scale(0.96); }

@media (max-width: 768px) {
  .header { height: 54px; padding: 0 10px; gap: 6px; }
  .nav { flex: 1; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 0; justify-content: space-around; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-btn { padding: 6px 10px; font-size: 18px; flex-shrink: 0; border-radius: 10px; }
  .nav-btn-text { display: none; }
  .hdr-right #yeni-ilan-btn { display: none; }
  .hdr-right #logout-btn { display: none; }
  .fab { display: flex; }
  .main { padding: 12px 12px 80px; }
  .overlay { padding: 0; align-items: flex-end; }
  .modal { border-radius: 20px 20px 0 0; max-height: 93vh; padding: 16px 16px 24px; width: 100%; max-width: 100%; }
  .modal::before { content: ''; display: block; width: 40px; height: 4px; background: var(--border); border-radius: 2px; margin: 0 auto 16px; }
  .modal-lg { max-width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 8px; }
  .toolbar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; gap: 6px; margin-bottom: 12px; }
  .toolbar::-webkit-scrollbar { display: none; }
  .toolbar select, .toolbar input[type="text"] { min-width: 110px; flex-shrink: 0; font-size: 12px; padding: 7px 10px; }
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .card-img { height: 190px; }
  .kanban-board { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 10px; padding-bottom: 8px; grid-template-columns: unset; }
  .kanban-board::-webkit-scrollbar { display: none; }
  .kanban-col { min-width: 260px; flex-shrink: 0; }
  .talep-right { gap: 4px; }
  .crm-actions { gap: 4px; }
  .crm-actions .btn-sm { padding: 4px 8px; font-size: 11px; }
  .crm-actions .icon-btn { width: 26px; height: 26px; font-size: 13px; }
  .detail-gallery { grid-template-columns: repeat(2, 1fr); }
  .task-detail-body { grid-template-columns: 1fr; }
  .task-detail-comments { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 16px; }
  .admin-table-wrap { overflow-x: auto; }
  .admin-table { min-width: 600px; }
  .admin-tabs { overflow-x: auto; scrollbar-width: none; }
  .admin-tabs::-webkit-scrollbar { display: none; }
  .dash-cards { grid-template-columns: repeat(2, 1fr); }
  .dash-charts { grid-template-columns: 1fr; }
  .toast { bottom: auto; top: 16px; font-size: 12px; padding: 10px 16px; max-width: 90vw; text-align: center; }
}
@media (max-width: 480px) {
  .nav-btn { padding: 5px 8px; font-size: 20px; }
}

/* ═══════════════════════════════════════════════════════
   BOTTOM NAV — sadece mobil
════════════════════════════════════════════════════════ */
.bottom-nav { display: none; }

@media (max-width: 768px) {
  /* Header nav gizle */
  .header .nav { display: none; }
  .header .hdr-right #yeni-ilan-btn { display: none; }

  /* Bottom nav göster */
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.1);
    z-index: 80;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .bottom-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    border-radius: 10px;
    transition: background .15s;
    color: rgba(255,255,255,.5);
  }
  .bottom-nav-btn:hover { background: rgba(255,255,255,.08); }
  .bottom-nav-btn.active {
    color: var(--gold);
  }
  .bottom-nav-btn.active .bottom-nav-icon {
    transform: translateY(-2px);
  }

  .bottom-nav-icon {
    font-size: 20px;
    line-height: 1;
    transition: transform .15s;
  }
  .bottom-nav-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .02em;
  }

  /* FAB — alt nav üstünde olsun */
  .fab { bottom: 72px; }

  /* Main — alt nav yüksekliği kadar padding */
  .main { padding-bottom: 72px; }
}

/* ═══════════════════════════════════════════════════════
   PIPELINE BOARD
════════════════════════════════════════════════════════ */
.pipeline-board {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  align-items: flex-start;
}
.pipeline-col {
  min-width: 200px;
  max-width: 200px;
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
}
.pipeline-col-header {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); padding: 2px 2px 10px;
}
.pipeline-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.pipeline-cnt {
  margin-left: auto;
  background: var(--border);
  border-radius: 20px;
  padding: 1px 7px;
  font-size: 11px;
  color: var(--muted);
}
.pipeline-cards { display: flex; flex-direction: column; gap: 7px; min-height: 60px; }
.pipeline-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rsm);
  padding: 10px;
  cursor: pointer;
  transition: box-shadow .15s, border-color .15s;
}
.pipeline-card:hover { box-shadow: var(--shadow); border-color: #a0aec0; }
.pipeline-card.drag-over-col { border: 2px dashed var(--gold); background: #fffde7; }
.pipeline-card-title { font-size: 12px; font-weight: 600; margin-bottom: 5px; line-height: 1.3; }
.pipeline-card-meta  { font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.pipeline-card-price { font-size: 12px; font-weight: 700; color: var(--red); }
.pipeline-card-no    { font-size: 10px; color: var(--muted); margin-top: 4px; }

.pipeline-stage-select {
  width: 100%; margin-top: 6px;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 768px) {
  .pipeline-col { min-width: 170px; max-width: 170px; }
}

/* ═══════════════════════════════════════════════════════
   İLAN FORM — Yeni Tasarım
════════════════════════════════════════════════════════ */
.ilan-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.ilan-section:last-of-type { border-bottom: none; }
.ilan-section-title {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); margin-bottom: 12px;
}
.ilan-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .ilan-upload-grid { grid-template-columns: 1fr; }
}

/* Kanal kartları */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}
.channel-card {
  border: 1.5px solid var(--border);
  border-radius: var(--rsm);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  background: var(--bg);
  user-select: none;
}
.channel-card:hover { background: #f0f4ff; border-color: var(--navy2); }
.channel-card.selected {
  border-color: var(--navy);
  background: #e8eeff;
}
.channel-card-icon { font-size: 22px; display: block; margin-bottom: 4px; }
.channel-card-name { font-size: 11px; font-weight: 600; color: var(--text); }
.channel-card.selected .channel-card-name { color: var(--navy); }

/* Checklist */
.checklist { display: flex; flex-direction: column; gap: 8px; }
.check-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text);
  cursor: pointer; padding: 6px 8px;
  border-radius: var(--rsm);
  transition: background .15s;
}
.check-item:hover { background: var(--bg); }
.check-item input[type="checkbox"] {
  width: 16px; height: 16px;
  cursor: pointer; flex-shrink: 0;
  accent-color: var(--navy);
}

/* ═══════════════════════════════════════════════════════
   DETAY SEKMELER & AKTİVİTE
════════════════════════════════════════════════════════ */
.detail-tabs {
  display: flex; gap: 4px;
  border-bottom: 2px solid var(--border);
  margin: 16px 0 12px;
}
.detail-tab {
  background: none; border: none;
  padding: 8px 14px; font-size: 13px;
  font-weight: 600; color: var(--muted);
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all .15s;
  font-family: inherit;
}
.detail-tab:hover { color: var(--navy); }
.detail-tab.active { color: var(--navy); border-bottom-color: var(--navy); }

.activity-timeline { display: flex; flex-direction: column; gap: 0; }
.act-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.act-item:last-child { border-bottom: none; }
.act-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.act-body { flex: 1; min-width: 0; }
.act-note { font-size: 13px; color: var(--text); }
.act-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════
   DASHBOARD GRAFİK HOVER
════════════════════════════════════════════════════════ */
.dash-chart-box {
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: default;
}
.dash-chart-box:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(13,27,62,.15);
  z-index: 10;
  position: relative;
}
.dash-charts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* ── Aktivite renkli nokta ── */
.act-dot-colored {
  width: 9px; height: 9px; border-radius: 50%;
  flex-shrink: 0; margin-top: 5px;
}
.act-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.act-item:last-child { border-bottom: none; }
.act-note { font-size: 13px; color: var(--text); line-height: 1.4; }
.act-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── Grafik küçük başla, hover'da büyü ── */
.dash-chart-box {
  transition: transform .25s ease, box-shadow .25s ease;
  transform: scale(0.92);
  transform-origin: center center;
}
.dash-chart-box:hover {
  transform: scale(1.0);
  box-shadow: 0 8px 32px rgba(13,27,62,.18);
  z-index: 10;
  position: relative;
}

/* Pipeline drag over */
.pipeline-cards.drag-over-active {
  background: #fffde7;
  border: 2px dashed var(--gold);
  border-radius: var(--rsm);
  min-height: 60px;
}
.pipeline-card.dragging { opacity: .4; }

.pipeline-col.pipeline-drag-over {
  background: #fffde7;
  border: 2px dashed var(--gold);
}

/* İlan form 2 kolon */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 0;
}
@media (max-width: 560px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   ALAN YÖNETİMİ
════════════════════════════════════════════════════════ */
.fields-toolbar {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.fields-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.fields-table {
  border-collapse: collapse;
  font-size: 12px;
  width: 100%;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}
.fields-table th {
  background: #f5f7ff;
  padding: 8px 6px;
  font-size: 11px; font-weight: 700;
  color: var(--muted);
  text-align: center;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.fields-table td {
  padding: 6px 8px;
  border: 1px solid var(--border);
  vertical-align: middle;
}
.fields-table tr:hover td { background: #fafbff; }
.combo-header {
  min-width: 32px;
  padding: 4px 2px !important;
}
.combo-lt {
  display: block;
  font-size: 9px;
  color: var(--blue);
  font-weight: 700;
}
.combo-pt {
  display: block;
  font-size: 9px;
  color: var(--muted);
}
.combo-cell {
  text-align: center;
  padding: 4px 2px !important;
}
.combo-cell input[type="checkbox"] {
  width: 14px; height: 14px;
  cursor: pointer;
  accent-color: var(--navy);
}
.field-label { font-weight: 600; font-size: 12px; }
.field-type {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════
   ALAN YÖNETİMİ — YENİ TASARIM
════════════════════════════════════════════════════════ */
.af-section-title {
  font-size: 13px; font-weight: 700;
  color: var(--navy); margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.af-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.af-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rsm);
  cursor: grab;
  transition: box-shadow .15s;
}
.af-row:hover { box-shadow: var(--shadow); }
.af-row.dragging { opacity: .4; border: 2px dashed var(--gold); }
.af-drag { color: var(--muted); font-size: 16px; cursor: grab; }
.af-label { flex: 1; font-size: 13px; font-weight: 500; }
.af-type { flex-shrink: 0; }
.af-check-label {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--muted);
  cursor: pointer; white-space: nowrap;
}
.af-check-label input { accent-color: var(--navy); }

/* ── Müşteri Combobox ──────────────────────────────────────── */
.combobox-wrap {
  position: relative;
}
.combobox-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  list-style: none;
  margin: 0; padding: 4px 0;
  z-index: 9999;
  max-height: 240px;
  overflow-y: auto;
}
.combobox-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background .12s;
  font-size: 14px;
}
.combobox-item:hover {
  background: var(--blue-light, #eef2ff);
}
.combobox-name {
  font-weight: 600;
  color: var(--text);
}
.combobox-phone {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.combobox-hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--navy);
  margin-left: 8px;
}
.combobox-hint a {
  color: var(--navy);
  text-decoration: underline;
  cursor: pointer;
}



/* ══════════════════════════════════════════════════════
   TALEPLER — WhatsThe.app Stili
══════════════════════════════════════════════════════ */
.toolbar-toggle-group {
  display: flex;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.toolbar-toggle {
  padding: 0 14px;
  height: 34px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  background: var(--bg-card);
  color: var(--text-muted);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.toolbar-toggle.active { background: var(--navy); color: #fff; }

/* Kart */
.rq-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color .15s;
}
.rq-card:hover { border-color: var(--navy); }
.rq-card.rq-open { border-color: var(--navy); }
.rq-card.rq-passive { opacity: .5; }

/* Header */
.rq-hdr {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}
.rq-card.rq-open .rq-hdr {
  border-bottom: 0.5px solid var(--border);
}
.rq-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
}
.rq-body { flex: 1; min-width: 0; }
.rq-r1 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.rq-owner {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 5px;
}
.rq-owner i { font-size: 13px; color: var(--navy); }
.rq-mine {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
  background: #eef9f0;
  color: #1b5e20;
}
.rq-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 460px;
}
.rq-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.rq-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
}
.t-blue   { background: #e3f0fd; color: #1565C0; }
.t-purple { background: #f3e8fd; color: #6a1b9a; }
.t-green  { background: #e8f5e9; color: #1b5e20; }
.t-teal   { background: #e0f2f1; color: #00695c; }
.t-amber  { background: #fff8e1; color: #e65100; }
.t-gray   { background: #f5f5f5; color: #424242; }

/* Sağ aksiyonlar */
.rq-acts {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}
.rq-match {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 20px;
  white-space: nowrap;
}
.match-high { background: #dcfce7; color: #15803d; }   /* eşleşme var → yeşil */
.match-mid  { background: #dcfce7; color: #15803d; }   /* eşleşme var → yeşil */
.match-zero { background: #fee2e2; color: #b91c1c; }   /* eşleşme yok → kırmızı */
.rq-link {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
}
.rq-ibt {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 20px;
  transition: background .12s, color .12s;
  flex-shrink: 0;
}
.rq-ibt:hover { background: var(--bg); }
.rq-notify-on { color: var(--navy); }
.rq-danger { color: #c62828; }
.rq-danger:hover { background: #ffebee; }
.rq-sbtn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  border: 0.5px solid;
  cursor: pointer;
  transition: background .12s;
  white-space: nowrap;
}
.rq-active  { background: #e8f5e9; color: #1b5e20; border-color: #a5d6a7; }
.rq-active:hover  { background: #c8e6c9; }
.rq-passive { background: #fff8e1; color: #e65100; border-color: #ffcc80; }
.rq-passive:hover { background: #ffe0b2; }
.rq-chev {
  font-size: 16px;
  color: var(--text-muted);
  transition: transform .2s;
  flex-shrink: 0;
}
.rq-chev.open { transform: rotate(180deg); }

/* Akordeon */
.rq-acc { display: none; padding: 12px 16px; }
.rq-acc.open { display: block; }

/* Malik butonu */
.rq-malik-row {
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 10px;
}
.rq-malik-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 0.5px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--navy);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background .12s;
}
.rq-malik-btn:hover { background: var(--bg); }

/* İlan listesi */
.rq-ilanlar {}
.rq-acc-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.rq-ilan-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 0.5px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fcfcfd;
  cursor: pointer;
  transition: background .12s, border-color .12s, box-shadow .12s;
}
.rq-ilan-row:hover {
  background: #fff;
  border-color: var(--border2);
  box-shadow: 0 1px 4px rgba(15,23,42,.06);
}
.rq-ilan-row:last-child { margin-bottom: 0; }
.rq-ilan-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.rq-ilan-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.rq-ilan-info { flex: 1; min-width: 0; }
.rq-ilan-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rq-ilan-no {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 5px;
  font-weight: 400;
}
.rq-ilan-meta {
  display: flex;
  gap: 5px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.rq-meta-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: #eef2f6;
  border-radius: 5px;
  color: #475569;
  font-weight: 500;
}
.rq-ilan-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.rq-score-pill {
  font-size: 13px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 20px;
}
.mscore-high { background: #dcfce7; color: #15803d; }   /* %80+ yeşil */
.mscore-mid  { background: #fef9c3; color: #a16207; }   /* %60+ sarı */
.mscore-low  { background: #fee2e2; color: #b91c1c; }   /* altı kırmızı */
.rq-price-pill {
  font-size: 13px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  white-space: nowrap;
}
/* eski s-hi/mid/lo (geri uyum) */
.s-hi { background: #e8f5e9; color: #1b5e20; }
.s-mid{ background: #fff8e1; color: #e65100; }
.s-lo { background: #fce4ec; color: #880e4f; }
.rq-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.rq-empty {
  font-size: 13px;
  color: var(--text-muted);
  padding: 12px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ── İlan kartı — başlık satırı + tip rozetleri ─────────────── */
.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.card-title-row .card-title {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}
.card-type-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.card-ptype {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.card-ptype-daire   { background: #fce4ec; color: #880e4f; }  /* kırmızı/pembe */
.card-ptype-villa   { background: #e8f5e9; color: #1b5e20; }  /* yeşil */
.card-ptype-arsa    { background: #fff8e1; color: #e65100; }  /* amber/turuncu */
.card-ptype-ticari  { background: #e3f0fd; color: #1565C0; }  /* mavi */
.card-ptype-default { background: #f1f5f9; color: #475569; }  /* gri */
.card-ltype {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.card-ltype-sale { background: #e3f0fd; color: #1565C0; }
.card-ltype-rent { background: #e8f5e9; color: #1b5e20; }

/* ── Müşteri kartı aksiyon butonları (Talepler stili) ───────── */
.crm-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border: none;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  transition: background .12s;
  white-space: nowrap;
}
.crm-btn-navy { background: var(--navy); }
.crm-btn-navy:hover { background: var(--navy2); }
.crm-btn-teal { background: var(--gold); }
.crm-btn-teal:hover { background: var(--gold2); }
.crm-link-btn i { font-size: 16px; }
.crm-ibt {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 20px;
  transition: background .12s, color .12s;
}
.crm-ibt:hover { background: var(--bg); }
.crm-ibt-danger { color: var(--red); }
.crm-ibt-danger:hover { background: #fef2f2; }
.crm-chevron {
  font-size: 16px;
  color: var(--muted);
  transition: transform .2s;
  margin-left: 2px;
}
.crm-chevron.open { transform: rotate(180deg); }
.crm-meta-ico { font-size: 13px; color: var(--muted); vertical-align: -2px; }

.crm-unlink-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border: 0.5px solid #fecaca;
  border-radius: 6px;
  background: #fff;
  color: var(--red);
  cursor: pointer;
  transition: background .12s;
}
.crm-unlink-btn:hover { background: #fef2f2; }
.crm-unlink-btn i { font-size: 13px; }

/* ── İlan detay modal başlık + aksiyonlar ───────────────────── */
.detail-modal-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 0.5px solid var(--border);
}
.detail-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.detail-head-top h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.detail-act {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 500;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: background .12s, border-color .12s;
  white-space: nowrap;
}
.detail-act:hover { background: var(--bg); border-color: var(--border2); }
.detail-act i { font-size: 16px; color: var(--muted); }
.detail-act-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.detail-act-primary i { color: #fff; }
.detail-act-primary:hover { background: var(--navy2); border-color: var(--navy2); }

/* ── İlan kartı ek badge'ler (Telegram + Eksik) ─────────────── */
.badge-telegram {
  background: #229ED9;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.badge-telegram i { font-size: 14px; }
.badge-incomplete {
  background: #fef3c7;
  color: #b45309;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.badge-incomplete i { font-size: 13px; }

/* ═══ İLAN İLGİLERİ (lead/teklif) ═══ */
.ilgi-banner{align-items:center;gap:8px;background:#fee2e2;color:#b91c1c;border-radius:10px;padding:10px 14px;margin-bottom:14px;font-size:14px}
.ilgi-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:start}
.ilgi-col{background:#f8fafc;border:1px solid #eef0f3;border-radius:12px;padding:10px}
.ilgi-col-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-weight:600;font-size:14px;color:var(--navy,#1e293b)}
.ilgi-count{font-size:12px;font-weight:500;color:#64748b;background:#eef0f3;border-radius:10px;padding:1px 9px}
.ilgi-col-body{display:flex;flex-direction:column;gap:8px;min-height:40px}
.ilgi-empty{color:#cbd5e1;font-size:13px;text-align:center;margin:6px 0}
.ilgi-card{background:#fff;border:1px solid #e8eaed;border-radius:10px;padding:10px;cursor:pointer;transition:box-shadow .15s,transform .15s}
.ilgi-card:hover{box-shadow:0 3px 12px rgba(0,0,0,.08);transform:translateY(-1px)}
.ilgi-card-name{font-weight:600;font-size:14px;color:#1e293b}
.ilgi-card-listing{font-size:12px;color:#64748b;margin:2px 0 8px}
.ilgi-offer{font-size:13px;font-weight:600;color:#0d9488;margin-top:8px}
.ilgi-date{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:#64748b;margin-top:8px}
.ilgi-date.overdue{color:#dc2626;font-weight:600}
.ilgi-tip{display:inline-block;font-size:11px;font-weight:600;border-radius:5px;padding:2px 7px}
.tip-bilgi{background:#e0f2fe;color:#0369a1}
.tip-teklif{background:#fef3c7;color:#92400e}
.tip-goruntuleme{background:#d1fae5;color:#065f46}
.tip-belge{background:#ede9fe;color:#5b21b6}
.tip-geri{background:#f1f5f9;color:#475569}
.tip-baska{background:#ffe4e6;color:#9f1239}
@media(max-width:768px){.ilgi-board{grid-template-columns:1fr;gap:14px}}

/* Header kullanıcı adı */
.hdr-username{font-size:14px;font-weight:600;color:var(--navy,#1e293b);margin-right:4px;white-space:nowrap}
@media(max-width:768px){.hdr-username{display:none}}
