/* ═══════════════════════════════════════════════════════════
   SEOGUM Pages — v2.0
   Minimal page-specific overrides.
   Only use when a page needs something that doesn't fit
   in components.css or layouts.css.
   ═══════════════════════════════════════════════════════════ */

/* — Provider costs / system status ———————————————————————— */
.sg-cost-panel {
  background: var(--sg-neutral-0);
  border: 1px solid var(--sg-neutral-200);
  border-radius: var(--sg-radius-xl);
  padding: var(--sg-space-5);
  box-shadow: var(--sg-shadow-xs);
}
.sg-cost-panel--spaced {
  margin-top: var(--sg-space-6);
}
.sg-cost-panel--muted {
  background: var(--sg-neutral-50);
}
.sg-cost-panel__title {
  font-size: var(--sg-font-body);
  font-weight: var(--sg-weight-semibold);
  margin: 0 0 var(--sg-space-3);
  color: var(--sg-neutral-900);
}
.sg-cost-panel__sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sg-space-2);
  margin-bottom: var(--sg-space-3);
}
.sg-cost-panel__sec-head .sg-cost-panel__title {
  margin-bottom: 0;
}

/* Servis durumu — tablo dolgusu, açıklama sütunu, alt toplamlar */
.sg-page--system-status .sg-system-status__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sg-page--system-status .sg-system-status__table > tbody > tr > td,
.sg-page--system-status .sg-system-status__table > thead.sg-table__head > tr > th,
.sg-page--system-status .sg-system-status__table > tfoot > tr > th,
.sg-page--system-status .sg-system-status__table > tfoot > tr > td {
  padding: 14px 18px;
  vertical-align: top;
}
.sg-page--system-status .sg-cost-panel .sg-system-status__table-wrap {
  margin-left: 0;
  margin-right: 0;
}
.sg-system-status__desc-sum {
  line-height: 1.45;
  margin-bottom: 4px;
}
.sg-system-status__desc-det {
  font-size: 12px;
  line-height: 1.5;
  max-width: 56ch;
}
.sg-system-status__metric {
  font-size: 13px;
  white-space: nowrap;
}
.sg-system-status__tfoot > tr > th,
.sg-system-status__tfoot > tr > td {
  background: var(--sg-neutral-50);
  border-top: 1px solid var(--sg-neutral-200);
}
.sg-system-status__tfoot > tr:last-child > th:first-child {
  border-bottom-left-radius: var(--sg-radius-lg);
}
.sg-system-status__tfoot > tr:last-child > td:last-child {
  border-bottom-right-radius: var(--sg-radius-lg);
}
.sg-system-status__foot-label {
  font-weight: 600;
  text-align: left;
  vertical-align: middle;
}
.sg-system-status__foot-range {
  font-size: 12px;
  font-weight: 400;
  margin-top: 4px;
}
/* tbody alt köşe radius tfoot varken kaldır */
.sg-page--system-status .sg-system-status__table > tbody > tr:last-child > td:first-child,
.sg-page--system-status .sg-system-status__table > tbody > tr:last-child > td:last-child {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.sg-cost-doc-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: var(--sg-font-caption);
  line-height: 1.55;
  color: var(--sg-neutral-800);
}
.sg-cost-doc-list li {
  margin-bottom: var(--sg-space-2);
}
.sg-cost-doc-list code {
  font-size: 0.92em;
}


/* ═══════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════ */

/* — Demo Mode Banner ——————————————————————————————————————— */
.sg-demo-banner {
  display: flex;
  align-items: center;
  gap: var(--sg-space-2);
  padding: var(--sg-space-2) var(--sg-space-4);
  background: linear-gradient(135deg, var(--sg-warning-50), var(--sg-warning-100));
  border: 1px solid var(--sg-warning-200);
  border-radius: var(--sg-radius-lg);
  margin-bottom: var(--sg-space-4);
  font-size: var(--sg-font-caption);
  font-weight: var(--sg-weight-medium);
  color: var(--sg-warning-800);
}
.sg-demo-banner__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--sg-warning-600);
}
.sg-demo-banner__close {
  margin-left: auto;
  font-weight: var(--sg-weight-semibold);
  color: var(--sg-warning-700);
  text-decoration: none;
  padding: 2px var(--sg-space-2);
  border-radius: var(--sg-radius-sm);
  transition: all var(--sg-transition-fast);
}
.sg-demo-banner__close:hover {
  background: var(--sg-warning-200);
  color: var(--sg-warning-900);
  text-decoration: none;
}

/* — Demo Toggle Button ———————————————————————————————————— */
.sg-demo-toggle.is-active {
  background: var(--sg-warning-50);
  border-color: var(--sg-warning-300);
  color: var(--sg-warning-700);
}
.sg-demo-toggle.is-active:hover {
  background: var(--sg-warning-100);
}

/* — Setup Progress (early-stage guidance) ———————————————— */
.sg-setup {
  background: var(--sg-neutral-0);
  border: 1px solid var(--sg-neutral-200);
  border-radius: var(--sg-radius-xl);
  padding: var(--sg-space-6);
  box-shadow: var(--sg-shadow-xs);
}
.sg-setup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sg-space-4);
}
.sg-setup__title-row {
  display: flex;
  align-items: center;
  gap: var(--sg-space-2);
}
.sg-setup__icon {
  width: 20px;
  height: 20px;
  color: var(--sg-primary-500);
}
.sg-setup__title {
  font-size: var(--sg-font-h3);
  font-weight: var(--sg-weight-semibold);
  color: var(--sg-neutral-800);
  margin: 0;
}
.sg-setup__badge {
  font-size: var(--sg-font-label);
  font-weight: var(--sg-weight-semibold);
  color: var(--sg-primary-600);
  background: var(--sg-primary-50);
  padding: 3px 10px;
  border-radius: 999px;
}
.sg-setup__bar {
  height: 8px;
  background: var(--sg-neutral-100);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: var(--sg-space-5);
}
.sg-setup__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sg-success-400), var(--sg-success-500));
  border-radius: 999px;
  transition: width 0.8s ease-out;
}
.sg-setup__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sg-space-3);
}
.sg-setup__step {
  display: flex;
  align-items: flex-start;
  gap: var(--sg-space-3);
  padding: var(--sg-space-4);
  border-radius: var(--sg-radius-lg);
  border: 1px solid var(--sg-neutral-200);
  background: var(--sg-neutral-50);
  transition: all var(--sg-transition-fast);
}
.sg-setup__step.is-done {
  background: var(--sg-success-50);
  border-color: var(--sg-success-200) !important;
}
.sg-setup__step.is-current {
  background: var(--sg-primary-50);
  border-color: var(--sg-primary-200) !important;
  box-shadow: 0 1px 6px rgba(37, 99, 235, 0.06);
}
.sg-setup__step.is-pending {
  opacity: 0.45;
  border-color: var(--sg-neutral-200);
}
.sg-setup__step-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: var(--sg-weight-bold);
  color: var(--sg-neutral-500);
  background: var(--sg-neutral-200);
  line-height: 0;
  overflow: hidden;
}
.sg-setup__step-num svg {
  display: block;
  flex-shrink: 0;
}
.sg-setup__step.is-done .sg-setup__step-num {
  background: var(--sg-success-500);
  color: var(--sg-neutral-0);
}
.sg-setup__step.is-done .sg-setup__step-num svg {
  width: 14px;
  height: 14px;
}
.sg-setup__step.is-current .sg-setup__step-num {
  background: var(--sg-primary-500);
  color: var(--sg-neutral-0);
}
.sg-setup__step-body {
  flex: 1;
  min-width: 0;
}
.sg-setup__step-title {
  font-size: var(--sg-font-body);
  font-weight: var(--sg-weight-semibold);
  color: var(--sg-neutral-800);
  margin: 0 0 2px;
}
.sg-setup__step.is-done .sg-setup__step-title {
  color: var(--sg-success-700);
}
.sg-setup__step.is-current .sg-setup__step-title {
  color: var(--sg-primary-700);
}
.sg-setup__step-desc {
  font-size: var(--sg-font-caption);
  color: var(--sg-neutral-500);
  margin: 0;
  line-height: 1.4;
}
.sg-setup__step .sg-btn {
  flex-shrink: 0;
  align-self: center;
}

