/* ====================================================
   Dashboard + Site pages — shared styles
   ==================================================== */

.dash-page { min-height: 100vh; background: var(--off-white); }
.dash-main { max-width: 900px; margin: 0 auto; padding: 104px 24px 60px; }

/* ── Header card ─────────────────────────────────────────── */
.dash-header { background: var(--white); border: 1px solid #E8ECF8; border-radius: 20px; padding: 28px 32px; margin-bottom: 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.dash-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--blue-600); color: var(--white); font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-header-info { flex: 1; min-width: 160px; }
.dash-greeting { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 22px; font-weight: 800; color: var(--gray-900); letter-spacing: -0.02em; margin-bottom: 2px; }
.dash-plan { display: inline-flex; align-items: center; gap: 5px; background: var(--blue-50); color: var(--blue-600); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; letter-spacing: 0.04em; }
.dash-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.dash-stat { text-align: right; }
.dash-stat-num { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 24px; font-weight: 800; color: var(--gray-900); line-height: 1; }
.dash-stat-label { font-size: 11px; color: var(--gray-500); margin-top: 2px; font-weight: 500; }
.dash-new-btn { margin-left: auto; }

/* ── Section headings ────────────────────────────────────── */
.dash-section-head { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 14px; }
.dash-section-title { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 17px; font-weight: 800; color: var(--gray-900); letter-spacing: -0.01em; }

/* ── Score trend chart ───────────────────────────────────── */
.dash-trend { background: var(--white); border: 1px solid #E8ECF8; border-radius: 16px; padding: 20px 24px; margin-bottom: 20px; }
.dash-trend-title { font-size: 13px; font-weight: 700; color: var(--gray-500); margin-bottom: 12px; }
.dash-trend-url { font-size: 12px; color: var(--gray-400); font-weight: 500; word-break: break-all; margin-bottom: 10px; }
.dash-trend-legend { display: flex; gap: 14px; margin-top: 10px; }
.dash-trend-legend span { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--gray-500); }
.dash-trend-legend span::before { content: ''; display: inline-block; width: 16px; height: 3px; border-radius: 2px; }
.dash-trend-legend .seo-line::before { background: var(--blue-600); }
.dash-trend-legend .ai-line::before  { background: var(--green-500); }

/* ── Audit history list ──────────────────────────────────── */
.dash-history-list { display: flex; flex-direction: column; gap: 10px; }
.dash-audit-card { background: var(--white); border: 1px solid #E8ECF8; border-radius: 14px; padding: 16px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; transition: box-shadow var(--transition-fast); }
.dash-audit-card:hover { box-shadow: 0 4px 20px rgba(37,99,235,0.08); }
.dash-audit-info { flex: 1; min-width: 140px; }
.dash-audit-url { font-size: 14px; font-weight: 700; color: var(--gray-900); word-break: break-all; margin-bottom: 3px; }
.dash-audit-date { font-size: 12px; color: var(--gray-400); font-weight: 500; }
.dash-audit-scores { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-score-chip { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.chip-seo { background: var(--blue-50); color: var(--blue-600); }
.chip-ai  { background: var(--green-50); color: var(--green-600); }
.chip-na  { background: var(--gray-100); color: var(--gray-400); }
.dash-audit-actions { display: flex; gap: 8px; align-items: center; }
.dash-btn-view { font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 100px; background: var(--blue-50); color: var(--blue-600); border: none; cursor: pointer; text-decoration: none; display: inline-block; transition: background var(--transition-fast); }
.dash-btn-view:hover { background: var(--blue-100); }
.dash-btn-delete { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 100px; background: none; color: var(--gray-400); border: 1px solid var(--gray-200); cursor: pointer; transition: all var(--transition-fast); }
.dash-btn-delete:hover { color: var(--red-600); border-color: #FCA5A5; background: var(--red-50); }
.dash-delete-confirm { font-size: 12px; display: flex; gap: 8px; align-items: center; }
.dash-delete-yes { font-size: 12px; font-weight: 700; color: var(--red-600); background: var(--red-50); border: 1px solid #FCA5A5; border-radius: 100px; padding: 5px 12px; cursor: pointer; }
.dash-delete-no  { font-size: 12px; font-weight: 600; color: var(--gray-500); background: none; border: none; cursor: pointer; }

.dash-empty { text-align: center; padding: 48px 20px; color: var(--gray-400); }
.dash-empty p { margin-bottom: 16px; font-size: 15px; }
.dash-load-more { display: block; width: 100%; margin-top: 14px; padding: 12px; background: var(--white); border: 1px solid #E8ECF8; border-radius: 100px; font-size: 14px; font-weight: 600; color: var(--blue-600); cursor: pointer; transition: background var(--transition-fast); }
.dash-load-more:hover { background: var(--blue-50); }
.dash-load-more:disabled { color: var(--gray-400); cursor: default; }

/* ── Settings ────────────────────────────────────────────── */
.dash-settings { background: var(--white); border: 1px solid #E8ECF8; border-radius: 20px; padding: 28px 32px; }
.dash-settings-group { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--gray-100); }
.dash-settings-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.dash-settings-label { font-size: 13px; font-weight: 700; color: var(--gray-700); margin-bottom: 8px; display: block; }
.dash-settings-input { background: var(--off-white); border: 1.5px solid var(--gray-200); color: var(--gray-900); font-family: 'Inter', sans-serif; font-size: 14px; padding: 10px 14px; border-radius: 10px; width: 100%; outline: none; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); box-sizing: border-box; margin-bottom: 10px; }
.dash-settings-input:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); background: var(--white); }
.dash-settings-save { font-size: 14px; font-weight: 600; padding: 9px 22px; border-radius: 100px; }
.dash-settings-msg { font-size: 13px; margin-top: 8px; display: none; }
.dash-settings-ok  { color: var(--green-600); }
.dash-settings-err { color: var(--red-600); }

/* ── Danger zone ─────────────────────────────────────────── */
.dash-danger { background: #FFF5F5; border: 1px solid #FED7D7; border-radius: 14px; padding: 20px 24px; }
.dash-danger-title { font-size: 15px; font-weight: 800; color: var(--red-600); margin-bottom: 6px; }
.dash-danger-desc { font-size: 13px; color: #B91C1C; margin-bottom: 14px; }
.dash-danger-input { background: var(--white); border: 1.5px solid #FCA5A5; color: var(--gray-900); font-family: 'Inter', sans-serif; font-size: 14px; padding: 10px 14px; border-radius: 10px; width: 100%; outline: none; box-sizing: border-box; margin-bottom: 10px; }
.dash-danger-btn { font-size: 14px; font-weight: 700; padding: 9px 22px; border-radius: 100px; background: var(--red-600); color: var(--white); border: none; cursor: pointer; opacity: 0.5; transition: opacity var(--transition-fast); }
.dash-danger-btn:not(:disabled) { opacity: 1; }
.dash-danger-msg { font-size: 13px; color: var(--red-600); margin-top: 8px; display: none; }

/* ── Tabs ────────────────────────────────────────────────── */
.dash-tabs { display: flex; gap: 4px; background: var(--gray-100); border-radius: 12px; padding: 4px; margin-bottom: 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tab { flex: 1; min-width: 0; white-space: nowrap; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 9px; border: none; cursor: pointer; background: none; color: var(--gray-500); transition: all var(--transition-fast); }
.dash-tab.active { background: var(--white); color: var(--gray-900); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.dash-tab-soon { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: #EFF6FF; color: #2563EB; border-radius: 4px; padding: 1px 5px; margin-left: 5px; vertical-align: middle; position: relative; top: -1px; }
@media (max-width: 600px) {
  .dash-tab { padding: 8px 9px; font-size: 12.5px; }
  .dash-tab-soon { display: none; }
}

/* ── Content coming soon panel ───────────────────────────── */
.content-coming-soon { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px 24px 48px; max-width: 520px; margin: 0 auto; }
.content-cs-icon { width: 64px; height: 64px; background: #EFF6FF; border-radius: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.content-cs-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: #EFF6FF; color: #2563EB; border-radius: 100px; padding: 4px 12px; margin-bottom: 16px; }
.content-cs-title { font-size: 24px; font-weight: 800; color: var(--gray-900); margin: 0 0 12px; }
.content-cs-desc { font-size: 15px; line-height: 1.65; color: var(--gray-500); margin: 0 0 32px; }
.content-cs-features { display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: left; }
.content-cs-feature { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--gray-700); }

/* ── Loading / skeleton ──────────────────────────────────── */
.dash-spinner { text-align: center; padding: 40px; color: var(--gray-400); font-size: 14px; }
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
.skel { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; border-radius: 8px; }
.skel-line { height: 14px; margin-bottom: 10px; }
.skel-card { height: 100px; border-radius: 14px; margin-bottom: 10px; }

/* ── Score dials ─────────────────────────────────────────── */
.score-dials { display: flex; gap: 24px; flex-wrap: wrap; margin: 16px 0 4px; align-items: flex-start; }
.score-dial  { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.score-ring { transition: stroke-dasharray 0.9s cubic-bezier(0.23, 1, 0.32, 1); }
.dial-label  { font-size: 12px; font-weight: 700; color: var(--gray-500); text-align: center; }
.issues-remaining { display: inline-flex; align-items: center; gap: 6px; background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 100px; padding: 5px 14px; font-size: 13px; font-weight: 700; color: #C2410C; }

/* ── Diff banners ────────────────────────────────────────── */
.diff-banner { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 14px 0 6px; }
.diff-chip { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 100px; }
.diff-chip-new   { background: var(--red-50); color: var(--red-600); }
.diff-chip-fixed { background: var(--green-50); color: var(--green-600); }
.diff-toggle { font-size: 12px; color: var(--blue-600); background: none; border: none; cursor: pointer; font-weight: 600; padding: 0; }
.diff-list { background: var(--off-white); border: 1px solid #E8ECF8; border-radius: 12px; padding: 12px 16px; margin-top: 6px; display: none; font-size: 13px; line-height: 1.7; }
.diff-list.open { display: block; }

/* ── Site switcher ───────────────────────────────────────── */
.site-switcher { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.site-pill { font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 100px; border: 1.5px solid var(--gray-200); background: var(--white); color: var(--gray-500); cursor: pointer; transition: all var(--transition-fast); }
.site-pill.active { background: var(--blue-600); color: var(--white); border-color: var(--blue-600); }

/* ── Sites grid / cards ──────────────────────────────────── */
.sites-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.site-card { background: var(--white); border: 1px solid #E8ECF8; border-radius: 16px; padding: 20px; transition: box-shadow var(--transition-fast); }
.site-card:hover { box-shadow: 0 4px 20px rgba(37,99,235,0.08); }
.site-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.site-favicon { width: 24px; height: 24px; border-radius: 4px; flex-shrink: 0; }
.site-domain { font-size: 14px; font-weight: 700; color: var(--gray-900); word-break: break-all; flex: 1; }
.site-scores { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.site-trend-badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 100px; flex-shrink: 0; }
.trend-up   { background: var(--green-50); color: var(--green-600); }
.trend-down { background: var(--red-50); color: var(--red-600); }
.trend-flat { background: var(--off-white); color: var(--gray-500); }
.site-progress { height: 4px; background: var(--gray-100); border-radius: 100px; overflow: hidden; margin: 8px 0; }
.site-progress-fill { height: 100%; background: var(--green-500); border-radius: 100px; transition: width 0.3s; }
.site-progress-label { font-size: 11px; color: var(--gray-400); margin-bottom: 12px; }
.site-monitoring { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gray-400); margin-bottom: 12px; }
.toggle-switch { position: relative; display: inline-block; width: 34px; height: 20px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track { position: absolute; inset: 0; background: var(--gray-300); border-radius: 100px; cursor: pointer; transition: background var(--transition-fast); }
.toggle-switch input:checked + .toggle-track { background: var(--blue-600); }
.toggle-track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); transition: transform var(--transition-fast); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(14px); }
.site-view-link { display: block; text-align: center; font-size: 13px; font-weight: 600; color: var(--blue-600); text-decoration: none; padding: 8px; border: 1px solid var(--blue-100); border-radius: 10px; transition: background var(--transition-fast); }
.site-view-link:hover { background: var(--blue-50); }

/* ── Activity feed ───────────────────────────────────────── */
.activity-feed { margin-top: 4px; }
.activity-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--off-white); }
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.activity-dot-audit   { background: var(--blue-600); }
.activity-dot-resolve { background: var(--green-500); }
.activity-dot-improve { background: #F59E0B; }
.activity-text { flex: 1; font-size: 13px; color: var(--gray-700); line-height: 1.5; }
.activity-time { font-size: 11px; color: var(--gray-400); white-space: nowrap; flex-shrink: 0; margin-top: 2px; }

/* ── Email prefs ─────────────────────────────────────────── */
.email-pref-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.email-pref-row + .email-pref-row { border-top: 1px solid var(--gray-100); }
.email-pref-label { font-size: 14px; font-weight: 600; color: var(--gray-700); margin-bottom: 2px; }
.email-pref-sub { font-size: 12px; color: var(--gray-400); line-height: 1.5; }

/* ── Bell icon / alerts panel ────────────────────────────── */
.nav-bell-btn { background: none; border: none; cursor: pointer; color: var(--gray-500); padding: 6px; border-radius: 8px; display: flex; align-items: center; position: relative; transition: color var(--transition-fast); }
.nav-bell-btn:hover { color: var(--gray-900); }
.nav-bell-badge { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; background: var(--red-600); color: var(--white); font-size: 10px; font-weight: 700; border-radius: 100px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.nav-bell-panel { position: absolute; right: -80px; top: calc(100% + 10px); width: 340px; background: var(--white); border: 1px solid #E8ECF8; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); z-index: 1000; max-height: 420px; overflow-y: auto; opacity: 0; transform: translateY(8px) scale(0.97); transform-origin: top right; transition: opacity 0.15s cubic-bezier(0.23, 1, 0.32, 1), transform 0.15s cubic-bezier(0.23, 1, 0.32, 1); pointer-events: none; }
.nav-bell-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.bell-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-weight: 700; font-size: 14px; color: var(--gray-900); border-bottom: 1px solid var(--gray-100); position: sticky; top: 0; background: var(--white); }
.bell-mark-all { font-size: 12px; color: var(--blue-600); background: none; border: none; cursor: pointer; font-weight: 600; }
.bell-alert-item { padding: 12px 16px; border-bottom: 1px solid var(--off-white); display: flex; gap: 10px; align-items: flex-start; cursor: pointer; transition: background var(--transition-fast); }
.bell-alert-item:last-child { border-bottom: none; }
.bell-alert-item:hover { background: var(--off-white); }
.bell-alert-item.unread { background: var(--blue-50); }
.bell-alert-item.unread:hover { background: var(--blue-100); }
.bell-alert-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.bell-dot-drop { background: var(--red-600); }
.bell-dot-up   { background: var(--green-500); }
.bell-dot-new  { background: #F59E0B; }
.bell-dot-comp { background: #8B5CF6; }
.bell-alert-title { font-size: 13px; font-weight: 600; color: var(--gray-900); margin-bottom: 2px; }
.bell-alert-body  { font-size: 12px; color: var(--gray-500); }
.bell-alert-time  { font-size: 11px; color: var(--gray-400); margin-top: 2px; }
.monitoring-freq-select { font-size: 11px; border: 1px solid var(--gray-200); border-radius: 6px; padding: 2px 6px; color: var(--gray-500); background: var(--white); cursor: pointer; }

/* ── Monitoring slots ────────────────────────────────────── */
.monitoring-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
@media (min-width: 640px) { .monitoring-grid { grid-template-columns: repeat(4,1fr); } }
.slot-card { background: var(--white); border: 1px solid #E8ECF8; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; min-height: 220px; }
.slot-card-empty { border: 2px dashed var(--gray-200); background: #FAFBFF; cursor: pointer; align-items: center; justify-content: center; gap: 10px; transition: all var(--transition-fast); }
.slot-card-empty:hover { border-color: var(--blue-300); background: var(--blue-50); }
.slot-add-icon { width: 38px; height: 38px; background: var(--blue-50); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--blue-600); line-height: 1; }
.slot-add-label { font-size: 12px; font-weight: 600; color: var(--gray-400); text-align: center; line-height: 1.5; }
.slot-add-input { width: 100%; padding: 8px 10px; border: 1.5px solid var(--gray-200); border-radius: 10px; font-size: 12px; font-family: inherit; box-sizing: border-box; margin-bottom: 7px; outline: none; color: var(--gray-900); }
.slot-add-input:focus { border-color: var(--blue-600); }
.slot-counter { font-size: 13px; font-weight: 600; color: var(--gray-400); }
.slot-card-controls { display: flex; gap: 5px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.slot-btn { font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 100px; cursor: pointer; border: 1px solid var(--gray-200); background: var(--off-white); color: var(--gray-500); transition: all var(--transition-fast); white-space: nowrap; text-decoration: none; display: inline-block; }
.slot-btn:hover { background: var(--gray-100); }
.slot-btn-remove:hover { color: var(--red-600); border-color: #FCA5A5; background: var(--red-50); }
.slot-btn-danger { color: var(--red-600); border-color: #FECACA; background: none; }
.slot-btn-danger:hover { background: var(--red-50); }
.slot-btn-primary { background: var(--blue-50); color: var(--blue-600); border-color: var(--blue-100); }
.slot-btn-primary:hover { background: var(--blue-100); }
.slot-delete-confirm { font-size: 12px; color: var(--red-600); padding-top: 8px; border-top: 1px solid #FEE2E2; margin-top: 8px; }
.delete-confirm-btns { display: flex; gap: 8px; margin-top: 6px; }
.confirm-yes { font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 100px; background: var(--red-600); color: var(--white); border: none; cursor: pointer; }
.confirm-no  { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 100px; background: none; border: none; color: var(--gray-500); cursor: pointer; }

/* ── Other sites list ────────────────────────────────────── */
.other-sites-list { display: flex; flex-direction: column; gap: 8px; }
.other-site-row { background: var(--white); border: 1px solid #E8ECF8; border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.other-site-info { flex: 1; min-width: 120px; }
.other-site-domain { font-size: 14px; font-weight: 700; color: var(--gray-900); word-break: break-all; }
.other-site-meta { font-size: 11px; color: var(--gray-400); margin-top: 2px; }
.other-site-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.slots-full-msg { font-size: 13px; color: #C2410C; background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 10px; padding: 10px 14px; margin-top: 12px; display: none; }

/* ── Site detail specific ────────────────────────────────── */
.site-detail-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.site-detail-favicon { width: 32px; height: 32px; border-radius: 6px; flex-shrink: 0; }
.site-detail-domain { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 20px; font-weight: 800; color: var(--gray-900); word-break: break-all; }
.site-progress-label { font-size: 12px; color: var(--gray-500); margin-bottom: 16px; }

/* ── Fix checklist ───────────────────────────────────────── */
.site-checklist { display: flex; flex-direction: column; gap: 10px; }
.site-fix-card { background: var(--white); border: 1px solid #E8ECF8; border-radius: 14px; padding: 16px 20px; transition: border-color var(--transition-fast); }
.site-fix-card.fix-done { border-color: #BBF7D0; background: var(--green-50); }
.site-fix-card.fix-done .fix-title { text-decoration: line-through; color: var(--gray-400); }
.fix-check-wrap { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.fix-check-wrap input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--blue-600); cursor: pointer; }
.fix-title { font-size: 14px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.fix-sev { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 100px; }
.sev-critical { background: var(--red-50); color: var(--red-600); border: 1px solid #FECACA; }
.sev-medium   { background: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }
.sev-low      { background: var(--green-50); color: var(--green-600); border: 1px solid #BBF7D0; }
.fix-body { font-size: 13px; color: var(--gray-600); line-height: 1.6; margin-top: 10px; background: var(--off-white); border: 1px solid var(--gray-200); border-radius: 8px; padding: 10px 12px; }

/* ── Audit history (site view) ───────────────────────────── */
.site-history-list { display: flex; flex-direction: column; gap: 8px; }
.site-history-card { background: var(--white); border: 1px solid #E8ECF8; border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-history-info { flex: 1; }

/* ── Tracked competitors + re-check ─────────────────────── */
.tracked-comp-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--gray-100); }
.tracked-comp-row:last-child { border-bottom: none; }
.tracked-remove-btn { font-size: 11px; color: var(--red-600); background: var(--red-50); border: 1px solid #FECACA; border-radius: 100px; padding: 3px 10px; cursor: pointer; flex-shrink: 0; }
.site-recheck-btn { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 100px; background: none; border: 1px solid var(--gray-200); color: var(--gray-500); cursor: pointer; transition: all var(--transition-fast); white-space: nowrap; flex-shrink: 0; }
.site-recheck-btn:hover { border-color: var(--blue-600); color: var(--blue-600); }
.site-recheck-btn:disabled { opacity: 0.6; cursor: default; }
.site-fix-steps { display: flex; flex-direction: column; gap: 7px; padding: 10px 0 2px; }
.site-fix-step { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--gray-700); line-height: 1.55; }
.site-fix-step-num { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; border-radius: 50%; background: var(--blue-50); color: var(--blue-600); font-size: 10px; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
@keyframes recheckShake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-4px)} 40%,80%{transform:translateX(4px)} }

/* ── Audit delete ────────────────────────────────────────── */
.audit-del-btn { background: none; border: none; cursor: pointer; color: var(--gray-300); padding: 5px; border-radius: 8px; transition: color var(--transition-fast); display: flex; align-items: center; flex-shrink: 0; line-height: 0; }
.audit-del-btn:hover { color: var(--red-600); }
.audit-del-confirm { display: none; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--red-600); flex-wrap: wrap; width: 100%; padding-top: 8px; }
.audit-del-confirm.show { display: flex; }
.audit-del-yes { background: var(--red-50); border: 1px solid #FECACA; color: var(--red-600); border-radius: 100px; padding: 4px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.audit-del-no  { background: none; border: 1px solid var(--gray-200); color: var(--gray-500); border-radius: 100px; padding: 4px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .dash-main { padding: 88px 16px 48px; }
  .dash-header { padding: 20px; gap: 14px; }
  .dash-stat { text-align: left; }
  .dash-stats { gap: 16px; }
  .dash-new-btn { width: 100%; text-align: center; }
  .dash-settings { padding: 20px; }
  .dash-audit-card { padding: 14px 16px; }
  .dash-audit-actions { width: 100%; }
  .dash-btn-view, .dash-btn-delete { flex: 1; text-align: center; }
  .sites-grid { grid-template-columns: 1fr; }
  .score-dials { gap: 16px; }
  .site-switcher { gap: 4px; }
  .email-pref-row { flex-wrap: wrap; gap: 8px; }
  .nav-bell-panel { right: -40px; width: 300px; }
}
