/* ─── BAKLAVA · Tema ─── */

:root {
  --green:        #0d6e3b;
  --green-2:      #15833f;
  --green-dark:   #0a5a30;
  --green-soft:   #e8f7ee;
  --green-line:   #c5dccd;
  --pistachio:    #9bcc4f;
  --gold:         #d4a24a;
  --gold-2:       #e8b85e;
  --gold-soft:    #fff8ec;
  --gold-line:    #e8d098;
  --syrup:        #a87a1f;
  --bg:           #faf8f3;
  --bg-2:         #f4efe4;
  --card:         #ffffff;
  --text:         #1a3520;
  --muted:        #5a6e5e;
  --muted-2:      #8aa094;
  --danger:       #c0392b;
  --warn:         #d4a24a;
  --info:         #3a78c2;

  --shadow-sm: 0 1px 3px rgba(13,110,59,.06);
  --shadow-md: 0 4px 16px rgba(13,110,59,.08);
  --shadow-lg: 0 12px 40px rgba(13,110,59,.12);

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --sidebar-w: 248px;
}

* { box-sizing:border-box; margin:0; padding:0; }
html, body { height:100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 10% 12%, rgba(212,162,74,.06) 0, transparent 40%),
    radial-gradient(circle at 90% 88%, rgba(13,110,59,.05) 0, transparent 35%);
}

button { font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
input, textarea, select { font-family:inherit; }

/* ─── App grid ─── */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 100vh;
}

/* ─── Sidebar ─── */
.sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #fbf8f0 100%);
  border-right: 1px solid var(--green-line);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 14px;
  border-bottom: 1px dashed var(--green-line);
}
.brand .logo {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: grid; place-items: center;
  overflow: hidden;
}
.brand .logo img { width: 100%; height: 100%; object-fit: cover; }
.brand .wordmark {
  height: 28px; width: auto; display: block;
  object-fit: contain;
}
.brand .name {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 22px; font-weight: 700; letter-spacing: -.4px;
  color: var(--green);
}
.brand .name .a { color: var(--gold); }
.brand .sub { font-size: 10.5px; color: var(--muted); letter-spacing: .8px; text-transform: uppercase; margin-top:1px; }

.nav-section { display: flex; flex-direction: column; gap: 4px; }
.nav-section .label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px;
  color: var(--muted-2); text-transform: uppercase;
  padding: 4px 10px 6px;
}
.nav-item {
  display: flex; align-items:center; gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text); font-weight: 500; font-size: 13.5px;
  transition: all .15s;
  width: 100%; text-align: left;
}
.nav-item:hover { background: var(--green-soft); color: var(--green); }
.nav-item.active {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.nav-item.active .ico { background: rgba(255,255,255,.18); color: #fff; }
.nav-item .lbl { font-weight: 500; }
.nav-item.active .lbl { font-weight: 600; }
.nav-item .ico svg { display: block; }
.nav-item .ico {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green);
  display: grid; place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}
.nav-item .badge {
  margin-left: auto;
  font-size: 10.5px;
  background: var(--gold);
  color: #fff;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
}

.sidebar-foot {
  margin-top: auto;
  padding: 14px 10px;
  border-top: 1px dashed var(--green-line);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-foot .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}
.sidebar-foot .who { font-size: 12.5px; }
.sidebar-foot .who b { display: block; }
.sidebar-foot .who span { color: var(--muted); font-size: 11px; }

/* ─── Main ─── */
.main {
  display: flex; flex-direction: column;
  overflow: hidden;
}

/* ─── Topbar ─── */
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 28px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--green-line);
  flex-shrink: 0;
}
.search {
  flex: 1; max-width: 460px;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  background: var(--card);
  border: 1px solid var(--green-line);
  border-radius: 12px;
  transition: all .15s;
}
.search:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(13,110,59,.08);
}
.search input { flex:1; border:none; outline:none; background:transparent; font-size: 13.5px; }
.search .kbd {
  font-size: 10.5px; padding: 2px 6px;
  background: var(--bg-2); color: var(--muted);
  border-radius: 5px; font-weight: 600;
}

.cmd-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
  color: #fff;
  border-radius: 11px;
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all .15s;
}
.cmd-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.icon-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--green-line);
  display: grid; place-items: center;
  position: relative;
  transition: all .15s;
}
.icon-btn:hover { background: var(--green-soft); border-color: var(--green); }
.icon-btn svg { color: var(--text); }
.icon-btn:hover svg { color: var(--green); }
.search svg { color: var(--muted); }
.cmd-btn svg { color: #fff; }
.icon-btn .dot {
  position: absolute; top: 8px; right: 8px;
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  border: 1.5px solid #fff;
}

/* ─── View container ─── */
.view {
  flex: 1; overflow-y: auto;
  padding: 28px;
}
.view-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 20px; flex-wrap: wrap; gap: 14px;
}
.view-head h1 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 22px; font-weight: 600; letter-spacing: -.3px;
  color: var(--text);
  line-height: 1.2;
}
.view-head h1 .accent { color: var(--text); font-weight: 600; font-style: normal; }

/* Global SVG icon defaults — Lucide tarzı */
svg.ic {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Card head — profesyonel tipografi, emoji'siz */
.card-head h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.1px;
}
.view-head p {
  color: var(--muted); font-size: 13.5px;
  margin-top: 3px;
}
.view-actions { display: flex; gap: 8px; }
.view-actions .btn-ghost {
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--green-line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}
.view-actions .btn-ghost:hover { background: var(--green-soft); }

/* ─── Cards ─── */
.card {
  background: var(--card);
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: all .15s;
}
.card.hov:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--green); }

.card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--green-line);
}
.card-head h3 {
  font-size: 13.5px; font-weight: 600; color: var(--text);
  letter-spacing: -.1px;
  display: flex; align-items: center; gap: 8px;
}
.card-head .more { color: var(--muted); font-size: 12px; }

/* ─── Metric tiles ─── */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.metric {
  background: var(--card);
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: all .15s;
}
.metric:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.metric::before {
  content:''; position:absolute; top:-30px; right:-30px;
  width:100px; height:100px;
  background: radial-gradient(circle, rgba(212,162,74,.12) 0%, transparent 70%);
  border-radius: 50%;
}
.metric .ic { font-size: 22px; margin-bottom: 8px; }
.metric .lbl { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing:.3px; }
.metric .val { font-size: 26px; font-weight: 800; color: var(--green); margin: 4px 0; letter-spacing:-.5px; }
.metric .delta { font-size: 11.5px; font-weight: 700; }
.metric .delta.pos  { color: var(--green-2); }
.metric .delta.warn { color: var(--gold); }
.metric .delta.neg  { color: var(--danger); }

/* ─── Layout helpers ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.split-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }

/* ─── Activity feed ─── */
.feed { display: flex; flex-direction: column; gap: 0; }
.feed-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--green-line);
  align-items: center;
}
.feed-item:last-child { border-bottom: none; }
.feed-item .time {
  font-size: 11.5px; color: var(--muted);
  font-family: 'SF Mono', Menlo, monospace;
  font-weight: 600;
}
.feed-item .body { font-size: 13px; }
.feed-item .body b { color: var(--green); font-weight: 700; }
.feed-item .body p { color: var(--text); margin-top: 2px; }
.tag-state {
  font-size: 10.5px; font-weight: 700;
  padding: 3px 9px;
  border-radius: 10px;
  text-transform: uppercase; letter-spacing: .5px;
}
.tag-state.pending { background: var(--gold-soft);  color: var(--syrup); }
.tag-state.done    { background: var(--green-soft); color: var(--green); }
.tag-state.warn    { background: #fce4e0;            color: var(--danger); }
.tag-state.info    { background: #e3edf8;            color: var(--info); }

/* ─── Mudur (CEO) panel ─── */
.mudur {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
}
.mudur::after {
  content: '🥮'; position:absolute; right:-20px; bottom:-30px;
  font-size: 180px; opacity: .07; transform: rotate(-15deg);
}
.mudur .head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mudur .head .crown {
  width: 38px; height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(212,162,74,.4);
}
.mudur h2 { font-size: 18px; font-weight: 700; }
.mudur .sub { color: rgba(255,255,255,.7); font-size: 12px; letter-spacing: .5px; text-transform: uppercase; }
.mudur p { font-size: 14px; line-height: 1.6; max-width: 700px; opacity: .92; }
.mudur .cmd-bar {
  margin-top: 16px;
  display: flex; gap: 10px;
  background: rgba(255,255,255,.12);
  padding: 6px 6px 6px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  position: relative;
  z-index: 1;
}
.mudur .cmd-bar input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #fff; font-size: 13.5px;
}
.mudur .cmd-bar input::placeholder { color: rgba(255,255,255,.55); }
.mudur .cmd-bar button {
  padding: 8px 16px;
  background: var(--gold);
  color: #fff;
  border-radius: 9px;
  font-weight: 700;
  font-size: 12.5px;
}
.mudur .quick {
  margin-top: 14px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.mudur .quick button {
  padding: 5px 11px;
  background: rgba(255,255,255,.12);
  border-radius: 14px;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  transition: all .15s;
}
.mudur .quick button:hover { background: rgba(255,255,255,.22); }

/* ─── Agent grid ─── */
.agent-tabs {
  display: flex; gap: 6px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  padding: 5px;
  background: var(--card);
  border: 1px solid var(--green-line);
  border-radius: 14px;
  width: fit-content;
}
.agent-tabs button {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  color: var(--muted);
  display: flex; align-items: center; gap: 7px;
}
.agent-tabs button:hover { background: var(--green-soft); color: var(--green); }
.agent-tabs button.active {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.agent-tabs button .ct {
  font-size: 10.5px; opacity: .8;
  background: rgba(255,255,255,.15);
  padding: 1px 6px;
  border-radius: 8px;
}
.agent-tabs button:not(.active) .ct {
  background: var(--green-soft); color: var(--green);
}
.agent-tab-ico { font-size: 14px; line-height: 1; }
.agent-tabs { display: none; } /* eski sekme barı artık kullanılmıyor */

/* ── Niyet (intent) blokları ── */
.agent-intent {
  margin-bottom: 32px;
  background: linear-gradient(180deg, var(--card,#fff) 0%, transparent 100%);
  border: 1px solid var(--green-line);
  border-left: 4px solid var(--grp-color, var(--green));
  border-radius: 14px;
  padding: 18px 18px 20px;
}
.agent-intent:last-child { margin-bottom: 0; }
.agent-intent-head {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--green-line);
}
.agent-intent-ico {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  border-radius: 12px;
  flex-shrink: 0;
}
.agent-intent-text { flex: 1; min-width: 0; }
.agent-intent-text h3 {
  font-size: 17px; font-weight: 700;
  color: var(--text);
  letter-spacing: -.3px;
  margin: 0 0 4px;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.agent-intent-count {
  font-size: 11px; font-weight: 600;
  color: var(--muted);
  background: var(--bg, #f7faf8);
  border: 1px solid var(--green-line);
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: none; letter-spacing: 0;
}
.agent-intent-text p {
  font-size: 13px; color: var(--muted);
  margin: 0; line-height: 1.5;
}

/* Birleştirilmiş intent hero kartı */
.agent-intent-merged { padding: 0; overflow: hidden; }
.agent-intent-hero {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 22px;
  cursor: pointer;
  transition: background .15s;
}
.agent-intent-hero:hover { background: var(--bg, #f7faf8); }
.agent-intent-hero .agent-intent-ico {
  width: 56px; height: 56px; font-size: 28px; border-radius: 14px;
}
.agent-intent-hero-body { flex: 1; min-width: 0; }
.agent-intent-hero h3 {
  font-size: 18px; font-weight: 700; color: var(--text);
  margin: 0 0 4px; letter-spacing: -.3px;
}
.agent-intent-hero p {
  font-size: 13px; color: var(--muted);
  margin: 0 0 10px; line-height: 1.5;
}
.agent-intent-bullets {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 4px;
}
.agent-intent-bullets li {
  font-size: 12.5px; color: var(--text);
  padding-left: 18px; position: relative;
  line-height: 1.5;
}
.agent-intent-bullets li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--grp-color, var(--green));
  font-weight: 700;
}
.agent-intent-cta {
  background: var(--green);
  color: #fff;
  border: none; padding: 12px 22px;
  border-radius: 10px;
  font-size: 13px; font-weight: 700;
  cursor: pointer; flex-shrink: 0;
  transition: transform .12s, box-shadow .12s;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.agent-intent-cta:hover { transform: translateX(3px); box-shadow: 0 4px 14px rgba(0,0,0,.14); }

@media (max-width: 720px) {
  .agent-intent-hero { flex-direction: column; align-items: flex-start; }
  .agent-intent-cta { width: 100%; }
}

/* ── Agent detayında merged intent kardeş tabları ── */
.agent-sub-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 0 16px;
  padding: 6px;
  background: var(--bg, #f7faf8);
  border: 1px solid var(--green-line);
  border-radius: 12px;
  width: fit-content;
  max-width: 100%;
}
.agent-sub-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .12s;
  white-space: nowrap;
}
.agent-sub-tab:hover:not(.active) {
  background: var(--card, #fff);
  color: var(--text);
}
.agent-sub-tab.active {
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.agent-sub-tab-name { font-weight: 600; }

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.agent-card {
  background: var(--card);
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all .15s;
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
}
.agent-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.agent-card .top { display: flex; justify-content: space-between; align-items: flex-start; }
.agent-card .num {
  font-size: 11px; color: var(--muted-2);
  font-family: 'SF Mono', monospace; font-weight: 700;
  background: var(--bg-2); padding: 3px 7px; border-radius: 6px;
}
.agent-card .state {
  font-size: 10.5px; font-weight: 700;
  padding: 3px 8px; border-radius: 10px;
  text-transform: uppercase; letter-spacing: .5px;
  display: flex; align-items: center; gap: 5px;
}
.agent-card .state.active {
  background: var(--green-soft); color: var(--green);
}
.agent-card .state.idle {
  background: var(--bg-2); color: var(--muted);
}
.agent-card .state .blink {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  animation: blink 1.4s infinite;
}
.agent-card.idle .state .blink { animation: none; opacity:.5; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.agent-card h4 {
  font-size: 15px; font-weight: 700; color: var(--text);
  letter-spacing:-.2px;
}
.agent-card .tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .8px;
  color: var(--gold); text-transform: uppercase;
  margin-top: -4px;
}
.agent-card .desc {
  font-size: 12.5px; color: var(--muted);
  line-height: 1.5;
  flex: 1;
}
.agent-card .foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px;
  border-top: 1px dashed var(--green-line);
  font-size: 11px;
}
.agent-card .foot .tech {
  color: var(--syrup); font-family: 'SF Mono', monospace;
  font-weight: 600;
}
.agent-card .foot .arrow {
  color: var(--green); font-weight: 700;
}

/* ─── Modal ─── */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(13,52,32,.32);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: grid; place-items: center;
  padding: 30px;
  animation: fadeIn .2s;
}
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }
.modal {
  background: var(--card);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 600px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--green-line);
  animation: slideUp .25s;
}
@keyframes slideUp { from { transform: translateY(20px); opacity:0 } to { transform: translateY(0); opacity:1 } }
.modal-head {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--green-line);
  position: relative;
}
.modal-head .num {
  font-size: 12px; color: var(--muted-2);
  font-family: 'SF Mono', monospace; font-weight: 700;
}
.modal-head h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 24px; font-weight: 600; color: var(--green);
  margin: 4px 0; letter-spacing: -.3px;
}
.modal-head .tag {
  display: inline-block;
  background: var(--gold-soft); color: var(--syrup);
  padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .8px;
}
.modal-head .close {
  position: absolute; top: 18px; right: 18px;
  width: 32px; height: 32px;
  background: var(--bg-2);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--muted);
  font-size: 18px;
  transition: all .15s;
}
.modal-head .close:hover { background: var(--green-soft); color: var(--green); }
.modal-body { padding: 22px 24px; }
.modal-body h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  color: var(--muted-2); text-transform: uppercase;
  margin-bottom: 8px;
}
.modal-body h4:not(:first-child) { margin-top: 18px; }
.modal-body p { font-size: 14px; line-height: 1.6; color: var(--text); }
.modal-body .tech-pill {
  display: inline-block;
  background: var(--green-soft); color: var(--green);
  padding: 4px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 600;
  font-family: 'SF Mono', monospace;
}
.modal-body .activity-card {
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: 11px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--syrup);
  display: flex; align-items: center; gap: 10px;
}
.modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--green-line);
  background: var(--bg);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  display: flex; gap: 10px; justify-content: flex-end;
}
.btn-primary {
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
  color: #fff;
  border-radius: 10px;
  font-weight: 600; font-size: 13px;
}
.btn-secondary {
  padding: 9px 18px;
  background: var(--card);
  border: 1px solid var(--green-line);
  border-radius: 10px;
  font-weight: 600; font-size: 13px;
  color: var(--text);
}