@media (max-width: 767px) {
  .sg-setup__steps {
    grid-template-columns: 1fr;
  }
  .sg-setup {
    padding: var(--sg-space-4);
  }
}

/* — Welcome / Onboarding Section ————————————————————————— */
.sg-welcome {
  margin-bottom: var(--sg-space-8);
}
.sg-welcome__hero {
  text-align: center;
  padding: var(--sg-space-8) var(--sg-space-4) var(--sg-space-6);
}
.sg-welcome__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--sg-space-4);
  background: linear-gradient(135deg, var(--sg-primary-50), var(--sg-primary-100));
  border-radius: var(--sg-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sg-primary-500);
}
.sg-welcome__icon svg {
  width: 32px;
  height: 32px;
}
.sg-welcome__title {
  font-size: var(--sg-font-h1);
  font-weight: var(--sg-weight-bold);
  color: var(--sg-neutral-900);
  margin: 0 0 var(--sg-space-2);
  letter-spacing: var(--sg-tracking-tight);
}
.sg-welcome__desc {
  font-size: var(--sg-font-body);
  color: var(--sg-neutral-500);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Onboarding card */
.sg-onboarding {
  background: var(--sg-neutral-0);
  border: 1px solid var(--sg-neutral-200);
  border-radius: var(--sg-radius-xl);
  box-shadow: var(--sg-shadow-sm);
  overflow: hidden;
  margin-bottom: var(--sg-space-6);
}
.sg-onboarding__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sg-space-4) var(--sg-space-5);
  border-bottom: 1px solid var(--sg-neutral-100);
}
.sg-onboarding__title {
  font-size: var(--sg-font-body);
  font-weight: var(--sg-weight-semibold);
  color: var(--sg-neutral-800);
  margin: 0;
}
.sg-onboarding__badge {
  font-size: var(--sg-font-caption);
  font-weight: var(--sg-weight-bold);
  color: var(--sg-neutral-500);
  background: var(--sg-neutral-100);
  padding: 2px var(--sg-space-3);
  border-radius: var(--sg-radius-full);
}
.sg-onboarding__steps {
  padding: var(--sg-space-2) 0;
}
.sg-onboarding__step {
  display: flex;
  align-items: center;
  gap: var(--sg-space-4);
  padding: var(--sg-space-4) var(--sg-space-5);
  transition: background var(--sg-transition-fast);
}
.sg-onboarding__step:hover {
  background: var(--sg-neutral-50);
}
.sg-onboarding__step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--sg-font-body);
  font-weight: var(--sg-weight-bold);
  flex-shrink: 0;
  background: var(--sg-neutral-100);
  color: var(--sg-neutral-400);
  transition: all var(--sg-transition-fast);
}
.sg-onboarding__step.is-current .sg-onboarding__step-num {
  background: var(--sg-primary-500);
  color: var(--sg-neutral-0);
  box-shadow: 0 2px 8px rgba(28, 130, 255, 0.3);
}
.sg-onboarding__step.is-done .sg-onboarding__step-num {
  background: var(--sg-success-500);
  color: var(--sg-neutral-0);
}
.sg-onboarding__step.is-locked {
  opacity: 0.55;
}
.sg-onboarding__step-body {
  flex: 1;
  min-width: 0;
}
.sg-onboarding__step-title {
  font-size: var(--sg-font-body);
  font-weight: var(--sg-weight-semibold);
  color: var(--sg-neutral-800);
  margin: 0 0 2px;
}
.sg-onboarding__step.is-locked .sg-onboarding__step-title {
  color: var(--sg-neutral-500);
}
.sg-onboarding__step-desc {
  font-size: var(--sg-font-caption);
  color: var(--sg-neutral-500);
  margin: 0;
  line-height: 1.5;
}

/* Welcome benefits row */
.sg-welcome__benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sg-space-4);
}
.sg-welcome__benefit {
  text-align: center;
  padding: var(--sg-space-5);
  background: var(--sg-neutral-0);
  border: 1px solid var(--sg-neutral-200);
  border-radius: var(--sg-radius-lg);
  transition: all var(--sg-transition-fast);
}
.sg-welcome__benefit:hover {
  box-shadow: var(--sg-shadow-sm);
  border-color: var(--sg-neutral-300);
}
.sg-welcome__benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--sg-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sg-space-3);
}
.sg-welcome__benefit-icon svg {
  width: 22px;
  height: 22px;
}
.sg-welcome__benefit-icon--blue    { background: var(--sg-primary-50); color: var(--sg-primary-500); }
.sg-welcome__benefit-icon--violet  { background: var(--sg-ai-50); color: var(--sg-ai-500); }
.sg-welcome__benefit-icon--emerald { background: var(--sg-success-50); color: var(--sg-success-600); }
.sg-welcome__benefit-title {
  font-size: var(--sg-font-body);
  font-weight: var(--sg-weight-semibold);
  color: var(--sg-neutral-800);
  margin: 0 0 var(--sg-space-1);
}
.sg-welcome__benefit-desc {
  font-size: var(--sg-font-caption);
  color: var(--sg-neutral-500);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .sg-welcome__benefits {
    grid-template-columns: 1fr;
  }
  .sg-onboarding__step {
    gap: var(--sg-space-3);
    flex-wrap: wrap;
  }
}

/* ————————————————————————————————————————————————————————— */

/* — Dashboard Flow Container ————————————————————————————— */
.sg-dashboard__flow {
  display: flex;
  flex-direction: column;
  gap: var(--sg-space-8);
}
.sg-dashboard__flow > * {
  margin-bottom: 0;
}
.sg-dashboard__flow .sg-section > :last-child {
  margin-bottom: 0;
}

