/* ═══════════════════════════════════════════════════════════════════════════
   SEO Audit Tool — Main Stylesheet
   Design: Dark Navy + Electric Teal — Poppins + DM Sans
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ─── RESET & BASE ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:      #0ff4c6;
  --teal-dim:  #0de0b4;
  --navy:      #0a1628;
  --navy-mid:  #0d2040;
  --navy-card: #111c35;
  --navy-border: #1e3a5f;
  --text:      #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim:  #64748b;
  --pass:      #22c55e;
  --warn:      #f59e0b;
  --fail:      #ef4444;
  --info:      #3b82f6;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(0,0,0,.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ─── SCROLLBAR ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--navy-border); border-radius: 3px; }

/* ─── BACKGROUND GRID ──────────────────────────────────────────────────────── */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(15,244,198,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,244,198,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-orb {
  position: fixed; pointer-events: none; z-index: 0;
  border-radius: 50%; filter: blur(120px);
}
.bg-orb-1 { width: 600px; height: 600px; background: rgba(15,244,198,.05); top: -200px; right: -100px; }
.bg-orb-2 { width: 400px; height: 400px; background: rgba(59,130,246,.05); bottom: 100px; left: -100px; }

/* ─── LAYOUT ────────────────────────────────────────────────────────────────── */
#app { position: relative; z-index: 1; min-height: 100vh; }

.screen { display: none; }
.screen.active { display: block; }

/* ─── NAVBAR ────────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 40px;
  background: rgba(10,22,40,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30,58,95,.4);
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 800; font-size: 18px;
  color: var(--teal);
  letter-spacing: -.5px;
  text-decoration: none;
}
.navbar-logo span { color: var(--text); }
.navbar-badge {
  background: rgba(15,244,198,.1);
  color: var(--teal);
  border: 1px solid rgba(15,244,198,.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ─── HERO / LANDING ────────────────────────────────────────────────────────── */
#screen-landing {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 120px 20px 80px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(15,244,198,.08);
  border: 1px solid rgba(15,244,198,.2);
  color: var(--teal);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeInDown .6s ease both;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; background: var(--teal);
  border-radius: 50%; animation: pulse 2s infinite;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 20px;
  animation: fadeInUp .6s .1s ease both;
}
.hero-title .accent { color: var(--teal); }

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 48px;
  font-weight: 400;
  animation: fadeInUp .6s .2s ease both;
}

/* ─── INPUT BOX ─────────────────────────────────────────────────────────────── */
.audit-form-wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  animation: fadeInUp .6s .3s ease both;
}

.audit-input-box {
  display: flex;
  background: var(--navy-card);
  border: 1.5px solid var(--navy-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: 0 8px 40px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.04);
}
.audit-input-box:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15,244,198,.12), 0 8px 40px rgba(0,0,0,.4);
}

.input-prefix {
  display: flex; align-items: center;
  padding: 0 0 0 20px;
  color: var(--text-dim);
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

#domain-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  padding: 18px 16px;
}
#domain-input::placeholder { color: var(--text-dim); }

.btn-analyze {
  background: var(--teal);
  color: var(--navy);
  border: none;
  padding: 14px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0 13px 13px 0;
  transition: background .2s, transform .1s;
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  margin: 4px;
  border-radius: 10px;
}
.btn-analyze:hover { background: var(--teal-dim); }
.btn-analyze:active { transform: scale(.97); }

.input-error-msg {
  color: var(--fail);
  font-size: 12px;
  margin-top: 8px;
  display: none;
  text-align: left;
  padding-left: 4px;
}
.input-error-msg.show { display: block; }

/* ─── TRUST INDICATORS ───────────────────────────────────────────────────────── */
.trust-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 24px;
  margin-top: 40px;
  animation: fadeInUp .6s .4s ease both;
  flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 7px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
}
.trust-item .icon { font-size: 14px; }

/* ─── SCAN ANIMATION ────────────────────────────────────────────────────────── */
#screen-scanning {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 100px 20px 60px;
}

.scan-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 20px;
  padding: 48px;
  width: 100%;
  max-width: 540px;
  box-shadow: var(--shadow);
  text-align: center;
}

.scan-domain {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 8px;
  word-break: break-all;
}
.scan-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 36px; }