/* ─── Tables ─── */
.t {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.t th {
  text-align: left;
  padding: 12px 14px;
  background: var(--bg-2);
  color: var(--muted);
  font-weight: 700; font-size: 11px;
  letter-spacing: .8px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--green-line);
}
.t th:first-child { border-radius: 10px 0 0 0; }
.t th:last-child { border-radius: 0 10px 0 0; }
.t td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--green-line);
}
.t tr:hover td { background: var(--green-soft); }
.t tr:last-child td { border-bottom: none; }
.t .seg-pill {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 10px;
}
.seg-VIP    { background: var(--gold-soft);  color: var(--syrup); }
.seg-Sadık  { background: var(--green-soft); color: var(--green); }
.seg-Yeni   { background: #e8f4ff;            color: #2c6db8; }
.seg-Risk   { background: #fcefcc;            color: #a8761c; }
.seg-Kayıp  { background: #f0eee8;            color: var(--muted); }

/* ─── Bar chart ─── */
.bars {
  display: flex; align-items: flex-end; gap: 6px;
  height: 180px;
  padding: 10px 0 26px;
  position: relative;
}
.bars .bar {
  flex: 1;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-2) 100%);
  border-radius: 6px 6px 0 0;
  position: relative;
  min-height: 4px;
  transition: all .2s;
}
.bars .bar:hover {
  background: linear-gradient(180deg, var(--green) 0%, var(--green-2) 100%);
}
.bars .bar .lbl {
  position: absolute; bottom: -22px; left: 0; right: 0;
  text-align: center;
  font-size: 11px; color: var(--muted);
  font-family: 'SF Mono', monospace;
}
.bars .bar .v {
  position: absolute; top: -20px; left: 0; right: 0;
  text-align: center;
  font-size: 10.5px; color: var(--text);
  font-weight: 700;
  opacity: 0;
  transition: opacity .15s;
}
.bars .bar:hover .v { opacity: 1; }

/* ─── Sentiment bars ─── */
.sent-list { display: flex; flex-direction: column; gap: 14px; }
.sent-item .row1 {
  display: flex; justify-content: space-between; margin-bottom: 6px;
}
.sent-item .row1 .lbl { font-size: 13px; font-weight: 600; }
.sent-item .row1 .sc { font-size: 13px; font-weight: 700; color: var(--green); }
.sent-item .row1 .ct { font-size: 11px; color: var(--muted); margin-left: 8px; }
.sent-item .track {
  height: 9px; background: var(--bg-2);
  border-radius: 5px; overflow: hidden;
}
.sent-item .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green) 0%, var(--pistachio) 100%);
  border-radius: 5px;
  transition: width .8s ease;
}
.sent-item .fill.low { background: linear-gradient(90deg, var(--gold) 0%, var(--gold-2) 100%); }
.sent-item .fill.bad { background: linear-gradient(90deg, var(--danger) 0%, #e07b6e 100%); }

/* ─── Donut / segment chart ─── */
.donut-wrap { display: flex; gap: 24px; align-items: center; }
.donut { position: relative; width: 160px; height: 160px; flex-shrink: 0; }
.donut svg { transform: rotate(-90deg); }
.donut .center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.donut .center .b { font-size: 26px; font-weight: 800; color: var(--green); }
.donut .center .s { font-size: 11px; color: var(--muted); letter-spacing: .8px; text-transform: uppercase; }
.donut-legend { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.donut-legend .leg {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px;
}
.donut-legend .leg .sw {
  width: 12px; height: 12px; border-radius: 4px;
}
.donut-legend .leg .nm { flex: 1; font-weight: 500; }
.donut-legend .leg .ct { font-weight: 700; color: var(--green); }

/* ─── Empty / placeholder ─── */
.placeholder {
  background: repeating-linear-gradient(45deg,
    var(--bg-2) 0, var(--bg-2) 8px,
    transparent 8px, transparent 16px);
  border: 1.5px dashed var(--green-line);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ─── Form bits ─── */
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-row label { font-size: 12px; font-weight: 700; color: var(--muted); }
.form-row input, .form-row select, .form-row textarea {
  padding: 9px 12px;
  border: 1px solid var(--green-line);
  border-radius: 10px;
  font-size: 13.5px;
  outline: none;
  background: var(--card);
  transition: all .15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(13,110,59,.08);
}

/* ─── Toggle switch ─── */
.toggle {
  position: relative;
  width: 38px; height: 22px;
  background: var(--bg-2);
  border-radius: 11px;
  cursor: pointer;
  transition: all .15s;
  flex-shrink: 0;
}
.toggle.on { background: var(--green); }
.toggle .knob {
  position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: all .15s;
  box-shadow: var(--shadow-sm);
}
.toggle.on .knob { transform: translateX(16px); }

/* ─── Misc ─── */
.flex { display: flex; gap: 10px; align-items: center; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.muted { color: var(--muted); }
.gold-text { color: var(--gold); }
.green-text { color: var(--green); }

/* ─── Scroll style ─── */
.view::-webkit-scrollbar, .modal::-webkit-scrollbar, .sidebar::-webkit-scrollbar { width: 8px; }
.view::-webkit-scrollbar-thumb, .modal::-webkit-scrollbar-thumb, .sidebar::-webkit-scrollbar-thumb {
  background: var(--green-line); border-radius: 4px;
}
.view::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ─────────── AGENT DETAY SAYFASI ─────────── */

.agent-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: var(--card);
  border: 1px solid var(--green-line);
  border-radius: 10px;
  font-size: 12.5px; font-weight: 600;
  color: var(--green);
  margin-bottom: 16px;
  transition: all .15s;
}
.agent-back:hover { background: var(--green-soft); transform: translateX(-2px); }

.agent-hero {
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.agent-hero::after { content: none; }
.agent-hero-minimal {
  padding: 10px 14px;
  background: var(--card) !important;
  color: var(--text);
  border: 1px solid var(--green-line);
  box-shadow: none;
  border-radius: 10px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.agent-hero-minimal .agent-hero-top { margin: 0; flex-shrink: 0; }
.agent-hero-minimal .agent-hero-id { gap: 6px; }
.agent-hero-minimal .agent-hero-id .num {
  background: var(--bg-2); color: var(--muted);
  font-size: 11px; padding: 3px 7px; border-radius: 5px;
}
.agent-hero-minimal .agent-hero-id .grp {
  background: transparent; color: var(--muted);
  font-weight: 500; padding: 0; font-size: 11.5px;
}
.agent-hero-minimal h1 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px; font-weight: 700; letter-spacing: -.2px;
  color: var(--text); margin: 0; line-height: 1.2;
  display: inline-flex; align-items: center; gap: 8px;
}
.agent-hero-minimal .agent-hero-desc {
  color: var(--muted); font-size: 12px; margin: 0;
  flex: 1; min-width: 200px; line-height: 1.35;
}
.agent-hero-minimal .live-badge-hero {
  background: var(--green-soft); color: var(--green);
  border-color: var(--green-line);
  margin-left: 0; vertical-align: middle;
  padding: 2px 7px; font-size: 10px;
}
.agent-hero-minimal .live-badge-hero .lbh-dot { background: var(--green); width: 5px; height: 5px; }
.agent-hero-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 14px;
}
.agent-hero-id {
  display: flex; align-items: center; gap: 10px;
}
.agent-hero-id .num {
  font-family: 'SF Mono', Menlo, monospace;
  font-weight: 800; font-size: 14px;
  background: rgba(0,0,0,.18);
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: .5px;
}
.agent-hero-id .grp {
  font-size: 12.5px;
  background: rgba(255,255,255,.18);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 600;
}
.agent-hero-actions {
  display: flex; gap: 8px;
  position: relative; z-index: 1;
}
.btn-hero-ghost, .btn-hero-primary {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12.5px; font-weight: 600;
  transition: all .15s;
}
.btn-hero-ghost {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}
.btn-hero-ghost:hover { background: rgba(255,255,255,.28); }
.btn-hero-primary {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 4px 12px rgba(212,162,74,.4);
}
.btn-hero-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(212,162,74,.5); }

.agent-hero h1 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 26px; font-weight: 600;
  letter-spacing: -.4px;
  margin-bottom: 6px;
}
.agent-hero-tag {
  display: inline-block;
  background: rgba(255,255,255,.22);
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.agent-hero-desc {
  font-size: 15px; line-height: 1.55;
  opacity: .94;
  max-width: 700px;
  margin-bottom: 16px;
}
.agent-hero-foot {
  display: flex; flex-wrap: wrap; gap: 8px;
  position: relative; z-index: 1;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  background: rgba(255,255,255,.18);
  border-radius: 12px;
  font-size: 11.5px; font-weight: 600;
}
.hero-pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.hero-pill-dot.active {
  background: #7ee99c;
  animation: blink 1.4s infinite;
}

/* Ajan komut çubuğu */
.agent-cmd-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg);
  border: 2px solid var(--green-line);
  border-radius: 12px;
  padding: 6px 6px 6px 14px;
  transition: all .15s;
}
.agent-cmd-bar:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(13,110,59,.08);
}
.agent-cmd-bar input {
  flex: 1;
  background: transparent; border: none; outline: none;
  font-size: 13.5px;
  padding: 8px 0;
}
.agent-cmd-bar button {
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
  color: #fff;
  border-radius: 9px;
  font-weight: 700; font-size: 12.5px;
  box-shadow: var(--shadow-sm);
}
.agent-cmd-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 12px;
}
.agent-cmd-chip {
  padding: 6px 13px;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  color: var(--green);
  border-radius: 18px;
  font-size: 12px; font-weight: 600;
  transition: all .15s;
}
.agent-cmd-chip:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  transform: translateY(-1px);
}

/* ─── Insight cards (içgörü kartları) ─── */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.insight-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--green-line);
  border-radius: 11px;
  transition: all .15s;
}
.insight-card:hover { border-color: var(--green); }
.insight-card .ic {
  grid-row: 1 / 3;
  font-size: 24px;
  display: grid; place-items: center;
  background: var(--card);
  border-radius: 10px;
  align-self: start;
  width: 40px; height: 40px;
}
.insight-card .bd { grid-column: 2; }
.insight-card .ti {
  font-size: 13.5px; font-weight: 700; color: var(--text);
  margin-bottom: 3px;
}
.insight-card .ds {
  font-size: 12px; color: var(--muted);
  line-height: 1.5;
}
.insight-card .cta {
  grid-column: 2;
  justify-self: start;
  margin-top: 8px;
  padding: 5px 12px;
  background: var(--green);
  color: #fff;
  border-radius: 7px;
  font-size: 11.5px; font-weight: 700;
  transition: all .15s;
}
.insight-card .cta:hover { background: var(--green-2); transform: translateX(2px); }

/* ─── Agent matrix (CEO) ─── */
.agent-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.am-cell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--card);
  border: 1px solid var(--green-line);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  font-size: 12.5px;
  text-align: left;
  transition: all .15s;
  cursor: pointer;
}
.am-cell:hover { background: var(--green-soft); transform: translateX(2px); }
.am-cell.idle { opacity: .6; }
.am-num {
  font-family: 'SF Mono', monospace;
  font-weight: 700; font-size: 10.5px;
  color: var(--muted);
}
.am-name {
  font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.am-state {
  font-size: 10px;
}
.am-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--muted-2);
  border-radius: 50%;
}
.am-state.active .am-dot {
  background: var(--green);
  animation: blink 1.4s infinite;
}