/* — Dashboard Hero (summary + KPIs + QA) ————————————————— */
.sg-dashboard__hero {
  display: flex;
  flex-direction: column;
  gap: var(--sg-space-5);
}
.sg-dashboard__hero > * {
  margin-bottom: 0;
}

/* — Quick Actions Grid ——————————————————————————————————— */
.sg-qa-grid {
  display: flex;
  gap: var(--sg-space-2);
  flex-wrap: wrap;
}
.sg-qa {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sg-space-2);
  padding: var(--sg-space-2) var(--sg-space-4) var(--sg-space-2) var(--sg-space-2);
  background: var(--sg-neutral-0);
  border: 1px solid var(--sg-neutral-200);
  border-radius: var(--sg-radius-lg);
  text-decoration: none;
  transition: all var(--sg-transition-fast);
}
.sg-qa:hover {
  border-color: var(--sg-neutral-300);
  box-shadow: var(--sg-shadow-sm);
  text-decoration: none;
  transform: translateY(-1px);
}
.sg-qa__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--sg-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  overflow: hidden;
}
.sg-qa__icon svg {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}
.sg-qa__icon--blue    { background: var(--sg-primary-50); color: var(--sg-primary-500); }
.sg-qa__icon--emerald { background: var(--sg-success-50); color: var(--sg-success-600); }
.sg-qa__icon--violet  { background: var(--sg-ai-50); color: var(--sg-ai-500); }
.sg-qa__icon--amber   { background: var(--sg-warning-50); color: var(--sg-warning-600); }
.sg-qa__icon--rose    { background: var(--sg-danger-50); color: var(--sg-danger-500); }
.sg-qa__label {
  font-size: 13px;
  font-weight: var(--sg-weight-medium);
  color: var(--sg-neutral-700);
}
.sg-qa__premium-mark {
  display: none;
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 11px;
  color: var(--sg-neutral-400);
  line-height: 1;
  z-index: 1;
}
.sg-qa--premium-lock {
  opacity: 0.78;
}
.sg-qa--premium-lock .sg-qa__premium-mark {
  display: block;
}

/* — AI prompt pass: mini çubuk + rozet ————————————————————— */
.sg-ai-pass-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  vertical-align: middle;
}
.sg-ai-pass-cell__badge {
  flex-shrink: 0;
}
.sg-ai-passbars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  flex-shrink: 0;
}
.sg-ai-passbars__bar {
  width: 5px;
  min-height: 4px;
  border-radius: 2px 2px 0 0;
  flex-shrink: 0;
}
.sg-ai-passbars--ok .sg-ai-passbars__bar {
  background: var(--sg-success-500);
}
.sg-ai-passbars--fail .sg-ai-passbars__bar {
  background: var(--sg-danger-500);
}
.sg-ai-passbars--muted .sg-ai-passbars__bar {
  background: var(--sg-neutral-300);
}

/* Son 7 gün: eşit yükseklik, gün başına renk */
.sg-ai-passbars--spark7 {
  height: 24px;
  align-items: flex-end;
}
.sg-ai-passbars__bar--day {
  width: 5px;
  height: 22px;
  min-height: 22px;
  border-radius: 2px;
  align-self: flex-end;
}
.sg-ai-passbars__bar--day.sg-ai-passbars__bar--ok {
  background: var(--sg-success-500);
}
.sg-ai-passbars__bar--day.sg-ai-passbars__bar--fail {
  background: var(--sg-danger-500);
}
.sg-ai-passbars__bar--day.sg-ai-passbars__bar--muted {
  background: var(--sg-neutral-300);
}

/* — Trend Minibars ——————————————————————————————————————— */
.sg-minibar-wrap {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
  flex-shrink: 0;
}
.sg-minibar {
  width: 7px;
  border-radius: 3px;
  background: var(--sg-primary-200);
  transition: height 0.6s var(--sg-easing-bounce);
}
.sg-minibar:last-child { background: var(--sg-primary-500); }
.sg-minibar--amber { background: var(--sg-warning-200); }
.sg-minibar--amber:last-child { background: var(--sg-warning-500); }

/* Module row: stat + minibar side by side */
.sg-module__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sg-space-3);
  margin-bottom: var(--sg-space-1);
}

/* — Dashboard Tips Grid ——————————————————————————————————— */
.sg-dash-tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sg-space-3);
}

/* — Site Cards Grid —————————————————————————————————————— */
.sg-site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sg-space-4);
}

.sg-site-card {
  background: var(--sg-neutral-0);
  border: 1px solid var(--sg-neutral-200);
  border-radius: var(--sg-radius-lg);
  padding: var(--sg-space-4) var(--sg-space-5);
  box-shadow: var(--sg-shadow-xs);
  transition: all var(--sg-transition-fast);
  min-width: 0;
}
.sg-site-card:hover {
  box-shadow: var(--sg-shadow-sm);
  border-color: var(--sg-neutral-300);
}
.sg-site-card:only-child {
  max-width: 420px;
}
.sg-site-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sg-space-2);
  margin-bottom: 4px;
}
.sg-site-card__name {
  font-weight: var(--sg-weight-semibold);
  color: var(--sg-neutral-900);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--sg-font-body);
}
.sg-site-card__name:hover {
  color: var(--sg-primary-600);
  text-decoration: none;
}
.sg-site-card__score {
  font-size: var(--sg-font-h3);
  font-weight: var(--sg-weight-bold);
  flex-shrink: 0;
}
.sg-site-card__url {
  font-size: var(--sg-font-caption);
  color: var(--sg-neutral-500);
  margin-bottom: var(--sg-space-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sg-site-card__url a {
  color: inherit;
  text-decoration: none;
}
.sg-site-card__url a:hover {
  color: var(--sg-primary-500);
}
.sg-site-card__stats {
  display: flex;
  gap: var(--sg-space-4);
  font-size: var(--sg-font-caption);
  color: var(--sg-neutral-600);
  padding: var(--sg-space-2) 0;
  border-top: 1px solid var(--sg-neutral-100);
  border-bottom: 1px solid var(--sg-neutral-100);
  margin-bottom: var(--sg-space-3);
}
.sg-site-card__stats strong {
  color: var(--sg-neutral-800);
}
.sg-site-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sg-site-card__actions {
  display: flex;
  gap: var(--sg-space-1);
}
.sg-site-card__actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--sg-radius-md);
  color: var(--sg-neutral-400);
  text-decoration: none;
  transition: all var(--sg-transition-fast);
}
.sg-site-card__actions a svg {
  width: 14px;
  height: 14px;
}
.sg-site-card__actions a:hover {
  background: var(--sg-neutral-100);
  color: var(--sg-neutral-700);
}