/* Radar animation */
.scan-radar {
  width: 80px; height: 80px;
  margin: 0 auto 32px;
  position: relative;
}
.radar-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--teal);
  animation: radarPulse 2s ease infinite;
}
.radar-ring:nth-child(2) { animation-delay: .5s; }
.radar-ring:nth-child(3) { animation-delay: 1s; }
.radar-center {
  position: absolute; inset: 30px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--teal);
}

/* Progress bar */
.scan-progress-wrap { margin-bottom: 28px; }
.scan-progress-bar {
  height: 4px;
  background: var(--navy-border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}
.scan-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--teal), #3b82f6);
  border-radius: 2px;
  transition: width .4s ease;
  position: relative;
  overflow: hidden;
}
.scan-progress-fill::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0; width: 60px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4));
  animation: shimmer 1.2s infinite;
}
.scan-progress-text {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-dim);
}

/* Stages */
.scan-stages { text-align: left; }
.stage-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--text-dim);
  transition: all .3s;
}
.stage-item.active { background: rgba(15,244,198,.06); color: var(--text); }
.stage-item.done { color: var(--pass); }

.stage-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.stage-item .stage-icon { background: rgba(255,255,255,.05); color: var(--text-dim); }
.stage-item.active .stage-icon { background: rgba(15,244,198,.15); color: var(--teal); }
.stage-item.done .stage-icon { background: rgba(34,197,94,.15); color: var(--pass); }

.stage-spinner {
  width: 12px; height: 12px;
  border: 2px solid rgba(15,244,198,.2);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  margin-left: auto;
}

/* ─── RESULTS SCREEN ────────────────────────────────────────────────────────── */
#screen-results {
  padding: 100px 20px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Sticky header */
.results-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  margin-bottom: 32px;
}
.results-domain {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 800;
}
.results-domain span { color: var(--teal); }
.btn-new-scan {
  background: transparent;
  border: 1.5px solid var(--navy-border);
  color: var(--text-muted);
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.btn-new-scan:hover { border-color: var(--teal); color: var(--teal); }

/* Score hero */
.score-hero {
  background: linear-gradient(135deg, var(--navy-card) 0%, rgba(15,244,198,.04) 100%);
  border: 1px solid var(--navy-border);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
}

.score-circle-wrap { text-align: center; }
.score-circle-svg { display: block; transform: rotate(-90deg); }
.score-circle-bg  { fill: none; stroke: rgba(255,255,255,.06); }
.score-circle-fg  { fill: none; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.4,0,.2,1); }

.score-text-wrap {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  text-align: center;
}
.score-number {
  font-family: 'Poppins', sans-serif;
  font-size: 42px; font-weight: 800;
  line-height: 1;
}
.score-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; }
.score-grade {
  font-size: 16px; font-weight: 700;
  margin-top: 4px;
}

.score-center {
  position: relative;
  width: 160px; height: 160px;
  flex-shrink: 0;
}

/* Section scores */
.score-breakdown { display: flex; flex-direction: column; gap: 12px; }
.score-row { display: flex; align-items: center; gap: 14px; }
.score-row-label { font-size: 13px; font-weight: 600; width: 140px; flex-shrink: 0; }
.score-bar-track {
  flex: 1; height: 6px; background: rgba(255,255,255,.06);
  border-radius: 3px; overflow: hidden;
}
.score-bar-fill { height: 100%; border-radius: 3px; transition: width 1s ease .3s; }
.score-row-val { font-size: 13px; font-weight: 700; width: 40px; text-align: right; }

.score-cta { text-align: center; }
.btn-get-report {
  background: linear-gradient(135deg, var(--teal), #3b82f6);
  color: var(--navy);
  border: none;
  padding: 16px 36px;
  border-radius: 12px;
  font-size: 15px; font-weight: 800;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .15s, opacity .15s;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}
.btn-get-report:hover { transform: translateY(-2px); opacity: .95; }
.btn-get-report:active { transform: translateY(0); }
.report-note { font-size: 11px; color: var(--text-dim); margin-top: 8px; }

/* Tabs */
.results-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--navy-border);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tab-btn {
  padding: 12px 20px;
  font-size: 13px; font-weight: 600;
  color: var(--text-dim);
  border: none; background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--teal); border-bottom-color: var(--teal); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Check cards */
