/* =============================================================================
   SitemapTherapist UI Stylesheet
   Fonts  : Poppins (headings), Inter (body) — Google Fonts
   Palette: #4096EE Flock_Blue · #3F4C6B Mozilla_Blue · #36393D Shadows_Grey
   ============================================================================= */

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

/* ── CSS Custom Properties ─────────────────────────────────────────────────── */
:root {
  --blue:        #4096EE;  /* Flock_Blue */
  --blue-hover:  #356AA0;  /* Digg_Blue */
  --blue-bg:     #C3D9FF;  /* Gmail_blue */
  --blue-border: #C3D9FF;  /* Gmail_blue */
  --purple:      #3F4C6B;  /* Mozilla_Blue */
  --purple-light:#4096EE;  /* Flock_Blue */
  --purple-bg:   #C3D9FF;  /* Gmail_blue */
  --dark:        #36393D;  /* Shadows_Grey */
  --dark2:       #36393D;  /* Shadows_Grey */
  --body-text:   #36393D;  /* Shadows_Grey */
  --muted:       #3F4C6B;  /* Mozilla_Blue */
  --muted2:      #3F4C6B;  /* Mozilla_Blue */
  --bg-page:     #FFFFFF;  /* Reddit_white */
  --bg-soft:     #F9F7ED;  /* Magnolia */
  --border:      #EEEEEE;  /* Shiny_silver */
  --border-blue: #C3D9FF;  /* Gmail_blue */
  --border-card: #EEEEEE;  /* Shiny_silver */
  --include:     #4096EE;  /* blue — include is positive/actionable */
  --include-bg:  #EBF4FF;  /* very light blue */
  --review:      #B02B2C;  /* medium red — review needs attention */
  --review-bg:   #FDEAEA;  /* very light red */
  --exclude:     #CC0000;  /* strong red — exclude is a hard stop */
  --exclude-bg:  #FDEAEA;  /* very light red */
  --radius-sm:   8px;
  --radius:      10px;
  --radius-lg:   12px;
  --radius-pill: 20px;
  --shadow-xs:   0 1px 3px rgba(54,57,61,.04);
  --shadow-sm:   0 2px 8px rgba(54,57,61,.07);
  --shadow:      0 4px 16px rgba(54,57,61,.09);
}

/* ── Reset / Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { min-height: 100%; background: #FFFFFF; }

body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  color: var(--body-text);
  background: var(--bg-page);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Icon helpers ──────────────────────────────────────────────────────────── */