/* — Pill Strip (tanıtım siteleri) —————————————————————— */
.sg-pill-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sg-space-2);
}
.sg-pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 var(--sg-space-4);
  font-size: 13px;
  font-weight: var(--sg-weight-medium);
  color: var(--sg-neutral-700);
  background: var(--sg-neutral-0);
  border: 1px solid var(--sg-neutral-200);
  border-radius: var(--sg-radius-full);
  text-decoration: none;
  transition: all var(--sg-transition-fast);
}
.sg-pill:hover {
  border-color: var(--sg-primary-300);
  color: var(--sg-primary-600);
  background: var(--sg-primary-50);
  text-decoration: none;
}

/* — Inventory Grid —————————————————————————————————————— */
.sg-inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

.sg-inv-card {
  background: var(--sg-neutral-0);
  border: 1px solid var(--sg-neutral-100);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.02);
  overflow: hidden;
  min-width: 0;
  transition: box-shadow 0.2s, transform 0.2s;
}
.sg-inv-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.sg-inv-card:only-child {
  max-width: 480px;
}
.sg-inv-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--sg-neutral-50) 0%, var(--sg-neutral-0) 100%);
  border-bottom: 1px solid var(--sg-neutral-100);
}
.sg-inv-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--sg-neutral-800);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sg-inv-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sg-inv-card__fresh {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.sg-inv-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--sg-neutral-400);
  transition: all 0.15s;
}
.sg-inv-card__link:hover {
  color: var(--sg-primary-500);
  background: var(--sg-primary-50, rgba(28,130,255,0.06));
}
.sg-inv-card__link svg { width: 14px; height: 14px; }

.sg-inv-card__body {
  padding: 6px 0;
}

.sg-inv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 20px;
  font-size: 13px;
  transition: background 0.15s;
}
.sg-inv-row:hover { background: var(--sg-neutral-50); }
.sg-inv-row__label {
  font-weight: 500;
  color: var(--sg-neutral-600);
}
.sg-inv-row__right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sg-inv-row__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 6px;
  font-weight: 700;
  font-size: 12px;
  color: var(--sg-neutral-700);
  background: var(--sg-neutral-100);
  border-radius: 6px;
  text-align: center;
}
.sg-inv-row__date {
  color: var(--sg-neutral-400);
  min-width: 70px;
  text-align: right;
  font-size: 12px;
}

/* Stale row indicator */
.sg-inv-row.inv-row--stale .sg-inv-row__label {
  color: var(--sg-danger-500);
}
.sg-inv-row.inv-row--stale .sg-inv-row__count {
  background: rgba(239, 68, 68, 0.08);
  color: var(--sg-danger-500);
}
.sg-inv-row.inv-row--stale .sg-inv-row__date {
  color: var(--sg-danger-400);
}

/* — Dashboard Responsive ————————————————————————————————— */

/* Tablet — tighter flow gap */
@media (max-width: 1024px) {
  .sg-dashboard__flow {
    gap: var(--sg-space-6);
  }
  .sg-site-card:only-child,
  .sg-inv-card:only-child {
    max-width: none;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .sg-dashboard__flow {
    gap: var(--sg-space-5);
  }
  .sg-dashboard__hero {
    gap: var(--sg-space-4);
  }

  .sg-qa-grid {
    gap: var(--sg-space-2);
  }
  .sg-qa {
    padding: var(--sg-space-2) var(--sg-space-3) var(--sg-space-2) var(--sg-space-2);
  }
  .sg-qa__label { font-size: 12px; }

  .sg-site-grid {
    grid-template-columns: 1fr;
  }
  .sg-site-card:only-child {
    max-width: none;
  }
  .sg-inv-grid {
    grid-template-columns: 1fr;
  }
  .sg-inv-card:only-child {
    max-width: none;
  }
  .sg-dash-tips {
    grid-template-columns: 1fr;
  }
  .sg-inv-row__date { display: none; }
}


/* ═══════════════════════════════════════════════════════════
   SEO HEALTH MONITOR
   ═══════════════════════════════════════════════════════════ */

.sg-health-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sg-space-4);
  position: relative;
}
.sg-health-ring__value {
  font-size: var(--sg-font-display);
  font-weight: var(--sg-weight-bold);
  color: var(--sg-neutral-900);
  letter-spacing: var(--sg-tracking-tight);
}
.sg-health-ring__label {
  font-size: var(--sg-font-caption);
  color: var(--sg-neutral-500);
  text-align: center;
  margin-top: var(--sg-space-1);
}

.sg-health-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sg-space-4);
  margin-top: var(--sg-space-6);
}

.sg-health-stat {
  text-align: center;
  padding: var(--sg-space-4);
  background: var(--sg-neutral-50);
  border-radius: var(--sg-radius-lg);
}
.sg-health-stat__value {
  font-size: var(--sg-font-h1);
  font-weight: var(--sg-weight-bold);
  color: var(--sg-neutral-900);
}
.sg-health-stat__label {
  font-size: var(--sg-font-caption);
  color: var(--sg-neutral-500);
  margin-top: 2px;
}


/* ═══════════════════════════════════════════════════════════
   KEYWORDS
   ═══════════════════════════════════════════════════════════ */

.sg-keyword-position {
  display: inline-flex;
  align-items: center;
  gap: var(--sg-space-1);
  font-weight: var(--sg-weight-semibold);
  font-size: var(--sg-font-body);
}
.sg-keyword-position--up   { color: var(--sg-success-600); }
.sg-keyword-position--down { color: var(--sg-danger-600); }
.sg-keyword-position--flat { color: var(--sg-neutral-500); }

.sg-keyword-position svg {
  width: 14px;
  height: 14px;
}


/* ═══════════════════════════════════════════════════════════
   AIO (AI OPTIMIZATION)
   ═══════════════════════════════════════════════════════════ */

.sg-aio-score {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--sg-font-h1);
  font-weight: var(--sg-weight-bold);
  margin: 0 auto;
}


/* ═══════════════════════════════════════════════════════════
   CLIENT SITE DETAIL — Redesigned Dashboard
   ═══════════════════════════════════════════════════════════ */

.sg-page--detail { max-width: 1200px; }

/* — Hero Header ——————————————————————————————————————————— */
.sg-detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sg-space-4);
  margin-bottom: var(--sg-space-5);
  flex-wrap: wrap;
}
.sg-detail-hero__identity {
  display: flex;
  align-items: center;
  gap: var(--sg-space-4);
}
.sg-detail-hero__favicon {
  width: 40px;
  height: 40px;
  border-radius: var(--sg-radius-lg);
  border: 1px solid var(--sg-neutral-200);
  flex-shrink: 0;
  object-fit: contain;
  background: var(--sg-neutral-0);
  padding: 4px;
}
.sg-detail-hero__avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--sg-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}
.sg-detail-hero__title {
  font-size: var(--sg-font-h2);
  font-weight: var(--sg-weight-bold);
  color: var(--sg-neutral-900);
  margin: 0;
  letter-spacing: var(--sg-tracking-tight);
}
.sg-detail-hero__url {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--sg-neutral-500);
  text-decoration: none;
  margin-top: 2px;
}
.sg-detail-hero__url:hover { color: var(--sg-primary-500); }
.sg-detail-hero__actions {
  display: flex;
  gap: var(--sg-space-2);
  flex-wrap: wrap;
  align-items: center;
}