.checks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.check-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex; align-items: flex-start; gap: 14px;
  transition: border-color .2s;
}
.check-card:hover { border-color: rgba(15,244,198,.2); }
.check-card.pass { border-left: 3px solid var(--pass); }
.check-card.fail { border-left: 3px solid var(--fail); }
.check-card.warn { border-left: 3px solid var(--warn); }
.check-card.info { border-left: 3px solid var(--info); }

.check-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.check-card.pass .check-icon { background: rgba(34,197,94,.12); }
.check-card.fail .check-icon { background: rgba(239,68,68,.12); }
.check-card.warn .check-icon { background: rgba(245,158,11,.12); }
.check-card.info .check-icon { background: rgba(59,130,246,.12); }

.check-body { flex: 1; min-width: 0; }
.check-title { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.check-msg { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.check-value {
  font-size: 11px; color: var(--text-dim);
  margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Issue list */
.issues-section { margin-bottom: 28px; }
.issues-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.issue-count { background: rgba(239,68,68,.15); color: var(--fail); padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.warn-count  { background: rgba(245,158,11,.15); color: var(--warn); padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; }

.issue-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: var(--navy-card);
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--navy-border);
}
.issue-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.issue-dot.fail { background: var(--fail); box-shadow: 0 0 6px var(--fail); }
.issue-dot.warn { background: var(--warn); box-shadow: 0 0 6px var(--warn); }
.issue-text { font-size: 13px; flex: 1; }
.issue-section { font-size: 11px; color: var(--text-dim); }

/* Recs */
.rec-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 18px;
  background: var(--navy-card);
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--navy-border);
  transition: border-color .2s;
}
.rec-item:hover { border-color: rgba(15,244,198,.15); }
.rec-priority {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  margin-top: 2px;
}
.rec-priority.high   { background: rgba(239,68,68,.15); color: var(--fail); }
.rec-priority.medium { background: rgba(245,158,11,.15); color: var(--warn); }
.rec-priority.low    { background: rgba(34,197,94,.15); color: var(--pass); }
.rec-text { font-size: 13px; line-height: 1.5; }

/* Chart section */
.chart-wrap {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}
.chart-title { font-size: 14px; font-weight: 700; margin-bottom: 20px; }
.chart-container { max-height: 260px; }

