/* Sosyal medya reklamları (Meta) */
.ads-metrics { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ads-metrics .metric-value { font-size: 24px; }

.ads-budget { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; margin-bottom: 18px; }
.ads-budget-text { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; }
.ads-budget-text span { color: var(--muted); }
.ads-budget-track { position: relative; height: 10px; border-radius: 99px; background: #f0f1f6; overflow: hidden; }
.ads-budget-track i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; }
.ads-budget-track .projected { background: #d9d4fb; }
.ads-budget-track .spent { background: var(--purple); }
.ads-budget-track.warn .projected { background: #fbe3b8; }
.ads-budget-track.danger .projected { background: #f8c9c9; }
.ads-budget-track.danger .spent { background: #d04545; }

.ads-chart .chart-column { position: relative; }
.chart-bar.ads-spend, .legend-dot.ads-spend { background: var(--purple); }
.legend-dot.ads-lead { background: var(--green); }
.ads-lead-dot { position: absolute; left: 50%; transform: translateX(-50%); min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px;
  background: var(--green); color: #fff; font: 600 10px/18px 'DM Sans', sans-serif; font-style: normal; text-align: center; box-shadow: 0 0 0 2px #fff; }

.ads-events { display: flex; flex-direction: column; max-height: 320px; overflow: auto; }
.ads-event { display: flex; gap: 12px; padding: 11px 20px; border-top: 1px solid var(--line); font-size: 13.5px; }
.ads-event > span { width: 22px; text-align: center; }
.ads-event b { font-weight: 500; display: block; }
.ads-event small { color: var(--muted); }
.ads-event.budget_block b, .ads-event.budget_pause b, .ads-event.campaign_failed b { color: #b23b3b; }

.ad-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding: 16px 20px 20px; }
.ad-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.ad-card img, .ad-card-noimg { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; background: #f3f4f8; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.ad-card-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.ad-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.ad-card-body p { margin: 0; font-size: 13px; color: #4c5066; white-space: pre-line; }
.ad-card-stats { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; font-weight: 600; }

.ads-wizard-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ads-step { margin: 0 0 14px; font: 700 16px Manrope, sans-serif; }
.ads-preview { position: sticky; top: 18px; align-self: start; display: flex; flex-direction: column; gap: 14px; }
.ad-mock { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; font-size: 13.5px; }
.ad-mock-head { display: flex; gap: 10px; align-items: center; padding: 10px 12px; }
.ad-mock-head small { display: block; color: var(--muted); font-size: 11.5px; }
.ad-mock-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--purple); color: #fff; display: grid; place-items: center; font-weight: 700; }
.ad-mock-text { margin: 0; padding: 0 12px 10px; white-space: pre-line; max-height: 120px; overflow: hidden; }
.ad-mock-image { aspect-ratio: 1 / 1; background: #eef0f6; display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.ad-mock-image img { width: 100%; height: 100%; object-fit: cover; }
.ad-mock-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; background: #f6f7fb; }
.ad-mock-foot small { display: block; color: var(--muted); font-size: 11px; }
.ad-mock-cta { padding: 7px 12px; border-radius: 6px; background: #e4e6eb; font-weight: 600; font-size: 12.5px; white-space: nowrap; }

.ads-subhead { margin: 22px 0 10px; font: 700 14px Manrope, sans-serif; color: var(--ink); }
.ads-sync-info { margin-top: 12px; }
.inline-input { display: flex; gap: 8px; }
.inline-input input { flex: 1; }

.ads-dialog { width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; }
.chip-checks { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.chip-checks.scroll { max-height: 130px; overflow: auto; flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 4px; border: 1px solid #e7e8ef; border-radius: 7px; background: #fff; }
.chip-checks.scroll.tall { max-height: 220px; }
.chip-checks label { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; margin: 0; white-space: nowrap; }
.chip-checks.scroll label { border: 0; border-radius: 6px; padding: 6px 8px; min-height: 32px; }
.chip-checks.scroll label:hover { background: #f5f4fe; }
.chip-checks.scroll label:has(input:checked) { background: #efedfd; }
.chip-checks .chip-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.chip-checks label small { flex: 0 0 auto; color: var(--muted); margin-left: auto; padding-left: 10px; font-weight: 400; font-size: 12px; white-space: nowrap; }
.dialog .chip-checks input[type=checkbox] { flex: 0 0 auto; width: 14px; height: 14px; margin: 0; padding: 0; border-radius: 3px; box-shadow: none; }
#audCompanySearch { margin-bottom: 6px; }
#audCompanySearch + .chip-checks { margin-top: 0; }

.ads-lead-dl { display: grid; grid-template-columns: 170px 1fr; gap: 8px 14px; margin: 0; font-size: 13.5px; }
.ads-lead-dl dt { color: var(--muted); }
.ads-lead-dl dd { margin: 0; word-break: break-word; }

@media (max-width: 1100px) { .ads-preview { position: static; } }