/* — KPI Strip —————————————————————————————————————————————— */
.sg-detail-kpis {
  display: flex;
  gap: var(--sg-space-3);
  margin-bottom: var(--sg-space-5);
  overflow-x: auto;
  padding-bottom: 2px;
}
.sg-detail-kpi {
  display: flex;
  align-items: center;
  gap: var(--sg-space-3);
  padding: var(--sg-space-3) var(--sg-space-4);
  background: var(--sg-neutral-0);
  border: 1px solid var(--sg-neutral-200);
  border-radius: var(--sg-radius-lg);
  flex: 1;
  min-width: 160px;
  box-shadow: var(--sg-shadow-xs);
}
.sg-detail-kpi__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--sg-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sg-detail-kpi__icon svg { width: 18px; height: 18px; }
.sg-detail-kpi__icon--blue    { background: var(--sg-primary-50); color: var(--sg-primary-500); }
.sg-detail-kpi__icon--violet  { background: #f5f3ff; color: #7c3aed; }
.sg-detail-kpi__icon--emerald { background: var(--sg-success-50); color: var(--sg-success-600); }
.sg-detail-kpi__icon--amber   { background: var(--sg-warning-50); color: var(--sg-warning-600); }
.sg-detail-kpi__icon--rose    { background: #fff1f2; color: #e11d48; }
.sg-detail-kpi__body { display: flex; flex-direction: column; min-width: 0; }
.sg-detail-kpi__value {
  font-size: 20px;
  font-weight: 800;
  color: var(--sg-neutral-900);
  line-height: 1.2;
}
.sg-detail-kpi__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--sg-neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* — Detail Grid — (taban + varyantlar tek blokta; alttaki genel kural sütunları ezmesin diye zincirli seçici) */
.sg-page--detail .sg-detail-grid {
  display: grid;
  gap: var(--sg-space-5);
  margin-bottom: var(--sg-space-5);
  align-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* Üst satır: önizleme + SEO sütunu */
.sg-page--detail .sg-detail-grid.sg-detail-grid--top {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}
/* Orta satır: SERP | Domain | sıralamalar */
.sg-page--detail .sg-detail-grid.sg-detail-grid--3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1024px) {
  .sg-page--detail .sg-detail-grid.sg-detail-grid--3col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .sg-page--detail .sg-detail-grid.sg-detail-grid--3col { grid-template-columns: 1fr !important; }
}

/* Alt satır: AIO | Google — eşit yükseklik; sol üstten, sağ içerik kısaysa ortada */
.sg-page--detail .sg-detail-grid.sg-detail-grid--pair {
  align-items: stretch;
}
.sg-page--detail .sg-detail-grid.sg-detail-grid--pair > .sg-form-card:first-child > .sg-form-card__body:last-of-type {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-height: 0;
}
.sg-page--detail .sg-detail-grid.sg-detail-grid--pair > .sg-form-card:last-child > .sg-form-card__body:last-of-type {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
}
.sg-page--detail .sg-detail-grid.sg-detail-grid--3col > .sg-form-card > .sg-form-card__body:last-of-type {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sg-page--detail .sg-detail-grid.sg-detail-grid--3col > .sg-form-card .sg-serp-preview {
  flex: 1 1 auto;
}

.sg-page--detail > .sg-detail-grid:last-of-type {
  margin-bottom: var(--sg-space-2);
}

/* Tanıtım sitesi özeti: alt satır iki kart — ikinci sütunda tablo üstten hizalı */
.sg-page--detail .sg-detail-grid--promo-bottom.sg-detail-grid--pair > .sg-form-card:last-child > .sg-form-card__body:last-of-type {
  justify-content: flex-start;
}
.sg-page--detail .sg-detail-grid--promo-bottom > .sg-form-card:first-child > .sg-detail-promo-serp-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sg-page--detail .sg-detail-grid--promo-bottom .sg-detail-promo-serp-body .sg-serp-preview {
  flex: 1 1 auto;
}

.sg-detail-right-col {
  display: flex;
  flex-direction: column;
  gap: var(--sg-space-4);
  min-height: 0;
  height: 100%;
  align-self: stretch;
}
/* flex gap ile çift boşluk olmasın */
.sg-detail-right-col > .sg-form-card + .sg-form-card {
  margin-top: 0;
}
.sg-detail-right-col .sg-form-card__header--row {
  align-items: center;
}

.sg-detail-seo-score-card {
  flex: 0 0 auto;
}
.sg-detail-seo-score-body {
  text-align: center;
  padding: 12px 16px 14px;
}
.sg-detail-seo-checks-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.sg-detail-seo-checks-card .sg-form-card__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

/* Grid satırlarında kartlar aynı yükseklikte bitsin */
.sg-page--detail .sg-detail-grid > .sg-form-card {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.sg-page--detail .sg-detail-grid > .sg-form-card > .sg-form-card__body:last-of-type {
  flex: 1 1 auto;
  min-height: 0;
}

/* Site önizlemesi: sütun yüksekliğini doldur, görüntü kırpılsın */
.sg-detail-ss-card {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.sg-detail-ss-card .sg-browser-mockup {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sg-detail-ss-card .sg-browser-mockup__body {
  flex: 1 1 auto;
  min-height: 200px;
  max-height: none;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
}
.sg-detail-ss-card .sg-browser-mockup__body > img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  object-position: top center;
}
.sg-detail-ss-card .sg-browser-mockup__empty {
  flex: 1 1 auto;
  min-height: 200px;
}

/* — Header nowrap ——————————————————————————————————————————— */
.sg-form-card__header--nowrap { flex-wrap: nowrap; }

/* Site önizlemesi: başlık solda, tarih + Yenile sağ üstte */
.sg-detail-ss-header.sg-form-card__header--row {
  align-items: center;
}
.sg-detail-ss-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.sg-detail-ss-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

/* — Extra small button ————————————————————————————————————— */
.sg-btn--xs {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
  gap: 4px;
}
.sg-btn--xs .sg-btn__icon { width: 12px; height: 12px; }

/* — Browser Mockup ————————————————————————————————————————— */
.sg-form-card--no-pad .sg-form-card__body { padding: 0; }
.sg-browser-mockup {
  border-radius: 0 0 var(--sg-radius-lg) var(--sg-radius-lg);
  overflow: hidden;
}
.sg-browser-mockup__chrome {
  display: flex;
  align-items: center;
  gap: var(--sg-space-3);
  padding: 8px 12px;
  background: var(--sg-neutral-50);
  border-top: 1px solid var(--sg-neutral-100);
  border-bottom: 1px solid var(--sg-neutral-100);
}
.sg-browser-mockup__dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.sg-browser-mockup__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sg-neutral-200);
}
.sg-browser-mockup__dots span:first-child { background: #ff5f57; }
.sg-browser-mockup__dots span:nth-child(2) { background: #febc2e; }
.sg-browser-mockup__dots span:nth-child(3) { background: #28c840; }
.sg-browser-mockup__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  background: var(--sg-neutral-0);
  border: 1px solid var(--sg-neutral-200);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--sg-neutral-500);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sg-browser-mockup__body {
  background: var(--sg-neutral-100);
  min-height: 160px;
  max-height: 380px;
  overflow: hidden;
  position: relative;
}
.sg-browser-mockup__body img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}
.sg-browser-mockup__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
  min-height: 160px;
}

/* — SEO Check Items ———————————————————————————————————————— */
.sg-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--sg-neutral-100);
}
.sg-check-item:last-child { border-bottom: 0; }
.sg-check-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.sg-check-item__body { display: flex; flex-direction: column; min-width: 0; }
.sg-check-item__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--sg-neutral-800);
}
.sg-check-item__detail {
  font-size: 12px;
  color: var(--sg-neutral-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* — Status Grid (AIO, Google) —————————————————————————————— */
.sg-status-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sg-space-3);
}
.sg-status-item {
  display: flex;
  align-items: center;
  gap: var(--sg-space-2);
  padding: var(--sg-space-2) 0;
}
.sg-status-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sg-status-item__label {
  font-size: 13px;
  color: var(--sg-neutral-600);
  min-width: 100px;
}
.sg-status-item__value {
  font-size: 13px;
  font-weight: 600;
}