/* ─── LEAD MODAL ────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 20px;
  padding: 40px;
  width: 100%; max-width: 440px;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  transform: translateY(20px);
  transition: transform .3s;
  position: relative;
}
.modal-overlay.open .modal-card { transform: translateY(0); }

.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--text-dim);
  font-size: 20px; cursor: pointer; padding: 4px 8px;
  border-radius: 6px; transition: color .15s;
}
.modal-close:hover { color: var(--text); }

.modal-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(15,244,198,.15), rgba(59,130,246,.15));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.modal-title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px; font-weight: 800;
  margin-bottom: 8px;
}
.modal-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }

.modal-highlights {
  display: flex; gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.modal-highlight {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
}
.modal-highlight::before { content: '✓'; color: var(--teal); font-weight: 700; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 6px; }
.form-group input {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1.5px solid var(--navy-border);
  border-radius: 10px;
  color: var(--text);
  padding: 12px 16px;
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  outline: none; transition: border-color .2s;
}
.form-group input:focus { border-color: var(--teal); }

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--teal), #3b82f6);
  color: var(--navy);
  border: none; border-radius: 12px;
  padding: 16px;
  font-size: 15px; font-weight: 800;
  cursor: pointer; margin-top: 8px;
  font-family: 'DM Sans', sans-serif;
  transition: transform .15s, opacity .15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover { opacity: .95; transform: translateY(-1px); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.modal-privacy { font-size: 11px; color: var(--text-dim); text-align: center; margin-top: 12px; }

/* Success state */
.modal-success {
  text-align: center; padding: 20px 0;
  display: none;
}
.modal-success.show { display: block; }
.success-icon { font-size: 56px; margin-bottom: 16px; animation: bounceIn .6s ease; }
.success-title { font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.success-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.btn-download {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: var(--navy);
  padding: 14px 28px; border-radius: 10px;
  font-size: 14px; font-weight: 700;
  text-decoration: none; transition: background .2s;
}
.btn-download:hover { background: var(--teal-dim); }

/* ─── FOOTER ────────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--navy-border);
  padding: 24px 40px;
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
}

/* ─── ANIMATIONS ────────────────────────────────────────────────────────────── */
@keyframes fadeInUp    { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }
@keyframes fadeInDown  { from { opacity:0; transform: translateY(-16px); } to { opacity:1; transform: translateY(0); } }
@keyframes spin        { to { transform: rotate(360deg); } }
@keyframes pulse       { 0%,100% { opacity:1; transform: scale(1); } 50% { opacity:.5; transform: scale(1.3); } }
@keyframes radarPulse  { 0% { transform: scale(.4); opacity:1; } 100% { transform: scale(1.6); opacity:0; } }
@keyframes shimmer     { 0% { transform: translateX(-100%); } 100% { transform: translateX(200%); } }
@keyframes bounceIn    { 0% { transform: scale(0); } 70% { transform: scale(1.1); } 100% { transform: scale(1); } }

/* ─── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar { padding: 14px 20px; }
  .score-hero { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .score-center { margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .checks-grid { grid-template-columns: 1fr; }
  #screen-results { padding: 90px 16px 60px; }
  .scan-card { padding: 28px 20px; }
  .modal-card { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .hero-title { letter-spacing: -1px; }
  .trust-bar { gap: 14px; }
  .score-hero { padding: 24px; }
  .results-tabs { font-size: 12px; }
  .tab-btn { padding: 10px 12px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   NEW FEATURE STYLES — v2.0
   Keywords · Local SEO · Backlinks · Competitor · AI Insights
══════════════════════════════════════════════════════════════════════════ */

/* ─── Shared Feature Layout ─────────────────────────────────────────────── */
.feature-section       { padding: 4px 0 20px; }
.feature-heading       { font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 700; color: var(--text-bright); margin: 0 0 6px; }
.feature-desc          { color: var(--text-muted); font-size: 14px; margin: 0 0 24px; line-height: 1.6; }
.feature-row           { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature-col           { display: flex; flex-direction: column; }
.sub-heading           { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); margin: 0 0 12px; }
.pill-wrap             { display: flex; flex-wrap: wrap; gap: 8px; }

/* ─── Keywords Tab ───────────────────────────────────────────────────────── */
.primary-kw-badge {
  display: inline-block; background: rgba(0,244,198,.12);
  color: var(--teal); border: 1px solid rgba(0,244,198,.3);
  padding: 8px 20px; border-radius: 30px;
  font-size: 16px; font-weight: 700; letter-spacing: .5px;
}
.kw-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 12px; }
.kw-card  {
  background: var(--navy-card); border: 1px solid var(--navy-border);
  border-radius: 10px; padding: 14px 16px;
  transition: border-color .2s;
}
.kw-card:hover       { border-color: var(--teal); }
.kw-word             { font-size: 15px; font-weight: 700; color: var(--text-bright); margin-bottom: 4px; }
.kw-freq             { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.kw-badges           { display: flex; flex-wrap: wrap; gap: 4px; }
.kw-badge            { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.kw-badge.pass       { background: rgba(34,197,94,.15); color: #22c55e; }
.kw-badge.miss       { background: rgba(255,255,255,.06); color: var(--text-dim); }
.lt-pill             {
  background: rgba(0,244,198,.08); color: var(--teal);
  border: 1px solid rgba(0,244,198,.2); border-radius: 20px;
  padding: 5px 14px; font-size: 13px; font-weight: 500;
}

/* ─── Local SEO Tab ─────────────────────────────────────────────────────── */
.local-score-header {
  display: flex; align-items: center; gap: 28px;
  background: var(--navy-card); border: 1px solid var(--navy-border);
  border-radius: 14px; padding: 24px 28px;
}
.local-score-circle {
  width: 96px; height: 96px; border-radius: 50%;
  border: 4px solid var(--lc, var(--teal));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.local-score-num  { font-size: 28px; font-weight: 800; line-height: 1; }
.local-score-lbl  { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }
.local-grade      { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.local-nap        { font-size: 14px; color: var(--text-muted); }
.local-nap-msg    { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.checks-grid      { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 12px; }
.check-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--navy-card); border: 1px solid var(--navy-border);
  border-radius: 10px; padding: 14px 16px;
}
.check-card.pass  { border-left: 3px solid #22c55e; }
.check-card.warn  { border-left: 3px solid #f59e0b; }
.check-card.fail  { border-left: 3px solid #ef4444; }
.check-card.info  { border-left: 3px solid #60a5fa; }
.check-icon       { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.check-title      { font-size: 13px; font-weight: 700; color: var(--text-bright); margin-bottom: 3px; }
.check-msg        { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.check-value      { font-size: 11px; color: var(--teal); margin-top: 4px; font-family: monospace; }

/* ─── Backlinks Tab ─────────────────────────────────────────────────────── */
.bl-source-badge {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 600; margin-bottom: 20px;
}
.bl-source-badge.api { background: rgba(34,197,94,.12); color: #22c55e; border: 1px solid rgba(34,197,94,.25); }
.bl-source-badge.est { background: rgba(96,165,250,.12); color: #60a5fa; border: 1px solid rgba(96,165,250,.25); }
.bl-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.bl-stat-card  {
  background: var(--navy-card); border: 1px solid var(--navy-border);
  border-radius: 12px; padding: 20px 16px; text-align: center;
}
.bl-stat-icon  { font-size: 24px; margin-bottom: 8px; }
.bl-stat-val   { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.bl-stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.bl-meter-wrap { background: var(--navy-card); border: 1px solid var(--navy-border); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.bl-meter-label { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.bl-meter-track { height: 8px; background: rgba(255,255,255,.08); border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.bl-meter-fill  { height: 100%; border-radius: 8px; transition: width 1s ease; }
.bl-meter-val   { font-size: 13px; font-weight: 700; }
.bl-table       { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.bl-table td    { padding: 8px 12px; border-bottom: 1px solid var(--navy-border); font-size: 13px; }
.bl-label       { color: var(--text-muted); width: 160px; }
.bl-val         { color: var(--text-bright); font-weight: 600; }
.bl-tip         {
  background: rgba(0,244,198,.06); border: 1px solid rgba(0,244,198,.15);
  border-radius: 10px; padding: 14px 18px; font-size: 13px;
  color: var(--text-muted); line-height: 1.6;
}

/* ─── Competitor Tab ────────────────────────────────────────────────────── */
.competitor-input-wrap { padding: 8px 0; }
.comp-form    { display: flex; gap: 12px; margin-bottom: 24px; }
.comp-form input {
  flex: 1; background: var(--navy-card); border: 1.5px solid var(--navy-border);
  border-radius: 10px; padding: 12px 16px; color: var(--text-bright);
  font-size: 14px; outline: none; transition: border-color .2s;
}
.comp-form input:focus { border-color: var(--teal); }
.btn-comp-scan {
  background: var(--teal); color: var(--navy); border: none;
  padding: 12px 24px; border-radius: 10px; font-weight: 700;
  font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: opacity .2s;
}
.btn-comp-scan:hover    { opacity: .85; }
.btn-comp-scan:disabled { opacity: .5; cursor: not-allowed; }
.comp-loading {
  display: flex; align-items: center; gap: 14px;
  padding: 28px; color: var(--text-muted); font-size: 14px;
}
.comp-spinner {
  width: 24px; height: 24px; border: 3px solid var(--navy-border);
  border-top-color: var(--teal); border-radius: 50%;
  animation: spin .8s linear infinite; flex-shrink: 0;
}
.comp-error {
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25);
  border-radius: 10px; padding: 16px 20px; color: #ef4444; font-size: 14px;
}
.comp-header {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 20px;
}
.comp-score-card {
  flex: 1; background: var(--navy-card); border: 1px solid var(--navy-border);
  border-radius: 14px; padding: 22px; text-align: center;
}
.comp-domain    { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; word-break: break-all; }
.comp-score-num { font-size: 42px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.comp-grade     { font-size: 15px; font-weight: 700; }
.comp-vs        { font-size: 20px; font-weight: 900; color: var(--text-dim); flex-shrink: 0; }
.comp-verdict   {
  border: 1.5px solid; border-radius: 10px; padding: 14px 18px;
  font-size: 14px; font-weight: 600; margin-bottom: 20px; text-align: center;
}
.cmp-table      { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmp-table th   { text-align: left; padding: 10px 14px; color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .6px; border-bottom: 1px solid var(--navy-border); }
.cmp-table td   { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.04); }
.cmp-label      { color: var(--text-muted); }
.cmp-val        { color: var(--text-bright); font-weight: 600; text-align: right; }
.cmp-val.cmp-win { color: #22c55e; }

/* ─── AI Insights Tab ───────────────────────────────────────────────────── */
.ai-input-wrap { padding: 8px 0; }
.btn-ai-scan {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; border: none; padding: 14px 32px;
  border-radius: 12px; font-weight: 700; font-size: 15px;
  cursor: pointer; margin-bottom: 24px; display: inline-block;
  transition: opacity .2s; box-shadow: 0 4px 20px rgba(99,102,241,.3);
}
.btn-ai-scan:hover    { opacity: .88; }
.btn-ai-scan:disabled { opacity: .5; cursor: not-allowed; }
.ai-loading {
  display: flex; align-items: center; gap: 14px;
  padding: 28px; color: var(--text-muted); font-size: 14px;
}
.ai-spinner {
  width: 26px; height: 26px; border: 3px solid var(--navy-border);
  border-top-color: #6366f1; border-radius: 50%;
  animation: spin .8s linear infinite; flex-shrink: 0;
}
.ai-summary-box {
  display: flex; gap: 16px; align-items: flex-start;
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(139,92,246,.08));
  border: 1px solid rgba(99,102,241,.25); border-radius: 14px;
  padding: 22px; margin-bottom: 24px;
}
.ai-summary-icon { font-size: 32px; flex-shrink: 0; margin-top: 2px; }
.ai-summary-text { font-size: 15px; color: var(--text-bright); line-height: 1.7; }
.ai-sections     { display: flex; flex-direction: column; gap: 24px; }
.ai-section      { background: var(--navy-card); border: 1px solid var(--navy-border); border-radius: 14px; padding: 20px 22px; }
.ai-section-title { font-size: 14px; font-weight: 800; color: var(--text-bright); margin: 0 0 16px; text-transform: uppercase; letter-spacing: .6px; }
.ai-item {
  padding: 12px 0; border-bottom: 1px solid var(--navy-border);
}
.ai-item:last-child { border-bottom: none; padding-bottom: 0; }
.ai-item-main { font-size: 14px; color: var(--text-bright); margin-bottom: 6px; line-height: 1.5; }
.ai-item-why  { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; line-height: 1.4; }
.ai-item-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ai-badge     { padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.ai-timeframe { font-size: 11px; color: var(--text-dim); }
.ai-content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); gap: 12px; }
.ai-content-card {
  background: rgba(99,102,241,.07); border: 1px solid rgba(99,102,241,.2);
  border-radius: 10px; padding: 14px 16px;
}
.ai-content-type  { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: #8b5cf6; margin-bottom: 6px; }
.ai-content-title { font-size: 13px; font-weight: 700; color: var(--text-bright); margin-bottom: 6px; line-height: 1.4; }
.ai-content-kw    { font-size: 11px; color: var(--text-muted); }
.ai-edge-box {
  background: rgba(0,244,198,.06); border: 1px solid rgba(0,244,198,.15);
  border-radius: 10px; padding: 16px 18px;
  font-size: 14px; color: var(--text-muted); line-height: 1.7;
}

/* ─── Responsive: new features ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .feature-row         { grid-template-columns: 1fr; }
  .bl-stats-grid       { grid-template-columns: repeat(2, 1fr); }
  .comp-form           { flex-direction: column; }
  .comp-header         { flex-direction: column; }
  .comp-vs             { transform: rotate(90deg); }
  .kw-grid             { grid-template-columns: repeat(2, 1fr); }
  .local-score-header  { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .bl-stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .kw-grid        { grid-template-columns: 1fr 1fr; }
  .ai-content-grid { grid-template-columns: 1fr; }
}