.icon    { width: 16px; height: 16px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon-sm { width: 14px; height: 14px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon-md { width: 18px; height: 18px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon-lg { width: 22px; height: 22px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon-xl { width: 28px; height: 28px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon-2xl{ width: 40px; height: 40px; display: inline-block; vertical-align: middle; flex-shrink: 0; }


/* =============================================================================
   1. FORM VIEW
   ============================================================================= */

.form-page::before {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 42%,
    rgba(63,76,107,.07) 0%,
    rgba(63,76,107,.04) 40%,
    transparent 70%);
  pointer-events: none; z-index: 0;
}

.form-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px; position: relative;
}

.form-wrapper {
  max-width: 520px; width: 100%;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; position: relative; z-index: 1;
}

.brand-mark {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: #FFFFFF;
  border: 1.5px solid #C3D9FF;
  box-shadow: 0 1px 4px rgba(63,76,107,.10), 0 4px 16px rgba(63,76,107,.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  color: var(--purple-light);
}

.form-title {
  font-family: 'Poppins', sans-serif;
  font-size: 38px; font-weight: 700;
  color: var(--dark); letter-spacing: -1.5px;
  margin-bottom: 10px; line-height: 1.1;
}

.form-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 15px; color: var(--muted2);
  margin-bottom: 36px; line-height: 1.6;
}

.form-card {
  width: 100%;
  display: flex; flex-direction: column; gap: 10px;
}

/* URL input row */
.url-row { position: relative; display: flex; align-items: center; }

.url-icon {
  position: absolute; left: 14px;
  color: var(--muted2); pointer-events: none;
}

.url-input {
  width: 100%;
  padding: 14px 16px 14px 42px;
  font-family: 'Inter', sans-serif; font-size: 15px;
  background: #FFFFFF; color: var(--dark);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  box-shadow: var(--shadow-xs);
}
.url-input::placeholder { color: #EEEEEE; }
.url-input:focus {
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(64,150,238,.12);
}

.btn-submit {
  margin-top: 4px;
  padding: 14px 24px;
  background: var(--dark); color: #FFFFFF;
  border: none; border-radius: var(--radius-lg);
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .18s, box-shadow .18s, transform .14s;
  box-shadow: 0 2px 8px rgba(54,57,61,.18);
  letter-spacing: .1px;
}
.btn-submit:hover {
  background: #36393D;
  box-shadow: 0 4px 16px rgba(54,57,61,.22);
  transform: translateY(-1px);
}

.form-features {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-top: 32px;
}
.feature-pill {
  background: var(--bg-soft);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: .78rem; color: var(--muted);
  text-align: left; max-width: 152px;
  display: flex; flex-direction: column; gap: 4px;
}
.feature-pill strong { color: var(--dark2); font-size: .82rem; }
.feature-pill .icon { color: var(--purple); margin-bottom: 2px; }

.form-disclaimer {
  margin-top: 22px; font-size: .78rem; color: #3F4C6B;
}

.error-msg {
  background: #F9F7ED; color: #B02B2C;
  border: 1px solid #EEEEEE;
  border-radius: var(--radius); padding: 10px 16px;
  margin-bottom: 14px; font-size: .85rem;
  display: flex; align-items: center; gap: 8px;
}


/* =============================================================================
   2. LOADING VIEW
   ============================================================================= */

.loading-page {
  min-height: 100vh;
  background: #FFFFFF;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 20px; padding: 40px 20px; text-align: center;
}

.loading-spinner {
  width: 44px; height: 44px;
  border: 2.5px solid var(--border);
  border-top-color: var(--purple-light);
  border-radius: 50%;
  animation: spin .9s linear infinite;
  margin-bottom: 8px;
}

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

.loading-title {
  font-family: 'Poppins', sans-serif;
  font-size: 19px; font-weight: 600;
  color: var(--dark); margin: 0;
}

.loading-msg {
  font-family: 'Inter', sans-serif;
  font-size: 14px; color: var(--muted2);
  margin: 0; min-height: 22px;
  transition: opacity .35s;
  max-width: 380px; line-height: 1.55;
}

.progress-track {
  width: 340px; max-width: 88vw;
  height: 4px; background: #C3D9FF;
  border-radius: 99px; overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-hover), var(--blue));
  border-radius: 99px;
  transition: width .6s ease;
}

.progress-pct {
  font-family: 'Inter', sans-serif;
  font-size: .8rem; color: var(--muted);
}

.loading-url {
  font-family: 'Inter', sans-serif;
  font-size: .78rem; color: var(--purple-light);
  max-width: 400px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}


/* =============================================================================
   3. RESULTS — top bar
   ============================================================================= */

.top-bar {
  position: sticky; top: 0;
  height: 52px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-blue);
  box-shadow: 0 2px 10px rgba(64,150,238,.06);
  z-index: 500;
  display: flex; align-items: center;
  padding: 0 24px; gap: 14px;
  overflow: hidden;
}

.tb-brand {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.6px; color: var(--purple);
  text-transform: uppercase; flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
}

.tb-divider {
  color: #C3D9FF; font-size: 20px; line-height: 1; flex-shrink: 0;
}

.tb-site {
  font-family: 'Inter', sans-serif;
  font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1;
}

.tb-actions {
  display: flex; gap: 8px; flex-shrink: 0; align-items: center;
}

.btn-dl {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600;
  border-radius: var(--radius-sm); cursor: pointer;
  text-decoration: none; border: none;
  transition: all .15s; white-space: nowrap;
}
.btn-dl-primary {
  background: var(--blue); color: #FFFFFF;
}
.btn-dl-primary:hover { background: var(--blue-hover); text-decoration: none; color: #FFFFFF; }

.btn-dl-ghost {
  background: none; color: #36393D;
  border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 6px;
}
.btn-dl-ghost:hover { background: var(--bg-soft); border-color: #C3D9FF; color: var(--dark2); text-decoration: none; }


/* =============================================================================
   4. RESULTS — page layout
   ============================================================================= */

.results-page { background: var(--bg-page); min-height: 100vh; }

.results-body {
  max-width: 1160px; margin: 0 auto;
  padding: 28px 24px 64px;
}


/* =============================================================================
   5. SUMMARY STATS BAR
   ============================================================================= */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px; margin-bottom: 28px;
}

.stat-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-xs);
  text-align: center;
}

.stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem; font-weight: 700; line-height: 1;
}
.stat-label  { font-size: .76rem; color: var(--muted); margin-top: 5px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 4px; }
.stat-sub    { font-size: .68rem; color: #EEEEEE; margin-top: 2px; }

.c-blue   { color: var(--blue); }
.c-purple { color: var(--purple); }
.c-green  { color: var(--include); }
.c-amber  { color: var(--review); }
.c-red    { color: var(--exclude); }
.c-dark   { color: var(--dark); }
.c-muted  { color: var(--muted); }


/* =============================================================================
   6. TABS — pill style
   ============================================================================= */

.tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 0;
}

.tab-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600;
  border: 1.5px solid var(--border-blue);
  border-radius: var(--radius-pill);
  background: #FFFFFF; color: #36393D;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
  margin-top: 0;
}
.tab-btn:hover:not(.active) {
  background: var(--bg-soft);
  border-color: var(--blue-border);
  color: var(--blue);
}
.tab-btn.active {
  background: var(--blue); color: #FFFFFF;
  border-color: var(--blue);
}
.tab-btn .icon { opacity: .9; }

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


/* =============================================================================
   7. SECTION HEADING
   ============================================================================= */

.section-header {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 16px;
}
.section-icon-wrap {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.section-icon-blue   { background: var(--blue-bg);   color: var(--blue); }
.section-icon-purple { background: var(--purple-bg);  color: var(--purple); }
.section-icon-green  { background: var(--include-bg); color: var(--include); }
.section-icon-amber  { background: var(--review-bg);  color: var(--review); }
.section-icon-red    { background: var(--exclude-bg); color: var(--exclude); }

.section-info { flex: 1; }
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--dark); line-height: 1.2;
  display: flex; align-items: center; gap: 8px;
}
.section-count {
  font-family: 'Inter', sans-serif;
  background: var(--blue-bg); color: var(--blue);
  font-size: .7rem; font-weight: 700;
  padding: 2px 9px; border-radius: 99px;
}
.section-sub {
  font-size: .82rem; color: var(--muted);
  margin-top: 3px; line-height: 1.45;
}


/* =============================================================================
   8. IGNORE HIGHLIGHT
   ============================================================================= */

.ignore-highlight {
  background: #F9F7ED;
  border: 1.5px solid #EEEEEE;
  border-radius: var(--radius);
  padding: 28px 32px; text-align: center;
  margin-bottom: 22px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.ignore-pct {
  font-family: 'Poppins', sans-serif;
  font-size: 3.6rem; font-weight: 800;
  color: var(--exclude); line-height: 1;
}
.ignore-label {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem; font-weight: 600;
  color: #B02B2C;
}
.ignore-sub { font-size: .82rem; color: var(--muted2); max-width: 420px; line-height: 1.5; }


/* =============================================================================
   9. TABLES
   ============================================================================= */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}

table {
  width: 100%; border-collapse: collapse;
  background: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
}