/* — SERP Preview Enhanced —————————————————————————————————— */
.sg-serp-preview__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #4d5156;
  margin-bottom: 4px;
}

/* — Compact Table ——————————————————————————————————————————— */
.sg-table--compact td { padding: 8px 16px; font-size: 13px; }
.sg-table--compact th { padding: 8px 16px; font-size: 12px; }
.sg-table__label-cell {
  font-weight: 600;
  width: 140px;
  color: var(--sg-neutral-600);
  white-space: nowrap;
}

/* — Responsive ————————————————————————————————————————————— */
@media (max-width: 768px) {
  .sg-detail-hero {
    flex-direction: column;
  }
  .sg-detail-hero__actions {
    width: 100%;
  }
  .sg-detail-kpis {
    flex-wrap: wrap;
  }
  .sg-detail-kpi {
    min-width: calc(50% - 8px);
    flex: none;
  }
  .sg-page--detail .sg-detail-grid {
    grid-template-columns: 1fr !important;
  }
  .sg-browser-mockup__body {
    max-height: 240px;
  }
  .sg-detail-ss-card .sg-browser-mockup__body {
    max-height: min(52vh, 360px);
  }
}


/* ═══════════════════════════════════════════════════════════
   SIGN IN
   ═══════════════════════════════════════════════════════════ */

.sg-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--sg-neutral-50);
}
.sg-login__card {
  width: 100%;
  max-width: 380px;
  background: var(--sg-neutral-0);
  border-radius: var(--sg-radius-xl);
  box-shadow: var(--sg-shadow-lg);
  padding: var(--sg-space-10);
}
.sg-login__logo {
  display: block;
  height: 32px;
  margin: 0 auto var(--sg-space-6);
}