/* ─── Boston matrisi ─── */
.boston-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  aspect-ratio: 2/1.4;
}
.bm-q {
  padding: 14px;
  border-radius: 11px;
  display: flex; flex-direction: column;
  border: 1px solid rgba(0,0,0,.05);
}
.bm-h {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 4px;
}
.bm-h b { font-size: 14px; font-weight: 700; }
.bm-h span {
  font-size: 11px;
  background: rgba(255,255,255,.5);
  padding: 2px 7px;
  border-radius: 8px;
  font-weight: 700;
}
.bm-s {
  font-size: 11px;
  opacity: .7;
  margin-bottom: 10px;
}
.bm-i {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: auto;
}
.bm-i span {
  font-size: 11px;
  padding: 2px 7px;
  background: rgba(255,255,255,.6);
  border-radius: 6px;
  font-weight: 500;
}

/* ─── Generic icon list ─── */
.generic-list {
  display: flex; flex-direction: column; gap: 8px;
}
.gl-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--green-line);
}
.gl-ic {
  font-size: 22px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--card);
  border-radius: 10px;
}
.gl-ti {
  font-weight: 700; font-size: 13px;
  margin-bottom: 2px;
}
.gl-meta {
  font-size: 11.5px; color: var(--muted);
}
.gl-tr {
  font-size: 11.5px; font-weight: 700;
  color: var(--syrup);
  padding: 3px 9px;
  background: var(--gold-soft);
  border-radius: 9px;
}

/* ─── Confidence badge ─── */
.conf-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  padding: 3px 9px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 9px;
}

/* ─── Visual gallery ─── */
.vis-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.vis-card {
  background: var(--bg);
  border: 1px solid var(--green-line);
  border-radius: 11px;
  overflow: hidden;
  transition: all .15s;
}
.vis-card:hover { border-color: var(--green); transform: translateY(-2px); }
.vis-img {
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--green-soft) 0%, var(--gold-soft) 100%);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--green-line);
}
.vis-meta { padding: 10px 12px; }
.vis-name {
  font-size: 12.5px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vis-tags {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 4px;
}
.vis-tag {
  font-size: 10px; font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.vis-use {
  font-size: 10px; color: var(--muted);
}

/* ─── Review list ─── */
.review-list {
  display: flex; flex-direction: column; gap: 12px;
}
.review-item {
  padding: 14px;
  background: var(--bg);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
}
.rv-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}
.rv-stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 1px;
}
.rv-platform {
  background: var(--card);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 10.5px;
}
.rv-user {
  color: var(--muted);
  font-weight: 600;
}
.rv-state {
  margin-left: auto;
}
.rv-text {
  font-style: italic;
  color: var(--text);
  margin-bottom: 8px;
  padding: 8px 12px;
  background: var(--card);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.rv-draft {
  font-size: 12.5px;
  padding: 8px 12px;
  background: var(--green-soft);
  border-radius: 8px;
  color: var(--text);
  line-height: 1.5;
}
.rv-draft b {
  color: var(--green);
  margin-right: 4px;
}

/* ─── Voice log ─── */
.voice-log {
  display: flex; flex-direction: column; gap: 12px;
}
.voice-card {
  background: var(--bg);
  border-left: 3px solid var(--green);
  border-radius: 10px;
  padding: 14px;
}
.voice-head {
  display: flex; justify-content: space-between;
  margin-bottom: 8px;
}
.voice-meta {
  display: flex; gap: 10px; align-items: center;
  font-size: 11.5px;
  color: var(--muted);
}
.voice-time { font-family: 'SF Mono', monospace; font-weight: 700; }
.voice-from { font-weight: 600; }
.voice-sum {
  font-size: 13px; font-weight: 600;
  padding: 8px 12px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 8px;
  margin-bottom: 10px;
}
.voice-script {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 12px;
  background: var(--card);
  border-radius: 8px;
}
.vs-line {
  font-size: 12.5px;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1.5;
}
.vs-line.ai {
  background: var(--green-soft);
  border-left: 2px solid var(--green);
}
.vs-line.mu {
  background: var(--gold-soft);
  border-left: 2px solid var(--gold);
}
.vs-line b { color: var(--green); margin-right: 4px; }
.vs-line.mu b { color: var(--syrup); }

/* ─── WhatsApp log ─── */
.wa-log {
  display: flex; flex-direction: column; gap: 8px;
}
.wa-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  background: var(--bg);
  border-radius: 11px;
  border: 1px solid var(--green-line);
}
.wa-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 16px;
}
.wa-top {
  display: flex; gap: 8px; align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.wa-top b { font-size: 13px; }
.wa-phone {
  font-size: 10.5px; color: var(--muted);
  font-family: 'SF Mono', monospace;
}
.wa-time {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--muted);
}
.wa-last {
  font-size: 12.5px;
  color: var(--text);
  margin-bottom: 4px;
}
.wa-items {
  font-size: 11px;
  color: var(--muted);
}

/* ─────────── REAL MAP (Leaflet) ─────────── */
.real-map-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.real-map {
  height: 380px;
  min-height: 380px;
  width: 100%;
  background: #e8eef0;
  z-index: 0;
}
.real-map-wrap .leaflet-control-attribution { display: none; }

.map-legend {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(255,255,255,.96);
  padding: 8px 12px;
  border-radius: 9px;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  display: flex; gap: 14px;
  font-size: 11.5px; font-weight: 600;
  z-index: 400;
}
.map-legend span {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text);
}
.map-legend .lg-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.map-legend .lg-dot.me { background: var(--green); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--green); }
.map-legend .lg-dot.rival { background: var(--gold); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--gold); }
.map-legend .lg-circ {
  width: 12px; height: 12px;
  border: 1.5px dashed var(--green);
  border-radius: 50%;
  display: inline-block;
}

/* Custom Leaflet markers */
.baklava-marker { background: transparent !important; border: none !important; }
.bm-pin {
  display: grid; place-items: center;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.25);
  font-weight: 800;
  color: #fff;
}
.bm-pin.bm-me {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
  font-size: 22px;
  box-shadow: 0 0 0 6px rgba(13,110,59,.18), 0 0 0 14px rgba(13,110,59,.08), 0 4px 14px rgba(0,0,0,.3);
  animation: pulse-me 2.4s infinite;
}
@keyframes pulse-me {
  0%,100% { box-shadow: 0 0 0 6px rgba(13,110,59,.18), 0 0 0 14px rgba(13,110,59,.08), 0 4px 14px rgba(0,0,0,.3); }
  50%     { box-shadow: 0 0 0 10px rgba(13,110,59,.22), 0 0 0 22px rgba(13,110,59,.05), 0 4px 14px rgba(0,0,0,.3); }
}
.bm-pin.bm-rival {
  width: 30px; height: 30px;
  background: var(--gold);
  font-size: 12.5px;
}
.bm-pin.bm-rival.tehdit { background: var(--danger); }
.bm-pin.bm-rival.fırsat { background: var(--green-2); }

.leaflet-popup-content-wrapper {
  border-radius: 10px;
  font-family: inherit;
}
.leaflet-popup-content { font-size: 12.5px; line-height: 1.5; margin: 10px 14px; }

