/* Yazı tipi kendi sunucumuzdan gelir (Plus Jakarta Sans, SIL OFL; ziyaretçi bilgisi üçüncü tarafa gitmez) */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
/* ================= Tema değişkenleri ================= */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #f1efeb;
  --text: #16171a;
  --text-2: #3d4047;
  --muted: #787b84;
  --border: #e7e4de;
  --ink: #16171a;          /* logo ile uyumlu ana renk */
  --on-ink: #ffffff;
  --accent: var(--brand-light, #e0531f);       /* vurgu rengi (firmanın marka rengi; okunurluğu brand.tsx sağlar) */
  --accent-soft: color-mix(in srgb, var(--accent) 12%, #fff);
  --ok: #178a55;
  --warn: #b86e00;
  --danger: #cf3434;
  --wa: #1ea952;
  --logo-filter: none;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 23, 26, .04), 0 2px 8px rgba(22, 23, 26, .04);
  --shadow-lg: 0 12px 40px rgba(22, 23, 26, .16);
  --sidebar-w: 248px;
  color-scheme: light;

  /* aşama renkleri */
  --st-yeni: #3b6fe0; --st-yeni-bg: #e9effd;
  --st-iletisim: #0c8aa6; --st-iletisim-bg: #e3f5f9;
  --st-gosterim: #7a4fd6; --st-gosterim-bg: #f0eafc;
  --st-teklif: #c07000; --st-teklif-bg: #fdf1dc;
  --st-kazanildi: #178a55; --st-kazanildi-bg: #e1f5ea;
  --st-kaybedildi: #c63a3a; --st-kaybedildi-bg: #fbe7e7;
}

/* Koyu tema yalnızca kullanıcı seçerse (data-theme="dark"); varsayılan her zaman açık tema */
:root[data-theme="dark"] {
  --bg: #0e0f12; --surface: #17181c; --surface-2: #1f2025; --text: #eeeef0; --text-2: #c5c6cb; --muted: #8b8d96;
  --border: #2a2b31; --ink: #f2f2f3; --on-ink: #111214; --accent: var(--brand-dark, #ff7a45); --accent-soft: color-mix(in srgb, var(--accent) 20%, #17181c);
  --logo-filter: invert(1); --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 16px 48px rgba(0, 0, 0, .6);
  color-scheme: dark;
  --st-yeni: #7da2ff; --st-yeni-bg: #1b2440; --st-iletisim: #4cc3de; --st-iletisim-bg: #102c33;
  --st-gosterim: #b294ff; --st-gosterim-bg: #261d3d; --st-teklif: #f2b046; --st-teklif-bg: #33260f;
  --st-kazanildi: #4fd08f; --st-kazanildi-bg: #122d20; --st-kaybedildi: #ff7b7b; --st-kaybedildi-bg: #3a1a1a;
}

/* ================= Temel ================= */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font: 14px/1.5 "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text);
  min-height: 100vh; -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.2; }
h3 { font-size: 14.5px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
h3 > .i { color: var(--muted); width: 17px; height: 17px; }
h3 small { color: var(--muted); font-weight: 500; font-size: 12.5px; }
h3 .btn { margin-left: auto; }
.i { width: 18px; height: 18px; flex-shrink: 0; }
.muted { color: var(--muted); font-size: 12.5px; }
.warn { color: var(--warn); font-weight: 600; }
.danger { color: var(--danger); }
.grow { flex: 1; min-width: 0; }
.show-sm { display: none; }
.logo-img { display: block; height: auto; max-width: 100%; }
.logo-invert .logo-img, .logo-invert .logo-preview img { filter: var(--logo-filter); }

/* ================= Kenar çubuğu ================= */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w);
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 24px 16px 16px; gap: 20px; z-index: 20;
}
.brand { padding: 4px 10px 0; }
.brand .logo-img { width: 170px; }
.office-box { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.office-box label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.office-select {
  width: 100%; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--text); background: transparent; border: 0; padding: 2px 20px 2px 0; cursor: pointer;
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center;
}
.office-select:focus { outline: none; }
.office-select option { color: #111; background: #fff; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 600; transition: background .15s, color .15s; }
.nav a .i { color: var(--muted); }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--ink); color: var(--on-ink); }
.nav a.active .i { color: var(--on-ink); }
.sidebar-foot { margin-top: auto; }
.theme-toggle {
  width: 100%; display: flex; align-items: center; gap: 10px; font: inherit; font-weight: 600; font-size: 13px;
  padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer;
}
.theme-toggle:hover { background: var(--surface-2); }

.topbar, .bottom-nav, .fab { display: none; }

main { margin-left: var(--sidebar-w); padding: 32px 40px 80px; max-width: calc(1320px + var(--sidebar-w)); }

