.location-picker{position:relative}
.location-suggestions{position:absolute;z-index:20;left:0;right:0;background:#fff;border:1px solid #d7dce3;border-radius:10px;box-shadow:0 10px 28px rgba(28,39,55,.14);overflow:hidden}
.location-suggestions:empty{display:none}
.location-suggestion{display:flex;width:100%;justify-content:space-between;gap:12px;padding:10px 12px;border:0;border-bottom:1px solid #edf0f3;background:#fff;text-align:left;color:#182230}
button.location-suggestion:hover,button.location-suggestion:focus{background:#f4f7fb;outline:none}
.location-suggestion span{color:#667085;font-size:.8rem;white-space:nowrap}
.location-suggestion.muted{color:#667085;display:block}
.location-selections{display:flex;flex-wrap:wrap;gap:6px}
.location-chip{display:inline-flex;align-items:center;gap:6px;background:#edf7f1;color:#176b3a;border:1px solid #b9dfc8;border-radius:999px;padding:5px 8px 5px 10px;font-size:.82rem}
.location-chip button{border:0;background:transparent;color:inherit;font-size:1.05rem;line-height:1;padding:0;cursor:pointer}
/* Adniqo AI — Design System */

/* ─── Custom properties ───────────────────────────────────────────────────── */
:root {
  --adniqo-blue: #2563EB;
  --adniqo-blue-light: #3B82F6;
  --adniqo-cyan: #06B6D4;
  --adniqo-navy: #0B1220;
  --adniqo-muted: #64748B;
  --adniqo-background: #F8FAFC;
  --adniqo-white: #FFFFFF;
  --blue:        #1a73e8;
  --blue-dark:   #1557b0;
  --green:       #1e8e3e;
  --red:         #c5221f;
  --amber:       #f59e0b;
  --surface:     #ffffff;
  --bg:          #f5f7fa;
  --border:      #e5e7eb;
  --border-med:  #d1d5db;
  --text:        #111827;
  --text-muted:  #6b7280;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.05);
}

/* ─── Base ────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

body {
  background: var(--bg);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ─── Adniqo Navbar ───────────────────────────────────────────────────────── */
.ck-navbar {
  background: #ffffff !important;
  border-bottom: 1px solid var(--border);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.ck-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text) !important;
}

.ck-brand-icon {
  width: 42px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ck-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ck-brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--adniqo-navy);
  letter-spacing: -0.5px;
}

.ck-brand-badge {
  font-size: 0.62rem;
  font-weight: 700;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 0.15em 0.45em;
  border-radius: 5px;
  letter-spacing: 0.3px;
  line-height: 1.6;
}

.ck-nav-link {
  color: #374151;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}
.ck-nav-link:hover { color: var(--blue); }

.ck-btn-dark {
  background: #111827;
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.4rem 0.9rem;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
}
.ck-btn-dark:hover {
  background: #1f2937;
  transform: translateY(-1px);
}

@keyframes ck-waitlist-halo-rotate {
  to { transform: rotate(1turn); }
}
.ck-waitlist-glow {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent !important;
  border: 0 !important;
  box-shadow: 0 8px 24px rgba(11, 108, 242, 0.2);
  transition: transform .3s ease, box-shadow .3s ease !important;
}
.ck-waitlist-glow::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: 210%;
  aspect-ratio: 1;
  left: -55%;
  top: 50%;
  translate: 0 -50%;
  background: conic-gradient(from 0deg, #0b6cf2 0 21%, #78c7ff 29%, #fff 38%, #0b6cf2 48% 72%, #78c7ff 81%, #fff 89%, #0b6cf2 100%);
  animation: ck-waitlist-halo-rotate 4s linear infinite;
}
.ck-waitlist-glow::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2px;
  border-radius: calc(.375rem - 2px);
  background: rgba(7, 21, 47, .92);
  backdrop-filter: blur(8px);
}
.ck-waitlist-glow:hover {
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 12px 30px rgba(11, 108, 242, 0.3);
}
.ck-waitlist-glow:active { transform: scale(1); }
.ck-waitlist-glow {
  isolation: auto;
  background: var(--adniqo-blue) !important;
  color: var(--adniqo-white) !important;
  box-shadow: 0 5px 14px rgba(37, 99, 235, .18);
}
.ck-waitlist-glow::before,
.ck-waitlist-glow::after { display: none; }
.ck-waitlist-glow:hover {
  background: #1D4ED8 !important;
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(37, 99, 235, .24);
}
@media (prefers-reduced-motion: reduce) {
  .ck-waitlist-glow::before { animation: none; }
  .ck-waitlist-glow { transition-duration: .01ms !important; }
}

/* ─── AI Badge (homepage) ─────────────────────────────────────────────────── */
.ck-ai-badge {
  display: inline-flex;
  align-items: center;
  background: #f0f4ff;
  border: 1px solid #dbeafe;
  color: #2563eb;
  border-radius: 99px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.ck-ai-badge .bi-lightning-charge-fill { color: #f59e0b; }

/* ─── Hero Headline (homepage) ────────────────────────────────────────────── */
.ck-hero-headline {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #111827;
}

.ck-gradient-text {
  background: linear-gradient(135deg, #1a73e8 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ck-hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 460px;
}

/* ─── Form Card (homepage) ────────────────────────────────────────────────── */
.ck-form-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.ck-field-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}
.ck-field-label .bi { font-size: 0.85rem; color: var(--text-muted); }

.ck-input {
  border-radius: 10px !important;
  border: 1.5px solid #e5e7eb !important;
  font-size: 0.875rem !important;
  padding: 0.6rem 0.85rem !important;
  background: #fafafa !important;
  color: var(--text) !important;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s !important;
}
.ck-input:focus {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(26,115,232,0.1) !important;
  background: #fff !important;
}
.ck-input::placeholder { color: #b0b8c4 !important; }

.ck-budget-group .input-group-text {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-right: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 10px 0 0 10px;
}
.ck-budget-group .ck-input {
  border-left: none !important;
  border-radius: 0 10px 10px 0 !important;
}

.ck-field-hint {
  font-size: 0.74rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

.ck-advanced-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.ck-advanced-link:hover { color: var(--blue); }

/* ─── Generate Button ─────────────────────────────────────────────────────── */
.ck-btn-generate {
  background: #111827;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  letter-spacing: 0.1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  width: 100%;
}
.ck-btn-generate:hover {
  background: #1f2937;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(17,24,39,0.22);
}
.ck-btn-generate:active { transform: translateY(0); }
.ck-btn-generate:disabled { opacity: 0.7; transform: none; }

/* ─── Preview Panel (homepage right column) ───────────────────────────────── */
.ck-preview-panel {
  position: relative;
  padding: 1rem 0 1rem 2rem;
}

.ck-preview-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-md);
  animation: floatCard 0.6s ease both;
}

.ck-preview-campaign { max-width: 300px; }
.ck-preview-keywords { max-width: 290px; margin-top: -0.5rem; margin-left: 3rem; }
.ck-preview-headlines { max-width: 300px; margin-top: 0.75rem; margin-left: 1rem; }
.ck-preview-card:nth-child(2) { animation-delay: 0.12s; }
.ck-preview-card:nth-child(3) { animation-delay: 0.24s; }

.ck-preview-g {
  width: 36px; height: 36px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ck-preview-label { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #9ca3af; }
.ck-preview-name  { font-size: 0.875rem; font-weight: 700; color: var(--text); }
.ck-preview-score { font-size: 0.78rem; font-weight: 600; color: var(--green); }
.ck-preview-section { font-size: 0.8rem; font-weight: 700; color: #374151; }
.ck-preview-count { font-size: 0.8rem; font-weight: 700; color: var(--blue); background: #eff6ff; padding: 0.1em 0.5em; border-radius: 6px; }
.ck-preview-tag      { font-size: 0.72rem; font-weight: 500; background: #f3f4f6; color: #374151; border-radius: 5px; padding: 0.15em 0.55em; border: 1px solid var(--border); }
.ck-preview-tag-more { font-size: 0.72rem; font-weight: 500; background: #dbeafe; color: #1d4ed8; border-radius: 5px; padding: 0.15em 0.55em; }
.ck-preview-hl   { font-size: 0.8rem; color: #374151; padding: 0.2rem 0; border-bottom: 1px solid #f3f4f6; }
.ck-preview-hl:last-of-type { border-bottom: none; }
.ck-preview-more { font-size: 0.75rem; color: #9ca3af; margin-top: 0.35rem; }

.ck-preview-badge {
  display: inline-flex;
  align-items: center;
  background: #111827;
  color: #fff;
  border-radius: 99px;
  padding: 0.55rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-left: 1rem;
  box-shadow: 0 4px 14px rgba(17,24,39,0.22);
  animation: floatCard 0.4s 0.36s ease both;
}

@keyframes floatCard {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Full-screen Loading Overlay ────────────────────────────────────────── */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(245,247,250,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.loading-overlay.active { display: flex; }

.loading-inner {
  display: flex;
  align-items: flex-start;
  gap: 5rem;
  max-width: 880px;
  width: 100%;
  padding: 2rem 1.5rem;
}

/* Left: progress ring + steps */
.loading-progress-side {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.loading-ring-wrap {
  position: relative;
  width: 128px;
  height: 128px;
  margin-bottom: 1.75rem;
}

.loading-ring-svg {
  width: 128px;
  height: 128px;
  transform: rotate(-90deg);
}

.loading-ring-track {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 8;
}

.loading-ring-fill {
  fill: none;
  stroke: url(#ringGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 339.29;
  stroke-dashoffset: 339.29;
  transition: stroke-dashoffset 0.3s ease;
}

.loading-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-pct {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.loading-headline {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
  letter-spacing: -0.3px;
}

.loading-sub {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-bottom: 1.75rem;
}

/* Steps list */
.loading-steps {
  width: 100%;
  text-align: left;
}

.loading-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.3rem 0.4rem;
  border-radius: 8px;
  margin-bottom: 0.05rem;
  transition: background 0.3s ease;
}

.step-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.6rem;
  color: transparent;
  transition: all 0.3s ease;
}

.step-label {
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 500;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

/* Done */
.loading-step.done .step-icon {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
}
.loading-step.done .step-icon::after { content: "✓"; }
.loading-step.done .step-label { color: #374151; }

/* Active */
.loading-step.active .step-icon {
  background: var(--blue);
  border-color: var(--blue);
  animation: stepRing 1.4s ease-in-out infinite;
}
.loading-step.active .step-label { color: var(--blue); font-weight: 600; }

@keyframes stepRing {
  0%,100% { box-shadow: 0 0 0 0 rgba(26,115,232,0.45); }
  50%      { box-shadow: 0 0 0 5px rgba(26,115,232,0); }
}

/* "We found this on your website" panel (shown before generation) */
.loading-found {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #d6e4f7;
  background: #f4f9ff;
  border-radius: 12px;
  text-align: left;
  animation: foundIn 0.35s ease both;
}
@keyframes foundIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.loading-found-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.loading-found-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.loading-found-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  line-height: 1.35;
}
.loading-found-list li.lf-empty {
  display: block;
  color: #6b7280;
  font-style: italic;
}
.loading-found-list .lf-label { color: #6b7280; }
.loading-found-list .lf-value { color: #1f2937; font-weight: 600; text-align: right; }
.loading-found-note {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #d6e4f7;
  font-size: 0.78rem;
  color: #92670a;
}

/* Right: stat cards */
.loading-cards-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.5rem;
}

.loading-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.loading-stat-card.visible { opacity: 1; transform: translateY(0); }

.lsc-icon {
  width: 44px; height: 44px;
  background: #eff6ff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.lsc-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1;
}

.lsc-label {
  font-size: 0.74rem;
  color: #9ca3af;
  margin-top: 0.15rem;
}

/* ─── Results page: header ────────────────────────────────────────────────── */
.results-header {
  text-align: left;
}

.results-header-badge {
  display: inline-flex;
  align-items: center;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 99px;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.results-header-badge.badge-warn {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.results-headline {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.results-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ─── Premium stat cards (results) ───────────────────────────────────────── */
.ck-stat-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ck-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ck-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.ck-stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}

.ck-stat-value .ck-stat-denom {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}

/* ─── Large action buttons (results) ─────────────────────────────────────── */
.ck-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.75rem 1.25rem;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  text-align: center;
  font-family: inherit;
}
.ck-action-btn:hover {
  border-color: #9ca3af;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transform: translateY(-3px);
  color: var(--text);
  text-decoration: none;
}
.ck-action-btn:active { transform: translateY(-1px); }

.ck-action-btn--primary {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}
.ck-action-btn--primary:hover {
  background: #1f2937;
  border-color: #1f2937;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(17,24,39,0.22);
}

.ck-action-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: #f3f4f6;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: #374151;
  margin-bottom: 0.25rem;
  transition: background 0.2s;
}
.ck-action-btn--primary .ck-action-icon {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.ck-action-title {
  font-size: 0.95rem;
  font-weight: 700;
}
.ck-action-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.ck-action-btn--primary .ck-action-sub { color: rgba(255,255,255,0.65); }

/* ─── Glass morphism sticky bar ───────────────────────────────────────────── */
.sticky-export-bar {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(220,224,232,0.8);
  border-radius: 99px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  padding: 0.38rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 1030;
  white-space: nowrap;
}

.sticky-bar-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  border-right: 1px solid var(--border);
  margin-right: 0.25rem;
  padding-right: 0.85rem;
}

.sticky-bar-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sticky-bar-dot--green {
  background: #22c55e;
  animation: dotPulse 2.2s ease-in-out infinite;
}
.sticky-bar-dot--amber {
  background: var(--amber);
}
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.sticky-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.8rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.sticky-bar-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: var(--text);
  transform: translateY(-1px);
}

.sticky-bar-btn--primary {
  background: #111827;
  border-color: #111827;
  color: #fff;
}
.sticky-bar-btn--primary:hover {
  background: #1f2937;
  border-color: #1f2937;
  color: #fff;
}

/* ─── Generic cards ───────────────────────────────────────────────────────── */
.card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
  transition: box-shadow 0.2s ease;
}
.card-header {
  border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--border);
}
.card-body { padding: 1.1rem 1.25rem; }
.card.border-success { border-color: #a7f3d0 !important; }
.card-header .bi { opacity: 0.8; }

/* ─── Form controls (generic) ─────────────────────────────────────────────── */
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border-color: var(--border-med);
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  background-color: #fdfdfe;
}
.form-control:focus, .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
  background-color: #fff;
}
.form-label { font-size: 0.82rem; font-weight: 600; color: #374151; margin-bottom: 0.35rem; }
.form-text  { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; }
textarea.form-control { min-height: 82px; }
.input-group-text {
  background: #f9fafb;
  border-color: var(--border-med);
  color: var(--text-muted);
  font-weight: 600;
}

/* ─── Buttons (generic) ───────────────────────────────────────────────────── */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.1px;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
}
.btn-primary {
  background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
  border: none;
  box-shadow: 0 2px 8px rgba(26,115,232,0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1557b0 0%, #0d47a1 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,115,232,0.32);
}
.btn-primary:active { transform: translateY(0); }
.btn-success {
  background: linear-gradient(135deg, #1e8e3e 0%, #137333 100%);
  border: none;
  box-shadow: 0 2px 8px rgba(30,142,62,0.28);
}
.btn-success:hover {
  background: linear-gradient(135deg, #137333 0%, #0d5c26 100%);
  transform: translateY(-1px);
}
.btn-lg { padding: 0.65rem 1.4rem; font-size: 0.95rem; border-radius: 10px; }
.btn-outline-secondary { border-color: var(--border-med); color: #374151; }
.btn-outline-secondary:hover { background: #f3f4f6; border-color: #9ca3af; }

/* ─── Badges ──────────────────────────────────────────────────────────────── */
.badge { font-weight: 600; border-radius: 6px; font-size: 0.72rem; padding: 0.3em 0.55em; }
.badge.rounded-pill { border-radius: 100px; }

/* ─── Alerts ──────────────────────────────────────────────────────────────── */
.alert { border-radius: var(--radius-md); border: none; font-size: 0.875rem; }
.alert-success { background: #ecfdf5; color: #065f46; border-left: 4px solid var(--green); }
.alert-danger  { background: #fef2f2; color: #991b1b; border-left: 4px solid var(--red); }
.alert-warning { background: #fffbeb; color: #92400e; border-left: 4px solid var(--amber); }
.alert-info    { background: #eff6ff; color: #1e40af; border-left: 4px solid var(--blue); }

/* ─── Accordion ───────────────────────────────────────────────────────────── */
.accordion-button {
  font-size: 0.875rem;
  font-weight: 600;
  background: transparent;
  border-radius: var(--radius-sm) !important;
  transition: background 0.2s;
}
.accordion-button:not(.collapsed) {
  background: rgba(26,115,232,0.04);
  color: var(--blue);
  box-shadow: none;
}
.accordion-item { transition: background 0.2s; }

/* ─── Score cards (advanced details) ─────────────────────────────────────── */
.score-stat { padding: 1.5rem 1rem; text-align: center; }
.score-stat-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.score-stat-value { font-size: 2.2rem; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.score-stat-value .score-denom { font-size: 1rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.score-stat-sub { font-size: 0.75rem; margin-top: 0.35rem; }

.dim-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.35rem 0.4rem; border-radius: 6px; margin-bottom: 0.15rem; transition: background 0.15s;
}
.dim-row:hover { background: #f9fafb; }
.dim-row.dim-failing { background: rgba(197,34,31,0.05); }
.dim-row .dim-label { font-size: 0.8rem; color: var(--text-muted); }
.dim-row .dim-score { font-size: 0.8rem; font-weight: 700; min-width: 48px; text-align: right; }
.dim-bar { height: 3px; border-radius: 2px; background: #e5e7eb; margin-top: 3px; overflow: hidden; }
.dim-bar-fill { height: 100%; border-radius: 2px; transition: width 0.5s ease; }

/* ─── Table ───────────────────────────────────────────────────────────────── */
.table td { vertical-align: middle; padding: 0.55rem 0.9rem; font-size: 0.875rem; border-color: rgba(0,0,0,0.04); }
.table td:first-child { color: var(--text-muted); font-weight: 500; font-size: 0.8rem; white-space: nowrap; width: 1%; padding-right: 1.5rem; }
.table-sm td { padding: 0.4rem 0.75rem; }

/* ─── Keyword badges ──────────────────────────────────────────────────────── */
.kw-badge { font-family: "JetBrains Mono", "Fira Code", monospace; font-size: 0.72rem; font-weight: 500; border-radius: 5px; padding: 0.2em 0.5em; }

/* ─── Ad preview ──────────────────────────────────────────────────────────── */
.ad-preview { border-radius: var(--radius-sm); background: #fdfdfe; border: 1px solid var(--border); padding: 0.85rem 1rem; }
.ad-preview-section-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.7px; text-transform: uppercase; margin-bottom: 0.4rem; }

/* ─── Form switch ─────────────────────────────────────────────────────────── */
.form-check-input:checked { background-color: var(--blue); border-color: var(--blue); }

/* ─── Industry detection panel ────────────────────────────────────────────── */
#industryDetectionPanel { background: rgba(26,115,232,0.04); border-radius: var(--radius-sm); padding: 0.6rem 0.85rem; border: 1px solid rgba(26,115,232,0.12); }

/* ─── Tester bar ──────────────────────────────────────────────────────────── */
.tester-bar { background: var(--surface); border: 1px solid var(--border) !important; border-radius: var(--radius-md); padding: 0.9rem 1.25rem; color: var(--text-muted); font-size: 0.82rem; text-align: center; }

/* ─── Sample brief accordion ──────────────────────────────────────────────── */
#sampleBrief .accordion-item { border-radius: var(--radius-md); }
#sampleBrief .accordion-button { color: var(--text-muted); font-size: 0.82rem; }

/* ─── Code ────────────────────────────────────────────────────────────────── */
code { font-family: "JetBrains Mono", monospace; font-size: 0.8rem; color: #d63384; background: rgba(214,51,132,0.06); padding: 0.1em 0.35em; border-radius: 4px; }
pre { border-radius: var(--radius-sm); background: #1e2433; color: #e2e8f0; }
pre code { color: inherit; background: transparent; padding: 0; }

/* ─── Tooltip ─────────────────────────────────────────────────────────────── */
.tooltip-inner { font-size: 0.76rem; max-width: 240px; border-radius: 6px; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
footer { background: var(--surface); font-size: 0.78rem; border-top: 1px solid var(--border) !important; color: var(--text-muted); }

/* ─── Card dividers ───────────────────────────────────────────────────────── */
.card .row.g-0 > [class*="col"]:not(:last-child) { border-right: 1px solid var(--border); }

/* ─── Animations ──────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card { animation: fadeInUp 0.26s ease both; }
.card:nth-child(2) { animation-delay: 0.04s; }
.card:nth-child(3) { animation-delay: 0.08s; }
.card:nth-child(4) { animation-delay: 0.12s; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════════════
   REVIEW PAGE — complete design system
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Header ──────────────────────────────────────────────────────────────── */
.rv-header { margin-bottom: 2rem; }

.rv-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  margin-bottom: 0.9rem;
}
.rv-badge-ok   { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.rv-badge-warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

.rv-headline {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.8px;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.15;
}
.rv-subline { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0; }

/* ─── Stats row ───────────────────────────────────────────────────────────── */
.rv-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.rv-stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 0.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s;
  animation: fadeInUp 0.3s ease both;
}
.rv-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.rv-stat-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.rv-stat-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--text);
}
.rv-stat-denom { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.rv-stat-green { color: var(--green); }
.rv-stat-amber { color: var(--amber); }
.rv-stat-red   { color: var(--red);   }

/* ─── Action buttons row ──────────────────────────────────────────────────── */
.rv-actions {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.rv-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.rv-action-btn:hover { transform: translateY(-1px); text-decoration: none; }

.rv-action-primary {
  background: #111827;
  color: #fff;
  border-color: #111827;
}
.rv-action-primary:hover {
  background: #1f2937;
  border-color: #1f2937;
  color: #fff;
  box-shadow: 0 4px 18px rgba(17,24,39,0.22);
}

.rv-action-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border-med);
}
.rv-action-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: var(--text);
  box-shadow: 0 3px 12px rgba(0,0,0,0.07);
}

/* ─── Accordion system ────────────────────────────────────────────────────── */
.rv-accordions { display: flex; flex-direction: column; gap: 0.5rem; }

.rv-accordion-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.rv-accordion-item:focus-within { box-shadow: 0 0 0 3px rgba(26,115,232,0.1); }

.rv-accordion-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.rv-accordion-btn:hover { background: #fafafa; }
.rv-accordion-btn[aria-expanded="true"] { background: #fafafa; }
.rv-accordion-btn[aria-expanded="true"] .rv-accordion-chevron { transform: rotate(90deg); }

.rv-accordion-icon {
  width: 34px; height: 34px;
  background: #f3f4f6;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #374151;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.rv-accordion-btn[aria-expanded="true"] .rv-accordion-icon { background: #eff6ff; color: var(--blue); }

.rv-accordion-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

.rv-accordion-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-left: 0.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rv-accordion-chevron {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.rv-accordion-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: 0;
}
.rv-accordion-body.collapsing { transition-duration: 220ms; }

/* ─── Campaign Summary grid ───────────────────────────────────────────────── */
.rv-summary-grid { display: flex; flex-direction: column; gap: 0; padding-top: 0.25rem; }

.rv-summary-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #f3f4f6;
}
.rv-summary-row:last-child { border-bottom: none; }

.rv-summary-key {
  flex: 0 0 120px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 0.05rem;
}

.rv-summary-val { font-size: 0.875rem; color: var(--text); line-height: 1.5; flex: 1; }
.rv-link { color: var(--blue); text-decoration: none; }
.rv-link:hover { text-decoration: underline; }

/* ─── Ad Group cards ──────────────────────────────────────────────────────── */
.ag-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.15s;
}
.ag-card:hover { box-shadow: var(--shadow-sm); }

.ag-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.ag-card-header:hover { background: #fafafa; }
.ag-card-header[aria-expanded="true"] { background: #fafafa; }
.ag-card-header[aria-expanded="true"] .ag-chevron { transform: rotate(90deg); }

.ag-card-left {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.ag-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-card-chips {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.ag-chip {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  background: #f3f4f6;
  border-radius: 6px;
  padding: 0.2em 0.6em;
  white-space: nowrap;
}

.ag-view-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.ag-chevron { font-size: 0.7rem; transition: transform 0.22s ease; }

.ag-card-body {
  border-top: 1px solid var(--border);
  padding: 1.1rem 1.1rem 0.75rem;
}
.ag-card-body.collapsing { transition-duration: 220ms; }

/* ─── Ad Group sections ───────────────────────────────────────────────────── */
.ag-section { margin-bottom: 1.1rem; }
.ag-section:last-child { margin-bottom: 0; }

.ag-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.ag-url-row {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Keyword badges ──────────────────────────────────────────────────────── */
.ag-kw-list { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.5rem; }
.ag-hl-list { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.ag-kw-badge {
  font-size: 0.74rem;
  font-weight: 500;
  border-radius: 5px;
  padding: 0.25em 0.6em;
  border: 1px solid;
}
.ag-kw-exact  { background: rgba(30,142,62,0.08);  color: #065f46; border-color: #a7f3d0; }
.ag-kw-phrase { background: rgba(14,165,233,0.08); color: #0369a1; border-color: #bae6fd; }
.ag-kw-broad  { background: #f3f4f6; color: #374151; border-color: #d1d5db; }

.ag-kw-legend { margin-top: 0.5rem; display: flex; gap: 0.4rem; }

.ag-hl-badge {
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(26,115,232,0.07);
  color: #1e40af;
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  padding: 0.25em 0.65em;
}

.ag-desc-card {
  font-size: 0.82rem;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  color: var(--text);
  line-height: 1.55;
}

/* ─── Show-more button ────────────────────────────────────────────────────── */
.item-more { display: none !important; }

.show-more-link {
  background: none;
  border: none;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  transition: background 0.15s;
  text-decoration: none;
  white-space: nowrap;
  align-self: center;
}
.show-more-link:hover { background: rgba(26,115,232,0.08); }

/* ─── Asset cards ─────────────────────────────────────────────────────────── */
.rv-asset-section { margin-bottom: 1.5rem; }
.rv-asset-section:last-child { margin-bottom: 0; }

.rv-asset-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.rv-sitelinks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.rv-sitelink-card {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.rv-sitelink-title { font-size: 0.85rem; font-weight: 700; color: var(--blue); margin-bottom: 0.25rem; }
.rv-sitelink-desc  { font-size: 0.76rem; color: var(--text-muted); line-height: 1.4; }
.rv-sitelink-url   { font-size: 0.7rem; display: block; margin-top: 0.4rem; }

.rv-callout-pill {
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(30,142,62,0.07);
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 99px;
  padding: 0.3em 0.85em;
}

.rv-snippet-card {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.rv-snippet-header {
  font-size: 0.76rem;
  font-weight: 700;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 5px;
  padding: 0.2em 0.6em;
}
.rv-snippet-val {
  font-size: 0.75rem;
  background: rgba(14,165,233,0.08);
  color: #0369a1;
  border: 1px solid #bae6fd;
  border-radius: 5px;
  padding: 0.2em 0.55em;
}

/* ─── Developer Mode sections ─────────────────────────────────────────────── */
.dev-section { margin-bottom: 1.75rem; }
.dev-section:last-child { margin-bottom: 0; }

.dev-section-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dev-panel {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  height: 100%;
}
.dev-panel-blue { background: #eff6ff; border-color: #bfdbfe; }
.dev-panel-label { font-size: 0.74rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.5rem; }

/* ─── Score badges (within ag cards) ─────────────────────────────────────── */
.badge-score-good { background: rgba(30,142,62,0.12); color: #065f46; border: 1px solid #a7f3d0; }
.badge-score-fair { background: rgba(245,158,11,0.12); color: #92400e; border: 1px solid #fde68a; }
.badge-score-poor { background: rgba(197,34,31,0.1);  color: #991b1b; border: 1px solid #fecaca; }

/* ─── AI Review card — compact ────────────────────────────────────────────── */
.ai-review-card {
  background: linear-gradient(135deg, #fafbff 0%, #f0f4ff 100%);
  border: 1px solid #dde5ff;
  border-radius: 20px;
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.35s ease both;
}

.ai-review-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.ai-review-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #4f46e5;
  letter-spacing: 0.2px;
}

.ai-review-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
}
.ai-review-pill--ok   { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.ai-review-pill--warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

.ai-review-body { display: flex; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; }

.ai-checks-compact {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 200px;
}

.ai-check-compact {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
}
.ai-check-compact i { font-size: 0.75rem; flex-shrink: 0; }
.ai-check-compact--pass { color: #065f46; }
.ai-check-compact--pass i { color: #16a34a; }
.ai-check-compact--warn { color: #92400e; }
.ai-check-compact--warn i { color: #d97706; }

.ai-review-footer-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  flex-shrink: 0;
}

.ai-review-time { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }

.ai-fix-btn {
  display: inline-flex;
  align-items: center;
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}
.ai-fix-btn:hover { background: #1f2937; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(17,24,39,0.22); }

/* ─── Stat sublabel ───────────────────────────────────────────────────────── */
.rv-stat-sublabel {
  font-size: 0.68rem;
  font-weight: 600;
  margin-top: 0.3rem;
  letter-spacing: 0.2px;
  color: var(--text-muted);
}

/* ─── Headline rows ───────────────────────────────────────────────────────── */
.ag-hl-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.45rem 0.7rem;
  background: rgba(26,115,232,0.04);
  border: 1px solid #e0eaff;
  border-radius: 8px;
}
.ag-hl-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.6;
  flex-shrink: 0;
  margin-top: 0.1rem;
  min-width: 14px;
}
.ag-hl-text {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.45;
}

/* ─── Description card labels ─────────────────────────────────────────────── */
.ag-desc-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.ag-desc-text {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.55;
}

/* ─── Landing page section ────────────────────────────────────────────────── */
.ag-landing-section { border-top: 1px dashed var(--border); padding-top: 1rem; margin-top: 0.5rem; }

.ag-lp-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  flex-wrap: wrap;
}
.ag-lp-url {
  font-size: 0.82rem;
  font-family: monospace;
  color: var(--blue);
  word-break: break-all;
  flex: 1;
  text-decoration: none;
}
.ag-lp-url:hover { text-decoration: underline; }
.ag-lp-open {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.ag-lp-open:hover { text-decoration: underline; }

/* ─── URL chip in ag-card-header ──────────────────────────────────────────── */
.ag-chip--url { color: var(--blue); background: rgba(26,115,232,0.06); }

/* ─── View AI Summary disclosure ─────────────────────────────────────────── */
.rv-summary-row--disclosure { border-bottom: none; padding-top: 0.35rem; }

.rv-ai-summary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: 1px solid #dde5ff;
  background: #f0f4ff;
  color: #4f46e5;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
}
.rv-ai-summary-btn:hover { background: #e0e8ff; border-color: #c7d2fe; }
.rv-ai-summary-chevron { transition: transform 0.22s ease; }

.rv-ai-summary-body {
  background: #fafbff;
  border: 1px solid #dde5ff;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-size: 0.82rem;
  color: #374151;
  line-height: 1.65;
  white-space: pre-wrap;
}
.rv-ai-summary-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ─── Ad group meta row ───────────────────────────────────────────────────── */
.ag-card-meta-row { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.ag-chip--ci {
  background: rgba(26,115,232,0.08);
  color: #1e40af;
  border: 1px solid #bfdbfe;
  font-weight: 600;
}

.ag-card-status { flex-shrink: 0; }

.ag-status-ok {
  display: inline-flex; align-items: center;
  font-size: 0.72rem; font-weight: 600; color: #065f46;
}
.ag-status-fail {
  display: inline-flex; align-items: center;
  font-size: 0.72rem; font-weight: 600; color: #991b1b;
}

/* ─── Ad group tab system ─────────────────────────────────────────────────── */
.ag-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 0.25rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  list-style: none;
}

.ag-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
  white-space: nowrap;
}
.ag-tab-btn:hover { color: var(--text); }
.ag-tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }

.ag-tab-count {
  font-size: 0.68rem;
  font-weight: 700;
  background: #f3f4f6;
  border-radius: 99px;
  padding: 0.05em 0.45em;
  color: var(--text-muted);
}
.ag-tab-btn.active .ag-tab-count { background: rgba(26,115,232,0.1); color: var(--blue); }

.ag-tab-content { min-height: 120px; }

.tab-pane.fade { transition: opacity 180ms ease; }
.tab-pane.fade:not(.show) { opacity: 0; }

/* ─── Headline grid cards ─────────────────────────────────────────────────── */
.ag-hl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.ag-hl-card {
  background: #fafbff;
  border: 1px solid #e0eaff;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  transition: box-shadow 0.15s, transform 0.15s;
}
.ag-hl-card:hover { box-shadow: 0 2px 10px rgba(26,115,232,0.1); transform: translateY(-1px); }

.ag-hl-card-num {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--blue);
  opacity: 0.7;
  margin-bottom: 0.3rem;
}
.ag-hl-card-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.ag-hl-more-btn { grid-column: 1 / -1; }

/* ─── Landing page tab card ───────────────────────────────────────────────── */
.ag-lp-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: #f9fafb;
  border: 1.5px solid var(--border-med);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.ag-lp-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 18px rgba(26,115,232,0.1);
  transform: translateY(-1px);
  text-decoration: none;
}

.ag-lp-card-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ag-lp-card-url {
  font-size: 0.88rem;
  font-weight: 600;
  font-family: monospace;
  color: var(--blue);
  word-break: break-all;
}
.ag-lp-card-cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: 0.2rem;
}

/* ─── Fail action cards ───────────────────────────────────────────────────── */
.fail-action-card {
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.fail-action-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  background: #fef2f2;
  flex-wrap: wrap;
}

.fail-action-icon { color: #dc2626; font-size: 0.9rem; flex-shrink: 0; }

.fail-action-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #7f1d1d;
  flex: 1;
  min-width: 100px;
}

.fail-action-score {
  font-size: 0.72rem;
  color: #991b1b;
  background: rgba(220,38,38,0.1);
  border-radius: 99px;
  padding: 0.15em 0.55em;
  white-space: nowrap;
}

.fail-action-body { padding: 0.75rem 1rem; }

.fail-action-list {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
}
.fail-action-list li {
  font-size: 0.82rem;
  color: #374151;
  line-height: 1.55;
  margin-bottom: 0.2rem;
}

.fail-action-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid #fee2e2;
}

.fail-action-time { font-size: 0.73rem; color: var(--text-muted); display: flex; align-items: center; }

.fail-fix-btn {
  display: inline-flex;
  align-items: center;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.35rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}
.fail-fix-btn:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ─── Score overview cards ────────────────────────────────────────────────── */
.score-overview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.score-overview-card {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
}

.score-overview-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.score-overview-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
}
.score-denom { font-size: 0.9rem; font-weight: 400; opacity: 0.6; }

.score-overview-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ─── Score group card ────────────────────────────────────────────────────── */
.score-group-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  height: 100%;
}
.score-group-card--fail { border-color: #fca5a5; border-width: 2px; }

.score-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* ─── Score dim row ───────────────────────────────────────────────────────── */
.score-dim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0.35rem;
  border-radius: 6px;
}
.score-dim-row--fail { background: rgba(220,38,38,0.06); }

/* ─── Copy button copied state ────────────────────────────────────────────── */
.btn-copied { background: #1e8e3e !important; border-color: #1e8e3e !important; color: #fff !important; }

/* ─── Increased border-radius overrides ───────────────────────────────────── */
.rv-accordion-item { border-radius: 18px; }
.ag-card           { border-radius: 18px; }
.rv-stat-card      { border-radius: 16px; }
.rv-action-btn     { border-radius: 12px; }
.rv-sitelink-card  { border-radius: 16px; }
.rv-snippet-card   { border-radius: 14px; }
.ag-desc-card      { border-radius: 10px; }
.ai-review-card    { border-radius: 20px; }

/* ─── AI Review card — strategic executive summary ────────────────────────── */
.ai-verdict-row {
  background: rgba(255,255,255,0.7);
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.85rem;
}
.ai-verdict-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 0.2rem;
}
.ai-verdict-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
}

.ai-insights-grid {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-width: 220px;
}
.ai-insight-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.35;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
}
.ai-insight-icon { font-size: 0.72rem; flex-shrink: 0; margin-top: 0.12rem; }
.ai-insight-label { font-weight: 600; margin-right: 0.35rem; }
.ai-insight-text  { color: var(--text-muted); }

.ai-insight-row--green { background: rgba(22,163,74,0.06); }
.ai-insight-row--green .ai-insight-icon { color: #16a34a; }
.ai-insight-row--green .ai-insight-label { color: #065f46; }

.ai-insight-row--amber { background: rgba(217,119,6,0.07); }
.ai-insight-row--amber .ai-insight-icon { color: #d97706; }
.ai-insight-row--amber .ai-insight-label { color: #92400e; }

.ai-insight-row--red { background: rgba(220,38,38,0.06); }
.ai-insight-row--red .ai-insight-icon { color: #dc2626; }
.ai-insight-row--red .ai-insight-label { color: #991b1b; }

.ai-review-cta-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  flex-shrink: 0;
  min-width: 160px;
}
.ai-setup-time {
  font-size: 0.73rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}
.ai-cta-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ai-cta-btn {
  display: inline-flex;
  align-items: center;
  border: none;
  border-radius: 10px;
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s, opacity 0.15s;
  text-decoration: none;
}
.ai-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.ai-cta-btn--primary { background: #111827; color: #fff; }
.ai-cta-btn--primary:hover { background: #1f2937; }
.ai-cta-btn--danger  { background: #dc2626; color: #fff; }
.ai-cta-btn--danger:hover  { background: #b91c1c; }

/* ─── Stat card sublabel ─────────────────────────────────────────────────── */
.rv-stat-sublabel {
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 0.1rem;
}

/* ─── Ad Group card — title row + status pill + insight line ─────────────── */
.ag-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.ag-status-pill {
  font-size: 0.67rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.ag-status-pill--ok   { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.ag-status-pill--warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

.ag-card-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}
.ag-insight-line {
  font-size: 0.77rem;
  font-weight: 500;
  margin-top: 0.1rem;
  display: flex;
  align-items: center;
}
.ag-insight-line--ok   { color: #1d4ed8; }
.ag-insight-line--warn { color: #92400e; }

/* ─── Ad Group tabs ──────────────────────────────────────────────────────── */
.ag-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.ag-tabs::-webkit-scrollbar { display: none; }
.ag-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  font-family: inherit;
  margin-bottom: -1px;
}
.ag-tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.ag-tab-btn:hover:not(.active) { color: var(--text); }
.ag-tab-count {
  background: #f3f4f6;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 99px;
  padding: 0.05rem 0.45rem;
  margin-left: 0.3rem;
}
.ag-tab-btn.active .ag-tab-count { background: rgba(26,115,232,0.1); color: var(--blue); }

.ag-tab-content .tab-pane { animation: fadeIn 0.18s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ─── Overview tab ───────────────────────────────────────────────────────── */
.ov-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.ov-score-block { display: flex; flex-direction: column; }
.ov-score-num {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}
.ov-score-denom { font-size: 1rem; font-weight: 500; opacity: 0.5; }
.ov-score-label { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); margin-top: 0.2rem; }

.ov-status {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
}
.ov-status--ok   { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.ov-status--warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

.ov-insight {
  font-size: 0.83rem;
  font-weight: 500;
  color: #1d4ed8;
  background: rgba(26,115,232,0.05);
  border: 1px solid rgba(26,115,232,0.12);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
}

.ov-dims {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.ov-dim-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: default;
}
.ov-dim-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  flex: 0 0 160px;
}
.ov-dim-bar {
  flex: 1;
  height: 5px;
  background: #e5e7eb;
  border-radius: 99px;
  overflow: hidden;
}
.ov-dim-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s ease;
}
.ov-bar--green { background: #16a34a; }
.ov-bar--amber { background: #d97706; }
.ov-bar--red   { background: #dc2626; }
.ov-dim-score {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  flex: 0 0 36px;
  text-align: right;
}

/* ─── Landing Page tab card ──────────────────────────────────────────────── */
.ag-lp-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.12s;
  cursor: pointer;
}
.ag-lp-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.09); transform: translateY(-1px); }
.ag-lp-card-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }
.ag-lp-card-url   { font-size: 0.92rem; font-weight: 600; color: var(--blue); word-break: break-all; }
.ag-lp-card-cta   { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); margin-top: 0.35rem; }

/* ─── Loading card active state (step-synced glow) ───────────────────────── */
.lc-active {
  outline: 2px solid rgba(26,115,232,0.4);
  outline-offset: 2px;
  background: rgba(26,115,232,0.04) !important;
  transition: outline 0.2s ease, background 0.2s ease;
}

/* ─── AI Summary card (conversational) ───────────────────────────────────── */
.ai-summary-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.3s ease both;
}
.ai-summary-accent {
  height: 4px;
  background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 50%, #1a73e8 100%);
}
.ai-summary-inner { padding: 1.4rem 1.5rem; }
.ai-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.ai-summary-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
}
.ai-summary-intro {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0.65rem;
}
.ai-summary-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.ai-summary-includes {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: #f8fafb;
  border-radius: 12px;
}
.ai-include-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text);
}
.ai-include-item i { font-size: 0.85rem; flex-shrink: 0; margin-top: 0.05rem; }
.ai-summary-rec {
  font-size: 0.83rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  line-height: 1.45;
}
.ai-summary-rec--ok   { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.ai-summary-rec--warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ─── What We Noticed card ───────────────────────────────────────────────── */
.what-noticed-card {
  background: #f8f9ff;
  border: 1px solid #e0e7ff;
  border-radius: 18px;
  padding: 1.1rem 1.4rem;
  margin-bottom: 1rem;
  animation: fadeInUp 0.35s ease 0.05s both;
}
.what-noticed-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}
.what-noticed-list { display: flex; flex-direction: column; gap: 0.6rem; }
.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.5;
}
.notice-item i { font-size: 0.9rem; flex-shrink: 0; margin-top: 0.12rem; }

/* ─── Review actions (inside Review Campaign section) ────────────────────── */
.rs-review-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

/* ─── Accordion open-by-default icon colour ─────────────────────────────── */
.rv-accordion-icon--blue { background: #eff6ff !important; color: var(--blue) !important; }

/* ─── Review page subheading ─────────────────────────────────────────────── */
.rv-subhead {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  margin-bottom: 0;
  max-width: 560px;
}

/* ─── What We Built card ─────────────────────────────────────────────────── */
.ww-built-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.3s ease both;
}
.ww-built-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.ww-built-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}
.ww-quality-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ww-quality-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}
.ww-quality-value {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 99px;
}
.ww-quality--excellent { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.ww-quality--strong    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.ww-quality--good      { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.ww-quality--review    { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.ww-built-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem 1rem;
}
.ww-built-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text);
}
.ww-built-item i { font-size: 0.9rem; flex-shrink: 0; }
.ww-built-count {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.05rem;
}

/* ─── What to Do Next card ───────────────────────────────────────────────── */
.next-steps-card {
  background: linear-gradient(135deg, #f0f7ff 0%, #f8fbff 100%);
  border: 1px solid #dde5ff;
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  animation: fadeInUp 0.35s ease 0.05s both;
}
.next-steps-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.next-steps-title::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: var(--blue);
  border-radius: 99px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1zm.75 4.75a.75.75 0 0 0-1.5 0v2.5H4.75a.75.75 0 0 0 0 1.5h2.5v2.5a.75.75 0 0 0 1.5 0v-2.5h2.5a.75.75 0 0 0 0-1.5h-2.5v-2.5z'/%3E%3C/svg%3E");
  background-size: cover;
  flex-shrink: 0;
}
.next-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.next-step-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(221,229,255,0.6);
}
.next-step-row:last-child { border-bottom: none; padding-bottom: 0; }
.next-step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
}
.next-step-content {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text);
}
.next-step-detail {
  color: var(--text-muted);
  display: block;
  font-size: 0.8rem;
}

/* ─── Action buttons v2 (with helper text) ───────────────────────────────── */
.rv-actions-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.4s ease 0.1s both;
}
.rv-action-v2 {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.rv-action-v2--primary,
.rv-action-v2--full {
  grid-column: span 2;
}
.rv-action-v2-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s;
  width: 100%;
}
.rv-action-v2-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.rv-action-v2-btn--primary {
  background: #111827;
  color: #ffffff;
}
.rv-action-v2-btn--primary:hover { background: #1f2937; color: #ffffff; }
.rv-action-v2-btn--secondary {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
}
.rv-action-v2-btn--secondary:hover { border-color: var(--blue); color: var(--blue); }
.rv-action-v2-help {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0 0.25rem;
}

/* ─── Beginner help panel ────────────────────────────────────────────────── */
.help-panel {
  background: #f8faff;
  border: 1px solid #e0e7ff;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.help-panel-toggle {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.help-panel-toggle:hover { background: rgba(99,102,241,0.04); }
.help-panel-chevron {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}
.help-panel-body {
  padding: 0 1rem 0.9rem 2.5rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Review Campaign — plain English section ────────────────────────────── */
.rs-overview-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.rs-overview-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.rs-overview-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.rs-ov-row {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  align-items: baseline;
}
.rs-ov-key {
  flex: 0 0 100px;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.rs-ov-val { color: var(--text); }

.rs-sections-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.rs-ag-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s;
}
.rs-ag-card:hover { box-shadow: var(--shadow-md); }
.rs-ag-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.rs-ag-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.45;
}
.rs-ag-row {
  margin-bottom: 0.75rem;
}
.rs-ag-row-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.rs-ag-kw-list {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.75;
}
.rs-ag-example {
  font-size: 0.87rem;
  font-style: italic;
  color: var(--text);
  background: #f8f9fa;
  border-left: 3px solid var(--blue);
  padding: 0.45rem 0.75rem;
  border-radius: 0 8px 8px 0;
  line-height: 1.5;
}
.rs-ag-url {
  font-size: 0.83rem;
  color: var(--blue);
  text-decoration: none;
  word-break: break-all;
}
.rs-ag-url:hover { text-decoration: underline; }
.rs-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.12s, background 0.12s;
}
.rs-view-btn:hover { background: rgba(26,115,232,0.05); border-color: var(--blue); }

/* ─── Hero (new simplified design) ──────────────────────────────────────── */
.rv-hero {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2rem 1.75rem 1.75rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.3s ease both;
}
.rv-hero-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  margin-bottom: 1.1rem;
}
.rv-hero-badge--ok    { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.rv-hero-badge--warn  { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.rv-hero-badge--draft { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

/* Needs-fixes callout — deep-links to the specific failing section */
.rv-fix-callout {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  margin-top: 1rem;
}
.rv-fix-callout-icon { color: #d97706; font-size: 1rem; flex-shrink: 0; }
.rv-fix-callout-text { flex: 1; min-width: 0; font-size: 0.84rem; color: #92400e; line-height: 1.45; }
.rv-fix-callout-text strong { font-weight: 700; }
.rv-fix-callout-btn {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--blue);
  border: none;
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.12s ease, transform 0.12s ease, background 0.15s ease;
}
.rv-fix-callout-btn:hover { background: var(--blue-dark); transform: translateY(-1px); }
.rv-fix-callout-btn:disabled { opacity: 0.6; cursor: default; transform: none; }

/* Inline loading state shown inside the callout while the fix runs */
.rv-fix-callout--loading { background: #eff6ff; border-color: #bfdbfe; }
.rv-fix-callout--loading .rv-fix-callout-text { color: #1e40af; }
.rv-fix-loading-step {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: #3b6fb5;
  margin-top: 0.1rem;
}
.rv-fix-spinner {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  border: 2.5px solid #bfdbfe;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: rv-fix-spin 0.7s linear infinite;
}
@keyframes rv-fix-spin { to { transform: rotate(360deg); } }

/* Post-fix plain-English summary line (shown once status flips to ready) */
.rv-fix-result {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  text-align: left;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  margin-top: 1rem;
}
.rv-fix-result-icon { color: #059669; font-size: 1rem; flex-shrink: 0; margin-top: 0.1rem; }
.rv-fix-result-text { font-size: 0.86rem; color: #065f46; line-height: 1.45; margin: 0 0 0.2rem; font-weight: 600; }
.rv-fix-result-link { font-size: 0.8rem; color: var(--blue); font-weight: 600; text-decoration: underline; }
.rv-fix-result-link:hover { color: var(--blue-dark); }
.rv-hero-headline {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.rv-hero-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.1rem;
}
.rv-hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}
.rv-hero-meta-item { display: flex; flex-direction: column; gap: 0.1rem; }
.rv-hero-meta-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); font-weight: 600; }
.rv-hero-meta-value { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.rv-hero-meta-divider { width: 1px; height: 28px; background: var(--border); }
.rv-hero-secondary {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.rv-hero-secondary > * { flex: 1; min-width: 140px; }

/* ─── Button hierarchy ───────────────────────────────────────────────────── */
.ck-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  background: linear-gradient(135deg, #1a73e8, #1557b0);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 0.97rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: -0.15px;
  box-shadow: 0 4px 18px rgba(26,115,232,0.28), 0 1px 6px rgba(26,115,232,0.15);
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s;
}
.ck-btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1557b0, #0d47a1);
  box-shadow: 0 8px 28px rgba(26,115,232,0.38), 0 3px 10px rgba(26,115,232,0.2);
  color: #ffffff;
}
.ck-btn-primary:active { transform: translateY(0); }
.ck-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  background: #ffffff;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: 12px;
  font-size: 0.87rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, color 0.12s, box-shadow 0.12s;
}
.ck-btn-secondary:hover { background: #eff6ff; box-shadow: 0 2px 8px rgba(26,115,232,0.12); color: var(--blue); }
.ck-btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  background: #ffffff;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 0.87rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s;
}
.ck-btn-tertiary:hover { background: var(--bg); border-color: var(--border-med); color: var(--text); }
.ck-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  transition: color 0.12s, background 0.12s;
}
.ck-btn-ghost:hover { color: var(--text); background: var(--bg); }

/* ─── "Here's what Adniqo found" ─────────────────────────────────────────── */
.found-card {
  background: #f8faff;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  animation: fadeInUp 0.35s ease 0.06s both;
}
.found-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--blue);
  margin-bottom: 0.85rem;
}
.found-list { display: flex; flex-direction: column; gap: 0.6rem; }
.found-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: #1e3a5f;
  line-height: 1.5;
}
.found-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 0.45rem;
}
.found-dot--blue  { background: #1a73e8; }
.found-dot--green { background: #16a34a; }
.found-dot--amber { background: #d97706; }

/* ─── Summary cards grid ─────────────────────────────────────────────────── */
.sum-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.sum-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.1rem 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.1s;
  font-family: inherit;
  position: relative;
}
.sum-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
  transform: translateY(-1px);
}
.sum-card:active { transform: translateY(0); }
.sum-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}
.sum-card-icon--blue   { background: #eff6ff; color: #1a73e8; }
.sum-card-icon--green  { background: #f0fdf4; color: #16a34a; }
.sum-card-icon--purple { background: #f5f3ff; color: #7c3aed; }
.sum-card-icon--amber  { background: #fffbeb; color: #d97706; }
.sum-card-content { flex: 1; }
.sum-card-title {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}
.sum-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.4rem;
}
.sum-card-count {
  font-size: 0.72rem;
  color: #6366f1;
  font-weight: 600;
}
.sum-card-action {
  font-size: 0.75rem;
  color: var(--blue);
  font-weight: 600;
  margin-top: 0.65rem;
  display: flex;
  align-items: center;
}

/* ─── 4-Step Progress ────────────────────────────────────────────────────── */
.ck-steps-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.ck-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
}
.ck-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 0;
  gap: 0.5rem;
}
.ck-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-top: 15px;
  transition: background 0.3s;
}
.ck-step-line--done { background: var(--green); }
.ck-step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.3s;
}
.ck-step--done .ck-step-dot {
  background: var(--green);
  color: #ffffff;
}
.ck-step--current .ck-step-dot {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(26,115,232,0.18);
}
.ck-step--pending .ck-step-dot {
  background: var(--bg);
  color: var(--text-muted);
  border: 2px solid var(--border);
}
.ck-step-label {
  font-size: 0.71rem;
  font-weight: 600;
  line-height: 1.3;
}
.ck-step--done    .ck-step-label { color: var(--green); }
.ck-step--current .ck-step-label { color: var(--blue); font-weight: 700; }
.ck-step--pending .ck-step-label { color: var(--text-muted); }

/* ─── "Why we built it this way" ────────────────────────────────────────── */
.why-card {
  background: #fffdf0;
  border: 1px solid #fde68a;
  border-radius: 16px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.why-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.95rem 1.2rem;
  background: transparent;
  border: none;
  font-size: 0.87rem;
  font-weight: 700;
  font-family: inherit;
  color: #78350f;
  cursor: pointer;
  text-align: left;
  gap: 0.5rem;
  transition: background 0.12s;
}
.why-toggle:hover { background: rgba(253,230,138,0.3); }
.why-chevron { font-size: 0.78rem; transition: transform 0.2s; flex-shrink: 0; color: #92400e; }
.why-body { padding: 0 1.2rem 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.84rem;
  color: #78350f;
  line-height: 1.5;
}
.why-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: #d97706;
  border-radius: 50%;
  margin-top: 0.48rem;
}

/* ─── Ask AI card (ChatGPT-style) ────────────────────────────────────────── */
.ask-ai-card {
  background: #ffffff;
  border: 1px solid #c7d2fe;
  border-radius: 20px;
  padding: 1.3rem 1.4rem;
  margin-bottom: 1rem;
  position: relative;
}
.ask-ai-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.ask-ai-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #ffffff;
  flex-shrink: 0;
}
.ask-ai-htext { flex: 1; min-width: 0; }
.ask-ai-title { font-size: 0.97rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.ask-ai-sub   { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }
.ask-ai-coming {
  flex-shrink: 0;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: #e0e7ff;
  color: #3730a3;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  margin-top: 0.1rem;
}
/* Conversation thread — hidden until the first question is asked */
.ask-ai-thread {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  max-height: 320px;
  overflow-y: auto;
}
.ask-ai-thread--active { display: flex; }
.ask-ai-msg {
  font-size: 0.85rem;
  line-height: 1.55;
  padding: 0.6rem 0.85rem;
  border-radius: 13px;
  max-width: 88%;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.ask-ai-msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}
.ask-ai-msg--ai {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.ask-ai-msg--typing { color: var(--text-muted); letter-spacing: 2px; }

.ask-ai-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.3rem 0.5rem 0.3rem 0.85rem;
  margin-bottom: 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ask-ai-input-wrap:focus-within {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.ask-ai-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  color: var(--text);
  font-family: inherit;
  outline: none;
  padding: 0.35rem 0;
}
.ask-ai-input::placeholder { color: var(--text-muted); }
.ask-ai-send {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.ask-ai-send:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ask-ai-send:active { transform: translateY(0); }
.ask-ai-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ask-ai-chip {
  font-size: 0.78rem;
  color: #4338ca;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 99px;
  padding: 0.28rem 0.75rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}
.ask-ai-chip:hover { background: #e0e7ff; border-color: #a5b4fc; transform: translateY(-1px); }

/* ─── AI Summary text rewrite ────────────────────────────────────────────── */
.ai-summary-text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.ai-summary-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
  padding: 0.6rem 0.85rem;
  background: var(--bg);
  border-radius: 10px;
  border-left: 3px solid var(--blue);
}
.ai-summary-note--warn {
  background: #fffbeb;
  border-left-color: #f59e0b;
  color: #92400e;
}
.ai-summary-note-link {
  color: #b45309;
  font-weight: 600;
  text-decoration: underline;
}
.ai-summary-note-link:hover { color: #92400e; }

/* ─── Review actions row ─────────────────────────────────────────────────── */
.rs-review-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* ─── What We Built — feature cards ─────────────────────────────────────── */
.ww-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.ww-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.ww-feature-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-med); }
.ww-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.ww-feature-icon--blue   { background: #eff6ff; color: #1a73e8; }
.ww-feature-icon--green  { background: #f0fdf4; color: #16a34a; }
.ww-feature-icon--purple { background: #f5f3ff; color: #7c3aed; }
.ww-feature-icon--amber  { background: #fffbeb; color: #d97706; }
.ww-feature-content { flex: 1; min-width: 0; }
.ww-feature-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.ww-feature-desc {
  font-size: 0.79rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.3rem;
}
.ww-feature-count {
  font-size: 0.73rem;
  color: #6366f1;
  font-weight: 600;
}

/* ─── AI Recommendations card ────────────────────────────────────────────── */
.ai-rec-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 18px;
  padding: 1.1rem 1.4rem;
  margin-bottom: 1rem;
  animation: fadeInUp 0.38s ease 0.08s both;
}
.ai-rec-header { margin-bottom: 0.85rem; }
.ai-rec-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
}
.ai-rec-list { display: flex; flex-direction: column; gap: 0.55rem; }
.ai-rec-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.84rem;
  color: #166534;
  line-height: 1.5;
}
.ai-rec-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: #16a34a;
  border-radius: 50%;
  margin-top: 0.5rem;
}

/* ─── Ask AI — Coming Soon card ──────────────────────────────────────────── */
.ai-chat-card {
  position: relative;
  background: #ffffff;
  border: 1px dashed #c7d2fe;
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  opacity: 0.78;
  overflow: hidden;
}
.ai-chat-coming-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: #e0e7ff;
  color: #3730a3;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
}
.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.ai-chat-icon {
  width: 36px;
  height: 36px;
  background: #eff6ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--blue);
  flex-shrink: 0;
}
.ai-chat-title { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.ai-chat-sub   { font-size: 0.77rem; color: var(--text-muted); margin-top: 0.1rem; }
.ai-chat-examples { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ai-chat-example {
  font-size: 0.78rem;
  color: #4338ca;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 99px;
  padding: 0.25rem 0.7rem;
  font-style: italic;
}

/* ─── Campaign Progress card ─────────────────────────────────────────────── */
.camp-progress-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.1rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.42s ease 0.12s both;
}
.camp-progress-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.camp-progress-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.camp-progress-steps::before {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(50% / 4);
  right: calc(50% / 4);
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.camp-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  gap: 0.5rem;
}
.camp-progress-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.camp-progress-dot--done    { background: var(--green); color: #fff; }
.camp-progress-dot--pending { background: var(--bg); color: var(--text-muted); border: 2px solid var(--border); }
.camp-progress-step--done .camp-progress-step-title   { color: var(--green); font-weight: 600; }
.camp-progress-step--pending .camp-progress-step-title { color: var(--text-muted); }
.camp-progress-step-title { font-size: 0.75rem; font-weight: 600; }
.camp-progress-step-sub   { font-size: 0.67rem; color: var(--text-muted); line-height: 1.3; }

/* ─── Hero CTA ────────────────────────────────────────────────────────────── */
.rv-hero-cta-wrap {
  margin-bottom: 1.1rem;
  animation: fadeInUp 0.45s ease 0.15s both;
}
.rv-hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, #1a73e8, #1557b0);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: -0.2px;
  box-shadow: 0 6px 24px rgba(26,115,232,0.3), 0 2px 8px rgba(26,115,232,0.15);
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s;
  margin-bottom: 0.75rem;
}
.rv-hero-cta:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1557b0, #0d47a1);
  box-shadow: 0 10px 32px rgba(26,115,232,0.4), 0 4px 12px rgba(26,115,232,0.2);
}
.rv-hero-cta:active { transform: translateY(0); }
.rv-secondary-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.rv-secondary-actions .rv-action-v2-btn { flex: 1; min-width: 140px; }

/* ─── What's Next panel ──────────────────────────────────────────────────── */
.whats-next-panel {
  background: #111827;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
  overflow: hidden;
}
.whats-next-inner {
  padding: 1.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(79,70,229,0.15) 0%, transparent 60%);
}
.whats-next-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
  letter-spacing: -0.3px;
}
.whats-next-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.whats-next-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.whats-next-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.83rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  transition: background 0.12s, border-color 0.12s;
}
.whats-next-btn:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.35); color: #ffffff; }
.whats-next-btn--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.whats-next-btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.15);
}
.whats-next-soon {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.4rem;
  letter-spacing: 0.3px;
}

/* ─── Accordion label wrapper ────────────────────────────────────────────── */
.rv-accordion-label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

/* ─── Tester bar ─────────────────────────────────────────────────────────── */
.tester-bar {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  color: #78350f;
}

/* ─── Dev section label ──────────────────────────────────────────────────── */
.dev-section { margin-bottom: 1.5rem; }
.dev-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.dev-panel {
  background: #f8f9fa;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  height: 100%;
}
.dev-panel-blue { background: #f0f7ff; border-color: #bfdbfe; }
.dev-panel-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; }

/* ─── Sticky bar amber state ────────────────────────────────────────────── */
.sticky-bar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.sticky-bar-dot--green { background: #16a34a; }
.sticky-bar-dot--amber { background: #d97706; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .ww-built-grid { grid-template-columns: repeat(2, 1fr); }
  .ww-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .sum-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .rv-actions-v2 { grid-template-columns: 1fr; }
  .rv-action-v2--primary { grid-column: span 1; }
  .rv-action-v2--full { grid-column: span 1; }
  .camp-progress-steps { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .camp-progress-steps::before { display: none; }
  .rv-secondary-actions { flex-direction: column; }
  .rv-secondary-actions .rv-action-v2-btn { min-width: 0; }
  .ck-preview-panel { display: none; }
  .loading-cards-side { display: none !important; }
  .loading-progress-side { flex: 0 0 auto; width: 100%; }
  .loading-inner { justify-content: center; }

  .rv-stats { grid-template-columns: repeat(3, 1fr); }
  .rv-stats .rv-stat-card:nth-child(4),
  .rv-stats .rv-stat-card:nth-child(5) { grid-column: span 1; }

  .ag-card-chips { display: none; }
  .rv-sitelinks-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (max-width: 768px) {
  .ck-hero-headline { font-size: 2rem; letter-spacing: -0.8px; }
  .ck-hero-sub { font-size: 0.95rem; }
  .ck-form-card { padding: 1.25rem; }
  .ww-built-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .rv-actions-v2 { grid-template-columns: 1fr; gap: 0.65rem; }
  .rv-action-v2--primary { grid-column: span 1; }
  .next-steps-card, .ww-built-card { border-radius: 14px; padding: 1rem 1.1rem; }
  .rs-ag-card { border-radius: 14px; }
  .rs-ov-key { flex: 0 0 80px; }

  /* Review page mobile */
  .rv-headline { font-size: 1.5rem; }
  .rv-stats { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .rv-stats .rv-stat-value { font-size: 1.65rem; }

  .rv-actions { flex-direction: column; }
  .rv-action-btn { width: 100%; }

  .rv-accordion-meta { display: none; }

  .ag-card-header { flex-wrap: wrap; gap: 0.5rem; }
  .ag-view-label { margin-left: auto; }

  .rv-summary-key { flex: 0 0 90px; }

  .rv-sitelinks-grid { grid-template-columns: 1fr; }

  /* Sticky bar mobile */
  .sticky-export-bar {
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    transform: none;
    border-radius: 16px;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.65rem 0.9rem;
  }
  .sticky-bar-status {
    border-right: none; margin-right: 0; width: 100%;
    padding-right: 0; padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
  }
  .sticky-bar-btn { font-size: 0.74rem; padding: 0.35rem 0.65rem; }

  .ck-action-btn { padding: 1.25rem 1rem; }
  .table td:first-child { white-space: normal; }
  .card-body { padding: 0.9rem 1rem; }
  .ww-feature-grid { grid-template-columns: 1fr; }
  .sum-cards-grid { grid-template-columns: 1fr; }
  .camp-progress-steps { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .whats-next-actions { flex-direction: column; }
  .whats-next-btn { justify-content: center; }
  .rv-hero-cta { height: 50px; font-size: 0.93rem; }
  .rv-secondary-actions { flex-direction: column; }
  .rv-hero { padding: 1.4rem 1.1rem 1.3rem; border-radius: 16px; }
  .rv-hero-headline { font-size: 1.4rem; }
  .rv-hero-secondary { flex-direction: column; }
  .rv-hero-secondary > * { min-width: 0; }
  .ck-steps { flex-wrap: nowrap; gap: 0; }
  .ck-step-label { font-size: 0.63rem; }
  .ck-step-dot { width: 26px; height: 26px; font-size: 0.72rem; }
  .ck-step-line { margin-top: 12px; }
  .ask-ai-chips { gap: 0.4rem; }
  .ask-ai-chip { font-size: 0.72rem; }
  .rs-review-actions { flex-direction: column; }
}