/* ─────────── YOLO CAMERA FEED ─────────── */
.cam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.cam-feed {
  background: #0a0e0c;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cam-screen {
  position: relative;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: #1a1f1d;
}
.cam-screen::before {
  /* Hafif scanline + vignette efekti */
  content:'';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.08) 0, rgba(0,0,0,.08) 1px, transparent 1px, transparent 3px),
    radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
}
.cam-feed.off .cam-screen { filter: grayscale(1) brightness(.4); }
.cam-off {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #888;
  font-weight: 800; font-size: 16px;
  letter-spacing: 2px;
}
.cam-box {
  position: absolute;
  border: 2px solid #00ff88;
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), inset 0 0 8px rgba(0,255,136,.15);
  border-radius: 2px;
  animation: cam-flash 2s ease-in-out infinite;
}
.cam-box:nth-child(2) { border-color: #ffd54a; box-shadow: 0 0 0 1px rgba(0,0,0,.4), inset 0 0 8px rgba(255,213,74,.18); }
.cam-box:nth-child(3) { border-color: #4ad7ff; box-shadow: 0 0 0 1px rgba(0,0,0,.4), inset 0 0 8px rgba(74,215,255,.18); }
@keyframes cam-flash {
  0%,100% { opacity: 1; }
  50%     { opacity: .65; }
}
.cam-lbl {
  position: absolute;
  top: -22px; left: -2px;
  background: #00ff88;
  color: #000;
  font-size: 10px; font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  font-family: 'SF Mono', Menlo, monospace;
}
.cam-box:nth-child(2) .cam-lbl { background: #ffd54a; }
.cam-box:nth-child(3) .cam-lbl { background: #4ad7ff; }
.cam-lbl em {
  font-style: normal;
  opacity: .7;
  margin-left: 3px;
}
.cam-rec {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,.65);
  color: #fff;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 1px;
  font-family: 'SF Mono', Menlo, monospace;
  display: inline-flex; align-items: center; gap: 5px;
  z-index: 5;
}
.cam-dot {
  width: 7px; height: 7px;
  background: #ff3b3b;
  border-radius: 50%;
  animation: rec-blink 1s infinite;
}
@keyframes rec-blink {
  0%,49% { opacity: 1; }
  50%,100% { opacity: .2; }
}
.cam-yolo {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(0,255,136,.9);
  color: #000;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 1.2px;
  font-family: 'SF Mono', Menlo, monospace;
  z-index: 5;
}
.cam-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px;
  background: #0a0e0c;
  color: #d8e0db;
  font-size: 11.5px;
}
.cam-meta b { font-size: 12.5px; color: #fff; }
.cam-meta span { color: #8a9690; }

/* Visual gallery — gerçek görsel + AI etiketi */
.vis-img { position: relative; }
.vis-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(13,110,59,.92);
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px; font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.vis-play {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font-size: 42px;
  color: #fff;
  text-shadow: 0 4px 16px rgba(0,0,0,.5);
  background: rgba(0,0,0,.18);
  transition: all .15s;
}
.vis-card:hover .vis-play { background: rgba(0,0,0,.05); transform: scale(1.05); }

/* ─────────── LIVE SCAN (Faz 2 — Overpass) ─────────── */
.live-scan {
  display: flex; flex-direction: column; gap: 12px;
}

.live-ctrl {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--green-line);
  border-left: 3px solid var(--green);
  color: var(--text);
  border-radius: 10px;
}
.live-ctrl-title { color: var(--green); }
.live-ctrl-title b {
  font-size: 13.5px; font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
}
.live-src {
  background: var(--green-soft) !important;
  color: var(--green) !important;
}
.live-rad {
  background: var(--bg) !important;
  color: var(--text) !important;
  border: 1px solid var(--green-line);
}
.live-rad select { background: #fff; color: var(--text); }
.live-refresh {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green) !important;
  color: #fff !important;
}
.live-refresh:hover { background: var(--green-2) !important; }
.live-refresh svg { stroke-width: 2; }
.live-ctrl-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
}
.live-ctrl-title b { font-size: 14px; letter-spacing: .5px; }
.live-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--green-soft);
  animation: blink 1.4s infinite;
}
.live-src {
  font-size: 11px;
  background: rgba(0,0,0,.18);
  padding: 3px 9px;
  border-radius: 8px;
  font-weight: 500;
}
.live-ctrl-actions { display: flex; align-items: center; gap: 10px; }
.live-rad {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
  background: rgba(0,0,0,.18);
  padding: 4px 8px 4px 12px;
  border-radius: 9px;
  color: #fff;
}
.live-rad select {
  background: #fff;
  color: #0d6e3b;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.live-refresh {
  background: var(--gold);
  color: #fff;
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 12.5px; font-weight: 700;
  transition: all .15s;
}
.live-refresh:hover { background: #c8932f; transform: translateY(-1px); }

.live-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  padding: 4px 0;
}
.ls-cell {
  background: var(--bg);
  border: 1px solid var(--green-line);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
}
.ls-v {
  font-size: 22px;
  font-weight: 800;
  color: var(--green);
  line-height: 1.1;
}
.ls-l {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.live-loading {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: var(--green-soft);
  border-radius: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}
.spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--green-line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.live-error {
  padding: 14px 18px;
  background: #fff0f0;
  border: 1px solid #ffd0d0;
  border-radius: 10px;
  color: #b22;
  font-size: 13px;
  font-weight: 600;
}
.live-error small { display: block; margin-top: 4px; font-weight: 400; opacity: .8; }

.live-empty {
  text-align: center;
  padding: 24px;
  background: var(--bg);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* ─── Bulk panel (toplu rekabet özeti) ─── */
.bulk-panel {
  background: var(--card);
  border: 1px solid var(--green-line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.bp-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 14px; margin-bottom: 14px;
}
.bp-title {
  font-size: 15px; font-weight: 600; color: var(--text);
  letter-spacing: -.1px;
}
.bp-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.bp-sub-warn { color: #a87a1f; }
.bp-sub-pending { color: var(--green); font-weight: 600; }
.bp-running {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--muted); font-weight: 500;
  padding: 7px 12px; background: var(--bg);
  border-radius: 8px;
}
.bp-run {
  background: var(--green); color: #fff;
  border: none; border-radius: 8px;
  padding: 9px 14px;
  font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .15s;
}
.bp-run:hover { background: var(--green-2); transform: translateY(-1px); }
.bp-run:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Canlı analiz sahnesi (bulk progresif animasyon) */
.bls-stage {
  display: flex; flex-direction: column; gap: 14px;
  animation: bls-fadein .3s ease;
}
@keyframes bls-fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.bls-progress-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.bls-prog-info b { color: var(--text); font-weight: 600; margin-left: 4px; }
.bls-prog-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; background: var(--green-soft);
  color: var(--green); border-radius: 12px;
  font-size: 11.5px; font-weight: 600;
  animation: bls-pulse 1.6s ease-in-out infinite;
}
@keyframes bls-pulse {
  0%, 100% { opacity: .8; }
  50% { opacity: 1; transform: scale(1.02); }
}
.bls-prog-bar {
  height: 4px; background: var(--bg-2);
  border-radius: 2px; overflow: hidden;
}
.bls-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width .5s ease;
  position: relative;
}
.bls-prog-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  animation: bls-sheen 1.4s linear infinite;
}
@keyframes bls-sheen {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

.bls-card {
  display: flex; gap: 14px; align-items: stretch;
  background: var(--bg);
  border: 1px solid var(--green-line);
  border-radius: 12px;
  padding: 14px;
  animation: bls-slide-in .4s cubic-bezier(.22,.61,.36,1);
}
@keyframes bls-slide-in {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: none; }
}
.bls-photo {
  flex-shrink: 0;
  width: 130px; height: 130px;
  border-radius: 10px; overflow: hidden;
  background: var(--bg-2);
  position: relative;
}
.bls-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: bls-zoom 6s ease-in-out infinite alternate;
}
@keyframes bls-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.bls-photo-empty {
  display: grid; place-items: center;
  font-size: 48px; font-weight: 700;
  color: var(--muted);
  background: linear-gradient(135deg, var(--green-soft), var(--gold-soft));
}
.bls-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bls-name {
  font-size: 16px; font-weight: 600;
  color: var(--text); letter-spacing: -.2px;
  line-height: 1.2;
}
.bls-meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--muted);
}
.bls-meta .bls-rate { color: var(--gold); font-weight: 700; }
.bls-meta .bls-count { font-weight: 500; }
.bls-meta .bls-dist { color: var(--muted); }
.bls-ai-summary {
  font-size: 12.5px; line-height: 1.5;
  color: var(--text);
  margin-top: 4px;
  animation: bls-fadein .4s ease;
}
.bls-shimmer {
  color: var(--muted) !important;
  background: linear-gradient(90deg, transparent, rgba(45,140,80,.15), transparent);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: bls-shimmer-anim 1.6s linear infinite;
}
@keyframes bls-shimmer-anim {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

.bls-reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.bls-rev {
  background: #fff;
  border: 1px solid var(--green-line);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 10px 12px;
  opacity: 0;
  animation: bls-rev-in .45s cubic-bezier(.22,.61,.36,1) forwards;
}
@keyframes bls-rev-in {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.bls-rev-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; margin-bottom: 5px;
}
.bls-rev-stars {
  color: var(--gold); font-size: 11.5px;
  letter-spacing: -1px;
}
.bls-rev-stars .off { color: var(--muted-2); }
.bls-rev-author {
  font-size: 10.5px; color: var(--muted);
  font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100px;
}
.bls-rev-text {
  font-size: 11.5px; line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bls-ai-burst {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--green-soft) 0%, var(--gold-soft) 100%);
  border-radius: 10px;
  animation: bls-burst-in .5s cubic-bezier(.22,.61,.36,1);
}
@keyframes bls-burst-in {
  0%   { opacity: 0; transform: scale(.95); }
  60%  { transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}
.bls-chip {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  background: #fff; color: var(--text);
  border-radius: 12px;
  font-size: 11.5px; font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  animation: bls-chip-in .35s ease backwards;
}
.bls-ai-burst .bls-chip:nth-child(1) { animation-delay: .05s; }
.bls-ai-burst .bls-chip:nth-child(2) { animation-delay: .12s; }
.bls-ai-burst .bls-chip:nth-child(3) { animation-delay: .19s; }
.bls-ai-burst .bls-chip:nth-child(4) { animation-delay: .26s; }
.bls-ai-burst .bls-chip:nth-child(5) { animation-delay: .33s; }
.bls-ai-burst .bls-chip:nth-child(6) { animation-delay: .40s; }
@keyframes bls-chip-in {
  from { opacity: 0; transform: translateY(6px) scale(.9); }
  to   { opacity: 1; transform: none; }
}
.bls-chip.threat.high { background: #b14545; color: #fff; }
.bls-chip.threat.mid  { background: #d4a24a; color: #fff; }
.bls-chip.threat.low  { background: var(--green); color: #fff; }
.bls-chip.neg { background: #fce8e8; color: #b14545; }
.bls-chip.pos { background: var(--green-soft); color: var(--green); }
.bls-chip.act { background: var(--syrup); color: #fff; }

@media (max-width: 680px) {
  .bls-card { flex-direction: column; }
  .bls-photo { width: 100%; height: 200px; }
}

.bp-hint {
  background: var(--bg);
  border: 1px dashed var(--green-line);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 12.5px; color: var(--muted);
}

.bp-progress { padding: 8px 0; }
.bp-bar {
  height: 6px; background: var(--bg-2);
  border-radius: 3px; overflow: hidden;
}
.bp-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width .25s ease;
}
.bp-prog-txt {
  margin-top: 8px; font-size: 12px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.bp-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-bottom: 14px;
}
.bp-stat {
  background: var(--bg);
  border: 1px solid var(--green-line);
  border-radius: 10px;
  padding: 12px 14px;
}
.bp-stat-l {
  font-size: 10.5px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .6px;
  font-weight: 600; margin-bottom: 6px;
}
.bp-stat-v {
  font-size: 22px; font-weight: 700; letter-spacing: -.4px;
  color: var(--text); line-height: 1;
}
.bp-stat-v span { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 3px; }

.bp-threat-bar { margin-bottom: 18px; }
.bp-tb-h {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .6px;
  color: var(--muted); margin-bottom: 8px;
}
.bp-tb {
  display: flex; height: 10px;
  border-radius: 5px; overflow: hidden;
  background: var(--bg-2);
}
.bp-tb .seg { display: block; height: 100%; transition: width .3s; }
.bp-tb .seg.high { background: #b14545; }
.bp-tb .seg.mid  { background: #d4a24a; }
.bp-tb .seg.low  { background: var(--green); }
.bp-tb-leg {
  display: flex; gap: 14px; margin-top: 8px;
  font-size: 11.5px; color: var(--muted);
}
.bp-tb-leg .dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; margin-right: 5px; vertical-align: 0;
}
.bp-tb-leg .dot.high { background: #b14545; }
.bp-tb-leg .dot.mid  { background: #d4a24a; }
.bp-tb-leg .dot.low  { background: var(--green); }

.bp-twocol {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 18px;
}
.bp-block { margin-bottom: 18px; }
.bp-block:last-child { margin-bottom: 0; }
.bp-block-h {
  font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text);
}
.bp-block-h::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--muted);
}
.bp-block-h.pos { color: var(--green); }
.bp-block-h.pos::before { background: var(--green); }
.bp-block-h.neg { color: #b14545; }
.bp-block-h.neg::before { background: #b14545; }
.bp-block-h.danger { color: #b14545; }
.bp-block-h.danger::before { background: #b14545; }
.bp-block-sub {
  font-size: 11.5px; color: var(--muted);
  margin: 3px 0 10px 12px;
}

.bp-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 7px;
}
.bp-li {
  background: var(--bg);
  border: 1px solid var(--green-line);
  border-radius: 9px;
  overflow: hidden;
  transition: border-color .15s;
}
.bp-li:hover { border-color: var(--green); }
.bp-li.bp-li-neg:hover { border-color: #b14545; }
.bp-li-toggle {
  width: 100%;
  background: transparent; border: none;
  text-align: left; cursor: pointer;
  padding: 10px 12px;
  display: block;
}
.bp-li-top {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 12.5px;
}
.bp-li-top b { color: var(--text); font-weight: 600; }
.bp-li-cnt {
  font-size: 10.5px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px;
  font-weight: 600; flex-shrink: 0;
}
.bp-li-evi {
  margin-top: 4px;
  font-size: 11.5px; color: var(--muted);
  font-style: italic; line-height: 1.45;
}
.bp-li-more {
  margin-top: 6px;
  font-size: 11px; font-weight: 600;
  color: var(--green); letter-spacing: .3px;
}
.bp-li-neg .bp-li-more { color: #b14545; }
.bp-li-sources {
  display: none;
  padding: 0 12px 12px;
  flex-direction: column; gap: 8px;
  border-top: 1px solid var(--green-line);
  margin-top: 2px; padding-top: 10px;
  animation: bp-src-in .3s ease;
}
.bp-li.open .bp-li-sources { display: flex; }
@keyframes bp-src-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
.bp-src {
  display: flex; gap: 10px;
  background: #fff;
  border: 1px solid var(--green-line);
  border-radius: 8px;
  padding: 10px;
}
.bp-src-photo {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 7px; overflow: hidden;
  background: var(--bg-2);
  cursor: pointer;
  transition: transform .15s;
}
.bp-src-photo:hover { transform: scale(1.05); }
.bp-src-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.bp-src-body { flex: 1; min-width: 0; }
.bp-src-name {
  background: none; border: none; padding: 0;
  font-size: 12.5px; font-weight: 600;
  color: var(--green);
  cursor: pointer; text-align: left;
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 5px;
}
.bp-li-neg .bp-src-name { color: #b14545; }
.bp-src-name:hover { text-decoration: underline; }
.bp-src-rate {
  font-size: 10.5px; color: var(--gold);
  font-weight: 700; background: var(--gold-soft);
  padding: 1px 6px; border-radius: 8px;
}
.bp-src-rev-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 3px;
}
.bp-src-rev-stars {
  color: var(--gold); font-size: 11px; letter-spacing: -1px;
}
.bp-src-rev-stars .off { color: var(--muted-2); }
.bp-src-rev-author {
  font-size: 10.5px; color: var(--muted); font-weight: 600;
}
.bp-src-rev-text {
  font-size: 11.5px; line-height: 1.5;
  color: var(--text); font-style: italic;
}
.bp-src-kanit {
  font-size: 11.5px; color: var(--muted);
  font-style: italic; line-height: 1.45;
}
.bp-empty {
  font-size: 12px; color: var(--muted);
  padding: 10px 12px;
  border: 1px dashed var(--green-line);
  border-radius: 8px;
}

/* Bölge müşteri profili */
.bp-aud {
  display: flex; flex-direction: column; gap: 7px;
}
.bp-aud-row {
  display: grid; grid-template-columns: 130px 1fr 50px;
  align-items: center; gap: 12px;
}
.bp-aud-l { font-size: 12px; color: var(--text); font-weight: 600; }
.bp-aud-bar {
  height: 10px; background: var(--bg-2);
  border-radius: 5px; overflow: hidden;
}
.bp-aud-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: 5px;
  animation: bp-bar-grow .5s ease;
}
@keyframes bp-bar-grow { from { width: 0 !important; } }
.bp-aud-v {
  font-size: 12.5px; font-weight: 700;
  color: var(--text); text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Performans karnesi */
.bp-cat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.bp-cat {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--green-line);
  border-radius: 12px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 4px;
  overflow: hidden;
}
.bp-cat-v {
  font-size: 26px; font-weight: 700;
  letter-spacing: -.5px;
  line-height: 1;
}
.bp-cat-v span {
  font-size: 12px; font-weight: 500;
  color: var(--muted); margin-left: 2px;
}
.bp-cat-l {
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px;
  font-weight: 600;
}
.bp-cat.high .bp-cat-v { color: var(--green); }
.bp-cat.mid  .bp-cat-v { color: var(--gold); }
.bp-cat.low  .bp-cat-v { color: #b14545; }
.bp-cat-ring {
  position: absolute; top: 10px; right: 10px;
  width: 40px; height: 40px;
  opacity: .7;
}
.bp-cat-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.bp-cat-ring circle { fill: none; stroke-width: 3; }
.bp-cat-ring .bg { stroke: var(--bg-2); }
.bp-cat.high .bp-cat-ring .fg { stroke: var(--green); }
.bp-cat.mid  .bp-cat-ring .fg { stroke: var(--gold); }
.bp-cat.low  .bp-cat-ring .fg { stroke: #b14545; }
.bp-cat-ring .fg { stroke-linecap: round; animation: bp-ring-fill .8s ease; }
@keyframes bp-ring-fill { from { stroke-dasharray: 0,100 !important; } }

/* Trend / momentum */
.bp-trend-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 12px;
}
.bp-trend-stat {
  background: var(--bg);
  border: 1px solid var(--green-line);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.bp-trend-v {
  font-size: 24px; font-weight: 700;
  letter-spacing: -.3px;
}
.bp-trend-l {
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px;
  font-weight: 600; margin-top: 2px;
}
.bp-trend-stat.up   .bp-trend-v { color: var(--green); }
.bp-trend-stat.flat .bp-trend-v { color: var(--muted); }
.bp-trend-stat.down .bp-trend-v { color: #b14545; }
.bp-trend-rising-t {
  font-size: 12px; font-weight: 600;
  color: var(--green); margin-bottom: 8px;
}
.bp-risk.rising {
  background: #f0fbf5;
  border-color: #b3e3c9;
}
.bp-risk.rising:hover {
  border-color: var(--green);
  box-shadow: 0 4px 12px rgba(45,140,80,.18);
}
.bp-risk.rising b { color: var(--green); }

/* Sadakat */
.bp-loyalty {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 14px; align-items: stretch;
}
.bp-loyalty-avg {
  background: linear-gradient(135deg, var(--green-soft), var(--gold-soft));
  border-radius: 12px;
  padding: 18px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 4px;
}
.bp-loyalty-v {
  font-size: 36px; font-weight: 700;
  color: var(--green);
  letter-spacing: -1px; line-height: 1;
}
.bp-loyalty-l {
  font-size: 11.5px; color: var(--muted);
  font-weight: 600;
}
.bp-loyalty-top-t {
  font-size: 12px; font-weight: 600;
  color: var(--text); margin-bottom: 8px;
}
.bp-risk.loyalty {
  background: var(--gold-soft);
  border-color: #e6cf9c;
}
.bp-risk.loyalty:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(212,162,74,.2);
}
.bp-risk.loyalty b { color: var(--syrup); }

/* USP kartları */
.bp-usp-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
}
.bp-usp {
  background: var(--bg);
  border: 1px solid var(--green-line);
  border-left: 3px solid var(--syrup);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all .15s;
}
.bp-usp:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.bp-usp-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; margin-bottom: 5px;
}
.bp-usp-head b { font-size: 12.5px; color: var(--text); font-weight: 600; }
.bp-usp-rate {
  font-size: 10.5px; color: var(--gold); font-weight: 700;
  background: var(--gold-soft); padding: 2px 7px; border-radius: 8px;
  flex-shrink: 0;
}
.bp-usp-text {
  font-size: 12px; color: var(--muted);
  line-height: 1.5; font-style: italic;
}

/* Menü chip rengini farklılaştır */
.bp-chip.menu { background: var(--green-soft); color: var(--green); }
.bp-chip.atm  { background: #f5eee2; color: var(--syrup); }

@media (max-width: 700px) {
  .bp-loyalty { grid-template-columns: 1fr; }
  .bp-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .bp-aud-row { grid-template-columns: 100px 1fr 45px; }
}

.bp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bp-chip {
  background: var(--gold-soft); color: var(--syrup);
  padding: 5px 11px; border-radius: 14px;
  font-size: 12px; font-weight: 600;
}
.bp-chip em { font-style: normal; opacity: .65; font-weight: 500; margin-left: 4px; }

.bp-actions { display: flex; flex-direction: column; gap: 8px; }
.bp-act {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--green-line);
  border-radius: 10px;
  padding: 12px 14px;
}
.bp-act-num {
  flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 700;
  margin-top: 1px;
}
.bp-act-body { flex: 1; min-width: 0; }
.bp-act-t {
  font-size: 13px; font-weight: 600; color: var(--text);
  margin-bottom: 4px; letter-spacing: -.1px;
  display: flex; align-items: center; gap: 8px;
}
.bp-act-cnt {
  font-size: 10.5px; color: var(--muted);
  background: var(--card); padding: 2px 7px;
  border-radius: 10px; font-weight: 600;
}
.bp-act-d {
  font-size: 11.5px; color: var(--text);
  line-height: 1.5; margin-top: 2px;
}
.bp-act-d b { color: var(--muted); margin-right: 3px; font-weight: 600; }

.bp-risk-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.bp-risk {
  background: #fff5f5;
  border: 1px solid #f3c4c4;
  border-radius: 9px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: all .15s;
}
.bp-risk:hover { transform: translateY(-1px); border-color: #b14545; box-shadow: 0 4px 12px rgba(177,69,69,.15); }
.bp-risk b { display: block; font-size: 12.5px; color: #b14545; margin-bottom: 3px; }
.bp-risk span { font-size: 11px; color: var(--muted); font-weight: 500; }

@media (max-width: 900px) {
  .bp-twocol { grid-template-columns: 1fr; }
  .bp-grid { grid-template-columns: repeat(2, 1fr); }
}

.live-list-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 500;
  color: var(--text);
  padding: 4px 4px 10px;
  gap: 10px;
}
.live-list-head b { font-weight: 700; }
.live-list-head .ls-hint { color: var(--muted); font-size: 11.5px; font-weight: 500; }

/* ─── Liste toolbar (arama + sıralama + tip filtresi) ─── */
.lr-tools {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 8px 4px 12px;
}
.lr-search {
  flex: 1; min-width: 180px;
  border: 1px solid var(--green-line, #e2ebe5); background: var(--bg, #f7faf8);
  padding: 7px 12px; border-radius: 8px; font-size: 12.5px;
  outline: none; transition: border-color .15s, background .15s;
}
.lr-search:focus { border-color: var(--green, #0d6e3b); background: #fff; }
.lr-sort-group { display: inline-flex; align-items: stretch; }
.lr-sort {
  border: 1px solid var(--green-line, #e2ebe5); background: #fff;
  padding: 7px 10px; border-radius: 8px 0 0 8px; font-size: 12.5px; cursor: pointer;
  font-weight: 500; color: var(--text);
  border-right: none;
}
.lr-sort-dir {
  border: 1px solid var(--green-line, #e2ebe5); background: var(--bg, #f7faf8);
  padding: 7px 10px; border-radius: 0 8px 8px 0; font-size: 11.5px;
  font-weight: 700; cursor: pointer; color: var(--text);
  white-space: nowrap;
  transition: all .12s;
}
.lr-sort-dir:hover { background: var(--green, #0d6e3b); color: #fff; border-color: var(--green, #0d6e3b); }
.lr-tools-spacer { flex: 1; }
.lr-radius-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--muted); font-weight: 500;
}
.lr-radius {
  border: 1px solid var(--green-line, #e2ebe5); background: #fff;
  padding: 6px 8px; border-radius: 8px; font-size: 12.5px; cursor: pointer;
  font-weight: 600; color: var(--text);
}
.lr-refresh {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green, #0d6e3b); color: #fff;
  border: 1px solid var(--green, #0d6e3b); border-radius: 8px;
  cursor: pointer; transition: all .15s;
}
.lr-refresh:hover { background: var(--green-2, #0a5530); transform: rotate(180deg); }
.lr-types { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.lr-type-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg, #f7faf8); color: var(--text);
  border: 1px solid var(--green-line, #e2ebe5);
  padding: 6px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; cursor: pointer;
  transition: all .12s;
}
.lr-type-btn em {
  font-style: normal; color: var(--muted); font-size: 10.5px; font-weight: 600;
  background: rgba(0,0,0,.05); padding: 1px 6px; border-radius: 999px;
}
.lr-type-btn:hover:not(:disabled) { border-color: var(--green, #0d6e3b); color: var(--green, #0d6e3b); }
.lr-type-btn.active { background: var(--green, #0d6e3b); color: #fff; border-color: var(--green, #0d6e3b); }
.lr-type-btn.active em { background: rgba(255,255,255,.25); color: #fff; }
.lr-type-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ─── Tümünü Gör butonu ─── */
.lr-show-all-wrap { display: flex; justify-content: center; padding: 10px 4px 4px; }
.lr-show-all {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-soft, #eaf5ec); color: var(--green, #0d6e3b);
  border: 1px solid var(--green-line, #cde4d2);
  padding: 8px 16px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.lr-show-all:hover { background: var(--green, #0d6e3b); color: #fff; transform: translateY(-1px); }

/* ─── Detaylı görünüm (collapsible) ─── */
.live-more { background: transparent; }
.live-more > .live-more-sum {
  cursor: pointer; user-select: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; margin-top: 4px;
  background: var(--card, #fff); border: 1px solid var(--green-line, #e2ebe5);
  border-radius: 10px; font-size: 12.5px;
  list-style: none;
}
.live-more > .live-more-sum::-webkit-details-marker { display: none; }
.live-more[open] > .live-more-sum { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.live-more .live-more-l { font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.live-more .live-more-r { color: var(--muted); font-size: 11.5px; display: inline-flex; align-items: center; gap: 4px; }
.live-more[open] .live-more-r svg { transform: rotate(180deg); }
.live-more > *:not(summary) { margin-top: 10px; }

/* AI özeti — her zaman açık · modern başlık bandı */
.bulk-section { display: block; }
.bulk-section-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; padding: 14px 18px; margin-bottom: 0;
  background: linear-gradient(135deg, #0d6e3b 0%, #1a8a4d 100%);
  color: #fff;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 2px 8px rgba(13, 110, 59, .12);
}
.bulk-section-titlewrap { display: flex; align-items: center; gap: 12px; }
.bulk-section-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.18); flex-shrink: 0;
}
.bulk-section-title { font-size: 15px; font-weight: 700; letter-spacing: .2px; }
.bulk-section-sub { font-size: 11.5px; opacity: .85; margin-top: 2px; font-weight: 500; }
.bulk-section-pill {
  font-size: 10.5px; font-weight: 700; letter-spacing: .8px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.22); color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}
.bulk-section-pill::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #5eff9a; margin-right: 6px; box-shadow: 0 0 6px #5eff9a;
  vertical-align: middle;
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .4 } }
.bulk-section .bulk-panel {
  border-top-left-radius: 0; border-top-right-radius: 0;
  border-top: none;
}

/* Daha sıkışık KPI */
.live-stats { gap: 6px; }

/* ─── Tüm Rakipler Modal ─── */
.cl-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15, 32, 22, .55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; animation: cl-fade .18s ease-out;
}
@keyframes cl-fade { from { opacity: 0 } to { opacity: 1 } }
.cl-modal {
  width: min(960px, 100%); max-height: 86vh;
  background: var(--card, #fff); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  display: flex; flex-direction: column; overflow: hidden;
  animation: cl-pop .22s ease-out;
}
@keyframes cl-pop { from { transform: translateY(8px) scale(.98); opacity: 0 } to { transform: none; opacity: 1 } }
.cl-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--green-line, #e2ebe5); gap: 12px;
}
.cl-title { font-size: 16px; font-weight: 700; color: var(--text); }
.cl-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cl-tools { display: flex; align-items: center; gap: 8px; }
.cl-search {
  border: 1px solid var(--green-line, #e2ebe5); background: var(--bg, #f7faf8);
  padding: 7px 12px; border-radius: 8px; font-size: 12.5px; min-width: 200px;
  outline: none; transition: border-color .15s;
}
.cl-search:focus { border-color: var(--green, #0d6e3b); }
.cl-close {
  background: transparent; border: 1px solid var(--green-line, #e2ebe5);
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
  font-size: 14px; color: var(--muted);
}
.cl-close:hover { background: var(--bg, #f7faf8); color: var(--text); }
.cl-body { overflow: auto; padding: 6px 18px 18px; }
.cl-table { font-size: 12.5px; }
.cl-table tbody tr { cursor: pointer; transition: background .12s; }
.cl-table tbody tr:hover { background: var(--bg, #f7faf8); }
.cl-table .cl-num { color: var(--muted); font-weight: 600; width: 36px; }
.cl-table td { padding: 9px 8px; border-bottom: 1px solid var(--green-line, #eef3ef); }

/* ─── Atmosfer chip clickable + modal ─── */
.bp-chip.bp-chip-clickable {
  cursor: pointer; user-select: none;
  border: 1px solid transparent;
  transition: all .15s ease;
  font: inherit;
}
.bp-chip.bp-chip-clickable:hover {
  border-color: var(--green, #0d6e3b);
  background: var(--green, #0d6e3b);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 110, 59, .18);
}
.bp-chip.bp-chip-clickable:hover em {
  background: rgba(255,255,255,.25); color: #fff;
}

.atm-modal { width: min(1080px, 100%); }
.atm-head .cl-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.atm-badge {
  display: inline-block;
  background: linear-gradient(135deg, #0d6e3b 0%, #1a8a4d 100%);
  color: #fff; padding: 5px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .2px;
  text-transform: capitalize;
}
.atm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  padding: 6px 0 4px;
}
.atm-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--green-line, #e2ebe5);
  border-radius: 12px; overflow: hidden; text-align: left; cursor: pointer;
  transition: all .15s; padding: 0;
}
.atm-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.10); border-color: var(--green, #0d6e3b); }
.atm-photo { width: 100%; aspect-ratio: 16/10; background: var(--bg, #f7faf8); overflow: hidden; }
.atm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atm-photo-empty {
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 700; color: var(--green, #0d6e3b);
  background: linear-gradient(135deg, #eaf5ec 0%, #d6ead8 100%);
}
.atm-info { padding: 10px 12px 12px; }
.atm-name { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; line-height: 1.25; }
.atm-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 11.5px; color: var(--muted); margin-bottom: 6px;
}
.atm-rate { color: #a87a1f; font-weight: 700; }
.atm-othertags { display: flex; flex-wrap: wrap; gap: 4px; }
.atm-mini {
  font-size: 10.5px; padding: 2px 7px; border-radius: 999px;
  background: var(--bg, #f7faf8); color: var(--muted); border: 1px solid var(--green-line, #eef3ef);
}

/* ─────────────────────────────────────────────────────────
   DASHBOARD · Bölge Rakip İstihbaratı widget'ları
   ───────────────────────────────────────────────────────── */
.dash-section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 12px; margin: 28px 0 12px;
}
.dash-section-title {
  font-size: 16px; font-weight: 700; color: var(--text);
  letter-spacing: -.2px;
}
.dash-section-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dash-section-more {
  background: var(--green-soft, #eaf5ec); color: var(--green, #0d6e3b);
  border: 1px solid var(--green-line, #cde4d2);
  padding: 7px 14px; border-radius: 8px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.dash-section-more:hover { background: var(--green, #0d6e3b); color: #fff; transform: translateX(2px); }

.dash-comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  align-items: start; /* her widget kendi içerik yüksekliğinde kalsın */
}

.dash-mini { padding: 14px 16px; }
.dash-mini .card-head { padding: 0 0 10px; border-bottom: 1px solid var(--green-line, #eef3ef); margin-bottom: 12px; }
.dash-mini .card-head h3 { font-size: 13.5px; }
.dash-mini .card-head .more { font-size: 10.5px; }
.dash-mini .live-tag {
  font-size: 9.5px; font-weight: 700;
  background: #fff0f0; color: #c52929; border: 1px solid #f8c8c8;
  padding: 2px 7px; border-radius: 999px; margin-left: 6px;
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

.dash-mini-link {
  background: transparent; border: none; cursor: pointer;
  color: var(--green, #0d6e3b); font-size: 11px; font-weight: 600;
  padding: 4px 6px; border-radius: 6px;
}
.dash-mini-link:hover { background: var(--green-soft); }

.dash-loading {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 12px; padding: 20px 4px;
}
.dash-loading .spinner {
  width: 14px; height: 14px; border: 2px solid var(--green-line);
  border-top-color: var(--green); border-radius: 50%;
  animation: spin .8s linear infinite;
}
.dash-empty, .dash-error {
  font-size: 12px; color: var(--muted); padding: 16px 4px;
  text-align: center; line-height: 1.5;
}
.dash-error { color: #c52929; }
.dash-empty-link { color: var(--green); font-weight: 600; cursor: pointer; }
.dash-empty-link:hover { text-decoration: underline; }

/* KPI grid (pulse widget) */
.dash-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px; margin-bottom: 12px;
}
.dash-kpi {
  background: var(--bg, #f7faf8); border: 1px solid var(--green-line, #eef3ef);
  border-radius: 8px; padding: 8px 6px; text-align: center;
}
.dash-kpi b {
  display: block; font-size: 20px; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.dash-kpi span {
  font-size: 10px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .3px; font-weight: 600; margin-top: 2px; display: block;
}
.dash-kpi.danger b { color: #c52929; }
.dash-kpi.warn b   { color: #a87a1f; }
.dash-kpi.ok b     { color: var(--green); }

.dash-bar {
  display: flex; height: 8px; border-radius: 999px; overflow: hidden;
  background: var(--bg-2, #eef3ef); margin-bottom: 8px;
}
.dash-bar .seg.high { background: #e15454; }
.dash-bar .seg.mid  { background: #d4a24a; }
.dash-bar .seg.low  { background: #9bcc4f; }
.dash-bar-leg {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 10.5px; color: var(--muted); font-weight: 600;
}
.dash-bar-leg .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  margin-right: 4px; vertical-align: 1px;
}
.dash-bar-leg .dot.high { background: #e15454; }
.dash-bar-leg .dot.mid  { background: #d4a24a; }
.dash-bar-leg .dot.low  { background: #9bcc4f; }
.dash-ai-hint { margin-left: auto; color: var(--green, #0d6e3b); }

/* Yüksek Riskli Rakipler */
.dash-risk-list { display: flex; flex-direction: column; gap: 6px; }
.dash-risk-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; background: var(--bg, #f7faf8);
  border: 1px solid var(--green-line, #eef3ef); border-radius: 8px;
  cursor: pointer; transition: all .12s; text-align: left; width: 100%;
}
.dash-risk-row:hover { background: #fff; border-color: var(--green, #0d6e3b); transform: translateX(2px); }
.dash-risk-rank {
  width: 22px; height: 22px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--green, #0d6e3b); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 50%;
}
.dash-risk-row:nth-child(1) .dash-risk-rank { background: #c52929; }
.dash-risk-row:nth-child(2) .dash-risk-rank { background: #d4a24a; }
.dash-risk-main { flex: 1; min-width: 0; }
.dash-risk-name {
  font-size: 12.5px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}
.dash-risk-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 10.5px; color: var(--muted);
}
.dash-risk-rate { color: #a87a1f; font-weight: 700; }

/* Atmosphere chips */
.dash-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.dash-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg, #f7faf8); color: var(--text);
  border: 1px solid var(--green-line, #e2ebe5);
  padding: 5px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.dash-chip em {
  font-style: normal; color: var(--muted);
  background: rgba(0,0,0,.05); padding: 1px 5px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
}
.dash-chip:hover {
  background: var(--green, #0d6e3b); color: #fff; border-color: var(--green, #0d6e3b);
  transform: translateY(-1px); box-shadow: 0 3px 8px rgba(13,110,59,.15);
}
.dash-chip:hover em { background: rgba(255,255,255,.25); color: #fff; }

/* Stratejik Aksiyonlar */
.dash-actions {
  list-style: none; padding: 0; margin: 0 0 8px;
  display: flex; flex-direction: column; gap: 8px;
}
.dash-action {
  display: flex; gap: 10px;
  padding: 9px 10px; background: var(--bg, #f7faf8);
  border-radius: 8px; border-left: 3px solid var(--green, #0d6e3b);
}
.dash-action-num {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green, #0d6e3b); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 50%;
}
.dash-action-body { flex: 1; min-width: 0; }
.dash-action-title {
  font-size: 12.5px; font-weight: 700; color: var(--text);
  margin-bottom: 3px; line-height: 1.3;
}
.dash-action-cnt {
  font-size: 10px; color: var(--muted); font-weight: 600;
  margin-left: 4px;
}
.dash-action-line {
  font-size: 11px; color: var(--muted); line-height: 1.4;
  margin-top: 2px;
}
.dash-action-line b { color: var(--text); font-weight: 600; }
.dash-actions-more {
  width: 100%; margin-top: 4px;
  background: transparent; border: 1px dashed var(--green-line);
  color: var(--green, #0d6e3b);
  padding: 7px 10px; border-radius: 8px;
  font-size: 11.5px; font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.dash-actions-more:hover { background: var(--green-soft); border-style: solid; }

/* ── Restoran profil hero kartı ── */
.dash-rest-hero {
  display: flex; gap: 18px;
  background: var(--card, #fff);
  border: 1px solid var(--green-line, #e2ebe5);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  overflow: hidden;
}
.drh-photo {
  width: 180px; min-width: 180px; height: 140px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eaf5ec 0%, #d9ecdf 100%);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  position: relative; transition: opacity .3s;
}
.drh-photo-fallback {
  font-size: 42px; opacity: .5;
}
.drh-photo.drh-photo-loaded .drh-photo-fallback { display: none; }
.drh-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.drh-name {
  font-size: 19px; font-weight: 700; color: var(--text);
  letter-spacing: -.3px; line-height: 1.2;
}
.drh-syncing {
  display: inline-block; margin-left: 8px;
  font-size: 10.5px; font-weight: 600;
  color: var(--green, #0d6e3b);
  background: var(--green-soft, #eaf5ec);
  padding: 2px 8px; border-radius: 999px;
  vertical-align: 4px;
  animation: drh-pulse 1.4s ease-in-out infinite;
}
@keyframes drh-pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
.drh-addr {
  font-size: 12.5px; color: var(--muted); line-height: 1.4;
}
.drh-stats {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 2px;
}
.drh-stat {
  font-size: 11.5px; font-weight: 600;
  background: var(--bg, #f7faf8);
  border: 1px solid var(--green-line, #eef3ef);
  padding: 4px 10px; border-radius: 999px;
  color: var(--muted);
}
.drh-stat.drh-rating { color: #a87a1f; }
.drh-stat.drh-rating b { color: var(--text); margin-left: 2px; }
.drh-stat.drh-cuisine { color: var(--green); border-color: var(--green-line); background: var(--green-soft); }
.drh-actions {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto; padding-top: 8px;
}
.drh-act {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg, #f7faf8); color: var(--text);
  border: 1px solid var(--green-line, #e2ebe5);
  padding: 6px 12px; border-radius: 8px;
  font-size: 11.5px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: all .12s;
}
.drh-act:hover {
  background: #fff; border-color: var(--green, #0d6e3b);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(13,110,59,.1);
}
.drh-act.drh-act-primary {
  background: var(--green, #0d6e3b); color: #fff;
  border-color: var(--green, #0d6e3b);
}
.drh-act.drh-act-primary:hover { background: var(--green-2, #0a5530); color: #fff; }

/* Empty state */
.drh-is-empty { padding: 18px; }
.drh-empty {
  display: flex; align-items: center; gap: 14px; width: 100%;
}
.drh-empty-icon {
  font-size: 32px; width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2, #eef3ef); border-radius: 12px; flex-shrink: 0;
}
.drh-empty-body { flex: 1; min-width: 0; }
.drh-empty-title { font-size: 15px; font-weight: 700; color: var(--text); }
.drh-empty-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.drh-empty-btn {
  background: var(--green, #0d6e3b); color: #fff;
  border: none; padding: 9px 16px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.drh-empty-btn:hover { background: var(--green-2, #0a5530); transform: translateX(2px); }

/* Hızlı aksiyon satırı */
.dash-quick-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 12px;
}
.dash-quick-btn {
  background: var(--card, #fff);
  border: 1px solid var(--green-line, #e2ebe5);
  color: var(--text);
  padding: 8px 14px; border-radius: 8px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all .12s;
}
.dash-quick-btn:hover {
  background: var(--green, #0d6e3b); color: #fff;
  border-color: var(--green, #0d6e3b);
  transform: translateY(-1px);
}

/* Mobil: foto üstte, info altta */
@media (max-width: 640px) {
  .dash-rest-hero { flex-direction: column; }
  .drh-photo { width: 100%; min-width: 0; height: 160px; }
}

/* Aktif Ajanlar grid */
.dash-active-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.dash-active-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  background: var(--bg, #f7faf8);
  border: 1px solid var(--green-line, #eef3ef);
  border-radius: 10px;
  cursor: pointer; text-align: left; width: 100%;
  transition: all .12s;
}
.dash-active-item:hover {
  background: #fff; border-color: var(--green, #0d6e3b);
  transform: translateX(2px);
}
.dash-active-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green, #0d6e3b); flex-shrink: 0;
  animation: blink 1.4s infinite;
}
.dash-active-body { flex: 1; min-width: 0; }
.dash-active-name {
  font-size: 12.5px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}
.dash-active-meta {
  font-size: 10.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-transform: uppercase; letter-spacing: .3px;
}
.ls-enrich-btn {
  background: var(--green);
  color: #fff;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .15s;
}
.ls-enrich-btn:hover:not(:disabled) { background: var(--green-2); }
.ls-enrich-btn:disabled { opacity: .85; cursor: progress; }
.spinner-sm { width: 12px; height: 12px; border-width: 1.5px; }

.live-table { font-size: 12.5px; border-spacing: 0; width: 100%; }
.live-table thead th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--green-line);
}
.live-table tbody td {
  padding: 10px;
  border-bottom: 1px solid var(--bg-2);
  vertical-align: middle;
}
.live-table .lr-row { cursor: pointer; transition: all .12s; }
.live-table .lr-row:hover { background: var(--green-soft); }
.live-table .lr-row.lr-pop { background: linear-gradient(90deg, rgba(212,162,74,.06), transparent 40%); }
.live-table .lr-row.lr-pop:hover { background: linear-gradient(90deg, rgba(212,162,74,.12), var(--green-soft) 60%); }

/* Foto thumbnail */
.lr-cell-img { width: 56px; padding-right: 0 !important; }
.lr-thumb {
  width: 48px; height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg);
  border: 1px solid var(--green-line);
}
.lr-thumb-empty {
  display: grid; place-items: center;
  background: var(--bg);
}
.lr-thumb-empty .lr-num {
  background: transparent;
  color: var(--muted-2);
  width: auto; height: auto;
  font-size: 12px;
  box-shadow: none;
}

/* İsim + popüler rozet */
.lr-name {
  display: flex; align-items: center; gap: 7px;
  flex-wrap: wrap;
}
.lr-name b { font-size: 13.5px; font-weight: 600; color: var(--text); }
.lr-pop-badge {
  background: var(--gold);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 2px 7px;
  border-radius: 4px;
}
.lr-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* Rating hücresi */
.lr-rate {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}
.lr-rate-num {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.lr-rate-stars {
  color: var(--gold);
  font-size: 11.5px;
  letter-spacing: 1px;
  line-height: 1;
}
.lr-rate-count {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
}
.lr-price {
  background: var(--green-soft);
  color: var(--green);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}
.lr-rate-empty {
  font-size: 11.5px;
  color: var(--muted-2);
  font-style: italic;
}
.lr-rate-err {
  font-size: 11.5px;
  color: var(--danger);
  cursor: help;
}

/* Servis hücresi */
.lr-srv-cell {
  display: flex; flex-wrap: wrap; gap: 5px; align-items: center;
}
.lr-srv {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: var(--bg-2);
  color: var(--muted);
  border-radius: 5px;
  font-size: 11px;
  cursor: help;
}
.lr-open {
  background: var(--green-soft);
  color: var(--green);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.lr-closed {
  background: #ffe5e5;
  color: #b22;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Google özet hücreleri (rakip sayısı yanında) */
.ls-cell.ls-google {
  background: linear-gradient(135deg, var(--gold-soft) 0%, #fff 100%);
  border-color: var(--gold-line);
}
.ls-cell.ls-google .ls-v { color: var(--gold); }
.ls-cell.ls-google .ls-star {
  font-size: 14px;
  margin-left: 2px;
}
.lr-num {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  font-size: 10.5px; font-weight: 800;
  font-family: 'SF Mono', Menlo, monospace;
}
.lr-brand {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 1px;
}
.lr-type {
  display: inline-block;
  padding: 2px 8px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
}
.lr-srv {
  font-size: 13px;
  margin-right: 2px;
  cursor: help;
}
.lr-link {
  color: var(--green);
  font-weight: 700;
  font-size: 11.5px;
  text-decoration: none;
}
.lr-link:hover { text-decoration: underline; }

/* CANLI rozeti — kart başlıklarında küçük */
.live-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .8px;
  background: var(--green-soft);
  color: var(--green);
  padding: 3px 9px;
  border-radius: 7px;
  border: 1px solid var(--green-line);
}

/* "Canlı" rozeti hero'da — sade ve profesyonel */
.live-badge-hero {
  display: inline-flex; align-items: center; gap: 6px;
  vertical-align: 6px;
  margin-left: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2px;
  background: rgba(255,255,255,.12);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.2);
}
.live-badge-hero .lbh-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: #6ee99c;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(110,233,156,.3);
}

/* ═════════════════════════════════════════════════════════════
   COMPETITOR DETAY DRAWER · v2 (modern, photo-hero, no-emoji)
   ═════════════════════════════════════════════════════════════ */

/* ─── Overlay ─── */
.cd-overlay {
  position: fixed; inset: 0;
  background: rgba(8, 18, 14, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 9999;
  animation: cd-fade .18s ease-out;
}
@keyframes cd-fade { from { opacity: 0; } to { opacity: 1; } }

/* ─── Drawer shell ─── */
.cd-drawer {
  position: relative;
  width: min(960px, 100%);
  max-height: 92vh;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 32px 80px -12px rgba(0,0,0,.45),
              0 0 0 1px rgba(255,255,255,.08);
  transform: scale(.97) translateY(12px);
  opacity: 0;
  transition: transform .24s cubic-bezier(.22,.61,.36,1), opacity .18s ease;
}
.cd-drawer.open { transform: scale(1) translateY(0); opacity: 1; }

/* ─── Close button (floating top-right) ─── */
.cd-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: rgba(0,0,0,.45);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 5;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .15s, transform .15s;
}
.cd-close:hover { background: rgba(0,0,0,.7); transform: scale(1.06); }
.cd-close .ic { stroke-width: 2.4; }

/* ─── HERO ─── */
.cd-hero {
  position: relative;
  min-height: 200px;
  display: flex; align-items: flex-end;
  padding: 28px 28px 22px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.cd-hero.has-photo { min-height: 240px; }
.cd-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
  z-index: 0;
}
.cd-hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,.18) 0%,
    rgba(0,0,0,.35) 45%,
    rgba(8,18,14,.78) 100%);
  z-index: 1;
}
.cd-hero:not(.has-photo) .cd-hero-shade {
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.18) 100%);
}
.cd-hero-content {
  position: relative; z-index: 2;
  width: 100%;
}
.cd-hero-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 12px;
}
.cd-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(255,255,255,.18);
  color: #fff;
  text-transform: capitalize;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.16);
}
.cd-chip-cuisine { background: rgba(255,255,255,.28); }
.cd-chip-open    { background: rgba(74, 196, 124, .9); border-color: rgba(255,255,255,.3); }
.cd-chip-closed  { background: rgba(195, 80, 80, .9);  border-color: rgba(255,255,255,.3); }
.cd-hero-name {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.6px;
  line-height: 1.15;
  margin: 0 0 10px;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.cd-hero-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 13px;
  color: rgba(255,255,255,.94);
}
.cd-hm {
  display: inline-flex; align-items: center; gap: 5px;
}
.cd-hm b { font-weight: 700; color: #fff; }
.cd-hm-addr {
  opacity: .82;
  font-size: 12px;
}
.cd-hm .ic { opacity: .8; }

/* ─── BODY (scroll area) ─── */
.cd-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px 24px;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 14px;
}

/* ─── Threat gauge card ─── */
.cd-threat-card {
  position: relative;
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--green-line);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  overflow: hidden;
}
.cd-threat-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--green);
}
.cd-threat-card[data-level="yüksek"]::before  { background: #c64545; }
.cd-threat-card[data-level="orta"]::before    { background: #d4982f; }
.cd-threat-card[data-level="düşük"]::before   { background: #7ab84a; }
.cd-threat-card[data-level="minimum"]::before { background: var(--muted); }

.cd-threat-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.cd-threat-text { flex: 1; }
.cd-threat-lbl {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.cd-threat-lvl {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.4px;
  line-height: 1.05;
  margin-top: 4px;
  color: var(--text);
}
.cd-threat-card[data-level="yüksek"]  .cd-threat-lvl { color: #b14545; }
.cd-threat-card[data-level="orta"]    .cd-threat-lvl { color: #a87a1f; }
.cd-threat-card[data-level="düşük"]   .cd-threat-lvl { color: #5d8a35; }
.cd-threat-card[data-level="minimum"] .cd-threat-lvl { color: var(--muted); }

.cd-threat-score {
  display: flex; align-items: baseline; gap: 1px;
  flex-shrink: 0;
}
.cd-score-num {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1;
  color: var(--text);
}
.cd-threat-card[data-level="yüksek"]  .cd-score-num { color: #b14545; }
.cd-threat-card[data-level="orta"]    .cd-score-num { color: #a87a1f; }
.cd-threat-card[data-level="düşük"]   .cd-score-num { color: #5d8a35; }
.cd-score-max {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.cd-threat-bar {
  height: 6px;
  background: var(--bg-2);
  border-radius: 99px;
  overflow: hidden;
}
.cd-threat-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #7ab84a 0%, #d4982f 55%, #c64545 100%);
  transition: width .5s cubic-bezier(.22,.61,.36,1);
}

/* ─── 2-col grid ─── */
.cd-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 14px;
}
@media (max-width: 720px) { .cd-grid { grid-template-columns: 1fr; } }

/* ─── Generic card ─── */
.cd-card {
  background: #fff;
  border: 1px solid var(--green-line);
  border-radius: 12px;
  padding: 14px 16px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.cd-card-h {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .9px;
  color: var(--muted);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--green-line);
}
.cd-card-h .ic { color: var(--green); }
.cd-card-h span:first-of-type { color: var(--text); }
.cd-card-h-spaced { margin-top: 18px; }
.cd-h-cnt {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 800;
  background: var(--green-soft);
  color: var(--green);
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: .4px;
}
.cd-h-tag {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 800;
  background: #c64545;
  color: #fff;
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: .8px;
  animation: cd-pulse 2s ease-in-out infinite;
}
@keyframes cd-pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* ─── Threat factors ─── */
.cd-factors {
  display: flex; flex-direction: column;
  gap: 8px;
}
.cd-factor {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: 9px;
  cursor: help;
  transition: background .15s;
}
.cd-factor:hover { background: var(--green-soft); }
.cd-fic {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  background: #fff;
  border: 1px solid var(--green-line);
  border-radius: 7px;
  color: var(--green);
}
.cd-fl { min-width: 0; }
.cd-fl-t {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cd-fl-bar {
  height: 4px;
  background: var(--bg-2);
  border-radius: 99px;
  overflow: hidden;
}
.cd-fl-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-2) 100%);
  border-radius: 99px;
}
.cd-fs {
  font-family: 'SF Mono', Menlo, monospace;
  font-weight: 800;
  font-size: 12px;
  color: var(--green);
  background: var(--green-soft);
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* ─── Info list (right column) ─── */
.cd-info-list {
  display: flex; flex-direction: column;
  gap: 1px;
}
.cd-info-row {
  display: grid;
  grid-template-columns: 22px 80px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 4px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--green-line);
  text-decoration: none;
  color: inherit;
  transition: background .12s;
}
.cd-info-row:last-child { border-bottom: 0; }
a.cd-info-row:hover { background: var(--green-soft); border-radius: 6px; }
.cd-info-ic {
  display: grid; place-items: center;
  color: var(--muted);
}
a.cd-info-row .cd-info-ic { color: var(--green); }
.cd-info-l {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.cd-info-v {
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
  text-align: right;
  font-size: 12.5px;
}
.cd-info-v.cd-mono {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}
.cd-info-ext { color: var(--muted); }

/* Services chips */
.cd-services {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--green-line);
}
.cd-svc {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px;
  font-weight: 600;
  background: var(--gold-soft);
  color: var(--syrup);
  padding: 4px 9px;
  border-radius: 99px;
}
.cd-svc .ic { width: 11px; height: 11px; }

/* ─── Strategy cards ─── */
.cd-strats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}
.cd-strat {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--green-soft) 0%, #fff 100%);
  border: 1px solid var(--green-line);
  border-radius: 10px;
  transition: transform .15s, box-shadow .15s;
}
.cd-strat:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(34, 91, 51, .08);
}
.cd-strat-ic {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  background: #fff;
  border: 1px solid var(--green-line);
  border-radius: 9px;
  color: var(--green);
  flex-shrink: 0;
}
.cd-strat-body { min-width: 0; }
.cd-strat-t {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -.1px;
  margin-bottom: 4px;
}
.cd-strat-d {
  font-size: 12px;
  color: var(--text);
  line-height: 1.55;
}

/* ─── Sticky footer actions ─── */
.cd-foot {
  display: flex; gap: 8px;
  padding: 14px 24px;
  background: #fff;
  border-top: 1px solid var(--green-line);
  flex-shrink: 0;
  box-shadow: 0 -2px 12px rgba(0,0,0,.04);
}
.cd-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1px;
  text-decoration: none;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.cd-btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(34, 91, 51, .25);
}
.cd-btn-primary:hover {
  background: var(--green-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 91, 51, .35);
}
.cd-btn-ghost {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--green-line);
}
.cd-btn-ghost:hover { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.cd-btn .ic { width: 14px; height: 14px; }

/* Mobile tweaks */
@media (max-width: 640px) {
  .cd-overlay { padding: 0; }
  .cd-drawer { border-radius: 0; max-height: 100vh; height: 100vh; width: 100%; }
  .cd-hero { padding: 24px 20px 18px; min-height: 180px; }
  .cd-hero.has-photo { min-height: 220px; }
  .cd-hero-name { font-size: 24px; }
  .cd-body { padding: 14px 16px 18px; gap: 12px; }
  .cd-foot { padding: 12px 16px; }
  .cd-info-row { grid-template-columns: 22px 70px 1fr auto; }
  .cd-strats { grid-template-columns: 1fr; }
}

/* ─── API key entry box ─── */
.cd-keybox {
  background: #fff7e3;
  border: 1px dashed #d4a24a;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 8px;
}
.cd-keybox-head {
  font-size: 12.5px; font-weight: 800;
  color: var(--syrup);
  margin-bottom: 6px;
}
.cd-keybox-desc {
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 10px;
}
.cd-keybox-row {
  display: flex; gap: 8px; margin-bottom: 6px;
}
.cd-key-input {
  flex: 1;
  background: #fff;
  border: 1px solid var(--green-line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-family: 'SF Mono', Menlo, monospace;
}
.cd-key-input:focus { outline: none; border-color: var(--green); }
.cd-key-save {
  background: var(--green);
  color: #fff;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12.5px; font-weight: 700;
}
.cd-key-save:hover { background: var(--green-2); }
.cd-key-link {
  font-size: 11.5px;
  color: var(--syrup);
  text-decoration: underline;
}

.cd-h4-tag {
  display: inline-block;
  margin-left: 8px;
  font-size: 9.5px;
  font-weight: 800;
  background: var(--green-soft);
  color: var(--green);
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 1px;
  vertical-align: 2px;
}

/* Loading / Error / Empty states (drawer içi) */
.cd-loading {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--green);
  font-weight: 600;
}
.cd-err {
  padding: 12px 14px;
  background: #fff0f0;
  border: 1px solid #ffcfcf;
  border-radius: 10px;
  font-size: 12.5px;
  color: #b22;
  font-weight: 600;
}
.cd-err-msg {
  display: block;
  margin: 6px 0;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 11px;
  color: #844;
  white-space: pre-wrap;
  word-break: break-all;
  font-weight: 400;
}
.cd-key-clear {
  margin-top: 6px;
  background: var(--card);
  color: var(--text);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
}
.cd-empty {
  padding: 16px;
  background: var(--bg);
  border-radius: 10px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}
.cd-muted {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

/* Hero foto (Google'dan) */
.cd-hero-photo {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 200px;
  margin-bottom: 12px;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.cd-hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.cd-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
  color: #fff;
  display: flex; align-items: flex-end; gap: 14px;
}
.cd-hero-overlay .cd-rating-num {
  color: #fff;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
}
.cd-hero-meta { flex: 1; }
.cd-hero-meta .cd-stars-big {
  font-size: 16px;
  color: #ffc94f;
}
.cd-hero-meta .cd-stars-big .off { color: rgba(255,255,255,.3); }
.cd-hero-meta > div:last-child {
  font-size: 11.5px;
  opacity: .9;
  margin-top: 2px;
}

/* Google foto galerisi */
.cd-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
}
.cd-gal-cell {
  aspect-ratio: 1;
  background: var(--bg);
  overflow: hidden;
}
.cd-gal-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.cd-gal-cell:hover img { transform: scale(1.08); }

/* Rating özet */
.cd-rating-summary {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--gold-soft) 0%, #fff 100%);
  border-radius: 10px;
  margin-bottom: 10px;
}
.cd-rating-num {
  font-size: 38px; font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.cd-stars-big {
  color: var(--gold);
  font-size: 17px;
  letter-spacing: 1px;
  font-weight: 700;
}
.cd-stars-big b { color: var(--syrup); margin-left: 4px; }
.cd-stars-big span { color: var(--muted); font-size: 12px; font-weight: 500; }
.cd-rating-count {
  font-size: 11.5px; color: var(--muted);
  margin-top: 2px;
}
.cd-price {
  margin-left: auto;
  background: var(--green);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
}

/* Yorum kartları */
.cd-reviews {
  display: flex; flex-direction: column; gap: 8px;
}
.cd-review {
  background: var(--bg);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 10px 12px;
}
.cd-review-head {
  display: flex; gap: 9px; align-items: center;
  margin-bottom: 6px;
}
.cd-rev-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--green-soft);
  object-fit: cover;
}
.cd-rev-avatar.fallback {
  display: grid; place-items: center;
  color: var(--green);
  font-weight: 800;
  font-size: 14px;
}
.cd-rev-meta b { font-size: 12.5px; display: block; }
.cd-rev-meta span {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
}
.cd-rev-meta span .off { color: var(--muted-2); }
.cd-review-body {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-wrap;
}
.cd-rev-more {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
  padding: 8px;
  background: var(--green-soft);
  border-radius: 8px;
}
.cd-rev-more:hover { background: var(--green-line); }

/* AI Analiz kartı — modern, ferah */
.cd-ai-card {
  background: #fff;
  border: 1px solid var(--green-line);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 22px;
}
.cd-ai-row { margin-bottom: 0; }
.cd-ai-row:last-child { margin-bottom: 0; }
.cd-ai-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 10px;
  background: var(--bg-2);
  color: var(--muted);
}
.cd-ai-tag.pos { background: var(--green-soft); color: var(--green); }
.cd-ai-tag.neg { background: #fce8e8; color: #b14545; }
.cd-ai-row p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
  font-weight: 400;
}
.cd-ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 0;
}
.cd-ai-cell {
  background: var(--bg);
  border: 1px solid var(--green-line);
  border-radius: 10px;
  padding: 14px 16px;
}
.cd-ai-cell-l {
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  font-weight: 600;
  margin-bottom: 6px;
}
.cd-ai-cell-v {
  font-size: 17px;
  font-weight: 700;
  text-transform: capitalize;
  margin-bottom: 4px;
  letter-spacing: -.2px;
}
.cd-ai-cell-d {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* Sentiment bar */
.cd-ai-sent { margin-bottom: 0; }
.cd-ai-sent-h {
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  font-weight: 600;
  margin-bottom: 10px;
}
.cd-sent-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-2);
}
.cd-sent-bar .seg { display: block; height: 100%; transition: width .3s; }
.cd-sent-bar .seg.pos { background: linear-gradient(90deg, #6abf69, #2e8b57); }
.cd-sent-bar .seg.neu { background: #c5cdd2; }
.cd-sent-bar .seg.neg { background: linear-gradient(90deg, #d97070, #b73838); }
.cd-sent-leg {
  display: flex; gap: 12px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}
.cd-sent-leg .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}
.cd-sent-leg .dot.pos { background: #2e8b57; }
.cd-sent-leg .dot.neu { background: #c5cdd2; }
.cd-sent-leg .dot.neg { background: #b73838; }

.cd-ai-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.cd-ai-list li {
  font-size: 13px;
  line-height: 1.55;
  background: var(--bg);
  padding: 12px 14px;
  border-radius: 9px;
  border: 1px solid var(--green-line);
}
.cd-ai-list li b { color: var(--text); display: block; margin-bottom: 3px; font-weight: 600; }
.cd-ai-evi {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
}
.cd-ai-chips {
  display: flex; flex-wrap: wrap; gap: 5px;
}
.cd-ai-chip {
  background: var(--gold-soft);
  color: var(--syrup);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
}
.cd-ai-actions {
  display: flex; flex-direction: column; gap: 6px;
}
/* AI hero (tehdit badge) */
.cd-ai-hero {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--green-line);
  background: var(--bg);
}
.cd-ai-hero.high { background: linear-gradient(135deg, #fff1f1 0%, #fff 60%); border-color: #f3c4c4; }
.cd-ai-hero.mid  { background: linear-gradient(135deg, #fdf3e0 0%, #fff 60%); border-color: #e6cc8c; }
.cd-ai-hero.low  { background: linear-gradient(135deg, var(--green-soft) 0%, #fff 60%); border-color: var(--green-line); }
.cd-ai-hero-lbl {
  font-size: 10.5px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .8px; font-weight: 600;
  margin-bottom: 6px;
}
.cd-ai-hero-val {
  font-size: 24px; font-weight: 700; letter-spacing: -.5px;
  color: var(--text); line-height: 1.1;
}
.cd-ai-hero.high .cd-ai-hero-val { color: #b14545; }
.cd-ai-hero.mid  .cd-ai-hero-val { color: #a87a1f; }
.cd-ai-hero.low  .cd-ai-hero-val { color: var(--green); }
.cd-ai-hero-desc {
  margin-top: 6px;
  font-size: 13px; color: var(--text); line-height: 1.5;
  max-width: 56ch;
}
.cd-ai-hero-r { text-align: right; flex-shrink: 0; }
.cd-ai-hero-num {
  font-size: 38px; font-weight: 700; letter-spacing: -1px;
  color: var(--green); line-height: 1;
}
.cd-ai-hero-num span { font-size: 18px; opacity: .7; margin-left: 1px; }
.cd-ai-hero-sub {
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .6px; font-weight: 600;
  margin-top: 4px;
}

/* AI section blokları */
.cd-ai-section { display: flex; flex-direction: column; gap: 10px; }
.cd-ai-section-h {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .8px;
  color: var(--muted);
}
.cd-ai-lead {
  font-size: 14.5px; line-height: 1.6; color: var(--text);
  margin: 0;
}
.cd-ai-twocol {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.cd-ai-mini-h {
  font-size: 12px; font-weight: 600; margin-bottom: 8px;
  display: inline-flex; align-items: center; gap: 6px;
}
.cd-ai-mini-h::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted);
}
.cd-ai-mini-h.pos { color: var(--green); }
.cd-ai-mini-h.pos::before { background: var(--green); }
.cd-ai-mini-h.neg { color: #b14545; }
.cd-ai-mini-h.neg::before { background: #b14545; }
.cd-ai-mini-empty {
  font-size: 12px; color: var(--muted);
  padding: 10px 12px; background: var(--bg);
  border: 1px dashed var(--green-line); border-radius: 9px;
}

.cd-ai-actions {
  display: flex; flex-direction: column; gap: 8px;
}
.cd-ai-action {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--green-line);
  border-radius: 10px;
  padding: 12px 14px;
}
.cd-ai-action-num {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 700;
  margin-top: 1px;
}
.cd-ai-action-body { flex: 1; min-width: 0; }
.cd-ai-action-t {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -.1px;
}
.cd-ai-action-d {
  font-size: 12px;
  color: var(--text);
  line-height: 1.55;
  margin-top: 3px;
}
.cd-ai-action-d b { color: var(--muted); margin-right: 3px; font-weight: 600; }
.cd-ai-foot {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--green-line);
  font-size: 11.5px;
  color: var(--muted);
  display: flex; justify-content: space-between; align-items: center;
}
.cd-ai-redo {
  background: var(--card);
  color: var(--green);
  font-weight: 700;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--green-line);
}
.cd-ai-redo:hover { background: var(--green-soft); }

@media (max-width: 720px) {
  .cd-ai-twocol { grid-template-columns: 1fr; }
  .cd-ai-hero { flex-direction: column; align-items: flex-start; }
  .cd-ai-hero-r { text-align: left; }
}
@media (max-width: 480px) {
  .cd-ai-grid { grid-template-columns: 1fr; }
}

.cd-google-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 10px;
}
.cd-btn-primary, .cd-btn-ghost {
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex; align-items: center;
  transition: all .15s;
}
.cd-btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.cd-btn-primary:hover { background: var(--green-2); transform: translateY(-1px); }
.cd-btn-ghost {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--green-line);
}
.cd-btn-ghost:hover { background: var(--green-soft); }

.cd-note {
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 22px;
  line-height: 1.5;
}

/* Mobil */
@media (max-width: 600px) {
  .cd-overlay { padding: 0; }
  .cd-drawer { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .cd-factors { grid-template-columns: 1fr; }
  .cd-ai-card { padding: 16px; }
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .split-2-1 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --sidebar-w: 70px; }
  .sidebar .nav-item .lbl { display: none; }
  .sidebar .nav-section .label { display: none; }
  .sidebar .brand .name, .sidebar .brand .sub { display: none; }
  .sidebar-foot .who { display: none; }
}

/* ════════════════════════════════════════════════════════════════
   YORUM YANIT BOTU · liveReviewsWidget
   ════════════════════════════════════════════════════════════════ */
.live-reviews { display: flex; flex-direction: column; gap: 14px; }

/* Konum yok uyarısı */
.lr-need-location {
  padding: 36px 28px; text-align: center;
  background: linear-gradient(180deg, #fff 0%, #fafaf7 100%);
  border: 1px dashed var(--green-line); border-radius: 14px;
}
.lr-need-ico {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.lr-need-location h4 { margin: 0 0 6px; font-size: 18px; color: var(--text); }
.lr-need-location p  { margin: 0 auto 18px; font-size: 13.5px; color: var(--muted); max-width: 460px; line-height: 1.55; }
.lr-need-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; background: var(--green); color: #fff;
  border: 0; border-radius: 10px; font-weight: 700; font-size: 13.5px;
  cursor: pointer; transition: background .15s;
}
.lr-need-cta:hover { background: var(--green-dark); }

/* Üst başlık — minimal */
.lr-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 4px 2px;
}
.lr-head-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lr-head-l b { display: block; font-size: 14px; color: var(--text); font-weight: 700; }
.lr-head-l small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.lr-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #16a34a; flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(22,163,74,.15);
  animation: lrPulse 2s infinite;
}
@keyframes lrPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(22,163,74,.15); }
  50%      { box-shadow: 0 0 0 5px rgba(22,163,74,.04); }
}
.lr-head-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.lr-head-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px; font-size: 12px; font-weight: 600;
  background: transparent; border: 1px solid var(--green-line);
  border-radius: 8px; color: var(--muted); text-decoration: none;
  transition: all .15s;
}
.lr-head-link:hover { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.lr-refresh {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 32px; height: 32px;
  background: transparent; border: 1px solid var(--green-line);
  border-radius: 8px; cursor: pointer; color: var(--muted);
  transition: all .15s;
}
.lr-refresh:hover { background: var(--green-soft); border-color: var(--green); color: var(--green); }

/* Sahip yanıtı (gönderilmiş — yorumun altında inline) */
.lr-owner-reply {
  margin-top: 10px; padding: 10px 12px;
  background: var(--green-soft); border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  position: relative;
}
.lr-owner-reply-head {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; color: var(--green);
  letter-spacing: .5px; text-transform: uppercase; margin-bottom: 5px;
}
.lr-owner-reply-head small {
  font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0;
  margin-left: auto;
}
.lr-owner-reply-text { font-size: 13px; line-height: 1.55; color: var(--text); white-space: pre-wrap; }
.lr-owner-reply-edit {
  margin-top: 6px; padding: 4px 10px; font-size: 11.5px; font-weight: 600;
  background: transparent; border: 1px solid var(--green-line); color: var(--green);
  border-radius: 6px; cursor: pointer;
}
.lr-owner-reply-edit:hover { background: #fff; }

/* KPI satırı — sadece 3 metrik, sade */
.lr-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.lr-stat {
  padding: 14px 12px; background: #fff;
  border: 1px solid var(--green-line); border-radius: 10px;
  text-align: center;
}
.lr-stat-v { font-size: 24px; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -.5px; }
.lr-star   { font-size: 14px; color: #f59e0b; margin-left: 2px; font-weight: 700; }
.lr-stat-l { font-size: 11px; color: var(--muted); margin-top: 5px; text-transform: uppercase; letter-spacing: .4px; }

/* Filter pills */
.lr-filters {
  display: flex; gap: 4px; flex-wrap: wrap;
  padding: 4px; background: var(--bg);
  border-radius: 10px;
}
.lr-fpill {
  flex: 1; min-width: 0;
  padding: 7px 14px; font-size: 12.5px; font-weight: 600;
  background: transparent; border: 0; border-radius: 7px;
  color: var(--muted); cursor: pointer; transition: all .15s;
  white-space: nowrap;
}
.lr-fpill:hover { color: var(--text); }
.lr-fpill.is-active {
  background: #fff; color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* Bilgi şeridi — Google API limit notu */
.lr-info {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 8px 12px; font-size: 12px; color: var(--muted);
  background: var(--bg); border-radius: 8px;
}
.lr-info span { font-weight: 700; color: var(--text); }
.lr-info small { font-size: 11.5px; }
.lr-info a { color: var(--green); text-decoration: none; font-weight: 600; }
.lr-info a:hover { text-decoration: underline; }
.lr-info:empty { display: none; }

/* Liste */
.lr-list { display: flex; flex-direction: column; gap: 12px; }
.lr-loading, .lr-empty, .lr-error {
  padding: 28px; text-align: center; color: var(--muted);
  background: #fff; border: 1px dashed var(--green-line); border-radius: 10px;
}
.lr-error { color: #dc2626; border-color: #fecaca; background: #fef2f2; }
.lr-loading { display: flex; align-items: center; justify-content: center; gap: 10px; }

.lr-card {
  background: #fff; border: 1px solid var(--green-line);
  border-radius: 12px; padding: 14px 16px; transition: border-color .15s;
}
.lr-card:hover { border-color: var(--green); }
.lr-card.neg   { border-left: 3px solid #dc2626; }

.lr-card-h {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 8px;
}
.lr-card-author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lr-card-author img,
.lr-card-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--green-soft); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; object-fit: cover;
}
.lr-card-author b { display: block; font-size: 13.5px; color: var(--text); }
.lr-card-author small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; letter-spacing: .5px; }
.lr-card-author small .off { color: #d1d5db; }

.lr-pill { padding: 3px 10px; font-size: 10.5px; font-weight: 700; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; }
.lr-pill-draft { background: #fef3c7; color: #92400e; }
.lr-pill-ok    { background: #dbeafe; color: #1d4ed8; }
.lr-pill-done  { background: #dcfce7; color: #15803d; }
.lr-pill-rej   { background: #fee2e2; color: #b91c1c; }

.lr-card-text {
  font-size: 13.5px; line-height: 1.6; color: var(--text);
  padding: 4px 0 10px;
}

.lr-card-draft {
  margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--green-line);
}
.lr-draft-label {
  font-size: 11px; color: var(--green); font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase; margin-bottom: 6px;
}
.lr-draft-text {
  width: 100%; min-height: 70px; resize: vertical;
  padding: 10px 12px; font-size: 13px; line-height: 1.55;
  border: 1px solid var(--green-line); border-radius: 8px;
  background: #fafaf7; color: var(--text); font-family: inherit;
}
.lr-draft-text:focus { outline: none; border-color: var(--green); background: #fff; }

.lr-draft-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 12px; font-size: 12.5px; font-weight: 600;
  background: #fff; border: 1px solid var(--green-line); color: var(--muted);
  border-radius: 8px; cursor: pointer; transition: all .15s;
  min-width: 36px;
}
.lr-btn:hover  { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.lr-btn:disabled { opacity: .55; cursor: wait; }
.lr-btn.primary { background: var(--green); color: #fff; border-color: var(--green); flex: 1; padding: 9px 14px; }
.lr-btn.primary:hover { background: var(--green-dark); color: #fff; }
.lr-btn.ghost   { background: transparent; color: var(--muted); }
.lr-btn.ghost:hover { background: #fef2f2; border-color: #fecaca; color: #dc2626; }
/* Yapay Zekâ ile yanıt üret — prominent solo button */
.lr-gen { width: 100%; padding: 10px 16px !important; font-size: 13px !important; }

/* ════════════════════════════════════════════════════════════════
   AYARLAR · Restoran Konum Seçici (rl-card)
   ════════════════════════════════════════════════════════════════ */
.rl-card { margin-bottom: 20px; transition: box-shadow .25s, border-color .25s; }
.rl-card.rl-highlight {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 4px rgba(13,110,59,.14);
}
.rl-body { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .rl-body { grid-template-columns: 1fr; } }

.rl-current {
  background: var(--green-soft); border: 1px solid var(--green-line);
  border-radius: 10px; padding: 14px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.rl-current-info { min-width: 0; }
.rl-current-name { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 3px; }
.rl-current-addr { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.rl-current-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.rl-current-meta span {
  padding: 2px 7px; background: #fff; border-radius: 6px;
  border: 1px solid var(--green-line);
}
.rl-mock  { color: #b45309 !important; background: #fef3c7 !important; border-color: #fde68a !important; }
.rl-saved { color: var(--green) !important; }

.rl-clear {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  padding: 6px 10px; font-size: 11.5px; font-weight: 600;
  background: #fff; border: 1px solid var(--green-line); border-radius: 6px;
  color: var(--muted); cursor: pointer;
}
.rl-clear:hover { color: #dc2626; border-color: #fecaca; }

.rl-empty {
  padding: 14px; text-align: center; color: var(--muted);
  font-size: 13px; background: var(--bg);
  border: 1px dashed var(--green-line); border-radius: 10px;
}

.rl-search label {
  display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--muted); margin-bottom: 6px;
}
.rl-search-row { display: flex; gap: 6px; }
.rl-search-input {
  flex: 1; padding: 9px 12px; font-size: 13.5px;
  border: 1px solid var(--green-line); border-radius: 8px;
  background: #fff;
}
.rl-search-input:focus { outline: none; border-color: var(--green); }
.rl-search-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 14px; font-size: 13px; font-weight: 700;
  background: var(--green); color: #fff; border: 0;
  border-radius: 8px; cursor: pointer;
}
.rl-search-btn:hover { background: var(--green-dark); }

.rl-results {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 10px; max-height: 320px; overflow-y: auto;
}
.rl-result {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; text-align: left;
  background: #fff; border: 1px solid var(--green-line); border-radius: 8px;
  cursor: pointer; transition: all .15s; font-family: inherit;
}
.rl-result:hover { background: var(--green-soft); border-color: var(--green); }
.rl-result-bd { min-width: 0; flex: 1; }
.rl-result-bd b { display: block; font-size: 13.5px; color: var(--text); }
.rl-result-bd small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.rl-result-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; font-size: 11px; color: var(--muted); }
.rl-result-pick {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  padding: 5px 10px; font-size: 11.5px; font-weight: 700;
  background: var(--green-soft); color: var(--green); border-radius: 6px;
}
.rl-result:hover .rl-result-pick { background: var(--green); color: #fff; }
.rl-msg {
  padding: 10px 12px; font-size: 12.5px; color: var(--muted);
  text-align: center; background: var(--bg); border-radius: 8px;
}
.rl-msg.rl-err { color: #b91c1c; background: #fef2f2; }
.rl-hint { margin-top: 8px; font-size: 11.5px; color: var(--muted); font-style: italic; }