/* ========= AIO Page ========= */
.sg-aio-grid { display: grid; grid-template-columns: 300px 1fr; gap: var(--sg-space-5); margin-bottom: var(--sg-space-5); }
@media (max-width: 768px) { .sg-aio-grid { grid-template-columns: 1fr; } }
.sg-aio-features { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.sg-aio-features__item { border-radius: var(--sg-radius-lg); padding: 16px 20px; width: 180px; text-align: center; }
.sg-aio-features__item strong { display: block; font-size: 13px; margin-top: 8px; }
.sg-aio-features__item small { display: block; font-size: 11px; color: var(--sg-neutral-500); margin-top: 4px; }
.sg-aio-features__item--green { background: var(--sg-success-50, #ecfdf5); color: var(--sg-success-700); }
.sg-aio-features__item--blue { background: var(--sg-primary-50, #eff6ff); color: var(--sg-primary-700); }
.sg-aio-features__item--purple { background: #faf5ff; color: #6b21a8; }
.sg-aio-note { margin-top: 16px; padding: 12px; background: var(--sg-neutral-50); border-radius: var(--sg-radius-md); font-size: 12px; color: var(--sg-neutral-500); }
.sg-aio-bot-row { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--sg-neutral-100); }
.sg-aio-bot-row__label { flex: 1; margin: 0; font-weight: 500; font-size: 14px; color: var(--sg-neutral-800); cursor: pointer; }
.sg-aio-bot-row__code { font-size: 12px; background: var(--sg-neutral-50); padding: 2px 6px; border-radius: var(--sg-radius-sm); margin-right: 6px; }
.sg-aio-bot-row__desc { color: var(--sg-neutral-500); font-size: 12px; }
.sg-aio-actions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.sg-aio-action { border-radius: var(--sg-radius-lg); padding: 16px; border: 1px solid transparent; }
.sg-aio-action__title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.sg-aio-action__desc { font-size: 12px; color: var(--sg-neutral-600); margin: 0 0 10px; line-height: 1.6; }
.sg-aio-action--green { background: var(--sg-success-50, #ecfdf5); border-color: #bbf7d0; }
.sg-aio-action--green .sg-aio-action__title { color: #166534; }
.sg-aio-action--blue { background: var(--sg-primary-50, #eff6ff); border-color: #bfdbfe; }
.sg-aio-action--blue .sg-aio-action__title { color: #1e40af; }
.sg-aio-action--purple { background: #faf5ff; border-color: #e9d5ff; }
.sg-aio-action--purple .sg-aio-action__title { color: #6b21a8; }
.sg-aio-action--orange { background: #fff7ed; border-color: #fed7aa; }
.sg-aio-action--orange .sg-aio-action__title { color: #9a3412; }
.sg-aio-action--red { background: #fef2f2; border-color: #fecaca; }
.sg-aio-action--red .sg-aio-action__title { color: #991b1b; }
.sg-aio-action--gray { background: var(--sg-neutral-50); border-color: var(--sg-neutral-200); }
.sg-aio-action--gray .sg-aio-action__title { color: var(--sg-neutral-700); }
.sg-aio-check-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--sg-neutral-100); }
.sg-aio-check-row:last-child { border-bottom: 0; }
.sg-aio-check-row span { font-size: 14px; }

/* Score ring */
.sg-score-ring { position: relative; width: 140px; height: 140px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.sg-score-ring__inner { width: 110px; height: 110px; border-radius: 50%; background: var(--sg-neutral-0); display: flex; align-items: center; justify-content: center; flex-direction: column; }
.sg-score-ring__num { font-size: 36px; font-weight: 800; color: var(--sg-neutral-400); }
.sg-score-ring__label { font-size: 11px; color: var(--sg-neutral-400); }
.sg-score-ring--sm { width: 100px; height: 100px; margin-bottom: 12px; }
.sg-score-ring__inner--sm { width: 76px; height: 76px; }
.sg-code-block { background: var(--sg-neutral-50); border: 1px solid var(--sg-neutral-200); border-radius: var(--sg-radius-md); padding: 16px; font-size: 13px; max-height: 400px; overflow: auto; white-space: pre-wrap; word-break: break-word; color: var(--sg-neutral-700); }
.sg-toggle { width: 18px; height: 18px; cursor: pointer; accent-color: var(--sg-primary-500); }

/* SEO Health KPI grid */
.sg-kpi-grid--4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sg-space-4); }
@media (max-width: 768px) { .sg-kpi-grid--4 { grid-template-columns: repeat(2, 1fr); } }
.sg-kpi { background: var(--sg-neutral-0); border-radius: var(--sg-radius-lg); padding: var(--sg-space-5); text-align: center; box-shadow: var(--sg-shadow-xs); border: 1px solid var(--sg-neutral-100); }
.sg-kpi__value { font-size: 32px; font-weight: 800; margin-bottom: 4px; }
.sg-kpi__label { font-size: 13px; font-weight: 600; color: var(--sg-neutral-600); }
.sg-kpi__sub { font-size: 12px; color: var(--sg-neutral-400); margin-top: 4px; }

/* SERP preview */
.sg-serp-preview { border: 1px solid var(--sg-neutral-200); border-radius: var(--sg-radius-md); padding: 16px; background: var(--sg-neutral-50); max-width: 600px; font-family: Arial, sans-serif; }
.sg-serp-preview__title { color: #1a0dab; font-size: 18px; line-height: 1.3; }
.sg-serp-preview__url { color: #006621; font-size: 14px; margin-top: 2px; }
.sg-serp-preview__desc { color: #545454; font-size: 14px; line-height: 1.4; margin-top: 4px; }

/* Bootstrap 3 confirm modal — JS targets .modal-title / .modal-body / .btn-*; sg tokens for visuals */
#confirmModal .modal-content {
  border: none;
  border-radius: var(--sg-radius-lg);
  box-shadow: var(--sg-shadow-dropdown);
  overflow: hidden;
}
#confirmModal .modal-header {
  padding: var(--sg-space-5) var(--sg-space-6);
  border-bottom: 1px solid var(--sg-neutral-100);
}
#confirmModal .modal-title {
  margin: 0;
  font-size: var(--sg-font-h3);
  font-weight: var(--sg-weight-semibold);
  color: var(--sg-neutral-800);
}
#confirmModal .modal-body {
  padding: var(--sg-space-6);
  font-size: var(--sg-font-body);
  color: var(--sg-neutral-700);
  line-height: var(--sg-leading-normal);
}
#confirmModal .modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sg-space-3);
  padding: var(--sg-space-4) var(--sg-space-6);
  border-top: 1px solid var(--sg-neutral-200);
  background: var(--sg-neutral-50);
}
#confirmModal .modal-footer .pull-left {
  order: -1;
  margin-right: auto;
}
#confirmModal .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sg-space-2);
  min-height: 40px;
  padding: 0 var(--sg-space-5);
  font-family: var(--sg-font-family);
  font-size: var(--sg-font-body);
  font-weight: var(--sg-weight-medium);
  border-radius: var(--sg-radius-md);
  transition:
    background var(--sg-transition-fast),
    border-color var(--sg-transition-fast),
    color var(--sg-transition-fast),
    box-shadow var(--sg-transition-fast),
    transform var(--sg-transition-fast);
}
#confirmModal .btn-default {
  color: var(--sg-neutral-700);
  background: var(--sg-neutral-0);
  border: 1px solid var(--sg-neutral-300);
}
#confirmModal .btn-default:hover {
  background: var(--sg-neutral-50);
  border-color: var(--sg-neutral-400);
  color: var(--sg-neutral-800);
}
#confirmModal .btn-primary {
  color: var(--sg-neutral-0);
  background: var(--sg-primary-600);
  border-color: transparent;
  box-shadow: var(--sg-shadow-btn-primary);
}
#confirmModal .btn-primary:hover {
  background: var(--sg-primary-700);
  box-shadow: var(--sg-shadow-btn-primary-hover);
  color: var(--sg-neutral-0);
}
#confirmModal .btn-success {
  color: var(--sg-neutral-0);
  background: var(--sg-success-600);
  border-color: transparent;
}
#confirmModal .btn-success:hover {
  background: var(--sg-success-700);
  color: var(--sg-neutral-0);
}
#confirmModal .btn-danger {
  color: var(--sg-neutral-0);
  background: var(--sg-danger-600);
  border-color: transparent;
}
#confirmModal .btn-danger:hover {
  background: var(--sg-danger-700);
  color: var(--sg-neutral-0);
}
#confirmModal .btn-warning {
  color: var(--sg-neutral-900);
  background: var(--sg-warning-500);
  border-color: transparent;
}
#confirmModal .btn-info {
  color: var(--sg-neutral-0);
  background: var(--sg-primary-600);
  border-color: transparent;
}

/* ═══════════════════════════════════════════════════════════
   HESAP AYARLARI — marka yükleme
   ═══════════════════════════════════════════════════════════ */

.sg-settings-brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sg-space-6);
  margin-bottom: var(--sg-space-2);
}

@media (max-width: 767px) {
  .sg-settings-brand-grid {
    grid-template-columns: 1fr;
  }
}

.sg-brand-tile {
  position: relative;
  padding: var(--sg-space-5);
  border-radius: var(--sg-radius-lg);
  border: 1px solid var(--sg-neutral-200);
  background: var(--sg-neutral-0);
  box-shadow: var(--sg-shadow-xs);
}

.sg-brand-tile__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sg-space-2);
  font-size: var(--sg-font-body);
  font-weight: var(--sg-weight-semibold);
  color: var(--sg-neutral-800);
  margin-bottom: var(--sg-space-4);
}

.sg-brand-tile__label svg {
  width: 18px;
  height: 18px;
  color: var(--sg-primary-500);
  flex-shrink: 0;
}

.sg-brand-tile__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: var(--sg-space-5);
  margin-bottom: var(--sg-space-4);
  border-radius: var(--sg-radius-md);
  background: var(--sg-neutral-50);
  border: 1px dashed var(--sg-neutral-200);
}

.sg-brand-tile__preview img {
  max-height: 56px;
  max-width: 100%;
  object-fit: contain;
}

.sg-brand-tile__preview--favicon {
  min-height: 96px;
}

