/* ═════════════════════════════════════════════════════════════════
   KAMPANYA STRATEJİSTİ v2 (cs2-*) — Modern & Profesyonel
   ═════════════════════════════════════════════════════════════════ */

.cs2-wrap {
  display: flex; flex-direction: column; gap: 16px;
  --cs-fg: #0f1419;
  --cs-fg-muted: #5a6470;
  --cs-fg-soft: #8b95a3;
  --cs-bg: #fff;
  --cs-bg-soft: #f7f8fa;
  --cs-bg-tint: #f0f3f7;
  --cs-border: #e4e7ec;
  --cs-border-soft: #eef0f3;
  --cs-accent: #0f766e;
  --cs-accent-soft: #d1faf3;
  --cs-warn: #b54708;
  --cs-warn-soft: #fef0c7;
  --cs-danger: #b42318;
  --cs-danger-soft: #fee4e2;
  --cs-good: #027a48;
  --cs-good-soft: #d1fadf;
}

/* ─── Hero header ─── */
.cs2-hero {
  position: relative; overflow: hidden;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap;
  padding: 24px 28px;
  background: linear-gradient(135deg, #0f1419 0%, #1a2332 60%, #1f3a3a 100%);
  color: #fff; border-radius: 18px;
}
.cs2-hero::before {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(15,118,110,.45), transparent 70%);
  pointer-events: none;
}
.cs2-hero-l { position: relative; z-index: 1; max-width: 540px; }
.cs2-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  padding: 5px 11px; border-radius: 14px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  letter-spacing: .04em; text-transform: uppercase;
  color: #b5e8de; margin-bottom: 12px;
}
.cs2-hero-l h2 {
  margin: 0 0 8px; font-size: 24px; font-weight: 700;
  letter-spacing: -.01em; line-height: 1.15;
}
.cs2-hero-l p {
  margin: 0; font-size: 13.5px; color: rgba(255,255,255,.7);
  line-height: 1.5;
}
.cs2-hero-r { position: relative; z-index: 1; display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── Buttons ─── */
.cs2-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600;
  padding: 8px 14px; border-radius: 8px;
  border: 1px solid transparent; cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.cs2-btn.primary {
  background: var(--cs-accent); color: #fff;
}
.cs2-btn.primary:hover { background: #0d5f59; }
.cs2-btn.ghost {
  background: rgba(255,255,255,.08); color: #fff;
  border-color: rgba(255,255,255,.2);
}
.cs2-btn.ghost:hover { background: rgba(255,255,255,.15); }
.cs2-btn.small { padding: 5px 10px; font-size: 11.5px; }
.cs2-btn:disabled { opacity: .6; cursor: wait; }
.cs2-btn.done { background: var(--cs-good); border-color: var(--cs-good); }

.cs2-state {
  padding: 32px; text-align: center;
  color: var(--cs-fg-muted); font-size: 13.5px;
  background: var(--cs-bg-soft); border: 1px dashed var(--cs-border); border-radius: 12px;
}
.cs2-state svg { animation: cs2-spin 1.4s linear infinite; vertical-align: middle; margin-right: 6px; }
@keyframes cs2-spin { to { transform: rotate(360deg); } }

/* ─── KPI strip ─── */
.cs2-kpis {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.cs2-kpi {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--cs-bg); border: 1px solid var(--cs-border);
  border-radius: 12px;
  transition: border-color .15s, transform .15s;
}
.cs2-kpi:hover { border-color: #d0d5dd; transform: translateY(-1px); }
.cs2-kpi-ic {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cs-accent-soft); color: var(--cs-accent);
}
.cs2-kpi-ic.warm { background: var(--cs-warn-soft); color: var(--cs-warn); }
.cs2-kpi-ic.cool { background: #dbeafe; color: #1d4ed8; }
.cs2-kpi-bd { display: flex; flex-direction: column; min-width: 0; }
.cs2-kpi-l {
  font-size: 11px; color: var(--cs-fg-soft); font-weight: 500;
  text-transform: uppercase; letter-spacing: .03em;
}
.cs2-kpi-v {
  font-size: 20px; font-weight: 700; color: var(--cs-fg);
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}

/* ─── Tabs ─── */
.cs2-tabs {
  display: flex; gap: 4px;
  padding: 4px; background: var(--cs-bg-soft);
  border: 1px solid var(--cs-border); border-radius: 10px;
  overflow-x: auto;
}
.cs2-tabs button {
  flex: 1 1 auto; min-width: max-content;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px;
  background: transparent; border: none; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--cs-fg-muted);
  border-radius: 7px;
  transition: all .15s;
  white-space: nowrap;
}
.cs2-tabs button:hover { color: var(--cs-fg); background: rgba(0,0,0,.03); }
.cs2-tabs button.active {
  background: var(--cs-bg); color: var(--cs-fg);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.06);
}
.cs2-tabs button em {
  font-style: normal; font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: 10px;
  background: rgba(15,118,110,.1); color: var(--cs-accent);
  min-width: 18px; text-align: center;
}
.cs2-tabs button em:empty { display: none; }

.cs2-tab-content { padding-top: 4px; }
.cs2-empty {
  padding: 40px 20px; text-align: center;
  color: var(--cs-fg-soft); font-size: 13.5px;
  background: var(--cs-bg-soft); border-radius: 12px;
}

/* ─── Suggestions (tab 1) — flowing editorial cards ─── */
.cs2-sug-list { display: flex; flex-direction: column; gap: 10px; }

.cs2-sug {
  position: relative;
  padding: 16px 20px 12px;
  background: var(--cs-bg);
  border: 1px solid var(--cs-border);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s, opacity .2s;
}
.cs2-sug:hover { border-color: #d0d5dd; box-shadow: 0 1px 3px rgba(15,20,25,.04); }
.cs2-sug.skipped { opacity: .4; }

/* Top row: small kind label left + priority/impact right */
.cs2-sug-row1 {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 6px;
}
.cs2-sug-kind {
  position: relative; padding-left: 14px;
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--cs-fg);
}
.cs2-sug-kind::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: #cbd5e1; transform: translateY(-50%);
}
.cs2-sug-kind.pri-yuksek::before { background: var(--cs-danger); }
.cs2-sug-kind.pri-orta::before   { background: var(--cs-warn); }
.cs2-sug-kind.pri-dusuk::before  { background: #64748b; }
.cs2-sug-stats {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--cs-fg-soft);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.cs2-sug-stats b { color: var(--cs-fg); font-weight: 600; }
.cs2-sug-stats i {
  width: 2px; height: 2px; border-radius: 50%;
  background: #cbd5e1; display: inline-block;
}

/* Title */
.cs2-sug-title {
  margin: 0 0 8px;
  font-size: 17px; font-weight: 700;
  color: var(--cs-fg); line-height: 1.3;
  letter-spacing: -.012em;
  font-family: 'Source Serif 4', 'Inter', system-ui, sans-serif;
}

/* Body — flowing prose */
.cs2-sug-body {
  margin: 0 0 12px;
  font-size: 13.5px; line-height: 1.55;
  color: var(--cs-fg);
}
.cs2-sug-why-inline {
  color: var(--cs-fg-muted);
}
.cs2-sug-offer-inline {
  color: var(--cs-fg);
  font-weight: 500;
  margin-left: 4px;
}

/* Footer */
.cs2-sug-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--cs-border-soft);
}
.cs2-sug-foot-l { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.cs2-sug-foot-r { display: flex; align-items: center; gap: 6px; }
.cs2-sug-ch {
  font-size: 10.5px; padding: 2px 7px;
  background: var(--cs-bg-tint); color: var(--cs-fg-muted);
  border-radius: 4px; font-weight: 500;
  text-transform: lowercase;
}
.cs2-sug-ev-btn {
  font-size: 11px; color: var(--cs-fg-soft);
  background: none; border: none; cursor: pointer;
  padding: 2px 6px; border-radius: 4px;
  font-weight: 500; text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color .12s, color .12s;
}
.cs2-sug-ev-btn:hover { color: var(--cs-fg); text-decoration-color: var(--cs-fg-soft); }
.cs2-sug-skip {
  font-size: 12px; color: var(--cs-fg-soft);
  background: none; border: none; cursor: pointer;
  padding: 5px 8px; border-radius: 5px;
  font-weight: 500; transition: color .12s;
}
.cs2-sug-skip:hover { color: var(--cs-fg-muted); }

/* CTA */
.cs2-sug .cs2-sug-btn {
  background: var(--cs-fg); color: #fff; border-color: var(--cs-fg);
  font-size: 12px; padding: 6px 12px;
  letter-spacing: -.005em;
}
.cs2-sug .cs2-sug-btn:hover { background: #1f2937; border-color: #1f2937; }
.cs2-sug .cs2-sug-btn:hover .cs2-arrow { transform: translateX(2px); }
.cs2-sug .cs2-sug-btn.done { background: var(--cs-good); border-color: var(--cs-good); }
.cs2-arrow {
  display: inline-block; transition: transform .15s ease;
  font-size: 13px; line-height: 1; margin-left: 2px;
  font-family: ui-sans-serif, system-ui;
}

/* Evidence drawer */
.cs2-sug-evbox {
  margin: 10px -20px -12px;
  padding: 10px 20px 12px;
  background: var(--cs-bg-soft);
  border-top: 1px solid var(--cs-border-soft);
  border-radius: 0 0 9px 9px;
}
.cs2-sug-evbox ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 3px;
}
.cs2-sug-evbox li {
  position: relative; padding-left: 14px;
  font-size: 12px; color: var(--cs-fg-muted);
  line-height: 1.5; font-variant-numeric: tabular-nums;
}
.cs2-sug-evbox li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 1px; background: var(--cs-fg-soft);
}

/* ─── Rivals (tab 2) — gallery view ─── */
.cs2-rivals-info {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 14px; margin-bottom: 14px;
  background: #f0f9ff; border: 1px solid #b9e6fe;
  color: #026aa2; font-size: 12px; border-radius: 8px;
}
.cs2-rivals-info svg { flex-shrink: 0; margin-top: 1px; }