thead { background: var(--bg-soft); }

th {
  padding: 11px 14px; text-align: left;
  font-weight: 700; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); white-space: nowrap;
  border-bottom: 1px solid var(--border-card);
}

td {
  padding: 10px 14px;
  border-top: 1px solid #F9F7ED;
  vertical-align: middle; color: var(--body-text);
}

tr:hover td { background: var(--bg-soft); }

.url-cell { max-width: 260px; word-break: break-all; }
.url-cell a { color: var(--blue); font-size: .79rem; }
.url-cell a:hover { text-decoration: underline; }


/* =============================================================================
   10. BADGES
   ============================================================================= */

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 99px;
  font-size: .7rem; font-weight: 700;
  white-space: nowrap; line-height: 1.4;
}

.badge-include { background: var(--include-bg); color: var(--include); }
.badge-review  { background: var(--review-bg);  color: var(--review); }
.badge-exclude { background: var(--exclude-bg); color: var(--exclude); }

.intent-commercial  { background: #C3D9FF;         color: #3F4C6B; }
.intent-info        { background: var(--blue-bg);   color: var(--blue); }
.intent-conversion  { background: var(--include-bg); color: #356AA0; }
.intent-low         { background: #EEEEEE;           color: #3F4C6B; }

.badge-freq { background: var(--blue-bg); color: var(--blue); }


/* =============================================================================
   11. SCORE BAR
   ============================================================================= */

.score-bar-wrap { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.score-bar { height: 5px; border-radius: 99px; flex: 1; background: #EEEEEE; overflow: hidden; min-width: 60px; }
.score-fill { height: 100%; border-radius: 99px; }
.fill-high   { background: #4096EE; }
.fill-medium { background: #3F4C6B; }
.fill-low    { background: #CC0000; }

.priority-high      { color: #4096EE; font-weight: 700; }
.priority-medium    { color: #3F4C6B; font-weight: 600; }
.priority-low       { color: var(--review); font-weight: 600; }
.priority-very-low  { color: #EEEEEE; }


/* =============================================================================
   12. DECISION COLUMNS
   ============================================================================= */

.decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.decision-col {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.decision-col-header {
  padding: 12px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: .85rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border-card);
}
.dch-include { background: var(--include-bg); color: var(--include); }
.dch-review  { background: var(--review-bg);  color: var(--review); }
.dch-exclude { background: var(--exclude-bg); color: var(--exclude); }

.decision-col-body { max-height: 380px; overflow-y: auto; }

.dcb-item {
  padding: 10px 16px;
  border-bottom: 1px solid #F9F7ED;
  font-size: .79rem;
}
.dcb-item:last-child { border-bottom: none; }
.dcb-url { color: var(--blue); word-break: break-all; line-height: 1.4; }
.dcb-reason { color: var(--muted); margin-top: 3px; font-size: .72rem; }


/* =============================================================================
   13. FIX CHECKLIST (accordion)
   ============================================================================= */

.checklist-group {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.checklist-header {
  padding: 13px 16px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; user-select: none;
  font-family: 'Inter', sans-serif;
  font-size: .85rem; font-weight: 600; color: var(--dark2);
  transition: background .15s;
}
.checklist-header:hover { background: var(--bg-soft); }

.checklist-count {
  background: var(--blue-bg); color: var(--blue);
  font-size: .68rem; font-weight: 700;
  padding: 2px 8px; border-radius: 99px;
}

.checklist-arrow {
  margin-left: auto; color: var(--muted2);
  transition: transform .2s; display: flex;
}
.checklist-header.open .checklist-arrow { transform: rotate(180deg); }

.checklist-body { border-top: 1px solid var(--border-card); }

.checklist-item {
  padding: 10px 16px 10px 36px;
  border-bottom: 1px solid #F9F7ED;
  font-size: .8rem;
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item strong { color: var(--dark2); display: block; margin-bottom: 2px; word-break: break-all; }
.checklist-item span { color: var(--muted); font-size: .74rem; }

.fix-tip {
  background: #EBF4FF;
  border-left: 3px solid #4096EE;
  padding: 9px 14px;
  margin: 8px 16px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .78rem; color: #356AA0;
  display: flex; align-items: flex-start; gap: 6px;
  line-height: 1.5;
}


/* =============================================================================
   14. INTENT GRID
   ============================================================================= */

.intent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px; margin-bottom: 22px;
}

.intent-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 18px 14px; text-align: center;
  box-shadow: var(--shadow-xs);
}
.intent-num {
  font-family: 'Poppins', sans-serif;
  font-size: 1.9rem; font-weight: 700; line-height: 1;
}
.intent-label {
  font-size: .74rem; font-weight: 600;
  color: var(--muted); margin-top: 5px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.intent-desc { font-size: .68rem; color: #EEEEEE; margin-top: 3px; }


/* =============================================================================
   15. DOWNLOAD CARDS
   ============================================================================= */

.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.dl-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius);
  padding: 26px 22px; text-align: center;
  box-shadow: var(--shadow-xs);
  transition: border-color .18s, box-shadow .18s, transform .15s;
  display: flex; flex-direction: column; align-items: center;
}
.dl-card:hover {
  border-color: var(--blue-border);
  box-shadow: 0 4px 16px rgba(64,150,238,.08);
  transform: translateY(-2px);
}
.dl-card.featured { border-color: var(--blue); }

.dl-icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.dl-icon-blue   { background: var(--blue-bg);   color: var(--blue); }
.dl-icon-purple { background: var(--purple-bg);  color: var(--purple); }
.dl-icon-green  { background: var(--include-bg); color: var(--include); }

.dl-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: .95rem; font-weight: 700;
  color: var(--dark); margin-bottom: 6px;
}
.dl-card-desc {
  font-size: .79rem; color: var(--muted);
  line-height: 1.5; margin-bottom: 8px;
}
.dl-card-meta {
  font-size: .72rem; color: #EEEEEE;
  margin-bottom: 16px;
}

.btn-download {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 11px 20px;
  background: var(--dark); color: #FFFFFF;
  border: none; border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: .83rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background .15s, transform .12s;
  box-shadow: 0 2px 6px rgba(54,57,61,.15);
}
.btn-download:hover { background: #36393D; transform: translateY(-1px); color: #FFFFFF; text-decoration: none; }

.dl-tip {
  background: var(--bg-soft);
  border: 1px solid var(--border-blue);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px; margin-top: 22px;
  font-size: .8rem; color: var(--body-text); line-height: 1.55;
  display: flex; align-items: flex-start; gap: 8px;
}


/* =============================================================================
   16. UTILITY
   ============================================================================= */

.empty-state {
  text-align: center; padding: 40px 20px;
  color: var(--muted); font-size: .88rem;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}

.issues-inline { margin: 0; padding: 0; list-style: none; }
.issues-inline li {
  font-size: .73rem; color: var(--muted);
  margin-top: 3px; padding-left: 10px; position: relative;
}
.issues-inline li::before {
  content: '·'; position: absolute; left: 0; color: #C3D9FF;
}

/* =============================================================================
   17. STATS LOGIN PAGE
   ============================================================================= */

.stats-login-page {
  min-height: 100vh;
  background: #F9F7ED;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}

.stats-login-card {
  background: #FFFFFF;
  border: 1px solid #EEEEEE;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 44px 40px 36px;
  width: 100%; max-width: 380px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

.stats-login-icon {
  width: 52px; height: 52px;
  background: #36393D;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  color: #EEEEEE;
  margin-bottom: 20px;
}

.stats-login-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  color: #36393D;
  margin-bottom: 6px;
}

.stats-login-sub {
  font-size: .83rem; color: #3F4C6B;
  margin-bottom: 24px; line-height: 1.5;
}

.stats-login-error {
  background: #FDEAEA;
  border: 1px solid #EEEEEE;
  border-left: 3px solid #CC0000;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #CC0000;
  font-size: .8rem;
  padding: 9px 14px;
  margin-bottom: 18px;
  width: 100%;
  display: flex; align-items: center; gap: 7px;
  text-align: left;
}

.stats-login-form {
  width: 100%;
  display: flex; flex-direction: column; gap: 10px;
}

.stats-login-input {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif; font-size: 14px;
  background: #FFFFFF; color: #36393D;
  border: 1.5px solid #EEEEEE;
  border-radius: var(--radius);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  text-align: center; letter-spacing: .12em;
}
.stats-login-input:focus {
  border-color: #4096EE;
  box-shadow: 0 0 0 3px rgba(64,150,238,.12);
}

.stats-login-btn {
  padding: 12px 20px;
  background: #36393D; color: #FFFFFF;
  border: none; border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: .88rem; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .15s, transform .12s;
}
.stats-login-btn:hover {
  background: #3F4C6B;
  transform: translateY(-1px);
}


/* =============================================================================
   19. STATS ADMIN PAGE
   ============================================================================= */

.stats-admin-page {
  min-height: 100vh;
  background: #F9F7ED;
  display: flex; flex-direction: column;
}

.stats-admin-bar {
  position: sticky; top: 0;
  background: #36393D;
  padding: 0 28px;
  height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 500;
  flex-shrink: 0;
}

.stats-admin-brand {
  font-family: 'Poppins', sans-serif;
  font-size: .85rem; font-weight: 700;
  color: #EEEEEE; letter-spacing: .4px;
  display: flex; align-items: center; gap: 8px;
}

.stats-admin-meta {
  display: flex; align-items: center; gap: 12px;
}

.stats-admin-count {
  font-family: 'Inter', sans-serif;
  font-size: .78rem; font-weight: 600;
  color: #C3D9FF;
  background: rgba(64,150,238,.18);
  padding: 3px 12px; border-radius: 99px;
}

.stats-admin-body {
  max-width: 1200px; width: 100%;
  margin: 0 auto;
  padding: 32px 28px 80px;
  flex: 1;
}

.stats-admin-file {
  margin-top: 16px;
  font-size: .75rem; color: var(--muted);
}
.stats-admin-file code {
  font-family: 'Courier New', monospace;
  background: #EEEEEE;
  padding: 2px 6px; border-radius: 4px;
  font-size: .73rem;
}

.blocked-domains-panel {
  margin-top: 36px;
  background: #FFFFFF;
  border: 1px solid #EEEEEE;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.blocked-domains-header {
  padding: 14px 20px;
  background: #36393D;
  color: #EEEEEE;
  font-family: 'Poppins', sans-serif;
  font-size: .85rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}

.blocked-domains-body {
  padding: 20px;
  display: flex; flex-direction: column; gap: 18px;
}

.blocked-cat-title {
  font-family: 'Inter', sans-serif;
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: #3F4C6B;
  margin-bottom: 8px;
}

.blocked-cat-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}

.blocked-tag {
  font-family: 'Courier New', monospace;
  font-size: .74rem;
  background: #F9F7ED;
  border: 1px solid #EEEEEE;
  color: #36393D;
  padding: 3px 9px;
  border-radius: 4px;
}


/* =============================================================================
   20. FOOTER BAR  (visible on all views)
   ============================================================================= */

.site-footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 36px;
  background: #FFFFFF;
  border-top: 1px solid #EEEEEE;
  display: flex; align-items: center; justify-content: center;
  z-index: 400;
}

.about-link {
  font-family: 'Inter', sans-serif;
  font-size: .75rem; font-weight: 500;
  color: #3F4C6B;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 99px;
  transition: background .15s, color .15s;
  cursor: pointer; border: none; background: none;
}
.about-link:hover {
  background: #F9F7ED;
  color: #4096EE;
  text-decoration: none;
}


/* =============================================================================
   21. ABOUT MODAL
   ============================================================================= */

.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(54,57,61,.55);
  z-index: 1000;
  align-items: center; justify-content: center;
  padding: 24px 16px;
  backdrop-filter: blur(2px);
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(54,57,61,.22), 0 2px 8px rgba(54,57,61,.10);
  width: 100%; max-width: 620px;
  max-height: 88vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: modalIn .2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.modal-header {
  padding: 22px 28px 18px;
  border-bottom: 1px solid #EEEEEE;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
  background: #F9F7ED;
}

.modal-header-left {
  display: flex; align-items: center; gap: 12px;
}

.modal-header-icon {
  width: 36px; height: 36px;
  background: #C3D9FF;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #4096EE; flex-shrink: 0;
}

.modal-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  color: #36393D; line-height: 1.2;
}
.modal-subtitle {
  font-size: .75rem; color: #3F4C6B;
  margin-top: 2px;
}

.modal-close {
  width: 30px; height: 30px;
  border: none; background: none; cursor: pointer;
  border-radius: 6px;
  color: #3F4C6B;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.modal-close:hover { background: #EEEEEE; color: #36393D; }

.modal-body {
  padding: 28px 28px 8px;
  overflow-y: auto;
  flex: 1;
}

.modal-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: .95rem; font-weight: 700;
  color: #36393D;
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.modal-section-title::before {
  content: '';
  display: inline-block;
  width: 3px; height: 16px;
  background: #4096EE;
  border-radius: 99px;
  flex-shrink: 0;
}

.modal-body p {
  font-size: .87rem; color: #3F4C6B;
  line-height: 1.7; margin: 0 0 10px;
}

.modal-divider {
  border: none; border-top: 1px solid #EEEEEE;
  margin: 22px 0;
}

.modal-steps {
  margin: 0 0 10px; padding: 0;
  list-style: none; counter-reset: steps;
  display: flex; flex-direction: column; gap: 12px;
}
.modal-steps li {
  counter-increment: steps;
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .87rem; color: #3F4C6B; line-height: 1.6;
}
.modal-steps li::before {
  content: counter(steps);
  min-width: 24px; height: 24px;
  background: #4096EE; color: #FFFFFF;
  border-radius: 50%;
  font-family: 'Poppins', sans-serif;
  font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.modal-steps li strong { color: #36393D; }
.modal-steps li code {
  font-family: 'Courier New', monospace;
  font-size: .8rem;
  background: #F9F7ED;
  border: 1px solid #EEEEEE;
  border-radius: 4px;
  padding: 1px 6px;
  color: #356AA0;
}

.modal-callout {
  background: #F9F7ED;
  border: 1px solid #EEEEEE;
  border-left: 3px solid #4096EE;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin-top: 4px;
}
.modal-callout p {
  margin: 0 0 4px;
  font-size: .87rem; color: #3F4C6B; line-height: 1.65;
}
.modal-callout p:last-child { margin: 0; }
.modal-callout strong { color: #36393D; }

.modal-footer {
  padding: 16px 28px 20px;
  flex-shrink: 0;
  display: flex; justify-content: flex-end;
  border-top: 1px solid #EEEEEE;
}

.modal-btn-close {
  padding: 9px 24px;
  background: #36393D; color: #FFFFFF;
  border: none; border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: .83rem; font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.modal-btn-close:hover { background: #3F4C6B; }


/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .form-title  { font-size: 26px; }
  .top-bar     { padding: 0 14px; gap: 8px; }
  .results-body { padding: 18px 14px 48px; }
  .stats-bar   { grid-template-columns: 1fr 1fr; }
  .ignore-pct  { font-size: 2.8rem; }
  th, td       { padding: 8px 10px; }
  .dl-grid     { grid-template-columns: 1fr; }
  .modal-body  { padding: 20px 18px 8px; }
  .modal-header { padding: 18px 18px 14px; }
  .modal-footer { padding: 14px 18px 16px; }
}