.sg-brand-tile__preview--favicon img {
  max-height: 48px;
  max-width: 48px;
}

.sg-brand-tile__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sg-space-2);
}

.sg-brand-tile__file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sg-page--settings .sg-form-card {
  margin-bottom: var(--sg-space-6);
}

.sg-page--settings .sg-form-card:last-child {
  margin-bottom: 0;
}

/* Hesap: şifre değiştir — dar sütun; göz ikonu için sağ iç boşluk (signin.css auth’a özel) */
.sg-settings-account-pw-stack {
  max-width: min(400px, 100%);
}

.sg-page--settings .sg-settings-account-pw-stack .sg-password-wrap .sg-input {
  padding-right: 48px;
  box-sizing: border-box;
}

.sg-settings-verify-section .sg-form-card__body {
  padding-top: var(--sg-space-2);
}

.sg-settings-verify-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sg-space-4);
  align-items: stretch;
}

@media (max-width: 720px) {
  .sg-settings-verify-grid {
    grid-template-columns: 1fr;
  }
}

.sg-settings-verify-card {
  border-radius: 12px;
  padding: var(--sg-space-5);
  border: 1px solid var(--sg-neutral-200);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sg-space-4);
  min-height: 148px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.sg-settings-verify-card--ok {
  border-color: var(--sg-success-200, #bbf7d0);
  background: linear-gradient(145deg, rgba(240, 253, 244, 0.85) 0%, #fff 55%);
  box-shadow: 0 1px 0 rgba(16, 185, 129, 0.12);
}

.sg-settings-verify-card--pending {
  border-color: var(--sg-warning-200, #fde68a);
  background: linear-gradient(145deg, rgba(255, 251, 235, 0.95) 0%, #fff 55%);
  box-shadow: 0 1px 0 rgba(245, 158, 11, 0.12);
}

.sg-settings-verify-card__top {
  display: flex;
  gap: var(--sg-space-4);
  align-items: flex-start;
}

.sg-settings-verify-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  color: var(--sg-primary-600, #2563eb);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.sg-settings-verify-card__icon svg {
  width: 22px;
  height: 22px;
}

.sg-settings-verify-card--pending .sg-settings-verify-card__icon {
  color: var(--sg-warning-700, #b45309);
}

.sg-settings-verify-card--ok .sg-settings-verify-card__icon {
  color: var(--sg-success-700, #047857);
}

.sg-settings-verify-card__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--sg-neutral-900);
  letter-spacing: -0.01em;
}

.sg-settings-verify-card__hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--sg-neutral-600);
}

.sg-settings-verify-card__foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.sg-settings-verify-card__badge {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
}

.sg-settings-verify-cta {
  margin-top: var(--sg-space-5);
  padding-top: var(--sg-space-4);
  border-top: 1px solid var(--sg-neutral-200);
}

.sg-settings-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sg-space-4);
  align-items: stretch;
  margin-top: var(--sg-space-2);
}

@media (max-width: 960px) {
  .sg-settings-quick-grid {
    grid-template-columns: 1fr;
  }
}

.sg-settings-quick-card {
  display: flex;
  gap: var(--sg-space-4);
  align-items: flex-start;
  padding: var(--sg-space-5);
  border-radius: 12px;
  border: 1px solid var(--sg-neutral-200);
  background: #fff;
  text-decoration: none;
  color: inherit;
  min-height: 112px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sg-settings-quick-card:hover {
  border-color: var(--sg-primary-300, #93c5fd);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.sg-settings-quick-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sg-neutral-50, #f9fafb);
  color: var(--sg-primary-600, #2563eb);
}

.sg-settings-quick-card__icon svg {
  width: 20px;
  height: 20px;
}

.sg-settings-quick-card__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--sg-neutral-900);
}

.sg-settings-quick-card__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--sg-neutral-600);
}

/* Doğrulama sihirbazı (modal hissi) */
.sg-verify-wizard-page {
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(37, 99, 235, 0.06), transparent 55%),
    linear-gradient(180deg, var(--sg-neutral-100, #f3f4f6) 0%, var(--sg-neutral-50, #fafafa) 100%);
}

.sg-verify-wizard-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sg-space-6) var(--sg-space-4);
}

.sg-verify-wizard-card {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.sg-verify-wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--sg-space-4);
  font-size: 13px;
}

.sg-otp-wrap {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  max-width: 100%;
}

.sg-otp-wrap .sg-otp-cell {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  padding-left: 4px;
  padding-right: 4px;
}

@media (max-width: 420px) {
  .sg-otp-wrap {
    gap: 6px;
  }
  .sg-otp-wrap .sg-otp-cell {
    font-size: 16px;
  }
}

/* Admin — kullanıcı özet raporu */
.sg-user-report .sg-table-wrap {
  overflow-x: auto;
}

.sg-user-report__table th,
.sg-user-report__table td {
  padding: var(--sg-space-2) var(--sg-space-3);
  font-size: 13px;
  vertical-align: top;
}

.sg-user-report__pay-yes {
  color: var(--sg-success-700);
  font-weight: 500;
}

.sg-user-report__hint {
  display: block;
  font-size: 11px;
  color: var(--sg-neutral-500);
  font-weight: 400;
  margin-top: 2px;
}

/* Yönetim özeti: 7 KPI — 1. satır 4 eşit; 2. satır 3 eşit (12 kolon grid) */
.sg-user-report__kpi {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--sg-space-4);
  margin-bottom: var(--sg-space-6);
  align-items: stretch;
}
.sg-user-report__kpi .sg-kpi-card {
  min-width: 0;
  grid-column: span 3;
}
.sg-user-report__kpi .sg-kpi-card:nth-child(n+5) {
  grid-column: span 4;
}
@media (max-width: 1100px) {
  .sg-user-report__kpi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sg-user-report__kpi .sg-kpi-card,
  .sg-user-report__kpi .sg-kpi-card:nth-child(n+5) {
    grid-column: span 1;
  }
}
@media (max-width: 520px) {
  .sg-user-report__kpi {
    grid-template-columns: 1fr;
  }
}

.sg-user-report__quick {
  margin-bottom: var(--sg-space-6);
}

.sg-user-report__quick .sg-form-card__header {
  padding-bottom: var(--sg-space-2);
}

.sg-user-report__quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sg-space-2);
  align-items: center;
}

/* — AI Promptları ——————————————————————————————————————————— */
.sg-page--ai-prompts .sg-page-header__title {
  background: linear-gradient(135deg, var(--sg-neutral-900) 0%, #6366f1 45%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sg-page--ai-prompts .sg-toolbar {
  border-radius: var(--sg-radius-lg);
  border: 1px solid rgba(99, 102, 241, 0.18);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.04), rgba(255, 255, 255, 0.6));
}
.sg-form-card--ai-openai {
  border-color: rgba(99, 102, 241, 0.22);
}
.sg-form-card--ai-openai .sg-form-card__header {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.06), transparent);
}