.cs2-rivals {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}
.cs2-rival {
  display: flex; flex-direction: column;
  background: var(--cs-bg); border: 1px solid var(--cs-border);
  border-radius: 12px; overflow: hidden;
}
.cs2-rival-h {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--cs-border-soft);
}
.cs2-rival-avatar {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, #2d3748, #4a5568);
  color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.cs2-rival-nm { flex: 1; min-width: 0; }
.cs2-rival-nm b {
  display: block; font-size: 14px; color: var(--cs-fg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cs2-rival-meta { font-size: 11px; color: var(--cs-fg-soft); }
.cs2-rival-summary {
  padding: 10px 14px; font-size: 12.5px; color: var(--cs-fg-muted);
  background: var(--cs-bg-soft); border-bottom: 1px solid var(--cs-border-soft);
  display: flex; gap: 6px; align-items: flex-start; line-height: 1.5;
}
.cs2-rival-summary svg { flex-shrink: 0; margin-top: 2px; color: var(--cs-accent); }
.cs2-rival-camps {
  list-style: none; margin: 0; padding: 10px 14px;
  display: flex; flex-direction: column; gap: 6px;
  border-bottom: 1px solid var(--cs-border-soft);
}
.cs2-rival-camps li {
  display: flex; justify-content: space-between; gap: 8px;
  align-items: baseline; font-size: 12.5px;
}
.cs2-camp-text { color: var(--cs-fg); flex: 1; line-height: 1.4; }
.cs2-camp-tags { display: flex; gap: 3px; flex-shrink: 0; }
.cs2-camp-tags em {
  font-style: normal; font-size: 10px; font-weight: 600;
  padding: 1px 6px; border-radius: 8px;
  background: var(--cs-warn-soft); color: var(--cs-warn);
}

/* Image gallery */
.cs2-imgs {
  display: grid; gap: 4px;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
}
.cs2-img {
  position: relative; aspect-ratio: 1;
  display: block; overflow: hidden;
  background: var(--cs-bg-tint); border-radius: 6px;
  text-decoration: none;
  transition: transform .15s;
}
.cs2-img:hover { transform: scale(1.02); z-index: 1; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.cs2-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cs2-img-fallback {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  padding: 8px; text-align: center;
  background: linear-gradient(135deg, #1f2937, #374151);
  color: #fff;
}
.cs2-img.failed img { display: none; }
.cs2-img.failed .cs2-img-fallback,
.cs2-img:not(:has(img)) .cs2-img-fallback { display: flex; }
.cs2-img-src {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: rgba(255,255,255,.7);
  margin-bottom: 4px;
}
.cs2-img-cap { font-size: 11px; line-height: 1.3; color: #fff; }
.cs2-img-tip {
  position: absolute; top: 4px; right: 4px;
  font-size: 9px; font-weight: 600;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(0,0,0,.65); color: #fff;
  text-transform: uppercase; letter-spacing: .03em;
}
.cs2-rival-empty {
  padding: 12px 14px; text-align: center;
  font-size: 12px; color: var(--cs-fg-soft);
  font-style: italic;
}

/* ─── Prices (tab 3) — analitik dashboard ─── */
.cs2-px-summary {
  display: grid; gap: 16px;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;
  padding: 18px 20px;
  background: var(--cs-bg); border: 1px solid var(--cs-border);
  border-radius: 12px; margin-bottom: 14px;
}
.cs2-px-summary-h h3 {
  margin: 6px 0 0; font-size: 17px; font-weight: 700;
  line-height: 1.3; letter-spacing: -.01em; color: var(--cs-fg);
  font-family: 'Source Serif 4', 'Inter', system-ui, sans-serif;
}
.cs2-px-summary-bar { padding: 0 4px; }
.cs2-px-summary-track {
  position: relative; display: flex; height: 8px;
  border-radius: 4px; overflow: hidden;
}
.cs2-px-summary-zone { flex: 1; }
.cs2-px-summary-zone.z1 { background: #d1fadf; }
.cs2-px-summary-zone.z2 { background: #ecfccb; }
.cs2-px-summary-zone.z3 { background: #fef0c7; }
.cs2-px-summary-zone.z4 { background: #fee4e2; }
.cs2-px-summary-marker {
  position: absolute; top: -2px; transform: translateX(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--cs-fg); border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--cs-fg);
}
.cs2-px-summary-marker span {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  font-size: 10.5px; font-weight: 700; color: var(--cs-fg);
  background: #fff; padding: 2px 6px; border-radius: 4px;
  border: 1px solid var(--cs-border);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.cs2-px-summary-axis {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-size: 10.5px; color: var(--cs-fg-soft);
  text-transform: uppercase; letter-spacing: .04em;
}
.cs2-px-summary-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  padding-left: 16px; border-left: 1px solid var(--cs-border-soft);
}
.cs2-px-summary-stats > div { display: flex; flex-direction: column; }
.cs2-px-summary-stats b {
  font-size: 18px; font-weight: 700; color: var(--cs-fg);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.cs2-px-summary-stats b.good { color: var(--cs-good); }
.cs2-px-summary-stats b.bad  { color: var(--cs-danger); }
.cs2-px-summary-stats span {
  font-size: 10.5px; color: var(--cs-fg-soft);
  text-transform: uppercase; letter-spacing: .04em;
  margin-top: 2px;
}

/* Compact table view */
.cs2-pxt-wrap {
  background: var(--cs-bg); border: 1px solid var(--cs-border);
  border-radius: 12px; overflow: hidden;
}
.cs2-pxt {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.cs2-pxt thead th {
  text-align: left; padding: 10px 12px;
  font-size: 10.5px; font-weight: 700;
  color: var(--cs-fg-soft); text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--cs-bg-soft);
  border-bottom: 1px solid var(--cs-border);
  white-space: nowrap;
}
.cs2-pxt th.num, .cs2-pxt td.num { text-align: right; font-variant-numeric: tabular-nums; }
.cs2-pxt tbody td {
  padding: 12px 12px; vertical-align: middle;
  border-bottom: 1px solid var(--cs-border-soft);
  color: var(--cs-fg);
}
.cs2-pxt tbody tr:last-child td { border-bottom: none; }
.cs2-pxt-row { cursor: pointer; transition: background .12s; }
.cs2-pxt-row:hover td { background: var(--cs-bg-soft); }
.cs2-pxt-cat b { display: block; font-size: 13.5px; font-weight: 600; color: var(--cs-fg); }
.cs2-pxt-cat em { font-style: normal; font-size: 11px; color: var(--cs-fg-soft); }
.cs2-pxt-range { color: var(--cs-fg-muted); font-size: 12px; }
.cs2-pxt-track { width: 180px; min-width: 120px; padding: 12px 10px !important; }
.cs2-pxt-mini {
  position: relative; height: 20px;
  background: var(--cs-bg-tint); border-radius: 3px;
}
.cs2-pxt-mini-iqr {
  position: absolute; top: calc(50% - 4px); height: 8px;
  background: rgba(15,118,110,.18);
  border: 1px solid rgba(15,118,110,.35);
  border-radius: 2px;
}
.cs2-pxt-mini-med {
  position: absolute; top: calc(50% - 7px); height: 14px;
  width: 1.5px; background: var(--cs-accent);
  transform: translateX(-50%);
}
.cs2-pxt-mini-ours {
  position: absolute; top: 0; bottom: 0;
  width: 8px;
  background: var(--cs-fg);
  border-radius: 2px;
  transform: translateX(-50%);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--cs-fg);
}
.cs2-pxt-diff { font-weight: 700; color: var(--cs-fg-muted); }
.cs2-pxt-diff.up   { color: var(--cs-danger); }
.cs2-pxt-diff.down { color: var(--cs-good); }
.cs2-pxt-chev {
  color: var(--cs-fg-soft); width: 16px;
  text-align: right;
}
.cs2-pxt-row:hover .cs2-pxt-chev { color: var(--cs-fg); }

/* Price detail modal */
.cs2-px-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 20, 25, .55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: cs2-fade .15s ease;
  /* Modal body'ye eklendiği için cs2-wrap scope'undaki değişkenler erişilemez */
  --cs-fg: #0f1419;
  --cs-fg-muted: #5a6470;
  --cs-fg-soft: #8b95a3;
  --cs-bg: #fff;
  --cs-bg-soft: #f7f8fa;
  --cs-bg-tint: #f0f3f7;
  --cs-border: #e4e7ec;
  --cs-border-soft: #eef0f3;
  --cs-accent: #0f766e;
  --cs-accent-soft: #d1faf3;
  --cs-warn: #b54708;
  --cs-warn-soft: #fef0c7;
  --cs-danger: #b42318;
  --cs-danger-soft: #fee4e2;
  --cs-good: #027a48;
  --cs-good-soft: #d1fadf;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--cs-fg);
}
@keyframes cs2-fade { from { opacity: 0; } }
.cs2-px-modal {
  background: var(--cs-bg);
  border-radius: 14px;
  max-width: 880px; width: 100%; max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 60px rgba(15,20,25,.25);
  animation: cs2-rise .2s ease;
}
@keyframes cs2-rise { from { opacity: 0; transform: translateY(8px); } }
.cs2-px-modal-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; padding: 18px 22px;
  border-bottom: 1px solid var(--cs-border-soft);
  position: sticky; top: 0; background: var(--cs-bg);
  z-index: 1;
}
.cs2-px-modal-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cs2-px-modal-title .cs2-px-pos { width: 10px; height: 10px; }
.cs2-px-modal-title h3 {
  margin: 0; font-size: 18px; font-weight: 700; color: var(--cs-fg);
  font-family: 'Source Serif 4', 'Inter', system-ui, sans-serif;
  letter-spacing: -.01em; line-height: 1.2;
}
.cs2-px-modal-title span {
  font-size: 12px; color: var(--cs-fg-soft);
  font-variant-numeric: tabular-nums;
}
.cs2-px-modal-meta { display: flex; align-items: center; gap: 12px; }
.cs2-px-modal-meta .cs2-px-diff { font-size: 14px; }
.cs2-px-modal-close {
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; border-radius: 6px;
  color: var(--cs-fg-soft);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .12s, color .12s;
  font-size: 18px;
}
.cs2-px-modal-close:hover { background: var(--cs-bg-tint); color: var(--cs-fg); }
.cs2-px-modal-body { padding: 18px 22px; }
.cs2-px-pos {
  width: 8px; height: 8px; border-radius: 50%;
  background: #94a3b8; flex-shrink: 0;
  display: inline-block;
}
.cs2-px-pos.pos-cheaper { background: var(--cs-good); }
.cs2-px-pos.pos-pricier { background: var(--cs-danger); }
.cs2-px-pos.pos-similar { background: var(--cs-warn); }
.cs2-px-perc {
  font-size: 11px; color: var(--cs-fg-soft); font-weight: 500;
  padding: 3px 8px; border-radius: 5px;
  background: var(--cs-bg-tint);
}
.cs2-px-diff {
  font-size: 13px; font-weight: 700; color: var(--cs-fg-muted);
}
.cs2-px-diff.up   { color: var(--cs-danger); }
.cs2-px-diff.down { color: var(--cs-good); }

/* Modal body grid layout */
.cs2-px-cat-body {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px;
  padding-bottom: 18px;
}

.cs2-px-dist-h {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 8px 0 14px;
}
.cs2-px-dist-stats {
  font-size: 11.5px; color: var(--cs-fg-soft);
  font-variant-numeric: tabular-nums;
}
.cs2-px-dist-stats b { color: var(--cs-fg); font-weight: 600; }

/* Box-plot style price plot */
.cs2-px-plot {
  position: relative; height: 56px;
  margin: 0 12px;
}
.cs2-px-plot::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--cs-border);
}
.cs2-px-iqr {
  position: absolute; top: calc(50% - 6px); height: 12px;
  background: rgba(15,118,110,.12);
  border: 1px solid rgba(15,118,110,.3);
  border-radius: 3px;
}
.cs2-px-median {
  position: absolute; top: calc(50% - 10px); height: 20px;
  width: 2px; background: var(--cs-accent);
  transform: translateX(-50%);
}
.cs2-px-avg {
  position: absolute; top: calc(50% - 7px); height: 14px;
  width: 1px; border-left: 1px dashed var(--cs-fg-muted);
  transform: translateX(-50%);
}
.cs2-px-dot {
  position: absolute; top: calc(50% - 4px);
  width: 8px; height: 8px; border-radius: 50%;
  background: #475569;
  border: 1.5px solid #fff;
  transform: translateX(-50%);
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
  cursor: help;
  transition: transform .15s, background .15s;
}
.cs2-px-dot:hover { transform: translateX(-50%) scale(1.4); background: var(--cs-fg); z-index: 2; }
.cs2-px-ours {
  position: absolute; top: 0; bottom: 0;
  width: 2px; background: var(--cs-fg);
  transform: translateX(-50%);
  z-index: 3;
}
.cs2-px-ours::before {
  content: ''; position: absolute; top: -4px; left: 50%;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--cs-fg);
  transform: translateX(-50%);
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--cs-fg);
}
.cs2-px-ours-flag {
  position: absolute; bottom: -22px; left: 50%;
  transform: translateX(-50%);
  font-size: 10.5px; font-weight: 700; color: var(--cs-fg);
  background: #fff; padding: 2px 7px; border-radius: 4px;
  border: 1px solid var(--cs-fg);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.cs2-px-axis {
  display: flex; justify-content: space-between;
  margin: 6px 12px 0;
  font-size: 11px; color: var(--cs-fg-soft);
  font-variant-numeric: tabular-nums;
}
.cs2-px-legend {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 14px;
  font-size: 11px; color: var(--cs-fg-soft);
}
.cs2-px-legend i {
  display: inline-block; vertical-align: middle;
  margin-right: 5px;
}
.cs2-px-legend .leg-dot { width: 8px; height: 8px; border-radius: 50%; background: #475569; }
.cs2-px-legend .leg-iqr { width: 18px; height: 8px; background: rgba(15,118,110,.18); border: 1px solid rgba(15,118,110,.4); border-radius: 2px; }
.cs2-px-legend .leg-med { width: 2px; height: 12px; background: var(--cs-accent); }
.cs2-px-legend .leg-avg { width: 1px; height: 12px; border-left: 1px dashed var(--cs-fg-muted); }
.cs2-px-legend .leg-ours { width: 8px; height: 8px; border-radius: 50%; background: var(--cs-fg); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--cs-fg); }

/* Side panel */
.cs2-px-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cs2-px-vs {
  display: grid; gap: 4px;
  background: var(--cs-bg-soft); padding: 12px 14px;
  border-radius: 8px;
}
.cs2-px-vs-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12.5px;
}
.cs2-px-vs-row span { color: var(--cs-fg-muted); }
.cs2-px-vs-row b { color: var(--cs-fg); font-weight: 700; font-variant-numeric: tabular-nums; }

.cs2-px-versus { padding: 0 2px; }
.cs2-px-versus-bar {
  display: flex; height: 22px; border-radius: 5px; overflow: hidden;
  background: var(--cs-bg-tint);
  margin-bottom: 8px;
}
.cs2-px-versus-cheaper, .cs2-px-versus-equal, .cs2-px-versus-pricier {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  min-width: 0; transition: flex .3s ease;
}
.cs2-px-versus-cheaper { background: var(--cs-good); }
.cs2-px-versus-equal   { background: var(--cs-warn); }
.cs2-px-versus-pricier { background: var(--cs-danger); }
.cs2-px-versus-l {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 11px; color: var(--cs-fg-muted);
}
.cs2-px-versus-l i {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 2px; margin-right: 4px; vertical-align: middle;
}
.cs2-px-versus-l i.cheaper { background: var(--cs-good); }
.cs2-px-versus-l i.equal   { background: var(--cs-warn); }
.cs2-px-versus-l i.pricier { background: var(--cs-danger); }

.cs2-px-empty {
  background: var(--cs-bg-soft); padding: 12px 14px;
  border-radius: 8px;
}
.cs2-px-empty p { margin: 4px 0 0; font-size: 12.5px; color: var(--cs-fg-muted); line-height: 1.5; }
.cs2-px-empty b { color: var(--cs-fg); }

.cs2-px-reco {
  padding: 12px 14px;
  background: rgba(15,118,110,.05);
  border: 1px solid rgba(15,118,110,.18);
  border-radius: 8px;
}
.cs2-px-reco p {
  margin: 4px 0 0; font-size: 12.5px; line-height: 1.5;
  color: var(--cs-fg);
  font-variant-numeric: tabular-nums;
}

/* Rival table */
.cs2-px-table-wrap {
  margin: 4px -22px -18px;
  padding: 14px 22px 18px;
  background: var(--cs-bg-soft);
  border-radius: 0 0 14px 14px;
  border-top: 1px solid var(--cs-border-soft);
}
.cs2-px-table {
  width: 100%; border-collapse: collapse;
  font-size: 12.5px;
}
.cs2-px-table th {
  text-align: left; padding: 6px 10px;
  font-size: 10.5px; font-weight: 700;
  color: var(--cs-fg-soft); text-transform: uppercase;
  letter-spacing: .05em; border-bottom: 1px solid var(--cs-border);
}
.cs2-px-table th.num, .cs2-px-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.cs2-px-table td {
  padding: 8px 10px; color: var(--cs-fg);
  border-bottom: 1px solid var(--cs-border-soft);
}
.cs2-px-table tr:hover td { background: var(--cs-bg); }
.cs2-px-table .num.up   { color: var(--cs-danger); font-weight: 600; }
.cs2-px-table .num.down { color: var(--cs-good); font-weight: 600; }
.cs2-px-row-ours td { background: var(--cs-bg) !important; border-top: 2px solid var(--cs-fg); }
.cs2-px-tpos {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 2px 7px; border-radius: 4px;
  background: var(--cs-bg-tint); color: var(--cs-fg-muted);
}
.cs2-px-tpos.up   { background: var(--cs-danger-soft); color: var(--cs-danger); }
.cs2-px-tpos.down { background: var(--cs-good-soft); color: var(--cs-good); }
.cs2-px-tpos.eq   { background: var(--cs-warn-soft); color: var(--cs-warn); }
.cs2-px-tpos.ours { background: var(--cs-fg); color: #fff; }

.cs2-px-ouritems {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed var(--cs-border);
  align-items: center;
}
.cs2-px-ouritem {
  font-size: 11.5px; padding: 3px 9px;
  background: var(--cs-bg); border: 1px solid var(--cs-border);
  border-radius: 4px; color: var(--cs-fg);
}
.cs2-px-ouritem em {
  font-style: normal; font-weight: 700;
  color: var(--cs-accent); margin-left: 4px;
  font-variant-numeric: tabular-nums;
}

/* ── Rivals tab: link-only fallback list ── */
.cs2-rival-links {
  list-style: none; margin: 0; padding: 6px 14px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.cs2-rival-links li { margin: 0; }
.cs2-rival-links a {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 6px;
  text-decoration: none; color: var(--cs-fg);
  background: var(--cs-bg-soft);
  border: 1px solid var(--cs-border-soft);
  font-size: 12px; transition: background .12s, border-color .12s;
}
.cs2-rival-links a:hover { background: var(--cs-bg-tint); border-color: var(--cs-border); }
.cs2-rival-link-src {
  font-size: 9.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--cs-fg-soft);
  padding: 2px 6px; background: #fff; border-radius: 3px;
  border: 1px solid var(--cs-border);
  flex-shrink: 0;
}
.cs2-rival-link-txt {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--cs-fg-muted);
}
.cs2-rival-links a svg { color: var(--cs-fg-soft); flex-shrink: 0; }

/* ─── Channels (tab 4) ─── */
.cs2-channels-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.cs2-channel {
  padding: 14px 16px;
  background: var(--cs-bg); border: 1px solid var(--cs-border);
  border-radius: 10px;
}
.cs2-channel-h {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
}
.cs2-channel-h b { font-size: 14px; color: var(--cs-fg); text-transform: capitalize; }
.cs2-channel-h span { font-size: 11px; color: var(--cs-fg-soft); }
.cs2-channel-bar {
  height: 6px; background: var(--cs-bg-tint);
  border-radius: 3px; overflow: hidden; margin-bottom: 8px;
}
.cs2-channel-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--cs-accent), #14b8a6);
}
.cs2-channel-foot { display: flex; justify-content: space-between; align-items: center; }
.cs2-channel-pct { font-size: 18px; font-weight: 700; color: var(--cs-fg); font-variant-numeric: tabular-nums; }
.cs2-channel-hint { font-size: 11px; color: var(--cs-fg-soft); font-weight: 500; }

/* Responsive */
@media (max-width: 720px) {
  .cs2-hero { flex-direction: column; align-items: stretch; padding: 20px; }
  .cs2-hero-l h2 { font-size: 20px; }
  .cs2-hero-r { display: flex; }
  .cs2-bench-row { grid-template-columns: 1fr; gap: 10px; }
  .cs2-imgs { grid-template-columns: repeat(2, 1fr); }
  .cs2-tabs button { font-size: 12px; padding: 8px 10px; }
  .cs2-sug-grid { grid-template-columns: 1fr; gap: 12px; }
  .cs2-sug-stats { font-size: 11px; }
  .cs2-sug-title { font-size: 15.5px; }
  .cs2-sug-foot { flex-direction: column; align-items: stretch; }
  .cs2-sug-foot-r { justify-content: flex-end; }
  .cs2-px-summary { grid-template-columns: 1fr; }
  .cs2-px-summary-stats { padding-left: 0; border-left: none; padding-top: 12px; border-top: 1px solid var(--cs-border-soft); }
  .cs2-px-cat-body { grid-template-columns: 1fr; gap: 16px; }
  .cs2-px-table { font-size: 11.5px; }
  .cs2-px-table th, .cs2-px-table td { padding: 6px 6px; }
  /* Hide non-essential columns on small screens */
  .cs2-pxt thead th:nth-child(4),
  .cs2-pxt tbody td:nth-child(4),
  .cs2-pxt thead th:nth-child(5),
  .cs2-pxt tbody td:nth-child(5) { display: none; }
  .cs2-pxt-track { width: auto; }
  .cs2-pxt thead th, .cs2-pxt tbody td { padding: 10px 8px; }
  .cs2-px-modal { max-height: 95vh; border-radius: 10px; }
  .cs2-px-modal-head { padding: 14px 16px; }
  .cs2-px-modal-body { padding: 14px 16px; }
  .cs2-px-modal-title h3 { font-size: 16px; }
}

/* ═════════════════════════════════════════════════════════════════
   KAMPANYA STRATEJİSTİ (cs-*) [ESKİ] + REELS ZEKÂSI (ri-*)
   ═════════════════════════════════════════════════════════════════ */

/* ─── Genel control bar ─── */
.cs-wrap, .ri-wrap { display: flex; flex-direction: column; gap: 14px; }
.cs-ctrl, .ri-ctrl {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 12px 16px;
  background: linear-gradient(135deg, #2d5b3d 0%, #3a7050 100%);
  border-radius: 12px; color: #fff;
  box-shadow: 0 2px 12px rgba(34, 91, 51, .15);
}
.ri-ctrl { background: linear-gradient(135deg, #6b3f8c 0%, #9b59b6 100%); }
.cs-ctrl-title, .ri-ctrl-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cs-ctrl-title b, .ri-ctrl-title b { font-size: 14px; }
.cs-src, .ri-src { font-size: 11.5px; opacity: .8; margin-left: 6px; }
.cs-dot, .ri-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #8be8a3;
  box-shadow: 0 0 0 3px rgba(139, 232, 163, .25);
  animation: cs-pulse 1.8s ease-in-out infinite;
}
.ri-dot { background: #f0b3ff; box-shadow: 0 0 0 3px rgba(240, 179, 255, .25); }
@keyframes cs-pulse { 50% { opacity: .5; transform: scale(.85); } }
.cs-refresh, .ri-refresh {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15); color: #fff;
  border: 1px solid rgba(255,255,255,.25); border-radius: 8px;
  padding: 6px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.cs-refresh:hover, .ri-refresh:hover { background: rgba(255,255,255,.25); }

.cs-state, .ri-state {
  padding: 24px; text-align: center;
  color: #7a6a4f; font-size: 13px;
  background: #fafaf7; border: 1px dashed #e0d4b8; border-radius: 12px;
}
.cs-state svg, .ri-state svg { animation: cs-spin 1.4s linear infinite; vertical-align: middle; margin-right: 6px; }
@keyframes cs-spin { to { transform: rotate(360deg); } }

/* ─── Üst summary card ─── */
.cs-summary, .ri-summary {
  background: linear-gradient(135deg, #fff8ed 0%, #fffefa 60%);
  border: 1px solid #f1d99a; border-radius: 16px;
  padding: 18px 20px; box-shadow: 0 6px 24px rgba(168, 122, 31, .08);
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.ri-summary { background: linear-gradient(135deg, #f8eeff 0%, #fefcff 60%); border-color: #e0c8f0; box-shadow: 0 6px 24px rgba(155, 89, 182, .08); }
.cs-sum-h, .ri-sum-h { display: flex; align-items: center; gap: 12px; }
.cs-sum-h svg, .ri-sum-h svg {
  color: #a87a1f; background: #f5e2b6;
  padding: 8px; width: 32px; height: 32px;
  border-radius: 10px; box-sizing: content-box;
}
.ri-sum-h svg { color: #8e44ad; background: #e8d4f5; }
.cs-sum-h b, .ri-sum-h b { font-size: 16px; color: #2d2416; display: block; }
.cs-sum-h span, .ri-sum-h span { font-size: 12px; color: #7a6a4f; display: block; margin-top: 2px; }
.cs-sum-meta, .ri-sum-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-meta-pill, .ri-meta-pill {
  font-size: 11.5px; padding: 5px 10px; border-radius: 12px;
  background: rgba(255,255,255,.8); border: 1px solid rgba(168,122,31,.18);
  color: #6b4d12;
}
.ri-meta-pill { border-color: rgba(155, 89, 182, .2); color: #6b3f8c; }

/* ─── Cards ─── */
.cs-card, .ri-card {
  background: #fff; border: 1px solid #ece4d4;
  border-radius: 12px; padding: 16px 18px;
}
.cs-card-h, .ri-card-h {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: #1f1a10;
  margin-bottom: 4px;
}
.cs-h-cnt, .ri-h-cnt {
  margin-left: auto;
  font-size: 11.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
  background: #f1ebda; color: #6b4d12;
}
.cs-card-sub, .ri-card-sub {
  font-size: 12px; color: #7a6a4f;
  margin-bottom: 12px;
}
.cs-grid2, .ri-grid2 {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.cs-empty, .ri-empty {
  padding: 16px; text-align: center; color: #9a8a6a;
  background: #faf7ee; border-radius: 8px; font-size: 13px;
}

/* ─── Önerilen kampanyalar ─── */
.cs-suggestions { display: flex; flex-direction: column; gap: 12px; }
.cs-sug {
  display: flex; gap: 14px; padding: 14px;
  background: #fafaf7; border: 1px solid #ece4d4;
  border-radius: 10px; border-left: 4px solid #b88420;
  transition: transform .15s, box-shadow .15s;
}
.cs-sug:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.cs-sug.pri-yuksek  { border-left-color: #c2453d; background: #fffbf9; }
.cs-sug.pri-orta    { border-left-color: #b88420; }
.cs-sug.pri-dusuk   { border-left-color: #3f7a52; }
.cs-sug-num {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  background: #6b4d12; color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.cs-sug-bd { flex: 1; min-width: 0; }
.cs-sug-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px; flex-wrap: wrap; margin-bottom: 6px;
}
.cs-sug-t { font-size: 14.5px; font-weight: 700; color: #1f1a10; }
.cs-sug-tags { display: flex; gap: 4px; flex-shrink: 0; }
.cs-tag {
  font-size: 10.5px; font-weight: 600; padding: 2px 7px;
  border-radius: 10px; background: #f0ece4; color: #6b4d12;
  letter-spacing: .02em;
}
.cs-tag.pri-yuksek, .cs-tag.imp-yuksek { background: #fde2d4; color: #b14545; }
.cs-tag.pri-orta, .cs-tag.imp-orta     { background: #fdf2c9; color: #8a6716; }
.cs-tag.pri-dusuk, .cs-tag.imp-dusuk   { background: #d8efdd; color: #225b33; }
.cs-sug-why {
  font-size: 12.5px; color: #7a6a4f;
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 10px;
}
.cs-sug-offer, .cs-sug-ev {
  background: #fff; border: 1px solid #ece4d4;
  border-radius: 8px; padding: 8px 10px; margin-bottom: 6px;
}
.cs-sug-l {
  font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .05em; color: #9a8a6a; font-weight: 600;
  margin-bottom: 4px;
}
.cs-sug-v { font-size: 13px; color: #1f1a10; line-height: 1.4; font-weight: 500; }
.cs-sug-ev ul { margin: 0; padding-left: 16px; }
.cs-sug-ev li { font-size: 12px; color: #4a4030; line-height: 1.5; }
.cs-sug-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: 8px; flex-wrap: wrap;
}
.cs-ch {
  font-size: 11px; padding: 3px 8px;
  background: #e8f0e9; color: #225b33;
  border-radius: 6px; font-weight: 500;
}
.cs-sug-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: #6b4d12; color: #fff; border: none;
  font-size: 12.5px; font-weight: 600;
  padding: 7px 14px; border-radius: 7px; cursor: pointer;
  transition: background .15s;
}
.cs-sug-btn:hover { background: #4a3508; }
.cs-sug-btn.done { background: #3f7a52; cursor: default; }

/* ─── Rakip kampanya listesi ─── */
.cs-rcamp-list { display: flex; flex-direction: column; gap: 8px; }
.cs-rcamp {
  padding: 10px; background: #fff8ed;
  border: 1px solid #f1d99a; border-radius: 8px;
}
.cs-rcamp-r {
  font-size: 11px; color: #6b4d12; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px;
}
.cs-rcamp-t { font-size: 13px; color: #1f1a10; line-height: 1.4; margin-bottom: 5px; }
.cs-rcamp-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.cs-mtag {
  font-size: 10.5px; padding: 2px 7px; border-radius: 10px;
  background: #f5e2b6; color: #6b4d12; font-weight: 500;
}

/* ─── Platform bars ─── */
.cs-plat-bars { display: flex; flex-direction: column; gap: 8px; }
.cs-plat {
  display: grid; grid-template-columns: 120px 1fr 50px;
  align-items: center; gap: 10px; font-size: 12.5px;
}
.cs-plat-l { color: #4a4030; font-weight: 500; }
.cs-plat-bar { height: 8px; background: #f1ebda; border-radius: 4px; overflow: hidden; }
.cs-plat-fill { height: 100%; background: linear-gradient(90deg, #b88420, #d4a548); border-radius: 4px; }
.cs-plat-v { color: #6b4d12; font-weight: 600; text-align: right; }

/* ─── Benchmark tablosu ─── */
.cs-bench { display: flex; flex-direction: column; gap: 10px; }
.cs-bench-row {
  display: grid;
  grid-template-columns: 130px 1fr 140px;
  gap: 14px; align-items: center;
  padding: 10px 12px; border-radius: 9px;
  background: #fafaf7; border: 1px solid #ece4d4;
  border-left: 4px solid #c8b888;
}
.cs-bench-row.pos-cheaper { border-left-color: #3f7a52; background: #f4faf6; }
.cs-bench-row.pos-pricier { border-left-color: #c2453d; background: #fffbf9; }
.cs-bench-row.pos-similar { border-left-color: #b88420; }
.cs-bench-cat { font-weight: 600; font-size: 13px; color: #1f1a10; }
.cs-bench-bars { display: flex; flex-direction: column; gap: 3px; }
.cs-bench-line {
  display: flex; justify-content: space-between;
  font-size: 12px; color: #4a4030;
}
.cs-bench-l { color: #9a8a6a; }
.cs-bench-v { font-weight: 600; }
.cs-bench-diff {
  text-align: right; font-size: 12.5px; font-weight: 700;
}
.pos-cheaper .cs-bench-diff { color: #3f7a52; }
.pos-pricier .cs-bench-diff { color: #c2453d; }
.cs-bench-diff small {
  display: block; font-size: 10.5px; font-weight: 500;
  color: #9a8a6a; margin-top: 2px;
}

/* ═════════════════════════════════════════════════════════════════
   REELS ZEKÂSI — Instagram & Reels fikirleri
   ═════════════════════════════════════════════════════════════════ */

.ri-ideas { display: flex; flex-direction: column; gap: 12px; }
.ri-idea {
  display: flex; gap: 14px; padding: 14px;
  background: #fafaf7; border: 1px solid #ece4d4;
  border-radius: 10px; border-left: 4px solid #9b59b6;
  transition: transform .15s, box-shadow .15s;
}
.ri-idea:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.ri-idea.kind-counter   { border-left-color: #c2453d; }
.ri-idea.kind-process   { border-left-color: #3f7a52; }
.ri-idea.kind-signature { border-left-color: #b88420; }
.ri-idea.kind-social-proof { border-left-color: #2d5b8e; }
.ri-idea.kind-trend     { border-left-color: #d4a548; }
.ri-idea.kind-comparison { border-left-color: #6b3f8c; }
.ri-idea-num {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  background: #6b3f8c; color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.ri-idea-bd { flex: 1; min-width: 0; }
.ri-idea-t {
  font-size: 14.5px; font-weight: 700; color: #1f1a10;
  margin-bottom: 4px;
}
.ri-idea-why {
  font-size: 12.5px; color: #7a6a4f;
  margin-bottom: 10px; line-height: 1.45;
}
.ri-idea-grid {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  background: #fff; padding: 10px 12px; border-radius: 8px;
  border: 1px solid #ece4d4; margin-bottom: 8px;
}
.ri-idea-grid em {
  font-style: normal; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .05em;
  color: #9a8a6a; font-weight: 600;
  display: block; margin-bottom: 2px;
}
.ri-idea-grid span { font-size: 12.5px; color: #1f1a10; line-height: 1.4; }
.ri-idea-ev {
  font-size: 11.5px; color: #7a6a4f;
  margin-bottom: 8px;
}
.ri-idea-ev span {
  display: inline-block;
  font-style: italic;
}
.ri-idea-foot { display: flex; justify-content: flex-end; }
.ri-idea-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: #6b3f8c; color: #fff; border: none;
  font-size: 12.5px; font-weight: 600;
  padding: 7px 14px; border-radius: 7px; cursor: pointer;
  transition: background .15s;
}
.ri-idea-btn:hover { background: #4a2b66; }
.ri-idea-btn.done { background: #3f7a52; cursor: default; }

/* ─── Profile cards ─── */
.ri-profiles { display: flex; flex-direction: column; gap: 8px; }
.ri-profile {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 9px;
  background: #fff; border: 1px solid #ece4d4;
  cursor: pointer; transition: background .12s, transform .15s;
}
.ri-profile:hover {
  background: #faf6ec; transform: translateY(-1px);
}
.ri-profile-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #e8d4f5, #c89bf0);
  color: #4a2b66; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.ri-profile-bd { min-width: 0; }
.ri-profile-name {
  font-size: 13.5px; font-weight: 600; color: #1f1a10;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ri-profile-handle {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11.5px; color: #6b3f8c;
  text-decoration: none; margin-top: 1px;
}
.ri-profile-handle:hover { text-decoration: underline; }
.ri-profile-stats { display: flex; gap: 14px; }
.ri-stat { text-align: right; }
.ri-stat b { display: block; font-size: 12.5px; color: #1f1a10; font-weight: 700; }
.ri-stat span { display: block; font-size: 10.5px; color: #9a8a6a; }

/* ─── Themes ─── */
.ri-themes { display: flex; flex-wrap: wrap; gap: 6px; }
.ri-theme {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 14px;
  background: #f5edf9; border: 1px solid #e0c8f0;
  font-size: 12px; cursor: default;
}
.ri-theme-name { color: #4a2b66; font-weight: 500; }
.ri-theme-cnt {
  font-size: 10.5px; color: #8e44ad; font-weight: 600;
  padding: 1px 6px; background: #fff; border-radius: 8px;
}

/* ─── Modal ─── */
.ri-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20, 10, 30, .55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.ri-modal {
  background: #fff; border-radius: 14px;
  max-width: 720px; width: 100%; max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.ri-modal-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 18px 20px 12px; border-bottom: 1px solid #ece4d4;
}
.ri-modal-head h3 { margin: 0; font-size: 17px; color: #1f1a10; }
.ri-modal-head a {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: #6b3f8c; text-decoration: none;
  margin-top: 4px;
}
.ri-modal-close {
  background: none; border: none; cursor: pointer; color: #7a6a4f;
  padding: 4px; border-radius: 6px;
}
.ri-modal-close:hover { background: #f5edf9; color: #1f1a10; }
.ri-modal-body { padding: 16px 20px 20px; }
.ri-modal-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding: 12px; background: #faf7ee; border-radius: 10px; margin-bottom: 14px;
}
.ri-modal-stats > div { text-align: center; }
.ri-modal-stats b { display: block; font-size: 15px; color: #1f1a10; }
.ri-modal-stats span { font-size: 11px; color: #9a8a6a; }
.ri-modal-sec { margin-bottom: 16px; }
.ri-modal-sec h4 {
  margin: 0 0 8px; font-size: 13px; color: #6b3f8c;
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.ri-modal-sec p { margin: 0; font-size: 13px; color: #4a4030; line-height: 1.5; }
.ri-modal-empty {
  text-align: center; padding: 20px;
  background: #faf7ee; border-radius: 10px;
}
.ri-modal-empty p { color: #7a6a4f; margin: 0 0 10px; }
.ri-deep-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #6b3f8c; color: #fff; border: none;
  padding: 8px 14px; border-radius: 8px; font-weight: 600; cursor: pointer;
}
.ri-deep-btn:hover { background: #4a2b66; }
.ri-deep-btn:disabled { opacity: .6; cursor: wait; }

.ri-posts { display: flex; flex-direction: column; gap: 8px; }
.ri-post {
  padding: 10px 12px; background: #faf7ee;
  border: 1px solid #ece4d4; border-radius: 8px;
}
.ri-post-h {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.ri-post-h b { font-size: 13px; color: #1f1a10; }
.ri-post-tip {
  font-size: 10.5px; padding: 2px 7px;
  background: #e8d4f5; color: #6b3f8c; border-radius: 8px;
}
.ri-post-eng { font-size: 11.5px; color: #7a6a4f; margin-bottom: 3px; }
.ri-post-tip-d { font-size: 12px; color: #4a4030; line-height: 1.4; font-style: italic; }

@media (max-width: 720px) {
  .cs-sug, .ri-idea { flex-direction: column; }
  .cs-bench-row { grid-template-columns: 1fr; }
  .cs-plat { grid-template-columns: 90px 1fr 50px; }
  .ri-profile { grid-template-columns: 32px 1fr; }
  .ri-profile-stats { grid-column: 1 / -1; justify-content: flex-start; gap: 20px; }
}

/* ═════════════════════════════════════════════════════════════════
   REELS v2 — KPI strip + tabs + rakip kartları + tema bar + modal-x
   ═════════════════════════════════════════════════════════════════ */

/* KPI strip */
.ri-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-bottom: 14px;
}
.ri-kpi {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: #fff; border: 1px solid #ece4d4; border-radius: 12px;
  box-shadow: 0 1px 0 rgba(20,10,30,.02);
}
.ri-kpi-ico {
  width: 34px; height: 34px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f5edf9; color: #6b3f8c; flex-shrink: 0;
}
.ri-kpi-bd b {
  display: block; font-size: 18px; font-weight: 700; color: #1f1a10;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.ri-kpi-bd span { font-size: 11.5px; color: #7a6a4f; line-height: 1.3; }
.ri-kpi.muted .ri-kpi-ico { background: #f0f0eb; color: #9a8a6a; }
.ri-kpi.muted .ri-kpi-bd b { color: #6a6055; }

/* Tabs */
.ri-tabs {
  display: flex; gap: 4px;
  background: #faf7ee; padding: 4px; border-radius: 10px;
  border: 1px solid #ece4d4;
  margin-bottom: 14px;
}
.ri-tabs button {
  flex: 1; background: none; border: none; cursor: pointer;
  padding: 9px 14px; border-radius: 7px;
  font-size: 13px; font-weight: 600; color: #6a6055;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, color .15s;
}
.ri-tabs button:hover { color: #1f1a10; background: rgba(255,255,255,.5); }
.ri-tabs button.on {
  background: #fff; color: #1f1a10;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.ri-tabs button span {
  font-size: 10.5px; font-weight: 700;
  padding: 2px 7px; border-radius: 9px;
  background: #f0eada; color: #7a6a4f;
}
.ri-tabs button.on span { background: #6b3f8c; color: #fff; }

/* Tab body intros */
.ri-ideas-intro, .ri-rival-intro, .ri-theme-intro {
  font-size: 12.5px; color: #6a6055; line-height: 1.55;
  padding: 10px 14px; background: #faf6ff;
  border: 1px solid #e8d4f5; border-radius: 8px;
  margin-bottom: 12px;
}
.ri-ideas-intro b, .ri-rival-intro b { color: #4a2b66; }

/* Rival cards grid (analyzed/non-analyzed) */
.ri-rival-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.ri-rcard {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px; background: #fff;
  border: 1px solid #ece4d4; border-radius: 12px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ri-rcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(107,63,140,.12);
  border-color: #d4b8e8;
}
.ri-rcard.analyzed { border-color: #c89bf0; background: linear-gradient(180deg, #fefcff, #fff); }
.ri-rcard-h { display: flex; align-items: center; gap: 10px; }
.ri-rcard-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #e8d4f5, #c89bf0);
  color: #4a2b66; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.ri-rcard-id { flex: 1; min-width: 0; }
.ri-rcard-name {
  font-size: 14px; font-weight: 700; color: #1f1a10;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ri-rcard-handle {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; color: #6b3f8c; text-decoration: none;
}
.ri-rcard-handle:hover { text-decoration: underline; }
.ri-rcard-badge {
  font-size: 10px; font-weight: 700;
  padding: 4px 8px; border-radius: 10px;
  background: #e8d4f5; color: #4a2b66;
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.ri-rcard-badge.muted { background: #f0eada; color: #9a8a6a; }
.ri-rcard-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 8px 10px;
  background: #faf7ee; border-radius: 8px;
}
.ri-rcard-stats em {
  font-style: normal; font-size: 10px; color: #9a8a6a;
  text-transform: uppercase; letter-spacing: .04em;
  display: block; margin-bottom: 2px;
}
.ri-rcard-stats span {
  font-size: 12.5px; font-weight: 600; color: #1f1a10;
  display: block;
}
.ri-rcard-themes { display: flex; flex-wrap: wrap; gap: 5px; }
.ri-tchip {
  font-size: 11px; padding: 3px 8px; border-radius: 10px;
  background: #f5edf9; color: #4a2b66;
  border: 1px solid #e0c8f0;
}
.ri-tchip.more { background: #faf7ee; color: #9a8a6a; border-color: #ece4d4; }
.ri-rcard-empty {
  font-size: 11.5px; color: #9a8a6a; font-style: italic;
  padding: 6px 0;
}
.ri-rcard-cta {
  margin-top: auto;
  font-size: 12.5px; font-weight: 600; color: #6b3f8c;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; border-top: 1px dashed #ece4d4;
}
.ri-rcard-cta span {
  display: inline-block; transition: transform .15s;
}
.ri-rcard:hover .ri-rcard-cta span { transform: translateX(4px); }

/* Theme bars */
.ri-theme-bars { display: flex; flex-direction: column; gap: 12px; }
.ri-tbar {
  padding: 12px 14px;
  background: #fff; border: 1px solid #ece4d4; border-radius: 10px;
}
.ri-tbar-h {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.ri-tbar-name { font-size: 13.5px; font-weight: 600; color: #1f1a10; }
.ri-tbar-cnt { font-size: 11.5px; color: #7a6a4f; }
.ri-tbar-cnt b { color: #6b3f8c; font-size: 13px; font-weight: 700; }
.ri-tbar-track {
  height: 8px; background: #faf7ee; border-radius: 99px; overflow: hidden;
  margin-bottom: 8px;
}
.ri-tbar-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #c89bf0, #6b3f8c);
}
.ri-tbar-rivals {
  font-size: 11px; color: #9a8a6a; line-height: 1.5;
}
.ri-tbar-rivals span { color: #6a6055; }

/* ─── Extended modal (post ↔ counter pairs) ───────────────────── */
.ri-modal-x {
  background: #fff; border-radius: 16px;
  max-width: 1080px; width: 100%; max-height: 92vh;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(20,10,30,.32);
  animation: cs2-rise .2s ease;
}
.ri-mx-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; padding: 18px 22px;
  border-bottom: 1px solid #ece4d4;
  background: linear-gradient(135deg, #fefcff 0%, #faf6ff 100%);
}
.ri-mx-head-id { display: flex; gap: 14px; align-items: center; min-width: 0; }
.ri-mx-avatar {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, #e8d4f5, #c89bf0);
  color: #4a2b66; font-weight: 700; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ri-mx-head-id h3 {
  margin: 0; font-size: 19px; font-weight: 700; color: #1f1a10;
  font-family: 'Source Serif 4', 'Inter', system-ui, sans-serif;
}
.ri-mx-head-id a {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; color: #6b3f8c; text-decoration: none;
  margin-top: 3px;
}
.ri-mx-head-id a:hover { text-decoration: underline; }
.ri-mx-no-ig { font-size: 12px; color: #9a8a6a; }
.ri-mx-konsept { font-size: 11.5px; color: #7a6a4f; margin-top: 4px; font-style: italic; }
.ri-mx-avatar.img { object-fit: cover; }
.ri-mx-verified { color: #1da1f2; font-size: 14px; margin-left: 4px; }
.ri-mx-livebadge {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 6px;
  font-size: 10.5px; font-weight: 700;
  color: #3f7a52;
  background: #d1fae5; border: 1px solid #6ee7b7;
  padding: 3px 8px; border-radius: 10px;
  text-transform: uppercase; letter-spacing: .04em;
}

.ri-mx-body {
  flex: 1; overflow-y: auto;
  padding: 18px 22px;
}

/* Stats row */
.ri-mx-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-bottom: 14px;
}
.ri-mx-stats > div {
  text-align: center;
  padding: 10px 8px;
  background: #faf7ee; border-radius: 9px;
  border: 1px solid #ece4d4;
}
.ri-mx-stats b {
  display: block; font-size: 15px; font-weight: 700; color: #1f1a10;
  font-variant-numeric: tabular-nums;
}
.ri-mx-stats span { display: block; font-size: 10.5px; color: #9a8a6a; margin-top: 2px; }

/* Insights strip */
.ri-mx-insights {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px; margin-bottom: 16px;
}
.ri-mx-ins {
  padding: 10px 12px; background: #fff; border-radius: 9px;
  border: 1px solid #ece4d4;
}
.ri-mx-ins.highlight { background: #fef9e8; border-color: #f5e2b6; }
.ri-mx-ins em {
  font-style: normal; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: #9a8a6a; display: block; margin-bottom: 3px;
}
.ri-mx-ins.highlight em { color: #a87a1f; }
.ri-mx-ins span { font-size: 12.5px; color: #1f1a10; line-height: 1.45; }

/* Section header */
.ri-mx-section-h {
  display: flex; align-items: center; gap: 8px;
  margin: 14px 0 12px;
  color: #6b3f8c;
}
.ri-mx-section-h h4 {
  margin: 0; font-size: 14px; font-weight: 700; color: #1f1a10;
  font-family: 'Source Serif 4', 'Inter', system-ui, sans-serif;
}
.ri-mx-section-h span {
  margin-left: auto;
  font-size: 11.5px; color: #9a8a6a; font-weight: 500;
}

/* Pair list (post ↔ counter) */
.ri-mx-list { display: flex; flex-direction: column; gap: 12px; }
.ri-pair {
  display: grid;
  grid-template-columns: 1fr 24px 1.4fr;
  gap: 10px; align-items: stretch;
  padding: 12px;
  background: #faf7ee; border-radius: 12px;
  border: 1px solid #ece4d4;
}

/* SOL: Rakip post */
.ri-pair-post {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 14px;
  background: #fff; border-radius: 9px;
  border: 1px solid #ece4d4;
}
.ri-pair-post-h {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.ri-pair-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: #1f1a10; color: #fff;
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ri-pair-tip {
  font-size: 10px; font-weight: 700;
  padding: 3px 7px; border-radius: 9px;
  background: #f0eada; color: #6a6055;
  text-transform: uppercase; letter-spacing: .04em;
}
.ri-pair-eng { font-size: 11px; font-weight: 600; }
.ri-pair-eng.eng-yuksek { color: #b54708; }
.ri-pair-eng.eng-orta   { color: #6a6055; }
.ri-pair-eng.eng-dusuk  { color: #9a8a6a; }
.ri-pair-post-tema {
  font-size: 14px; font-weight: 600; color: #1f1a10;
  line-height: 1.35;
}
.ri-pair-post-tip {
  font-size: 11.5px; color: #7a6a4f;
  font-style: italic; line-height: 1.45;
  border-left: 2px solid #ece4d4; padding-left: 8px;
}
.ri-pair-embed {
  margin-top: 8px;
  border-radius: 8px; overflow: hidden;
  background: #fafafa; border: 1px solid #ece4d4;
  /* Instagram embed iframe için min yükseklik — yüklenirken layout zıplaması olmasın */
  min-height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.ri-pair-embed .instagram-media {
  border: 0 !important;
  box-shadow: none !important;
}
.ri-pair-embed iframe {
  border-radius: 6px;
}
.ri-pair-iglink {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 4px;
  font-size: 11.5px; color: #6b3f8c; text-decoration: none;
  padding: 6px 10px; border-radius: 7px;
  background: #f5edf9; border: 1px solid #e0c8f0;
  align-self: flex-start;
  transition: background .12s;
}
.ri-pair-iglink:hover { background: #e8d4f5; }

/* ═══════════════════════════════════════════════════════════════════
   POST STUDIO — Stüdyom sekmesi + Composer modalı
   ═══════════════════════════════════════════════════════════════════ */

/* Üst bardaki "Gönderi Oluştur" butonu */
.ri-ctrl-actions { display: flex; gap: 8px; align-items: center; }
.ri-new-post {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #c89bf0 0%, #6b3f8c 100%);
  color: #fff; border: 0;
  padding: 8px 14px; border-radius: 10px;
  font-size: 12.5px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(107,63,140,.25);
  transition: transform .15s, box-shadow .15s;
}
.ri-new-post:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(107,63,140,.35); }
.ri-new-post svg { color: #fff; }

/* Stüdyom grid */
.ps-grid { display: flex; flex-direction: column; gap: 22px; }
.ps-section-h {
  display: flex; align-items: center; gap: 10px;
  padding: 0 0 8px 0; border-bottom: 1px solid #ece4d4;
  margin-bottom: 14px;
}
.ps-section-h h4 { margin: 0; font-size: 14.5px; font-weight: 700; color: #1f1a10; }
.ps-section-h span { margin-left: auto; font-size: 11px; color: #9a8a6a; text-transform: uppercase; letter-spacing: .04em; }
.ps-section-h svg { color: #c89bf0; }

.ps-cards {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.ps-card {
  background: #fff;
  border: 1px solid #ece4d4;
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: box-shadow .15s, transform .15s;
}
.ps-card:hover { box-shadow: 0 6px 18px rgba(107,63,140,.12); transform: translateY(-2px); }
.ps-card.kind-counter       { border-top: 3px solid #f97066; }
.ps-card.kind-overlap       { border-top: 3px solid #fdb022; }
.ps-card.kind-differentiate { border-top: 3px solid #6b3f8c; }
.ps-card.kind-mirror        { border-top: 3px solid #14b8a6; }
.ps-card.draft              { border-top: 3px solid #c89bf0; }

.ps-card-h {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #f5edf9;
  font-size: 11px;
}
.ps-card-comp { font-weight: 700; color: #6b3f8c; }
.ps-card-status {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 8px; border-radius: 9px;
}
.ps-card-status.st-todo      { background: #fef3c7; color: #92400e; }
.ps-card-status.st-drafted   { background: #d1fae5; color: #065f46; }
.ps-card-status.st-scheduled { background: #dbeafe; color: #1e40af; }
.ps-card-status.st-published { background: #e0e7ff; color: #3730a3; }
.ps-card-status.st-draft     { background: #f3e8ff; color: #6b21a8; }

.ps-card-thumb {
  width: 100%; aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #faf7ee, #f5edf9);
}
.ps-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-card-thumb { position: relative; }
.ps-card-thumb-tag {
  position: absolute;
  top: 8px; left: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #c89bf0 0%, #6b3f8c 100%);
  color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(107,63,140,.3);
}
.ps-card-thumb-tag svg { color: #fff; }
.ps-card-thumb.has-ours { background: #1f1a10; }

.ps-card-bd { padding: 11px 12px; flex: 1; display: flex; flex-direction: column; gap: 9px; }
.ps-card-rival, .ps-card-our, .ps-card-draft {
  display: flex; flex-direction: column; gap: 2px;
}
.ps-card-rival em, .ps-card-our em, .ps-card-draft em {
  font-style: normal; font-size: 9.5px; font-weight: 700;
  color: #9a8a6a; text-transform: uppercase; letter-spacing: .05em;
}
.ps-card-rival span { font-size: 12px; color: #4a4030; line-height: 1.4; }
.ps-card-our b { font-size: 13px; color: #1f1a10; line-height: 1.3; font-weight: 700; }
.ps-card-our span { font-size: 11.5px; color: #6a6055; line-height: 1.45; }
.ps-card-draft {
  padding-top: 8px; border-top: 1px dashed #ece4d4;
}
.ps-card-draft em { color: #3f7a52; }
.ps-card-draft span {
  font-size: 11.5px; color: #4a4030; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.ps-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ps-card-tags span {
  font-size: 10.5px; color: #6b3f8c; background: #f5edf9;
  padding: 2px 7px; border-radius: 6px;
}

.ps-card-foot {
  display: flex; gap: 6px;
  padding: 10px 12px; border-top: 1px solid #f5edf9;
  background: #fafaf7;
}
/* 3+ buton: Benzer / Karşı Hamle / Düzenle / Sil */
.ps-card-foot-2 .ps-btn:not(.icon) { flex: 1; padding: 8px 10px; font-size: 11px; }
.ps-card-foot-2 .ps-similar {
  background: #e6f7f2; color: #047857;
  border: 1px solid #c4ebde;
}
.ps-card-foot-2 .ps-similar:hover {
  background: #c4ebde; border-color: #14b8a6;
  transform: translateY(-1px);
}
.ps-card-foot-2 .ps-similar svg { color: #14b8a6; }
.ps-card-h small {
  font-weight: 400; color: #14b8a6; font-size: 10.5px;
}

/* Buton sistemi (modal + kart paylaşımlı) */
.ps-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 8px;
  font-size: 11.5px; font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .12s;
  font-family: inherit;
}
.ps-btn.primary {
  background: linear-gradient(135deg, #c89bf0 0%, #6b3f8c 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 1px 3px rgba(107,63,140,.2);
  flex: 1;
}
.ps-btn.primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(107,63,140,.3); }
.ps-btn.primary:disabled { opacity: .6; cursor: wait; }
.ps-btn.ghost {
  background: #fff; color: #6b3f8c;
  border-color: #e0c8f0;
}
.ps-btn.ghost:hover { background: #f5edf9; }
.ps-btn.icon {
  width: 30px; padding: 7px; justify-content: center;
  background: #fff; color: #9a8a6a; border-color: #ece4d4;
}
.ps-btn.icon:hover { background: #fee4e2; color: #b54708; border-color: #f97066; }

/* ═══════════════════════════════════════════════════════════════════
   COMPOSER PAGE — Tam sayfa modern post oluşturma deneyimi
   ═══════════════════════════════════════════════════════════════════ */
.cmp-wrap {
  display: flex; flex-direction: column; gap: 24px;
  padding-bottom: 100px; /* sticky footer için */
  animation: cmp-fade-in .25s ease-out;
}
@keyframes cmp-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── HERO ── */
.cmp-hero {
  display: grid; grid-template-columns: 1fr;
  gap: 18px;
  background: #ffffff;
  border: 1px solid #e8e8e3;
  border-radius: 14px;
  padding: 26px 28px;
  position: relative;
  overflow: hidden;
}
.cmp-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  display: none;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(200,155,240,.35) 0%, transparent 65%);
  pointer-events: none;
}
.cmp-hero:has(.cmp-rival) { grid-template-columns: 1fr 340px; }
.cmp-hero-l { position: relative; z-index: 1; }
.cmp-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase;
  color: #6a6055;
  background: #f5f5f0;
  border: 1px solid #ebebe5;
  padding: 5px 11px; border-radius: 999px;
  margin-bottom: 12px;
}
.cmp-hero h1 {
  font-family: 'Source Serif 4', serif;
  font-size: 30px; font-weight: 600;
  color: #1a1a17; margin: 0 0 8px;
  line-height: 1.15; letter-spacing: -.02em;
}
.cmp-hero-target {
  font-family: inherit;
  color: #1a1a17;
  font-weight: 500;
  opacity: .7;
}
.cmp-hero p {
  font-size: 14px; color: #5a5040;
  line-height: 1.6; max-width: 640px; margin: 0;
}

/* Rakip postu kartı (sağda) */
.cmp-rival {
  background: #fafaf7;
  border: 1px solid #e8e8e3;
  border-radius: 12px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative; z-index: 1;
}
.cmp-rival-h {
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase;
  color: #6a6055;
}
.cmp-rival-h svg { color: #1a1a17; }
.cmp-rival-bd { display: flex; gap: 12px; }
.cmp-rival-thumb {
  width: 70px; height: 70px;
  border-radius: 10px; overflow: hidden;
  flex-shrink: 0;
  background: #f0f0eb;
  border: 1px solid #e8e8e3;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
}
.cmp-rival-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cmp-rival-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cmp-rival-handle {
  font-size: 11px; color: #6a6055; font-weight: 600;
}
.cmp-rival-meta b {
  font-size: 13px; color: #1f1a10; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.cmp-rival-meta em {
  font-style: italic; font-size: 11.5px; color: #6a6055;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.cmp-rival-stats {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 4px;
  font-size: 11px; color: #6a6055;
}
.cmp-rival-stats span { white-space: nowrap; }
.cmp-rival-counter {
  padding: 10px 12px;
  background: #fafaf7;
  border: 1px solid #ebebe5;
  border-radius: 8px;
  display: flex; flex-direction: column; gap: 3px;
  border-left: 3px solid #1a1a17;
}
.cmp-rival-counter em {
  font-style: normal; font-size: 9.5px; font-weight: 600;
  color: #6a6055; text-transform: uppercase; letter-spacing: .06em;
}
.cmp-rival-counter b { font-size: 12.5px; color: #1f1a10; line-height: 1.3; }
.cmp-rival-counter span { font-size: 11.5px; color: #4a4030; line-height: 1.4; }
.cmp-rival-counter small { font-size: 11px; color: #5a5040; margin-top: 4px; line-height: 1.4; }
.cmp-rival-counter small b { font-weight: 600; color: #1a1a17; font-size: 11px; }

/* Similar mode — yeşil tonlama */
.cmp-rival.similar .cmp-rival-h { color: #047857; }
.cmp-rival.similar .cmp-rival-h svg { color: #14b8a6; }
.cmp-rival.similar .cmp-rival-thumb {
  background: linear-gradient(135deg, #faf7ee, #e6f7f2);
}
.cmp-rival-counter.similar-hint {
  background: linear-gradient(135deg, #faf7ee, #e6f7f2);
  border-left-color: #14b8a6;
}
.cmp-rival-counter.similar-hint em { color: #047857; display: flex; align-items: center; gap: 4px; }
.cmp-rival-counter.similar-hint em svg { color: #14b8a6; }

/* ── GRID: form (1fr) + preview (480px) ── */
.cmp-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1180px) {
  .cmp-grid { grid-template-columns: 1fr; }
  .cmp-hero:has(.cmp-rival) { grid-template-columns: 1fr; }
}

/* ── SOL: form card ── */
.cmp-form-card {
  background: #fff;
  border: 1px solid #e8e8e3;
  border-radius: 12px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.cmp-section {
  padding: 22px 24px;
  border-bottom: 1px solid #f0f0eb;
}
.cmp-section:last-child { border-bottom: 0; }
.cmp-section-h {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}
.cmp-step {
  grid-row: 1 / 3;
  width: 28px; height: 28px;
  background: #1a1a17;
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px;
}
.cmp-section-h h3 {
  margin: 0; font-size: 15px; font-weight: 700; color: #1f1a10;
  font-family: 'Source Serif 4', serif;
}
.cmp-section-h p {
  margin: 0; font-size: 12px; color: #6a6055;
}

/* Chip seçim grupları */
.cmp-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.cmp-chips.wide { grid-template-columns: repeat(2, 1fr); }
.cmp-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: #fafaf7;
  border: 1px solid #e8e8e3;
  border-radius: 10px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  text-align: left;
}
.cmp-chip:hover {
  border-color: #1a1a17;
  background: #fff;
}
.cmp-chip.on {
  border-color: #1a1a17;
  background: #fafaf7;
  box-shadow: none;
}
.cmp-chip.on::after {
  content: '✓';
  margin-left: auto;
  width: 18px; height: 18px;
  background: #1a1a17;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}
.cmp-chip-ico { font-size: 22px; line-height: 1; }
.cmp-chip b { font-size: 13px; color: #1f1a10; font-weight: 700; }
.cmp-chip.wide { padding: 14px 16px; }
.cmp-chip.wide div { display: flex; flex-direction: column; gap: 2px; }
.cmp-chip.wide small { font-size: 11px; color: #6a6055; font-weight: 400; }

/* Form alanları */
.cmp-field {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 14px;
}
.cmp-field:last-child { margin-bottom: 0; }
.cmp-field > span {
  font-size: 12px; font-weight: 700; color: #4a4030;
  display: flex; align-items: center; gap: 6px;
}
.cmp-field > span em {
  font-style: normal; color: #f97066;
}
.cmp-field > span small {
  font-weight: 400; color: #9a8a6a; font-size: 11px;
}
.cmp-field input {
  padding: 11px 14px;
  background: #fff;
  border: 1px solid #e8e8e3;
  border-radius: 8px;
  font-size: 13.5px;
  color: #1a1a17;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.cmp-field input::placeholder { color: #a8a098; }
.cmp-field input:focus {
  outline: none;
  border-color: #1a1a17;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,26,23,.08);
}
.cmp-field input.cmp-shake {
  border-color: #f97066;
  animation: cmp-shake .4s ease-in-out;
}
@keyframes cmp-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* CTA: Gemini Genişlet */
.cmp-cta-section { padding-top: 18px; }
.cmp-expand {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 16px 20px;
  background: #1a1a17;
  border: 0; border-radius: 12px;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background .15s, transform .15s;
}
.cmp-expand:hover:not(:disabled) {
  background: #2a2a25;
}
.cmp-expand:disabled { opacity: .85; cursor: wait; }
.cmp-expand.loading .cmp-expand-ico { animation: cmp-spin 1s linear infinite; }
@keyframes cmp-spin { to { transform: rotate(360deg); } }
.cmp-expand-ico {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cmp-expand-bd { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cmp-expand-bd b { font-size: 15px; font-weight: 700; }
.cmp-expand-bd small { font-size: 11.5px; opacity: .9; line-height: 1.4; }
.cmp-expand-arrow { font-size: 22px; opacity: .8; transition: transform .2s; }
.cmp-expand:hover:not(:disabled) .cmp-expand-arrow { transform: translateX(4px); }

/* ── SAĞ: Önizleme paneli ── */
.cmp-preview {
  background: #fafaf7;
  border: 1px solid #e8e8e3;
  border-radius: 12px;
  position: sticky; top: 16px;
  max-height: calc(100vh - 32px);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.cmp-preview-h {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: #fff;
  border-bottom: 1px solid #ebebe5;
  color: #1a1a17;
}
.cmp-preview-dot {
  width: 8px; height: 8px;
  background: #14b8a6; border-radius: 50%;
  box-shadow: 0 0 8px #14b8a6;
  animation: cmp-pulse 1.6s ease-in-out infinite;
}
@keyframes cmp-pulse { 50% { opacity: .4; } }
.cmp-preview-h b { font-size: 13px; font-weight: 700; flex: 1; }
.cmp-preview-platform {
  font-size: 10.5px; color: #6a6055;
  background: #f5f5f0;
  padding: 3px 9px; border-radius: 6px;
  text-transform: capitalize;
  font-weight: 500;
}
.cmp-preview-bd {
  flex: 1; overflow-y: auto;
  padding: 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.15) transparent;
}
.cmp-preview-bd::-webkit-scrollbar { width: 6px; }
.cmp-preview-bd::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 3px; }

.cmp-preview-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 60px 20px;
  color: #6a6055;
  min-height: 400px;
}
.cmp-preview-empty-ico {
  width: 64px; height: 64px;
  background: #fff;
  border: 1px solid #ebebe5;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: #6a6055;
}
.cmp-preview-empty h4 {
  font-family: 'Source Serif 4', serif;
  font-size: 17px; color: #1a1a17;
  margin: 0 0 8px; font-weight: 600;
}
.cmp-preview-empty p { margin: 0; font-size: 13px; line-height: 1.7; }
.cmp-preview-empty b { color: #1a1a17; }

/* Telefon mockup */
.cmp-phone {
  background: #fff;
  border: 1px solid #e8e8e3;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}
.cmp-phone-frame { display: flex; flex-direction: column; }
.cmp-phone-top {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid #f0f0f0;
}
.cmp-phone-avatar {
  width: 32px; height: 32px;
  background: #1a1a17;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  flex-shrink: 0;
}
.cmp-phone-id { flex: 1; min-width: 0; line-height: 1.3; }
.cmp-phone-id b { display: block; font-size: 12.5px; color: #1f1a10; }
.cmp-phone-id small { font-size: 10.5px; color: #909090; text-transform: capitalize; }
.cmp-phone-more { color: #606060; font-size: 18px; }
.cmp-phone-media {
  aspect-ratio: 4 / 5;
  background: #fafaf7;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  position: relative;
}
.cmp-phone-media::before { display: none; }
.cmp-phone-concept {
  position: relative; z-index: 1;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 16px 18px;
  max-width: 100%;
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 4px 14px rgba(31,26,16,.08);
}
.cmp-phone-concept em {
  display: block;
  font-style: normal; font-size: 9.5px; font-weight: 600;
  color: #6a6055; text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 6px;
}
.cmp-phone-concept p { margin: 0; font-size: 12.5px; color: #1f1a10; line-height: 1.5; }

/* Üretilen görsel — telefon mockup'ında tam kaplar */
.cmp-phone-media.has-image { padding: 0; aspect-ratio: auto; }
.cmp-phone-media.has-image::before { display: none; }
.cmp-phone-image {
  width: 100%; height: auto;
  display: block;
  max-height: 600px;
  object-fit: cover;
  animation: cmp-img-in .35s ease-out;
}
@keyframes cmp-img-in {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* Görsel üret/yenile/indir buton barı (overlay - sadece görsel varken) */
.cmp-phone-imgactions {
  display: flex; gap: 6px;
  padding: 8px 10px;
  background: #fafaf7;
  border-bottom: 1px solid #f0f0f0;
}
.cmp-phone-imgactions.overlay {
  position: absolute;
  bottom: 12px; left: 12px; right: 12px;
  background: rgba(31,26,16,.78);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  border-bottom: 0;
  padding: 6px;
  z-index: 2;
}
.cmp-phone-imgactions.overlay .cmp-img-btn.ghost {
  background: rgba(255,255,255,.95);
}

/* Concept kartının içindeki büyük "Bu konsepti görsele dönüştür" butonu */
.cmp-img-btn-big {
  width: 100%;
  margin-top: 14px;
  padding: 12px 16px !important;
  font-size: 13px !important;
  border-radius: 10px;
  position: relative;
  z-index: 2;
}
.cmp-img-btn-big small {
  font-size: 11px !important;
  padding-left: 8px !important;
  margin-left: 6px !important;
}
.cmp-phone-concept { z-index: 1; }
.cmp-phone-concept p { margin-bottom: 0; }
.cmp-img-btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px;
  background: #1a1a17;
  color: #fff;
  border: 0; border-radius: 8px;
  font-family: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.cmp-img-btn:hover:not(:disabled) {
  background: #2a2a25;
}
.cmp-img-btn:disabled { opacity: .8; cursor: wait; }
.cmp-img-btn.loading svg { animation: cmp-spin 1s linear infinite; }
.cmp-img-btn small {
  opacity: .8; font-weight: 500; font-size: 10px;
  padding-left: 4px; border-left: 1px solid rgba(255,255,255,.3); margin-left: 2px;
}
.cmp-img-btn.ghost {
  flex: 0 0 auto;
  background: #fff; color: #1a1a17;
  border: 1px solid #e8e8e3;
}
.cmp-img-btn.ghost:hover { background: #fafaf7; }
.cmp-img-btn.ghost small { color: inherit; border-color: rgba(0,0,0,.1); }

/* Görsel üretim hata kutusu */
.cmp-img-error {
  margin: 12px 0;
  padding: 14px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #7f1d1d;
}
.cmp-img-error strong {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700;
  margin-bottom: 8px;
}
.cmp-img-error strong svg { color: #ef4444; }
.cmp-img-error pre {
  margin: 0 0 8px;
  padding: 8px 10px;
  background: rgba(0,0,0,.04);
  border-radius: 6px;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 11.5px;
  color: #991b1b;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 160px; overflow-y: auto;
}
.cmp-img-error small {
  display: block;
  font-size: 11.5px;
  color: #7f1d1d;
  line-height: 1.5;
}
.cmp-img-error a { color: #1a1a17; font-weight: 600; text-decoration: underline; }

/* Kampanya yazısı overlay modalı */
.cmp-overlay-modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.cmp-overlay-modal-dialog {
  background: #fff;
  border-radius: 16px;
  max-width: 420px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: cmp-modal-in .3s ease-out;
}
@keyframes cmp-modal-in {
  from { opacity: 0; transform: scale(.92) translateY(-8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.cmp-overlay-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 12px;
  border-bottom: 1px solid #f0f0f0;
}
.cmp-overlay-modal-header h3 {
  margin: 0; font-size: 16px; font-weight: 700; color: #1f1a10;
  display: flex; align-items: center; gap: 8px;
}
.cmp-overlay-modal-close {
  background: none; border: none; padding: 4px; cursor: pointer;
  color: #909090; border-radius: 6px;
  transition: all .15s;
}
.cmp-overlay-modal-close:hover { background: #f5f5f5; color: #1f1a10; }
.cmp-overlay-modal-body {
  padding: 20px 24px 24px;
}
.cmp-overlay-modal-body p {
  margin: 0 0 16px; color: #4a4030; line-height: 1.5;
}
.cmp-overlay-input {
  width: 100%;
  padding: 11px 13px;
  font-size: 13px;
  border: 1px solid #e8e8e3;
  border-radius: 8px;
  background: #fafaf7;
  color: #1a1a17;
  font-family: inherit;
  margin-bottom: 6px;
  transition: border-color .15s, box-shadow .15s, background .15s;
  box-sizing: border-box;
}
.cmp-overlay-input:focus {
  outline: none;
  border-color: #1a1a17;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,26,23,.08);
}
.cmp-overlay-input.cmp-shake {
  animation: cmp-shake .4s;
  border-color: #dc2626;
}
@keyframes cmp-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.cmp-overlay-hint {
  display: block;
  font-size: 11px;
  color: #909090;
  margin-bottom: 16px;
}
.cmp-overlay-options {
  display: flex; gap: 12px;
}
.cmp-overlay-options .cmp-btn {
  flex: 1;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.cmp-overlay-options .cmp-btn.primary {
  background: #1a1a17;
  color: #fff;
}
.cmp-overlay-options .cmp-btn.primary:hover {
  background: #2a2a25;
}
.cmp-overlay-options .cmp-btn.ghost {
  background: #fff;
  color: #1a1a17;
  border: 1px solid #e8e8e3;
}
.cmp-overlay-options .cmp-btn.ghost:hover {
  background: #fafaf7;
  border-color: #d8d8d3;
}

.cmp-phone-actions {
  display: flex; gap: 14px;
  padding: 10px 14px;
  font-size: 18px;
}
.cmp-phone-bm { margin-left: auto; }
.cmp-phone-caption {
  padding: 4px 14px 14px;
}
.cmp-phone-caption p { margin: 0; font-size: 12.5px; color: #1f1a10; line-height: 1.5; }
.cmp-phone-caption b { font-weight: 700; }
.cmp-phone-tags {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: 8px;
}
.cmp-phone-tags span {
  font-size: 11px; color: #4a76d2;
}

/* Meta grid (telefonun altında) */
.cmp-meta-grid {
  display: flex; flex-direction: column; gap: 12px;
  color: #1a1a17;
}
.cmp-meta-block {
  background: #fff;
  border: 1px solid #e8e8e3;
  border-radius: 10px;
  padding: 12px 14px;
}
.cmp-meta-block em {
  display: flex; align-items: center; gap: 6px;
  font-style: normal; font-size: 10px; font-weight: 600;
  color: #6a6055; text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 8px;
}
.cmp-meta-block p { margin: 0; font-size: 12.5px; color: #1a1a17; line-height: 1.55; }
.cmp-shots { margin: 0; padding-left: 18px; color: #1a1a17; }
.cmp-shots li { font-size: 12px; line-height: 1.55; margin: 4px 0; }
.cmp-meta-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cmp-pill {
  background: #fff;
  border: 1px solid #e8e8e3;
  border-radius: 8px;
  padding: 7px 11px;
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px;
}
.cmp-pill em {
  font-style: normal; font-weight: 600; color: #6a6055;
}
.cmp-pill span { color: #1a1a17; }
.cmp-alt {
  margin: 6px 0 0; padding: 9px 11px;
  background: #f5f5f0;
  border-radius: 8px;
  font-size: 12px; color: #1a1a17; line-height: 1.5;
  border-left: 2px solid #1a1a17;
}

/* ── STICKY ALT BAR ── */
.cmp-foot {
  position: fixed;
  bottom: 0; left: 232px; right: 0; /* sidebar width offset */
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-top: 1px solid #e8e8e3;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 100;
}
@media (max-width: 980px) {
  .cmp-foot { left: 0; }
}
.cmp-foot-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: #5a5040; font-weight: 500;
}
.cmp-foot-r { display: flex; gap: 10px; }
.cmp-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s;
}
.cmp-btn.ghost {
  background: #fff; color: #1a1a17;
  border-color: #e8e8e3;
}
.cmp-btn.ghost:hover { background: #fafaf7; border-color: #d8d8d3; }
.cmp-btn.primary {
  background: #1a1a17;
  color: #fff;
}
.cmp-btn.primary:hover {
  background: #2a2a25;
}

/* Empty state padding tweak */
.ri-empty.pad { padding: 40px 24px; text-align: center; }
.ri-empty.pad .ri-empty-icon {
  width: 60px; height: 60px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: #f5edf9; color: #6b3f8c; border-radius: 50%;
}
.ri-empty.pad h4 { margin: 0 0 8px; font-size: 15px; color: #1f1a10; font-family: 'Source Serif 4', serif; }
.ri-empty.pad p { margin: 0; font-size: 12.5px; color: #6a6055; line-height: 1.6; }

/* ─── Real post card (backend scraper'dan canlı görsel) ───────────── */
.ri-realpost {
  margin-top: 8px;
  display: block;
  border-radius: 10px; overflow: hidden;
  background: #fff;
  border: 1px solid #ece4d4;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  text-decoration: none; color: inherit;
  transition: transform .15s, box-shadow .15s;
}
.ri-realpost:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(107,63,140,.18);
}
.ri-realpost-h {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px;
  border-bottom: 1px solid #f5edf9;
}
.ri-realpost-h svg { color: #c89bf0; margin-left: auto; flex-shrink: 0; }
.ri-realpost-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #f5e2b6, #c89bf0);
  flex-shrink: 0;
}
.ri-realpost-avatar.fb {
  display: flex; align-items: center; justify-content: center;
  color: #4a2b66; font-weight: 700; font-size: 13px;
}
.ri-realpost-id { min-width: 0; flex: 1; }
.ri-realpost-id b {
  display: block; font-size: 12.5px; font-weight: 600; color: #1f1a10;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ri-realpost-id span {
  font-size: 10px; color: #9a8a6a;
  text-transform: uppercase; letter-spacing: .04em;
}
.ri-realpost-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #faf7ee, #f5edf9);
  overflow: hidden;
}
.ri-realpost-img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.ri-realpost-img-wrap.img-err::after {
  content: '🖼️ Görsel yüklenemedi · Instagram CDN süresi dolmuş olabilir';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #9a8a6a; text-align: center; padding: 12px;
  background: #faf7ee;
}
.ri-realpost-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.ri-realpost-play svg {
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
  background: rgba(0,0,0,.35);
  padding: 12px; border-radius: 50%;
}
.ri-realpost-caption {
  padding: 8px 11px;
  font-size: 11.5px; color: #4a4030; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  border-bottom: 1px solid #f5edf9;
}
.ri-realpost-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 11px;
}
.ri-realpost-stat {
  font-size: 11.5px; color: #6a6055; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ri-realpost-open {
  margin-left: auto;
  font-size: 11px; color: #6b3f8c; font-weight: 600;
}

/* ─── Mock post card (gerçek embed yoksa Instagram tarzı sahte post) ─── */
.ri-mockpost {
  margin-top: 8px;
  border-radius: 10px; overflow: hidden;
  background: #fff;
  border: 1px solid #ece4d4;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  display: flex; flex-direction: column;
}
.ri-mockpost-h {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px;
  border-bottom: 1px solid #f5edf9;
  background: #fff;
}
.ri-mockpost-h svg {
  color: #c89bf0; margin-left: auto; flex-shrink: 0;
}
.ri-mockpost-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #f5e2b6, #c89bf0);
  color: #4a2b66; font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ri-mockpost-id { min-width: 0; flex: 1; }
.ri-mockpost-id b {
  display: block; font-size: 12.5px; font-weight: 600; color: #1f1a10;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ri-mockpost-id span {
  font-size: 10px; color: #9a8a6a;
  text-transform: uppercase; letter-spacing: .04em;
}

/* "Görsel" alanı — temaya göre gradient + dev emoji */
.ri-mockpost-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ri-mockpost-emoji {
  font-size: 72px; line-height: 1;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.15));
  transform: translateY(-6px);
}
.ri-mockpost-tema-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55) 70%);
  color: #fff; font-size: 13px; font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

/* Theme-based gradients */
.ri-mockpost.theme-promo    .ri-mockpost-visual { background: linear-gradient(135deg, #fef0c7, #fdb022); }
.ri-mockpost.theme-launch   .ri-mockpost-visual { background: linear-gradient(135deg, #d1faf3, #14b8a6); }
.ri-mockpost.theme-place    .ri-mockpost-visual { background: linear-gradient(135deg, #e8d4f5, #9b6bd0); }
.ri-mockpost.theme-people   .ri-mockpost-visual { background: linear-gradient(135deg, #fee4e2, #f97066); }
.ri-mockpost.theme-craft    .ri-mockpost-visual { background: linear-gradient(135deg, #f5e2b6, #d97706); }
.ri-mockpost.theme-trend    .ri-mockpost-visual { background: linear-gradient(135deg, #fce7f3, #ec4899); }
.ri-mockpost.theme-sweet    .ri-mockpost-visual { background: linear-gradient(135deg, #fce7f3, #db7f9d); }
.ri-mockpost.theme-coffee   .ri-mockpost-visual { background: linear-gradient(135deg, #e7d5c4, #8b5a3c); }
.ri-mockpost.theme-default  .ri-mockpost-visual { background: linear-gradient(135deg, #faf7ee, #c89bf0); }

.ri-mockpost-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  background: #fff;
}
.ri-mockpost-eng {
  font-size: 11px; font-weight: 600;
}
.ri-mockpost-eng.eng-yuksek { color: #b54708; }
.ri-mockpost-eng.eng-orta   { color: #6a6055; }
.ri-mockpost-eng.eng-dusuk  { color: #9a8a6a; }
.ri-mockpost-link {
  font-size: 11.5px; color: #6b3f8c; text-decoration: none;
  font-weight: 600;
}
.ri-mockpost-link:hover { text-decoration: underline; }

/* CTA banner (postların görselini yüklemek için derin analiz çağrısı) */
.ri-mx-cta-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fef9e8 0%, #fefcff 100%);
  border: 1px solid #f0d68a;
  border-radius: 12px;
  margin-bottom: 14px;
}
.ri-mx-cta-bd {
  display: flex; align-items: flex-start; gap: 12px;
  flex: 1; min-width: 240px;
}
.ri-mx-cta-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, #6b3f8c, #c89bf0);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ri-mx-cta-bd > div > b {
  display: block; font-size: 13.5px; color: #1f1a10;
  margin-bottom: 3px;
}
.ri-mx-cta-bd > div > span {
  display: block; font-size: 12px; color: #6a6055; line-height: 1.5;
}
.ri-mx-cta-bd span b { color: #4a2b66; font-weight: 700; }
.ri-mx-cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #1f1a10; color: #fff; border: none;
  padding: 10px 16px; border-radius: 9px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .15s, transform .12s;
  white-space: nowrap;
}
.ri-mx-cta-btn:hover { background: #4a2b66; transform: translateY(-1px); }
.ri-mx-cta-btn:disabled { opacity: .65; cursor: wait; transform: none; }

/* Arrow */
.ri-pair-arrow {
  display: flex; align-items: center; justify-content: center;
  color: #c89bf0;
}

/* SAĞ: Bizim karşı hamle */
.ri-pair-counter {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 14px;
  background: #fff; border-radius: 9px;
  border: 1px solid #e0c8f0;
  border-left: 4px solid #6b3f8c;
}
.ri-pair-counter.kind-counter      { border-left-color: #c2453d; }
.ri-pair-counter.kind-overlap      { border-left-color: #b88420; }
.ri-pair-counter.kind-differentiate{ border-left-color: #2d5b8e; }
.ri-pair-counter.kind-mirror       { border-left-color: #6b3f8c; }
.ri-pair-counter-h {
  display: flex; flex-direction: column; gap: 3px;
}
.ri-pair-counter-kind {
  font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: #6b3f8c;
}
.ri-pair-counter.kind-counter      .ri-pair-counter-kind { color: #c2453d; }
.ri-pair-counter.kind-overlap      .ri-pair-counter-kind { color: #b88420; }
.ri-pair-counter.kind-differentiate .ri-pair-counter-kind { color: #2d5b8e; }
.ri-pair-counter-h b {
  font-size: 14px; color: #1f1a10; font-weight: 700;
  line-height: 1.3;
  font-family: 'Source Serif 4', 'Inter', system-ui, sans-serif;
}
.ri-pair-counter-angle {
  font-size: 12.5px; color: #4a4030; line-height: 1.5;
}
.ri-pair-counter-grid {
  display: grid; gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  padding: 8px 10px;
  background: #faf7ee; border-radius: 7px;
  border: 1px solid #ece4d4;
}
.ri-pair-counter-grid em {
  font-style: normal; font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  color: #9a8a6a; display: block; margin-bottom: 2px;
}
.ri-pair-counter-grid span {
  font-size: 11.5px; color: #1f1a10; line-height: 1.4;
}
.ri-pair-counter-edge {
  font-size: 11.5px; color: #6a6055; line-height: 1.5;
  padding: 7px 10px;
  background: #f5edf9; border-radius: 6px;
  border-left: 2px solid #c89bf0;
}
.ri-pair-counter-edge b { color: #4a2b66; font-weight: 700; }
.ri-pair-add {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 5px;
  background: #1f1a10; color: #fff; border: none;
  font-size: 11.5px; font-weight: 600;
  padding: 7px 12px; border-radius: 6px; cursor: pointer;
  transition: background .15s;
}
.ri-pair-add:hover { background: #4a2b66; }
.ri-pair-add.done {
  background: #3f7a52; cursor: default;
}

/* Empty state */
.ri-mx-empty {
  text-align: center; padding: 16px;
  font-size: 12.5px; color: #9a8a6a; font-style: italic;
}
.ri-mx-empty.pad { padding: 36px 24px; font-style: normal; }
.ri-mx-empty-icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(135deg, #f5edf9, #e8d4f5);
  color: #6b3f8c;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.ri-mx-empty h4 {
  margin: 0 0 6px; font-size: 16px; color: #1f1a10;
  font-family: 'Source Serif 4', 'Inter', system-ui, sans-serif;
}
.ri-mx-empty p {
  margin: 0 0 14px; font-size: 13px; color: #6a6055; line-height: 1.5;
}

/* Modal foot */
.ri-mx-foot {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding-top: 16px; margin-top: 16px;
  border-top: 1px solid #ece4d4;
}
.ri-mx-bulk {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #6b3f8c, #4a2b66);
  color: #fff; border: none;
  font-size: 13.5px; font-weight: 600;
  padding: 12px 18px; border-radius: 10px; cursor: pointer;
  transition: transform .12s, box-shadow .15s;
}
.ri-mx-bulk:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(107,63,140,.25); }
.ri-mx-bulk.done {
  background: #3f7a52; cursor: default; transform: none; box-shadow: none;
}
.ri-deep-btn.ghost {
  background: transparent; color: #6b3f8c;
  border: 1px solid #c89bf0;
}
.ri-deep-btn.ghost:hover { background: #f5edf9; }

/* Responsive */
@media (max-width: 880px) {
  .ri-kpis { grid-template-columns: repeat(2, 1fr); }
  .ri-mx-stats { grid-template-columns: repeat(2, 1fr); }
  .ri-pair { grid-template-columns: 1fr; }
  .ri-pair-arrow { transform: rotate(90deg); height: 20px; }
  .ri-modal-x { max-height: 96vh; border-radius: 12px; }
  .ri-mx-head { padding: 14px 16px; }
  .ri-mx-body { padding: 14px 16px; }
}
@media (max-width: 520px) {
  .ri-kpis { grid-template-columns: 1fr; }
  .ri-tabs button { padding: 8px 6px; font-size: 12px; }
  .ri-rival-grid { grid-template-columns: 1fr; }
}