/* ================= Düğmeler ================= */
.btn {
  font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 8px 14px; border-radius: var(--radius-sm); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; min-height: 38px;
}
.btn .i { width: 16px; height: 16px; }
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn.primary:hover { opacity: .88; }
.btn.primary:disabled { opacity: .5; cursor: wait; }
.btn.wa { background: var(--wa); color: #fff; border-color: var(--wa); }
.btn.wa:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.danger-ghost { color: var(--danger); }
.btn.icon-only { padding: 8px; width: 38px; }
.btn.sm { padding: 5px 10px; font-size: 12px; min-height: 30px; }
.btn.sm .i { width: 14px; height: 14px; }
.icon-btn { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 6px; border-radius: 8px; display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.sm { padding: 4px; opacity: 0; transition: opacity .15s; }
.icon-btn.sm .i { width: 14px; height: 14px; }
li:hover > .icon-btn.sm, li:hover .icon-btn.sm { opacity: 1; }
.wa-ic { color: var(--wa); }

/* ================= Kart & rozet ================= */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.empty { color: var(--muted); padding: 28px 16px; text-align: center; font-size: 13px; }
.empty .i { width: 28px; height: 28px; opacity: .5; }
.empty p { margin: 8px 0 0; }

.badge { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; line-height: 1.4; }
.badge.office { background: var(--accent-soft); color: var(--accent); }
.st-yeni { background: var(--st-yeni-bg); color: var(--st-yeni); }
.st-iletisim { background: var(--st-iletisim-bg); color: var(--st-iletisim); }
.st-gosterim { background: var(--st-gosterim-bg); color: var(--st-gosterim); }
.st-teklif { background: var(--st-teklif-bg); color: var(--st-teklif); }
.st-kazanildi { background: var(--st-kazanildi-bg); color: var(--st-kazanildi); }
.st-kaybedildi { background: var(--st-kaybedildi-bg); color: var(--st-kaybedildi); }
.bg-yeni { background: var(--st-yeni) !important; } .bg-iletisim { background: var(--st-iletisim) !important; }
.bg-gosterim { background: var(--st-gosterim) !important; } .bg-teklif { background: var(--st-teklif) !important; }
.bg-kazanildi { background: var(--st-kazanildi) !important; } .bg-kaybedildi { background: var(--st-kaybedildi) !important; }
.ps-aktif { background: var(--st-kazanildi-bg); color: var(--st-kazanildi); }
.ps-opsiyonlu { background: var(--st-teklif-bg); color: var(--st-teklif); }
.ps-satildi, .ps-kiralandi { background: var(--st-yeni-bg); color: var(--st-yeni); }
.pill { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.danger { background: var(--st-kaybedildi-bg); color: var(--danger); }
.pill.warn { background: var(--st-teklif-bg); color: var(--warn); }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0;
  background: var(--surface-2); color: var(--text-2); font-weight: 700; font-size: 12.5px; letter-spacing: .02em;
}
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }
.avatar.lg { width: 60px; height: 60px; font-size: 20px; background: var(--ink); color: var(--on-ink); }

/* ================= Sayfa başı ================= */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.sub { color: var(--muted); margin: 4px 0 0; display: flex; align-items: center; gap: 6px; font-weight: 500; }
.sub .i { width: 15px; height: 15px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.back .i { width: 16px; height: 16px; }

/* ================= Panel ================= */
.hero {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px;
}
.hero-date { color: var(--muted); margin: 0 0 4px; font-weight: 600; font-size: 13px; text-transform: capitalize; }
.hero h1 { font-size: 30px; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
  display: flex; gap: 12px; align-items: center; transition: transform .15s, border-color .15s; min-width: 0;
}
.stat:hover { transform: translateY(-2px); border-color: var(--muted); color: inherit; }
.stat > div { min-width: 0; }
.stat span:not(.stat-ic) { color: var(--muted); font-size: 12.5px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; display: block; white-space: nowrap; }
.stat-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.stat-ic .i { width: 20px; height: 20px; }
.stat-ic.c1 { background: var(--st-yeni-bg); color: var(--st-yeni); }
.stat-ic.c2 { background: var(--st-gosterim-bg); color: var(--st-gosterim); }
.stat-ic.c3 { background: var(--accent-soft); color: var(--accent); }
.stat-ic.c4 { background: var(--st-teklif-bg); color: var(--st-teklif); }
.stat-ic.c5 { background: var(--st-kazanildi-bg); color: var(--st-kazanildi); }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.span-2 { grid-column: span 2; }

.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 28px; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; }
.bar { background: var(--surface-2); border-radius: 99px; height: 10px; overflow: hidden; }
.bar div { background: var(--ink); height: 100%; border-radius: 99px; min-width: 4px; transition: width .4s; }
.bar-row b { text-align: right; }

/* listeler */
.task-list, .timeline, .match-list, .people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.people li:last-child { border-bottom: 0; }
.people a { font-weight: 600; }

.task-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.task-list li:last-child { border-bottom: 0; }
.task-list li.done .check span { text-decoration: line-through; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; min-width: 0; }
.check input { width: 18px; height: 18px; accent-color: var(--ok); flex-shrink: 0; }
.task-list .meta { display: flex; gap: 8px; align-items: center; font-size: 12.5px; white-space: nowrap; }
.task-list .meta a { color: var(--muted); font-weight: 600; }

.timeline li { position: relative; padding: 0 0 18px 22px; }
.timeline li::before { content: ''; position: absolute; left: 5px; top: 18px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ''; position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink); }
.timeline li.tl-durum::after { border-color: var(--muted); }
.timeline li.tl-teklif::after { border-color: var(--st-teklif); }
.timeline li.tl-whatsapp::after { border-color: var(--wa); }
.timeline li.tl-gosterim::after { border-color: var(--st-gosterim); }
.timeline li.tl-arama::after { border-color: var(--st-yeni); }
.tl-head { font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.tl-type { font-weight: 700; }
.tl-head a { font-weight: 600; }
.muted-link { color: var(--muted); }
.tl-date { margin-left: auto; color: var(--muted); font-size: 12px; }
.timeline p { margin: 4px 0 0; white-space: pre-wrap; color: var(--text-2); }

/* ================= Tablo & filtre ================= */
.toolbar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.search { flex: 1; min-width: 240px; position: relative; display: flex; align-items: center; }
.search .i { position: absolute; left: 12px; color: var(--muted); width: 16px; height: 16px; pointer-events: none; }
.search input { width: 100%; padding-left: 38px; }
input, select, textarea {
  font: inherit; font-size: 14px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 12px; min-height: 40px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 64px; }
/* Telefonda 16px altı yazılı alana dokununca iPhone sayfayı büyütür; dokunmatik ekranlarda en az 16px */
@media (max-width: 760px), (pointer: coarse) { input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px; } }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--surface-2); }
.toolbar select { cursor: pointer; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 16px; background: var(--surface-2); white-space: nowrap; }
td { padding: 12px 16px; border-top: 1px solid var(--border); vertical-align: middle; }
tbody tr { cursor: pointer; transition: background .12s; }
tbody tr:hover { background: var(--surface-2); }
.who { display: flex; align-items: center; gap: 10px; }
.who .muted { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ================= Müşteri detayı ================= */
.profile { margin-bottom: 16px; }
.profile-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profile-top h1 { margin-bottom: 6px; }
.contact-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.contact-row:empty { display: none; }
.stage-bar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 18px; }
.stage-bar button {
  font: inherit; font-size: 12.5px; font-weight: 600; padding: 9px 6px; border: 1px solid var(--border);
  cursor: pointer; border-radius: var(--radius-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: .15s;
}
.stage-bar button:not(.active) { background: var(--surface); color: var(--muted); }
.stage-bar button:hover { border-color: var(--muted); color: var(--text); }
.stage-bar button.passed:not(.active) { background: var(--surface-2); color: var(--text-2); }
.stage-bar button.active { font-weight: 800; border-color: currentColor; }
.grid-detail { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
dl.info { display: grid; grid-template-columns: 100px 1fr; gap: 10px 12px; margin: 0; font-size: 13.5px; }
dl.info dt { color: var(--muted); font-weight: 500; }
dl.info dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.notes { background: var(--surface-2); padding: 12px 14px; border-radius: var(--radius-sm); margin: 14px 0 0; white-space: pre-wrap; font-size: 13px; color: var(--text-2); }

.quick-act { display: flex; flex-direction: column; gap: 10px; }
.quick-row { display: flex; gap: 8px; align-items: stretch; }
.quick-row textarea { flex: 1; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: .15s; }
.seg input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px var(--surface-2); }

.match-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.match-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.match-list li:first-child { padding-top: 0; }
.m-main { min-width: 0; flex: 1; }
.m-main .muted { margin-top: 2px; }
.m-price { font-weight: 800; margin-top: 4px; }
.m-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.reasons { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.reasons span { font-size: 11px; font-weight: 600; background: var(--surface-2); color: var(--text-2); padding: 2px 8px; border-radius: 99px; }
.ring {
  --c: var(--muted); width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-2) 0);
}
.ring span { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.ring.hi { --c: var(--ok); } .ring.mid { --c: var(--st-teklif); }

/* ================= Kanban ================= */
.kanban { display: grid; grid-template-columns: repeat(6, minmax(230px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.k-col { background: var(--surface-2); border: 2px dashed transparent; border-radius: var(--radius); min-height: 60vh; display: flex; flex-direction: column; scroll-snap-align: start; transition: .15s; }
.k-col.over { border-color: var(--ink); }
.k-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 4px; font-weight: 700; font-size: 13px; }
.k-head b { margin-left: auto; background: var(--surface); border-radius: 99px; padding: 1px 9px; font-size: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.k-total { padding: 0 14px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.k-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.k-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; cursor: grab; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.k-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.k-card.dragging { opacity: .4; }
.k-card .who { margin-bottom: 4px; }
.k-budget { font-size: 12.5px; margin-top: 6px; font-weight: 700; }
.k-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--text-2); }
.k-empty { color: var(--muted); text-align: center; padding: 16px; font-size: 12.5px; }

/* ================= Portföy ================= */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.prop-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.prop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.prop-cover { position: relative; height: 130px; padding: 12px; display: flex; justify-content: space-between; align-items: flex-start; color: #fff; }
.t-daire { background: linear-gradient(135deg, #2f3542, #57606f); }
.t-villa { background: linear-gradient(135deg, #0f5c56, #2a9d8f); }
.t-mustakil { background: linear-gradient(135deg, #7a4b1e, #c07a36); }
.t-arsa, .t-tarla { background: linear-gradient(135deg, #3d5a1e, #7a9a3a); }
.t-isyeri, .t-dukkan { background: linear-gradient(135deg, #2b2d6b, #5a5fc7); }
.cover-ic { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -45%); opacity: .25; }
.cover-ic .i { width: 54px; height: 54px; }
.cover-logo { position: absolute; right: 12px; bottom: 10px; width: 78px; filter: invert(1); opacity: .9; }
.deal { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 255, 255, .95); color: #111; padding: 4px 9px; border-radius: 99px; }
.deal.satilik { color: #c2410c; } .deal.kiralik { color: #1d4ed8; }
.prop-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prop-body h3 { margin: 0; font-size: 15px; line-height: 1.35; }
.loc { display: flex; align-items: center; gap: 4px; }
.loc .i { width: 14px; height: 14px; }
.specs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.specs span { font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-2); padding: 3px 9px; border-radius: 8px; }
.prop-office { margin-top: auto; padding-top: 8px; font-size: 11.5px; font-weight: 700; color: var(--accent); }
.price { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.price small { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.price.big { font-size: 30px; }

.prop-hero { position: relative; border-radius: var(--radius); padding: 28px; color: #fff; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; overflow: hidden; }
.prop-hero h1 { margin: 10px 0 6px; font-size: 28px; }
.prop-hero .loc { opacity: .85; margin: 0 0 10px; }
.prop-hero .price small { color: rgba(255, 255, 255, .7); }
.prop-hero .badge.neutral { background: rgba(255, 255, 255, .18); color: #fff; }
.prop-hero .badge.office { background: rgba(255, 255, 255, .95); color: #111; }
.prop-hero .btn { background: rgba(255, 255, 255, .95); color: #111; border-color: transparent; }
.prop-hero .btn.danger-ghost { color: #c62828; }
.hero-logo { position: absolute; right: 28px; top: 24px; width: 120px; filter: invert(1); opacity: .9; }
.prop-hero-body { max-width: 640px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.facts div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; min-width: 0; }
.facts span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.facts b { font-size: 14px; overflow-wrap: anywhere; }

/* ================= Modal ================= */
.modal-bg { position: fixed; inset: 0; background: rgba(10, 10, 12, .5); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; z-index: 50; animation: fade .15s; }
.modal-bg.closing { opacity: 0; transition: opacity .15s; }
.modal { background: var(--surface); border-radius: 18px; width: min(520px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: pop .18s ease-out; }
.modal.wide { width: min(760px, 100%); }
.modal header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal h2 { font-size: 18px; margin: 0; font-weight: 800; }
.modal-body { padding: 18px 22px; overflow-y: auto; }
.modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--border); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--text-2); font-weight: 600; min-width: 0; }
.field b { color: var(--accent); }
.field input, .field select, .field textarea { width: 100%; }
.field.full, .form-section { grid-column: 1 / -1; }
.form-section { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--border); }
.form-section h4 { margin: 0; font-size: 14px; }
.form-section span { font-size: 12px; color: var(--muted); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
@keyframes sheet { from { transform: translateY(100%); } }

#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: var(--on-ink);
  padding: 11px 18px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.error { background: var(--danger); color: #fff; }

/* ================= Duyarlı tasarım ================= */
@media (max-width: 1280px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  main { padding: 28px 24px 80px; }
  .dash-grid, .grid-detail { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
}

@media (max-width: 760px) {
  :root { --radius: 14px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .sidebar { display: none; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }

  .topbar {
    display: flex; position: sticky; top: 0; z-index: 20; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top));
    background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
  }
  .topbar .logo-img { width: 118px; }
  .topbar-right { display: flex; align-items: center; gap: 4px; min-width: 0; }
  .topbar .office-select { width: auto; max-width: 175px; font-size: 16px; font-weight: 600; background-color: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 6px 26px 6px 12px; background-position: right 9px center; text-overflow: ellipsis; }
  .topbar .icon-btn { width: 36px; height: 36px; }

  .bottom-nav {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--border);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 6px 0; border-radius: 10px; }
  .bottom-nav a .i { width: 22px; height: 22px; }
  .bottom-nav a.active { color: var(--text); }
  .bottom-nav a.active .i { stroke-width: 2.5; }
  .fab {
    display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 30;
    width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-lg); cursor: pointer;
  }
  .fab .i { width: 24px; height: 24px; }
  /* + yalnızca kayıt eklenen listelerde (panel, müşteriler, huni, portföy); sayfa başlığındaki ana düğme telefonda gizli, onun yerine geçer */
  body[data-page$="-detail"] .fab, body[data-page="ayarlar"] .fab, body[data-page="web-sitesi"] .fab, body[data-page="kayitlar"] .fab { display: none; }

  main { margin-left: 0; padding: 18px 16px 24px; }
  h1 { font-size: 22px; }
  .hero h1 { font-size: 24px; }
  .hero .actions, .page-head .actions .btn.primary { display: none; }
  .page-head { margin-bottom: 16px; align-items: center; }
  .card { padding: 16px; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stats .stat:first-child { grid-column: span 2; }
  .stat { padding: 12px; gap: 10px; }
  .stat-ic { width: 36px; height: 36px; border-radius: 10px; }
  .stat b { font-size: 20px; }
  .bar-row { grid-template-columns: 96px 1fr 24px; gap: 8px; font-size: 12.5px; }

  .toolbar { gap: 6px; }
  .search { min-width: 100%; }
  .toolbar select { flex: 1 1 calc(50% - 3px); min-width: 0; font-size: 16px; padding: 8px 10px; }

  /* Tablo → kart listesi */
  .rtable thead { display: none; }
  .rtable, .rtable tbody, .rtable tr, .rtable td { display: block; width: 100%; }
  .rtable tr { padding: 14px 16px; border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .rtable tr:first-child { border-top: 0; }
  .rtable td { padding: 0; border: 0; font-size: 13px; min-width: 0; }
  .rtable td.cell-main { grid-column: 1 / -1; }
  .rtable td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

  .profile-top { gap: 12px; }
  .profile-top .avatar.lg { width: 48px; height: 48px; font-size: 16px; }
  .profile-top .actions { position: absolute; right: 12px; top: 12px; }
  .profile { position: relative; }
  .profile-top .grow { padding-right: 84px; }
  .contact-row .btn { flex: 1; }
  /* Aşamaların hepsi görünsün (yana kaydırma gizli kalıyordu): 3'lü iki sıra */
  .stage-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stage-bar button { padding: 9px 6px; min-height: 40px; font-size: 13px; white-space: normal; line-height: 1.2; }
  /* Küçük dokunma alanları: geri bağlantısı ve özet etiketleri */
  .back { min-height: 40px; padding-right: 12px; margin-bottom: 6px; }
  a.pill { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; }
  .quick-row { flex-direction: column; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  dl.info { grid-template-columns: 96px 1fr; }
  .icon-btn.sm { opacity: .6; }
  .tl-date { margin-left: 0; width: 100%; order: 5; }
  .task-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .task-list .meta { padding-left: 28px; }

  .kanban { grid-template-columns: repeat(6, 84vw); margin-inline: -16px; padding: 0 16px 12px; scroll-padding: 16px; }
  .k-col { min-height: 50vh; }
  .k-card { cursor: pointer; }

  .prop-grid { grid-template-columns: 1fr; gap: 12px; }
  .prop-hero { padding: 20px; }
  .prop-hero h1 { font-size: 22px; }
  .hero-logo { width: 86px; right: 18px; top: 18px; }
  .price.big { font-size: 24px; }
  .prop-hero .actions { width: 100%; }

  .modal-bg { place-items: end stretch; padding: 0; }
  .modal, .modal.wide { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; animation: sheet .22s ease-out; }
  .modal footer { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .modal footer .btn { flex: 1; }
  .form-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .field.full, .form-section { grid-column: 1 / -1; }
  #toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .form-grid { grid-template-columns: 1fr; }
  .topbar .office-select { max-width: 130px; }
}

/* ================= Web sitesi senkronu & fotoğraflar ================= */
.sync-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 14px 18px; }
.sync-bar b { font-weight: 700; }
.sync-bar .muted { display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.sync-bar .muted .i { width: 13px; height: 13px; }
.sync-bar .ok { color: var(--ok); font-weight: 600; }
.sync-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); flex-shrink: 0; }
.sync-ic.spin .i { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sync-progress { margin-top: 8px; height: 6px; }
.count { margin: -4px 0 12px; }

.prop-cover.has-img { background: var(--surface-2); height: 180px; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prop-cover > .deal, .prop-cover > .badge { position: relative; z-index: 1; }
.prop-cover.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 40%); pointer-events: none; }
.prop-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
.prop-foot .prop-office { margin: 0; padding: 0; }
.site-no { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.site-no .i { width: 12px; height: 12px; }

.form-note { display: flex; gap: 10px; align-items: flex-start; background: var(--accent-soft); color: var(--text-2); padding: 12px 14px; border-radius: var(--radius-sm); font-size: 12.5px; margin-bottom: 16px; }
.form-note .i { color: var(--accent); margin-top: 1px; }

.alert { display: flex; gap: 10px; align-items: center; background: var(--st-teklif-bg); color: var(--st-teklif); padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: 13px; margin-bottom: 14px; }

.prop-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.gallery { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.g-main { position: relative; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--surface-2); aspect-ratio: 4 / 3; max-height: 540px; width: 100%; }
.g-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.6); color: #fff; font: inherit; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 99px; }
.g-count .i { width: 14px; height: 14px; }
.g-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.g-thumbs button { flex: 0 0 92px; height: 68px; border: 2px solid transparent; border-radius: 10px; padding: 0; overflow: hidden; cursor: pointer; background: var(--surface-2); opacity: .7; transition: .15s; }
.g-thumbs button.active, .g-thumbs button:hover { border-color: var(--ink); opacity: 1; }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.summary h1 { font-size: 22px; margin: 12px 0 6px; }
.summary .loc { color: var(--muted); margin: 0 0 12px; }
.summary .price.big { margin-bottom: 4px; }
.summary .actions { margin-top: 16px; }
.site-line { display: flex; align-items: center; gap: 5px; margin-top: 10px; }
.site-line .i { width: 13px; height: 13px; }
.amenities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.amenities span { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--st-kazanildi-bg); color: var(--st-kazanildi); }
.desc { white-space: pre-line; color: var(--text-2); font-size: 13.5px; max-height: 260px; overflow: hidden; position: relative; }
.desc:not(.open)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, var(--surface)); }
.desc.open { max-height: none; }
.desc + .btn { margin-top: 10px; }

.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(5,5,7,.94); display: grid; place-items: center; animation: fade .15s; }
.lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; border-radius: 6px; }
.lb-btn { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 600; font-size: 13px; opacity: .8; }

@media (max-width: 1100px) {
  .prop-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .sync-bar { padding: 12px 14px; gap: 10px; align-items: flex-start; }
  .sync-ic { width: 34px; height: 34px; }
  .sync-bar .btn { padding: 8px; width: 38px; }
  .prop-cover.has-img { height: 200px; }
  .gallery { margin-inline: -16px; }
  .g-main { border-radius: 0; }
  .g-thumbs { padding: 0 16px 4px; }
  .g-thumbs button { flex-basis: 72px; height: 54px; }
  .summary .actions .btn:not(.icon-only) { flex: 1; }
  .lb-prev, .lb-next { top: auto; bottom: 24px; transform: none; }
}

/* ================= Ofis kartları (panel) ================= */
.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.office-card {
  font: inherit; color: var(--text); text-align: left; cursor: pointer; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; transition: transform .15s, border-color .15s;
}
.office-card:hover { transform: translateY(-2px); border-color: var(--ink); }
.oc-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.oc-head .i { color: var(--accent); }
.oc-nums { display: flex; gap: 18px; }
.oc-nums b { font-size: 20px; font-weight: 800; display: block; line-height: 1.1; }
.oc-nums span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.office-card .muted { margin: 0; font-size: 11.5px; line-height: 1.4; }
@media (max-width: 760px) {
  .offices { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
  .office-card { scroll-snap-align: start; }
  .topbar .office-select { max-width: 150px; }
}

/* ================= Giriş ekranı & hesap ================= */
.hidden { display: none !important; }
body.auth-screen .sidebar, body.auth-screen .topbar, body.auth-screen .bottom-nav, body.auth-screen .fab { display: none !important; }
body.auth-screen main { margin: 0; max-width: none; padding: 0; }
body.auth-screen { padding-bottom: 0; }
.auth-wrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(400px, 100%); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.auth-logo { width: 180px; margin: 0 auto 8px; }
.auth-card h1 { font-size: 22px; text-align: center; }
.auth-card > .muted { text-align: center; margin: -6px 0 4px; font-size: 13px; }
.auth-card .field input { width: 100%; }
.auth-error { color: var(--danger); font-size: 13px; font-weight: 600; margin: 0; min-height: 1em; }
.auth-error:empty { display: none; }
.btn.big { min-height: 46px; font-size: 14.5px; }
.small { font-size: 12px; text-align: center; margin: 0; }

.user-box { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.user-box:empty { display: none; }
.user-chip { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); }
.user-chip:hover { background: var(--surface-2); color: inherit; }
.user-chip b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.office-select:disabled { cursor: default; opacity: 1; background-image: none; }

.account { margin-bottom: 16px; }
.account h2 { margin: 0 0 6px; font-size: 20px; }
.account .muted { margin: 8px 0 0; }
.users-card { margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.card-head h3 { margin: 0; }
.users-card tbody tr { cursor: default; }
.row-actions { text-align: right; white-space: nowrap; }
.row-actions .btn + .btn { margin-left: 6px; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-grid > div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; }
.role-grid p { margin: 4px 0 0; color: var(--text-2); font-size: 13px; }

@media (max-width: 760px) {
  .bottom-nav { grid-template-columns: repeat(5, 1fr); }
  .bottom-nav a { font-size: 10.5px; }
  body[data-page="hesap"] .fab { display: none; }
  .account .profile-top .actions { position: static; width: 100%; }
  .account .profile-top .grow { padding-right: 0; }
  .account .actions .btn { flex: 1; }
  .role-grid { grid-template-columns: 1fr; }
  .rtable td.row-actions { grid-column: 1 / -1; text-align: left; }
  .card-head { padding: 14px 16px; }
}

/* ================= Ekip ================= */
.team-card tbody tr { cursor: pointer; }
.ok-text { color: var(--ok); }
.role-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-head .pill { text-decoration: none; }
@media (max-width: 1000px) { .role-grid.three { grid-template-columns: 1fr; } }
.team-card td.cell-main, .users-card td.cell-main { min-width: 200px; }
.team-card .table-scroll, .users-card .table-scroll { overflow-x: auto; }

/* Danışman panelinde 4 kutu (portföy değeri yok) */
.stats.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1280px) { .stats.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .stats.n4 .stat:first-child { grid-column: auto; }
  body[data-page="portfoy-detail"] .fab { display: none; }
}

/* Logosu olmayan firmalar: firma adı yazı olarak */
.brand-text { display: block; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--text); line-height: 1.2; overflow-wrap: anywhere; }
.topbar .brand-text { font-size: 16px; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-card .brand-text { text-align: center; font-size: 24px; margin-bottom: 8px; }

/* ================= Firma ayarları ================= */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack .field input, .stack .field textarea { width: 100%; }
.field small { font-weight: 500; }
.color-row { display: flex; gap: 8px; }
.color-row input[type=color] { width: 48px; padding: 4px; cursor: pointer; flex-shrink: 0; }
.color-row input[name=brand_color] { flex: 1; font-family: ui-monospace, monospace; }
.logo-preview { min-height: 90px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 16px; border: 1px dashed var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; }
.logo-preview img { max-width: 220px; max-height: 80px; object-fit: contain; }
.top-gap { margin-top: 14px; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--ink); background: var(--surface-2); }
.radio-card.disabled { opacity: .5; cursor: not-allowed; }
.radio-card input { margin-top: 3px; accent-color: var(--ink); }
.radio-card b { display: block; font-size: 13.5px; }
.radio-card small { color: var(--muted); font-size: 12px; }
@media (max-width: 1100px) { .settings-grid { grid-template-columns: minmax(0, 1fr); } .settings-grid .span-2 { grid-column: auto; } }
.field > span small { margin-left: 4px; }


/* ================= Güvenlik ekranları (ortak) ================= */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.secret-box { font-family: ui-monospace, monospace; font-size: 17px; letter-spacing: .12em; background: var(--surface-2); border-radius: 10px; padding: 12px 14px; text-align: center; word-break: break-all; user-select: all; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-family: ui-monospace, monospace; font-size: 15px; background: var(--surface-2); border-radius: 10px; padding: 12px 16px; user-select: all; }
.link-box { display: flex; gap: 8px; }
.link-box input { flex: 1; font-family: ui-monospace, monospace; font-size: 12.5px; }
.warn-box { background: var(--st-teklif-bg); color: var(--st-teklif); border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 600; }
.danger-box { background: var(--st-kaybedildi-bg); color: var(--danger); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.steps { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 13px; line-height: 1.6; text-align: left; }
.full-w { width: 100%; }
.sess-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0; }
.auth-card .warn-box, .auth-card .danger-box { text-align: left; }
.btn.ghost { border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); }
@media (max-width: 760px) { .codes { grid-template-columns: 1fr; } }

/* Toplu aktarma */
.import-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.import-row select { min-width: 220px; }
.imp-summary { margin: 8px 0; font-size: 14px; }
.imp-summary .ok { color: var(--ok); font-weight: 700; }
.chip-sm { display: inline-block; font-size: 11.5px; background: var(--surface-2); border-radius: 6px; padding: 1px 7px; margin: 2px 2px 0 0; }
.imp-table td { font-size: 12.5px; }
.imp-table tr.skip td { opacity: .55; }
.ok-box { background: var(--st-kazanildi-bg); color: var(--st-kazanildi); border-radius: 10px; padding: 10px 12px; font-weight: 600; }

/* Paket / durum şeridi */
.banner { margin-left: var(--sidebar-w); padding: 10px 40px; font-size: 13.5px; font-weight: 500; }
.banner.warn { background: var(--st-teklif-bg); color: var(--st-teklif); }
.banner.danger { background: var(--st-kaybedildi-bg); color: var(--danger); }
.banner.demo { background: var(--brand, #e0531f); color: #fff; }
.banner.demo a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.plan-card { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.plan-card > div { display: flex; flex-direction: column; gap: 2px; }
.plan-card b { font-size: 17px; }
body.read-only .fab, body.read-only #newCust, body.read-only #new, body.read-only #newProp { display: none !important; }
@media (max-width: 760px) {
  .banner { margin-left: 0; padding: 10px 16px; }
  .plan-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Test ortamı şeridi (canlıyla karışmasın) */
.staging-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #b45309; color: #fff; text-align: center;
  font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 3px 8px; pointer-events: none;
}

/* ================= Web sitesi ve ilan fotoğrafları ================= */
.site-no.on-site { color: var(--ok); }
/* Portföy: toplu yayın */
.prop-no { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.prop-card { position: relative; }
.prop-card.picking:hover { transform: none; }
.prop-card.picking .prop-cover > .badge { margin-right: 36px; }
.prop-card.picked { outline: 3px solid var(--accent); outline-offset: -1px; }
.pick-box { position: absolute; top: 10px; right: 10px; z-index: 2; width: 28px; height: 28px; border-radius: 8px; background: var(--surface); border: 2px solid var(--border); display: grid; place-items: center; color: var(--on-ink); box-shadow: var(--shadow); }
.prop-card.picked .pick-box { background: var(--accent); border-color: var(--accent); color: #fff; }
.pick-box .i { width: 16px; height: 16px; }
.bulk-bar { position: sticky; top: 8px; z-index: 5; display: grid; gap: 10px; margin-bottom: 14px; border-color: var(--accent); }
.bulk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bulk-row .grow { flex: 1; }
.bulk-close { margin-left: auto; }
.bulk-nos { display: flex; align-items: center; gap: 8px; flex: 1 1 260px; min-width: 0; }
.bulk-nos span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.bulk-nos input { flex: 1; min-width: 0; }
.bulk-bar .small { margin: 0; font-size: 12.5px; }
@media (max-width: 640px) { .bulk-row .btn.primary, .bulk-row .btn:not(.ghost):not(.sm) { flex: 1; } .bulk-bar { top: 0; } }
.photos-card .photo-grid { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.photo-grid li { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); border: 2px solid transparent; }
.photo-grid li.cover { border-color: var(--accent); }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.photo-tag { position: absolute; top: 6px; left: 6px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.photo-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px; padding: 4px; background: var(--surface); }
.photo-tools .icon-btn.sm { opacity: 1; min-width: 32px; min-height: 32px; }
.photo-tools .icon-btn:disabled { opacity: .3; cursor: default; }
.photo-tools .btn.sm { padding: 4px 8px; font-size: 11.5px; min-height: 28px; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 18px; border: 2px dashed var(--border); border-radius: var(--radius); cursor: pointer; color: var(--text-2); transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop.busy { cursor: progress; border-style: solid; }
.drop .i { width: 26px; height: 26px; color: var(--accent); }
.drop small { color: var(--muted); font-size: 12px; }
.small-note { font-size: 12px; margin: 10px 0 0; }
.site-card { display: flex; flex-direction: column; gap: 10px; }
.site-card .btn { align-self: flex-start; }
.switch-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; position: relative; }
.switch-row.disabled { cursor: default; }
.switch-row input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: inherit; }
.switch { flex: none; width: 44px; height: 26px; border-radius: 99px; background: var(--border); position: relative; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch-row input:checked + .switch { background: var(--ok); }
.switch-row input:checked + .switch::after { transform: translateX(18px); }
.switch-row input:focus-visible + .switch { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.switch-row input:disabled + .switch { opacity: .55; }
.switch-row b { display: block; font-size: 14px; }
.switch-row small { color: var(--muted); font-size: 12.5px; }
.warn-line { display: flex; gap: 8px; align-items: center; margin: 0; color: var(--warn); font-size: 12.5px; font-weight: 600; }
.site-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.site-status-main { display: flex; gap: 12px; align-items: flex-start; min-width: 0; flex: 1 1 320px; }
.site-status b { display: block; font-size: 16px; }
.site-status small { color: var(--muted); font-size: 13px; }
.site-status small a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.site-status small a:hover { color: var(--text); }
.site-status small .site-addr { display: inline; font-size: inherit; font-weight: 600; color: var(--text-2); }
.site-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); margin-top: 6px; flex: none; }
.site-status.on .site-dot { background: var(--ok); box-shadow: 0 0 0 4px var(--st-kazanildi-bg); }
.site-status.on { border-color: var(--ok); }
.site-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.site-stats div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.site-stats b { display: block; font-size: 22px; }
.site-stats span { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.site-progress { margin: 4px 0 14px; }
.site-progress div { background: var(--ok); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.checklist .ck { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; flex: none; font-size: 13px; font-weight: 800; color: #fff; }
.checklist li.ok .ck { background: var(--ok); border-color: var(--ok); }
.checklist b { display: block; font-size: 13.5px; }
.checklist small { color: var(--muted); font-size: 12.5px; }
.site-form { display: flex; flex-direction: column; gap: 16px; }
.site-form .card > .muted { margin-top: -6px; }
.sticky-save { position: sticky; bottom: 12px; z-index: 5; display: flex; gap: 10px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.tips ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--text-2); font-size: 13.5px; }
.site-pitch { display: flex; gap: 16px; align-items: flex-start; }
.site-pitch > .i { width: 34px; height: 34px; color: var(--accent); flex: none; }
@media (max-width: 760px) {
  .site-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-status .btn { width: 100%; }
  .sticky-save { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .sticky-save .btn { flex: 1; justify-content: center; }
  .photos-card .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ================= Ürün logosu (Emlakzekam) ================= */
.pz-word { font-weight: 800; letter-spacing: -0.03em; color: var(--text); white-space: nowrap; }
.pz-word b { font-weight: 800; color: #E0531F; }
:root[data-theme="dark"] .pz-word b { color: #ff7a45; }
.pz-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.pz-logo img { width: 34px; height: 34px; flex: none; }
.pz-logo .pz-word { font-size: 20px; line-height: 1; }
.auth-powered { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; color: var(--muted); font-size: 12px; text-decoration: none; opacity: .85; }
.auth-powered:hover { opacity: 1; text-decoration: none; }
.auth-powered .pz-logo { gap: 6px; }
.auth-powered .pz-logo img { width: 18px; height: 18px; }
.auth-powered .pz-word { font-size: 13px; }
.auth-wrap { align-content: center; }

/* ================= Yapay zekâ ile ilan metni ================= */
.btn.ai-btn { background: linear-gradient(135deg, #E0531F, #f08a3c); color: #fff; border-color: transparent; }
.btn.ai-btn:hover { filter: brightness(1.05); }
.btn.ai-btn:disabled { opacity: .7; cursor: progress; }
.ai-writer { display: flex; flex-direction: column; gap: 12px; }
.ai-writer > .ai-btn { align-self: flex-start; }
.ai-tones { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ai-tones legend { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; padding: 0; }
.ai-result { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); padding-top: 12px; }
.ai-titles { display: grid; gap: 8px; }
.ai-short { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; }
.ai-short-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.ai-short p { margin: 0; white-space: pre-line; font-size: 13.5px; }
@media (max-width: 760px) { .ai-tones { grid-template-columns: 1fr; } .ai-writer > .ai-btn { align-self: stretch; justify-content: center; } }

/* ================= WhatsApp mesaj ön izleme ================= */
.share-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.tone-pick { border: 0; padding: 0; margin: 0; display: flex; gap: 6px; }
.tone-pick legend { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; padding: 0; }
.tone-pick label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 600; font-size: 13px; cursor: pointer; }
.tone-pick label.on { border-color: var(--wa); background: color-mix(in srgb, var(--wa) 10%, transparent); color: var(--text); }
.tone-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
@media (max-width: 760px) { .share-opts { grid-template-columns: 1fr; } }

/* Web Sitem: kart başlığındaki işlem düğmesi */
.card h3 .head-action { margin-left: auto; }
/* Web Sitem: yabancı dil sürümleri */
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; margin: 6px 0 14px; }
.lang-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; background: var(--surface); }
.lang-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.lang-opt input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.lang-opt span { display: grid; flex: 1; min-width: 0; }
.lang-opt small { color: var(--muted); }
.lang-opt a { font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: underline; }
.lang-status { display: grid; gap: 10px; }
.lang-status p { margin: 0; }
.lang-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
/* Müşteriler: hızlı atama ve atama ayarı */
.assign-sel { min-height: 34px; padding: 4px 28px 4px 10px; font-size: 13px; border-radius: 8px; max-width: 180px; background-color: var(--surface); }
.assign-sel.none { border-color: var(--warn, #b7791f); color: var(--warn, #b7791f); font-weight: 600; }
.count-dot { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11.5px; }
.assign-panel { margin-bottom: 14px; }
.assign-hd { display: flex; align-items: center; justify-content: space-between; }
.assign-hd h3 { margin: 0; }
.assign-office { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.assign-name { display: grid; flex: 1 1 220px; min-width: 0; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 8px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--ink); color: var(--on-ink); }
.seg button:disabled { opacity: .5; cursor: not-allowed; }
.assign-office .small { font-size: 12.5px; }
.btn.warn-btn { border-color: var(--warn); }
/* Web Sitem: kapak fotoğrafı */
.cover-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.cover-prev { width: min(100%, 360px); aspect-ratio: 16 / 7; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; }
.cover-prev img { width: 100%; height: 100%; object-fit: cover; }
.cover-prev.empty span { color: var(--muted); font-size: 13px; }
.cover-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cover-actions label.btn { cursor: pointer; }
.cover-actions label.disabled { opacity: .6; pointer-events: none; }
/* Yeni portföy formu */
.pick-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pick-chips button { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 99px; padding: 8px 14px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; min-height: 38px; }
.pick-chips button:hover { border-color: var(--accent); color: var(--text); }
.pick-chips button.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.np-drop { padding: 18px; }
.np-grid { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
@media (max-width: 560px) { .np-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Firma ayarları: site simgesi (favicon) */
.icon-row { display: flex; gap: 14px; align-items: flex-start; padding-top: 14px; border-top: 1px solid var(--border); }
.icon-row img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; background: var(--soft, #f3f3f3); }
.icon-row p { margin: 4px 0 8px; font-size: 13px; }
/* Ofis çalışma saatleri düzenleyicisi */
.office-hours-sum { font-size: 12.5px; margin-top: 3px; }
.hours-editor { display: grid; gap: 10px; margin-top: 4px; }
.hours-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 12px; min-height: 34px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.chip-btn:hover { border-color: var(--muted); }
.chip-btn.ghost { color: var(--muted); }
.hours-rows { display: grid; border: 1px solid var(--border); border-radius: var(--radius-sm, 10px); overflow: hidden; }
.hours-row { display: grid; grid-template-columns: minmax(84px, auto) 1fr; align-items: center; gap: 8px 12px; padding: 10px 12px; border-top: 1px solid var(--border); }
.hours-row:first-child { border-top: 0; }
.hours-row.m-kapali { background: var(--surface-2); }
.hours-day { font-weight: 700; font-size: 14px; }
.day-seg { display: inline-flex; justify-self: end; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.day-seg button { font: inherit; font-size: 13px; font-weight: 600; border: 0; background: transparent; color: var(--muted); padding: 7px 10px; min-height: 36px; cursor: pointer; white-space: nowrap; }
.day-seg button + button { border-left: 1px solid var(--border); }
.day-seg button.on { background: var(--ink); color: var(--on-ink); }
.hours-row.m-randevu .day-seg button.on { background: #b26b00; color: #fff; }
.hours-times { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.hours-times input[type=time] { flex: 1; min-width: 0; padding: 6px 8px; min-height: 40px; }
.hours-row.bad input[type=time] { border-color: var(--danger, #c0392b); }
@media (min-width: 640px) { .hours-row { grid-template-columns: 96px auto 1fr; } .hours-times { grid-column: auto; } .day-seg { justify-self: start; } }
.field-error { color: var(--danger, #c0392b); font-size: 13px; margin: 0; }
.office-num-hint { margin: 2px 0 -4px; font-size: 13px; }
.office-hours-sum.danger-text { color: var(--danger, #c0392b); }
/* Web sitesi istatistikleri */
.site-analytics { display: grid; gap: 16px; }
.ss-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; }
.ss-head h3 { margin: 0; }
.ss-range { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.ss-range button { font: inherit; font-size: 13px; font-weight: 600; border: 0; background: var(--surface); color: var(--muted); padding: 7px 12px; min-height: 36px; cursor: pointer; }
.ss-range button + button { border-left: 1px solid var(--border); }
.ss-range button.on { background: var(--ink); color: var(--on-ink); }
.ss-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .ss-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ss-tiles > div { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; min-width: 0; }
.ss-tiles span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ss-tiles b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.ss-tiles small { font-size: 12px; color: var(--muted); min-height: 1.2em; }
.ss-chart { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 160px auto; column-gap: 8px; }
.ss-axis-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 11.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; padding: 0 0 2px; }
.ss-plot { position: relative; border-bottom: 1px solid var(--border); }
.ss-plot svg { width: 100%; height: 100%; display: block; }
.ss-grid { stroke: var(--border); stroke-width: .3; vector-effect: non-scaling-stroke; stroke-dasharray: 3 3; }
.ss-bar { fill: color-mix(in srgb, var(--accent, var(--ink)) 78%, transparent); transition: fill .1s; }
.ss-bar.on { fill: var(--accent, var(--ink)); }
.ss-hit { fill: transparent; cursor: default; }
.ss-tip { position: absolute; top: 4px; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); border-radius: 10px; padding: 7px 10px; font-size: 12.5px; display: grid; gap: 1px; pointer-events: none; white-space: nowrap; color: var(--text-2); }
.ss-tip b { color: var(--text); }
.ss-axis-x { grid-column: 2; display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); padding-top: 4px; }
.ss-cols { display: grid; gap: 20px; }
@media (min-width: 900px) { .ss-cols { grid-template-columns: 1fr 1fr; } }
.site-analytics h4 { margin: 0 0 8px; font-size: 14px; }
.ss-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ss-bars li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13.5px; }
.ss-l { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-track { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.ss-track span { display: block; height: 100%; background: var(--accent, var(--ink)); border-radius: 99px; min-width: 2px; }
.ss-bars b, .ss-list b { font-variant-numeric: tabular-nums; font-size: 13.5px; }
.ss-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; }
.ss-list li { padding-left: 2px; }
.ss-list li { display: list-item; }
.ss-list li > a { color: var(--text); }
.ss-list li > b { float: right; margin-left: 8px; }
.ss-table summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); min-height: 32px; display: flex; align-items: center; }
.ss-empty, .ss-note { margin: 0; font-size: 12.5px; }
.site-adm-stats .site-analytics { border: 1px solid var(--border); box-shadow: none; margin: 4px 0 8px; }
/* Portföy detayı: asıl içerik (fotoğraf, özellikler, açıklama) geniş sütunda; web sitesi, mal sahibi, eşleşmeler yan sütunda */
.grid-detail.prop-detail { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
.col-main, .col-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (max-width: 1100px) {
  /* Tek sütunda önemli olan üstte: web sitesi, fotoğraflar, özellikler, açıklama, mal sahibi, eşleşmeler, hareketler */
  .grid-detail.prop-detail { grid-template-columns: minmax(0, 1fr); }
  .prop-detail .col-main, .prop-detail .col-side { display: contents; }
  .prop-detail .o-site { order: 1; } .prop-detail .o-photos { order: 2; } .prop-detail .o-facts { order: 3; } .prop-detail .o-desc { order: 4; }
  .prop-detail .o-owner { order: 5; } .prop-detail .o-match { order: 6; } .prop-detail .o-hist { order: 7; }
}
/* Portföy kartı: sitede görüntülenme ve "çok ilgi görüyor" rozeti */
.hot-badge { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--text); margin-bottom: 4px; }
.hot-badge .i { width: 13px; height: 13px; color: var(--accent); }
.views-no { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: auto; margin-right: 8px; }
.views-no .i { width: 14px; height: 14px; }
/* Panel: sitede en çok bakılan / ilgi görmeyen ilanlar */
.rank-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rank-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: baseline; gap: 8px; }
.rank-n { color: var(--muted); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.rank-list li > a { color: var(--text); font-weight: 600; }
.rank-list .views-no { margin: 0; }
.attn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.attn-list li > a { color: var(--text); font-weight: 600; }
.attn-list .reasons { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.attn-list .reasons span { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); }
.attn-tip { font-size: 12.5px; margin: 10px 0 0; }
.more-link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; padding: 6px 0; }

/* Yönetim: Pazarlama sekmesi */
.mk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.mk-grid > .site-analytics { grid-column: 1 / -1; }
.mk-funnel ol { list-style: none; margin: 0; padding: 0 18px 8px; display: grid; gap: 8px; }
.mk-funnel li { display: grid; grid-template-columns: 1fr auto 64px; align-items: baseline; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.mk-funnel li b { font-size: 18px; }
.mk-funnel li small { color: var(--muted); text-align: right; }
.mk-funnel > p, .mk-link > p { padding: 0 18px; font-size: 13px; }
.mk-link .form-grid { padding: 0 18px; }
.mk-out { display: flex; gap: 10px; align-items: center; margin: 12px 18px 18px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.mk-out code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
@media (max-width: 900px) { .mk-grid { grid-template-columns: 1fr; } }

/* Web Sitem → Google'da görünürlük */
.vis-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.vis-head h3 { margin: 0 0 2px; }
.vis-head p { margin: 0; }
.vis-card .checklist small { display: block; margin-top: 2px; }
.vis-card .nap { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 8px; font-size: 13px; }
.vis-card .nap span small { display: block; font-size: 11px; color: var(--muted); }
.vis-weak { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--warn) 9%, var(--surface)); }
.vis-weak ul { margin: 6px 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; }
.vis-guide { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.vis-guide summary { cursor: pointer; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.vis-guide ol { margin: 10px 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.5; }
.warn-line { align-items: flex-start; line-height: 1.45; }
.warn-line svg { flex: none; margin-top: 2px; }
.hint-line { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 8px 12px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); font-size: 13px; line-height: 1.45; }
.hint-line svg { flex: none; margin-top: 2px; color: var(--ok); }
.vis-card .checklist small b { display: inline; font-size: inherit; }

/* Panel: Bugün kimi aramalıyım? */
.today-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.today-list li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.today-list .grow { min-width: 0; flex: 1; }
.today-list .reasons { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.today-acts { display: flex; gap: 6px; flex: none; }
.pick-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.pick-list label { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; cursor: pointer; }
