/* ===== AI Humanizer — Minimal Clean Theme ===== */
/* Google Fonts loaded inline in HTML head for async non-blocking loading */
:root {
  --font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'SF Mono', 'Cascadia Code', 'JetBrains Mono', Consolas, monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --radius-lg: 16px;
  --transition: .2s ease;
}

[data-theme="light"] {
  color-scheme: light;
  --text: #1a1a1a;
  --text2: #4a4a4a;
  --text3: #888;
  --bg: #f0f0f0;
  --surface: #fff;
  --surface2: #f7f7f7;
  --surface3: #f0f0f0;
  --border: #e0e0e0;
  --border-hover: #ccc;
  --primary: #e74c3c;
  --primary-hover: #c0392b;
  --success: #22c55e;
  --success-light: rgba(34, 197, 94, .08);
  --danger: #dc2626;
  --danger-light: rgba(220, 38, 38, .08);
  --warning: #f59e0b;
  --gradient: #e74c3c
}

[data-theme="dark"] {
  --text: #e0e0e0;
  --text2: #c0c0c0;
  --text3: #999;
  --bg: #111;
  --surface: #1e1e1e;
  --surface2: #171717;
  --surface3: #222;
  --border: #333;
  --border-hover: #555;
  --primary: #e74c3c;
  --primary-hover: #f87171;
  --success: #22c55e;
  --success-light: rgba(34, 197, 94, .10);
  --danger: #dc2626;
  --danger-light: rgba(220, 38, 38, .10);
  --warning: #f59e0b;
  --gradient: #e74c3c
}

[data-theme="blue"] {
  color-scheme: light;
  --text: #1a2332;
  --text2: #3a5068;
  --text3: #6b8299;
  --bg: #e2eaf5;
  --surface: #f8fafd;
  --surface2: #f0f5fa;
  --surface3: #e8eef6;
  --border: #c8d9ed;
  --border-hover: #a8c0dc;
  --primary: #2c6b9e;
  --primary-hover: #1d5080;
  --success: #22c55e;
  --success-light: rgba(34, 197, 94, .08);
  --danger: #dc2626;
  --danger-light: rgba(220, 38, 38, .08);
  --warning: #f59e0b;
  --gradient: #2c6b9e
}

[data-theme="green"] {
  color-scheme: light;
  --text: #1a2e1a;
  --text2: #2d4a2d;
  --text3: #5a7d5a;
  --bg: #e4efe2;
  --surface: #f8fbf6;
  --surface2: #f0f7ed;
  --surface3: #e8efe6;
  --border: #c0dab8;
  --border-hover: #a0c098;
  --primary: #2d8a4e;
  --primary-hover: #21703d;
  --success: #22c55e;
  --success-light: rgba(34, 197, 94, .08);
  --danger: #dc2626;
  --danger-light: rgba(220, 38, 38, .08);
  --warning: #f59e0b;
  --gradient: #2d8a4e
}

[data-theme="mint"] {
  color-scheme: light;
  --text: #1a2e25;
  --text2: #2d4a3a;
  --text3: #5a7d6a;
  --bg: #e2f0e8;
  --surface: #f8fbf9;
  --surface2: #f0f7f3;
  --surface3: #e8f0ec;
  --border: #b8d8c8;
  --border-hover: #98c0a8;
  --primary: #3a9d7a;
  --primary-hover: #2d7d60;
  --success: #22c55e;
  --success-light: rgba(34, 197, 94, .08);
  --danger: #dc2626;
  --danger-light: rgba(220, 38, 38, .08);
  --warning: #f59e0b;
  --gradient: #3a9d7a
}

[data-theme="lavender"] {
  color-scheme: light;
  --text: #2a1a3a;
  --text2: #4a2d5a;
  --text3: #7a5d8a;
  --bg: #efe5f5;
  --surface: #fbf8fd;
  --surface2: #f5effa;
  --surface3: #ede3f3;
  --border: #d8c8e8;
  --border-hover: #c0a8d8;
  --primary: #7b5ea7;
  --primary-hover: #624a85;
  --success: #22c55e;
  --success-light: rgba(34, 197, 94, .08);
  --danger: #dc2626;
  --danger-light: rgba(220, 38, 38, .08);
  --warning: #f59e0b;
  --gradient: #7b5ea7
}

[data-theme="pink"] {
  color-scheme: light;
  --text: #3a1a2a;
  --text2: #5a2d4a;
  --text3: #8a5d7a;
  --bg: #f5e5ee;
  --surface: #fdf8fa;
  --surface2: #faf0f5;
  --surface3: #f3e3ec;
  --border: #e8c8d8;
  --border-hover: #d8a8c0;
  --primary: #c44a7a;
  --primary-hover: #a83a62;
  --success: #22c55e;
  --success-light: rgba(34, 197, 94, .08);
  --danger: #dc2626;
  --danger-light: rgba(220, 38, 38, .08);
  --warning: #f59e0b;
  --gradient: #c44a7a
}

[data-theme="warm"] {
  color-scheme: light;
  --text: #3a2a1a;
  --text2: #5a3d2d;
  --text3: #8a6d5a;
  --bg: #f0e8e0;
  --surface: #fcf8f4;
  --surface2: #f7f0e8;
  --surface3: #efe6dc;
  --border: #e0c8b0;
  --border-hover: #d0b090;
  --primary: #c07a3a;
  --primary-hover: #a0622d;
  --success: #22c55e;
  --success-light: rgba(34, 197, 94, .08);
  --danger: #dc2626;
  --danger-light: rgba(220, 38, 38, .08);
  --warning: #f59e0b;
  --gradient: #c07a3a
}

[data-theme="gray"] {
  color-scheme: light;
  --text: #2a2a2a;
  --text2: #4a4a4a;
  --text3: #7a7a7a;
  --bg: #e8e8e8;
  --surface: #f8f8f8;
  --surface2: #f0f0f0;
  --surface3: #e4e4e4;
  --border: #d5d5d5;
  --border-hover: #bbb;
  --primary: #666;
  --primary-hover: #444;
  --success: #22c55e;
  --success-light: rgba(34, 197, 94, .08);
  --danger: #dc2626;
  --danger-light: rgba(220, 38, 38, .08);
  --warning: #f59e0b;
  --gradient: #666
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg) }
.hamburger.open span:nth-child(2) { opacity: 0 }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition)
}

a:hover {
  color: var(--primary-hover)
}

/* ===== Scroll Reveal (subtle) ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0)
}

/* ===== Header ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em
}

.logo:hover {
  opacity: .8
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0
}

.header-right {
  display: flex;
  align-items: center;
  gap: 6px
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text2);
}

.nav-links a:hover {
  background: var(--surface2);
  color: var(--text)
}

.nav-links a.active {
  background: var(--surface2);
  color: var(--primary);
  font-weight: 600
}

.nav-dropdown {
  position: relative
}

.nav-dropdown-toggle {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  user-select: none
}

.nav-dropdown-toggle:hover {
  background: var(--surface2);
  color: var(--text)
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
  min-width: 200px;
  z-index: 100;
  padding: 6px 0
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 18px;
  font-size: .9rem;
  color: var(--text2);
  white-space: nowrap
}

.nav-dropdown-menu a:hover {
  background: var(--surface2);
  color: var(--text)
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.theme-toggle:hover {
  background: var(--surface2)
}

/* ===== Theme Dropdown ===== */
.theme-wrap {
  position: relative;
  flex-shrink: 0
}

.theme-drop {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 6px;
  min-width: 140px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
  z-index: 200
}

[data-theme="dark"] .theme-drop {
  background: #1e1e1e;
  border-color: #444;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .5)
}

.theme-drop.open {
  display: block
}

/* ===== Language Dropdown ===== */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 4px
}

.lang-switch button {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text2);
  font-family: inherit
}

.lang-switch button:hover {
  background: var(--surface2)
}

.lang-switch .lang-drop {
  display: none;
  position: absolute;
  top: 115%;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  z-index: 200;
  min-width: 160px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12)
}

[data-theme="dark"] .lang-switch .lang-drop {
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4)
}

.lang-switch .lang-drop.show {
  display: block
}

.lang-switch .lang-drop a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap
}

.lang-switch .lang-drop a:hover {
  background: var(--surface2)
}

.lang-switch .lang-drop a.current {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  font-weight: 600
}

.theme-drop button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  background: none;
  border: none;
  border-radius: 8px;
  font-size: .95rem;
  color: #333;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background .12s
}

[data-theme="dark"] .theme-drop button {
  color: #e0e0e0
}

.theme-drop button:hover {
  background: #f0f0f0
}

[data-theme="dark"] .theme-drop button:hover {
  background: #2a2a2a
}

.theme-drop button.active {
  color: var(--primary);
  font-weight: 600
}

.theme-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 60px 20px 30px;
  margin: 0 auto
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 16px
}

.hero h1 .highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text2);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.65
}

.hero-stats {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap
}

.hero-stats .stat {
  padding: 10px 22px;
  background: var(--surface2);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text2);
}

.hero-stats .stat strong {
  color: var(--primary);
  margin-right: 4px;
  font-weight: 700
}

@media(max-width:768px) {
  .hero {
    padding: 20px 16px 0
  }

  .hero-stats { display: none }

  .hero h1 {
    font-size: 2rem
  }

  .hero-sub {
    font-size: .95rem
  }
}

@media(max-width:480px) {
  .hero h1 {
    font-size: 1.55rem
  }
}

/* ===== Stats Bar ===== */
.stats-bar {
  padding: 32px 20px
}

.stats-bar-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 0
}

.stats-bar .stat-item {
  flex: 1;
  text-align: center;
  padding: 24px 16px;
  border-right: 1px solid var(--border);
}

.stats-bar .stat-item:last-child {
  border-right: none
}

.stats-bar .stat-item strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1
}

.stats-bar .stat-item span {
  display: block;
  font-size: .82rem;
  color: var(--text2);
  margin-top: 6px
}

@media(max-width:640px) {
  .stats-bar-inner {
    flex-wrap: wrap
  }

  .stats-bar .stat-item {
    flex: 0 0 50%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px 12px
  }

  .stats-bar .stat-item strong {
    font-size: 1.5rem
  }
}

/* ===== Compare Table Indicators ===== */
.comp-no {
  color: var(--danger);
  font-weight: 700;
  margin-right: 4px
}

.comp-yes {
  color: var(--success);
  font-weight: 700;
  margin-right: 4px
}

.compare-table .compare-row div {
  display: flex;
  align-items: center
}

/* ===== Page Layout (sticky sidebar ads) ===== */
.page-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 160px;
  gap: 20px;
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 20px 60px
}

@media(max-width:1199px) {
  .page-layout {
    grid-template-columns: 1fr;
    padding: 0 12px 40px
  }
}

.ad-sticky .ad-skyscraper {
  margin: 0
}

/* ===== Tool Layout (legacy flex, kept for backward compat) ===== */
.tool-layout {
  display: flex;
  gap: 20px;
  margin: 0 auto;
  padding: 0 20px 60px;
  align-items: flex-start;
  justify-content: center
}

@media(max-width:1199px) {
  .tool-layout {
    padding: 0 8px 40px
  }
}

.tool-section {
  padding: 0;
  max-width: none
}

.tool-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden
}

.tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  gap: 12px
}

.tool-tabs {
  display: flex;
  gap: 4px
}

.tool-tab {
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 500;
  transition: all .2s ease;
}

.tool-tab.active {
  background: var(--gradient);
  color: #fff
}

.tool-tab:hover:not(.active) {
  color: var(--text);
  background: var(--surface2)
}

/* ===== Mode Buttons ===== */
.mode-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center
}

.mode-free-tag {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text2);
  padding: 4px 8px;
  white-space: nowrap;
  line-height: 1.4
}

.mode-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 500;
  transition: all .2s ease;
}

.mode-btn.active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent
}

.mode-btn:hover:not(.active) {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--surface2)
}

.help-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text2);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s ease
}

.help-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--surface2)
}

/* Mode Help Modal */
.mode-help-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 9999;
  align-items: center;
  justify-content: center
}

.mode-help-overlay.show {
  display: flex
}

.mode-help-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3)
}

.mode-help-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  font-size: 1.1rem;
  font-weight: 700
}

.help-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--surface2);
  color: var(--text2);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease
}

.help-close:hover {
  background: var(--border);
  color: var(--text)
}

.mode-help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 24px 24px
}

.mode-help-grid div {
  font-size: .88rem;
  color: var(--text2);
  line-height: 1.5
}

.mode-help-grid strong {
  display: block;
  color: var(--text);
  font-size: .9rem;
  margin-bottom: 4px
}

@media(max-width:500px) {
  .mode-help-grid {
    grid-template-columns: 1fr
  }
}

.tool-panel {
  display: none;
  padding: 24px
}

.tool-panel.active {
  display: block
}

/* ===== Humanizer Box ===== */
.humanizer-box {
  background: transparent;
  max-width: 1400px;
  margin: -24px auto 0
}

.h-body {
  display: flex;
  gap: 2px;
  background: var(--border);
  height: 460px;
  border-radius: 8px;
  overflow: hidden
}

.h-col {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  padding: 24px 6px 0 24px;
  border-radius: 8px;
  position: relative
}

.sample-area {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.sample-btn {
  padding: 14px 38px;
  font-size: 1.05rem;
  font-weight: 600;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  font-family: var(--font);
  transition: all .2s ease;
}

.sample-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fef2f2
}

.h-col textarea {
  flex: 1;
  min-height: 0;
  display: block;
  width: 100%;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.75;
  padding-right: 10px;
  margin: 0;
  border: 0;
  outline: none;
  resize: none;
  overflow-y: scroll;
  color: var(--text);
  background: transparent;
  text-indent: 0;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.h-col textarea::placeholder {
  color: var(--text3)
}

.h-col textarea[readonly] {
  cursor: default
}

.output-text {
  flex: 1;
  min-height: 0;
  overflow-y: scroll;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.75;
  padding: 0 10px 0 0;
  color: var(--text);
  background: transparent;
  white-space: pre-wrap;
  word-break: break-word;
}

.output-text:empty::before {
  content: 'Your humanized text will appear here...';
  color: var(--text3)
}

.output-text mark {
  background: #d1fae5;
  color: #065f46;
  padding: 1px 3px;
  border-radius: 3px
}

.output-text mark.del {
  background: #fee2e2;
  color: #991b1b;
  text-decoration: line-through
}

/* ===== Scan Animation ===== */
.scan-state {
  padding: 32px 20px;
  text-align: center
}

.scan-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  max-width: 300px;
  margin: 0 auto 14px;
  position: relative
}

.scan-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  animation: scanSweep 1s ease-in-out infinite
}

@keyframes scanSweep {
  0% {
    left: 0
  }

  50% {
    left: 60%
  }

  100% {
    left: 0
  }
}

.scan-text {
  font-size: .88rem;
  color: var(--text2)
}

.scan-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text)
}

.scan-spin {
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite
}

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

.scan-log-wrap {
  position: relative;
  max-height: 210px
}

.scan-log-fade {
  display: none
}

.scan-log {
  max-height: 210px;
  overflow: hidden;
  padding: 4px 16px;
  text-align: left;
  font-size: .92rem;
  line-height: 2.1;
  position: relative;
  z-index: 1
}

.scan-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 0;
  animation: fadeIn .25s ease
}

.scan-status {
  font-size: .85rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0
}

.scan-status.done {
  color: #22c55e;
  text-shadow: 0 0 6px rgba(34, 197, 94, .25)
}

.scan-status.flag {
  color: #ef4444;
  text-shadow: 0 0 6px rgba(239, 68, 68, .25)
}

.scan-msg {
  color: var(--text2)
}

.scan-progress {
  height: 4px;
  background: var(--border);
  margin: 0 16px 10px;
  border-radius: 2px;
  overflow: hidden
}

.scan-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #6366f1);
  width: 0;
  transition: width .35s ease;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(99, 102, 241, .3)
}

.scan-complete {
  text-align: center;
  padding: 30px 20px;
  animation: fadeIn .4s ease
}

.scan-complete-icon {
  font-size: 2.5rem;
  color: #22c55e;
  display: block;
  margin-bottom: 8px;
  text-shadow: 0 0 14px rgba(34, 197, 94, .35)
}

.scan-complete-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text)
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-10px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

.skeleton-pulse {
  animation: skeletonPulse 1.5s ease-in-out infinite
}

.ai-det-item.skeleton-pulse {
  border-color: var(--border);
  background: var(--bg);
  color: var(--text2)
}

@keyframes skeletonPulse {

  0%,
  100% {
    opacity: .5
  }

  50% {
    opacity: .9
  }
}

.skeleton-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text3)
}

.h-col-foot {
  font-size: .92rem;
  color: var(--text2);
  padding: 20px 0 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.h-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.btn-sm {
  padding: 8px 14px !important;
  font-size: .98rem !important;
  font-weight: 500 !important;
  border-radius: 8px !important
}

/* Submit button — compact pill, right side */
.h-btn-inline {
  display: inline-block !important;
  width: auto !important;
  padding: 10px 36px !important;
  font-size: 1.1rem !important;
  border-radius: 10px !important;
  background: var(--gradient) !important;
  color: #fff !important;
  font-weight: 600 !important;
  border: none !important;
  cursor: pointer !important;
  flex-shrink: 0;
  transition: opacity .2s ease !important;
}

.h-btn-inline:hover:not(:disabled) {
  opacity: .85 !important
}

.h-btn-inline:disabled {
  opacity: .35;
  cursor: not-allowed
}

@media(max-width:700px) {
  .humanizer-box {
    margin: -12px auto 0
  }

  .h-body {
    flex-direction: column;
    height: auto;
    min-height: 0
  }

  .h-col {
    min-height: 300px;
    max-height: 360px;
    padding: 16px 12px 0 12px
  }

  .h-col textarea {
    font-size: 1rem
  }

  .output-text {
    font-size: 1rem
  }

  .h-col-foot {
    padding: 14px 0 4px 0;
    gap: 8px;
    flex-direction: column;
    align-items: stretch
  }

  .h-col-foot > div:first-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    justify-content: flex-start
  }

  .h-col-foot .btn-sm {
    padding: 6px 10px !important;
    font-size: .85rem !important
  }

  #modeSelect {
    max-width: 110px !important;
    padding-right: 4px !important
  }

  .mode-help-btn {
    display: none !important
  }

  .h-btn-inline {
    padding: 10px 20px !important;
    font-size: 1rem !important;
    width: 100%
  }

  .h-quota {
    font-size: .8rem
  }

  .h-actions {
    gap: 4px
  }

  .h-actions .btn-sm {
    padding: 6px 10px !important;
    font-size: .82rem !important
  }

  .sample-btn {
    padding: 10px 20px;
    font-size: .92rem
  }

  .tool-panel {
    padding: 6px
  }

  .h-scroll-wrap {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important
  }
}

/* ===== Buttons ===== */
.btn-primary {
  display: block;
  width: 100%;
  padding: 13px 24px;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity .2s ease;
}

.btn-primary:hover {
  opacity: .85
}

.btn-primary:disabled {
  opacity: .35;
  cursor: not-allowed
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  margin-left: 10px;
  vertical-align: middle
}

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

.output-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  min-height: 120px;
  font-size: 1rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word
}

.btn-outline {
  padding: 9px 18px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: .95rem;
  font-weight: 500;
  transition: all .2s ease;
}

.btn-outline:hover {
  background: var(--surface3);
  border-color: var(--border-hover);
}

.error-box {
  background: rgba(239, 68, 68, .1);
  color: var(--danger);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: .9rem;
  margin-top: 14px;
  border: 1px solid rgba(239, 68, 68, .2)
}

/* ===== Unlock ===== */
.unlock-btn {
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s ease
}

.unlock-btn.tweet {
  background: #1d9bf0;
  color: #fff
}

.unlock-btn.tweet:hover {
  opacity: .85
}

.unlock-btn.watch {
  background: var(--surface2);
  color: var(--text);
  border: 1.5px solid var(--border)
}

.unlock-btn.watch:hover {
  background: var(--surface3);
  border-color: var(--border-hover)
}

.ad-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center
}

.ad-overlay-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  max-width: 440px;
  width: 90%
}

.ad-overlay-banner {
  background: var(--surface2);
  border: 1px dashed var(--border);
  border-radius: 8px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  color: var(--text3)
}

/* ===== AI Check Panel ===== */
.ai-check-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 16px;
  overflow: visible
}

.ai-check-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px
}

.ai-check-header.pass-hdr {
  background: rgba(34, 197, 94, .06);
  border-bottom: 1px solid rgba(34, 197, 94, .15)
}

.ai-check-header.warn-hdr {
  background: rgba(245, 158, 11, .06);
  border-bottom: 1px solid rgba(245, 158, 11, .15)
}

.ai-check-header.fail-hdr {
  background: rgba(239, 68, 68, .06);
  border-bottom: 1px solid rgba(239, 68, 68, .15)
}

.ai-check-icon {
  font-size: 1.4rem;
  font-weight: 900;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.pass-hdr .ai-check-icon {
  background: var(--success);
  color: #fff
}

.warn-hdr .ai-check-icon {
  background: var(--warning);
  color: #fff
}

.fail-hdr .ai-check-icon {
  background: var(--danger);
  color: #fff
}

.ai-check-title {
  font-size: .95rem;
  font-weight: 700
}

.ai-check-sub {
  font-size: .82rem;
  color: var(--text2);
  margin-top: 2px
}

.ai-check-body {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 20px;
  flex-wrap: wrap;
  justify-content: center;
  overflow: visible
}

.ai-gauge-wrap {
  flex-shrink: 0
}

.ai-gauge {
  --percent: 0;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: conic-gradient(var(--success) calc(var(--percent)*3.6deg), var(--border) 0);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center
}

.ai-gauge::after {
  content: '';
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--surface)
}

.ai-gauge-text {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: .68rem;
  color: var(--text2);
  line-height: 1.2
}

.ai-gauge-text span {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text)
}

.ai-detectors {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  overflow: visible;
  position: relative;
  z-index: 1
}

.ai-check-body>p {
  flex-basis: 100%;
  text-align: center
}

.ai-det-row {
  display: contents
}

.ai-group {
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s
}

.ai-group:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06)
}

.ai-group-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--bg);
  font-size: .8rem;
  border-radius: 10px
}

.ai-group.open .ai-group-head {
  border-radius: 10px 10px 0 0
}

.ai-group-icon {
  font-size: .9rem
}

.ai-group-name {
  font-weight: 700;
  flex: 1
}

.ai-group-badge {
  padding: 2px 8px;
  border-radius: 99px;
  font-size: .7rem;
  font-weight: 700
}

.ai-group-badge.ok {
  background: rgba(34, 197, 94, .12);
  color: var(--success)
}

.ai-group-badge.warn {
  background: rgba(239, 68, 68, .1);
  color: var(--danger)
}

.ai-group-body {
  display: none;
  padding: 6px 8px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18)
}

.ai-group:not(.open) .ai-group-body {
  display: none
}

.ai-group.open .ai-group-body {
  display: block
}

.ai-det-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid transparent;
  transition: all .2s ease;
  cursor: default
}

.ai-det-item.pass {
  background: rgba(34, 197, 94, .06);
  border-color: rgba(34, 197, 94, .15)
}

.ai-det-item.pass .ai-det-check {
  color: var(--success);
  font-weight: 900
}

.ai-det-item.fail {
  background: rgba(239, 68, 68, .08);
  border-color: rgba(239, 68, 68, .25);
  box-shadow: 0 0 8px rgba(239, 68, 68, .06)
}

.ai-det-item.fail .ai-det-x {
  color: var(--danger);
  font-weight: 900
}

.ai-det-item:hover {
  transform: scale(1.03);
  z-index: 1
}

.ai-det-logo {
  font-size: .78rem;
  width: 20px;
  text-align: center
}

.ai-det-check,
.ai-det-x {
  font-size: .85rem;
  margin-left: auto
}

@media(max-width:600px) {
  .ai-detectors {
    grid-template-columns: 1fr
  }
}

/* ===== Ad Slots ===== */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  border: 1px dashed var(--border);
  border-radius: 8px;
  font-size: .7rem;
  color: var(--text3)
}

.ad-leaderboard {
  width: 728px;
  height: 90px;
  margin: 0 auto 40px
}

.ad-skyscraper {
  width: 160px;
  min-height: 600px;
  flex-shrink: 0;
  position: sticky;
  top: 80px
}

.ad-side {
  display: none
}

.ad-sticky.ad-side {
  display: none
}

@media(min-width:1200px) {
  .ad-side {
    display: flex
  }

  .ad-sticky.ad-side {
    display: block
  }

  .ad-leaderboard {
    max-width: 728px
  }
}

@media(max-width:1199px) {
  .ad-leaderboard {
    width: auto;
    margin: 16px;
    height: 60px
  }
}

/* ===== Demo Panel ===== */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

@media(max-width:700px) {
  .demo-grid {
    grid-template-columns: 1fr
  }
}

.demo-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition)
}

.demo-card:hover {
  border-color: var(--border-hover)
}

.demo-card h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 12px
}

.demo-card.human {
  border-color: rgba(34, 197, 94, .2)
}

.demo-text {
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 14px;
  color: var(--text)
}

.ai-score {
  font-size: .78rem;
  padding: 7px 12px;
  background: var(--bg);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.share-prompt a {
  color: var(--primary)
}

.share-prompt a:hover {
  text-decoration: underline
}

/* ===== Section Dividers ===== */
.seo-section,
.compare-section,
.content-section,
.features-section,
.cta-section {
  position: relative
}

.seo-section::before,
.compare-section::before,
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--border);
}

/* ===== Features ===== */
.features-section {
  padding: 80px 20px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto
}

.features-section h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -.02em
}

.features-section .section-sub {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 520px;
  margin: 0 auto 52px
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: left;
  transition: all var(--transition);
  position: relative;
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08)
}

.feature-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
  transition: background var(--transition)
}

.feature-card:hover::after {
  background: var(--primary)
}

.feature-card .f-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 16px;
  opacity: .85
}

.feature-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px
}

.feature-card p {
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.65
}

.feature-card.featured {
  grid-column: span 2;
  display: flex;
  gap: 20px;
  align-items: flex-start
}

.feature-card.featured .f-icon {
  font-size: 2rem;
  margin-bottom: 0;
  flex-shrink: 0
}

@media(max-width:900px) {
  .features-grid {
    grid-template-columns: 1fr 1fr
  }

  .feature-card.featured {
    grid-column: span 1;
    flex-direction: column
  }
}

@media(max-width:600px) {
  .features-grid {
    grid-template-columns: 1fr
  }
}

/* ===== SEO / Content ===== */
.seo-section,
.compare-section,
.content-section {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto
}

.seo-section h2,
.compare-section h2,
.content-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -.02em
}

.seo-section h2 .highlight,
.compare-section h2 .highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.seo-content p,
.content-wrap p {
  font-size: 1.05rem;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 16px
}

.seo-content h3,
.content-wrap h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 28px 0 12px
}

.seo-content ul,
.content-wrap ul {
  margin: 12px 0 24px 24px
}

.seo-content li,
.content-wrap li {
  font-size: 1rem;
  color: var(--text2);
  margin-bottom: 10px;
  line-height: 1.65
}

/* ===== Compare Table ===== */
.compare-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto
}

.compare-header,
.compare-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  font-size: .95rem
}

.compare-header {
  background: var(--surface2);
  font-weight: 700;
  padding: 14px 20px;
  color: var(--text)
}

.compare-row {
  padding: 13px 20px;
  border-bottom: 1px solid var(--border)
}

.compare-row:last-child {
  border-bottom: none
}

.compare-row .us {
  color: var(--success);
  font-weight: 700
}

/* ===== CTA ===== */
.cta-section {
  text-align: center;
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px
}

.cta-section p {
  color: var(--text2);
  font-size: 1.05rem;
  margin-bottom: 28px
}

.cta-section .btn-hero {
  display: inline-block;
  padding: 13px 36px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  background: var(--gradient);
  color: #fff;
  transition: opacity .2s ease;
}

.cta-section .btn-hero:hover {
  opacity: .85
}

/* ===== Page Hero (sub-pages) ===== */
.page-hero {
  text-align: center;
  padding: 70px 20px 40px;
  max-width: 900px;
  margin: 0 auto
}

.page-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.02em
}

.page-hero h1 .highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.page-hero p {
  color: var(--text2);
  font-size: 1.05rem;
  margin-top: 10px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto
}

/* ===== FAQ Accordion ===== */
.faq-list {
  max-width: 900px;
  margin: 0 auto
}

.faq-accordion {
  border-bottom: 1px solid var(--border)
}

.faq-accordion:first-child {
  border-top: 1px solid var(--border)
}

.faq-accordion .faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  user-select: none;
  gap: 12px;
  transition: color var(--transition);
}

.faq-accordion .faq-q:hover {
  color: var(--primary)
}

.faq-accordion .faq-q .faq-arrow {
  font-size: .7rem;
  transition: transform .25s ease;
  flex-shrink: 0;
  color: var(--text3)
}

.faq-accordion.open .faq-q .faq-arrow {
  transform: rotate(180deg)
}

.faq-accordion .faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease
}

.faq-accordion .faq-a p {
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.7
}

.faq-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 32px 0 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border)
}

.faq-section-title:first-child {
  margin-top: 0
}

/* ===== How It Works — Steps ===== */
.steps-list {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-left: 44px
}

.steps-list::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border)
}

.step-item {
  position: relative;
  margin-bottom: 44px
}

.step-item:last-child {
  margin-bottom: 0
}

.step-num {
  position: absolute;
  left: -44px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface2);
  border: 2px solid var(--border);
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.step-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px
}

.step-item p {
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.7
}

/* ===== Detector Page ===== */
.detector-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden
}

/* ===== Detector Tabs ===== */
.det-tabs{display:flex;gap:0;border-bottom:1px solid var(--border);margin-bottom:0}
.det-tab{padding:10px 20px;border:none;background:none;color:var(--text2);font-size:1rem;font-weight:500;cursor:pointer;border-bottom:2px solid transparent;transition:all .2s}
.det-tab.active,.det-tab:hover{color:var(--primary);border-bottom-color:var(--primary)}

/* ===== Batch Upload ===== */
.batch-drop-zone{border:2px dashed var(--border);border-radius:16px;padding:48px 20px;text-align:center;transition:all .3s;cursor:pointer}
.batch-drop-zone.drag-over,.batch-drop-zone:hover{border-color:var(--primary);background:var(--surface)}
.batch-drop-icon{font-size:3rem;margin-bottom:12px}
.batch-drop-title{font-size:1.1rem;font-weight:700;margin-bottom:6px}
.batch-drop-sub{font-size:.85rem;color:var(--text2);margin-bottom:8px}
.batch-drop-limit{font-size:.72rem;color:var(--text3)}
.batch-table{width:100%;border-collapse:collapse;font-size:.85rem}
.batch-table th{text-align:left;padding:8px 6px;border-bottom:2px solid var(--border);font-size:.75rem;color:var(--text3);font-weight:600}
.batch-table td{padding:10px 6px;border-bottom:1px solid var(--border);vertical-align:middle}
.batch-status{font-size:.78rem;font-weight:600;padding:2px 8px;border-radius:99px}
.batch-status.pending{color:var(--text2)}
.batch-status.human{background:#22c55e20;color:#16a34a}
.batch-status.mixed{background:#f59e0b20;color:#d97706}
.batch-status.ai{background:#ef444420;color:#dc2626}
.batch-status.fail{background:#ef444410;color:#ef4444;font-size:.7rem}

.detector-body {
  display: flex;
  gap: 2px;
  background: var(--border);
  min-height: 0
}

.det-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  padding: 22px;
  border-radius: 8px;
  min-height: 0
}

.det-col textarea {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.75;
  resize: none;
  outline: none;
  padding-right: 10px
}

.det-col textarea::placeholder {
  color: var(--text3)
}

.det-col textarea::-webkit-scrollbar {
  width: 4px
}

.det-col textarea::-webkit-scrollbar-track {
  background: transparent
}

.det-col textarea::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px
}

.det-col textarea::-webkit-scrollbar-thumb:hover {
  background: var(--primary)
}

.det-col textarea {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent
}

.det-highlight-overlay {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 8px 16px 20px;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  word-break: break-word;
  cursor: pointer
}

.det-highlight-overlay::-webkit-scrollbar {
  width: 4px
}

.det-highlight-overlay::-webkit-scrollbar-track {
  background: transparent
}

.det-highlight-overlay::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px
}

.det-highlight-overlay::-webkit-scrollbar-thumb:hover {
  background: var(--primary)
}

.det-highlight-overlay {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent
}

.det-hl-ai {
  background: rgba(239, 68, 68, .18);
  border-left: 3px solid #ef4444;
  padding: 1px 4px;
  border-radius: 0 3px 3px 0;
  color: inherit
}

.det-hl-human {
  background: rgba(34, 197, 94, .15);
  border-left: 3px solid #22c55e;
  padding: 1px 4px;
  border-radius: 0 3px 3px 0;
  color: inherit
}

.det-hl-muted {
  background: rgba(156, 163, 175, .1);
  border-left: 2px solid #9ca3af;
  padding: 1px 4px;
  border-radius: 0 3px 3px 0;
  color: inherit;
  opacity: .7
}

.det-hl-legend {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  align-items: center;
  cursor: default
}

/* Persistent highlight on cross-link click */
.det-active-highlight {
  box-shadow: 0 0 0 4px rgba(250, 204, 21, .45);
  border-radius: 4px;
  transition: box-shadow .2s
}

.det-hl-ai-tag {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 600;
  background: rgba(239, 68, 68, .12);
  color: #ef4444
}

.det-hl-human-tag {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 600;
  background: rgba(34, 197, 94, .1);
  color: #22c55e
}

.det-hl-hint {
  margin-left: auto;
  font-size: .72rem;
  color: var(--text3);
  cursor: text
}

.det-hl-hint:hover {
  color: var(--primary)
}

.det-input-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
  align-items: center
}

.det-input-actions .btn-sm {
  min-width: 120px;
  text-align: center;
  justify-content: center;
  display: inline-flex;
  align-items: center
}

.det-hl-legend-inline {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center
}

.det-word-count {
  font-size: .75rem;
  color: var(--text3);
  margin-left: auto;
  white-space: nowrap
}

.det-edit-btn {
  display: none;
  margin-left: auto;
  font-size: .75rem;
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  cursor: pointer
}

.det-edit-btn:hover {
  color: var(--primary);
  border-color: var(--primary)
}

.det-stats-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  margin-bottom: 10px;
  background: var(--bg2);
  border-radius: 8px;
  font-size: .78rem;
  color: var(--text3)
}

.det-stats-bar b {
  color: var(--text);
  font-weight: 700
}

.det-stat-mini {
  white-space: nowrap
}

.det-result-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center
}

.det-ready {
  text-align: center
}

.det-gauge {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0deg, var(--border) 0deg);
  position: relative;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center
}

.det-gauge::after {
  content: '';
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid rgba(0, 0, 0, .06)
}

.det-gauge-text {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: .88rem;
  color: var(--text2);
  line-height: 1.2
}

.det-gauge-text span {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text)
}

.det-ready-text {
  font-size: 1rem;
  color: var(--text2)
}

.det-verdict-box {
  background: var(--surface2);
  border-radius: 8px;
  padding: 16px;
  width: 100%;
  text-align: left;
  margin-bottom: 12px
}

.det-verdict-title {
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 8px
}

.det-verdict-list {
  list-style: none;
  font-size: .8rem;
  color: var(--text2);
  line-height: 1.8
}

.det-verdict-list li::before {
  content: '• ';
  color: var(--primary)
}

.det-checkers {
  width: 100%;
  text-align: left;
  margin-bottom: 12px
}

.det-checkers-header {
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 6px
}

.det-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: .66rem;
  padding: 1px 7px;
  border-radius: 99px;
  margin-left: 4px
}

.det-checkers-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
  font-size: .76rem;
  color: var(--text2)
}

.det-checker-item {
  display: flex;
  align-items: center;
  gap: 6px
}

.det-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0
}

.det-dot.red {
  background: var(--danger)
}

.det-dot.green {
  background: var(--success)
}

.det-dot.orange {
  background: var(--warning)
}

.det-dot.cyan {
  background: #06b6d4
}

.det-stats {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px
}

.det-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--text2)
}

.det-stat-num {
  margin-left: auto;
  font-weight: 700;
  color: var(--text)
}

.det-footer {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap
}

.det-btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 44px;
  padding: 0 40px;
  font-size: 1.05rem;
  line-height: 1;
  border-radius: 10px
}

.det-btn-sec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  font-size: 1rem;
  line-height: 1;
  border-radius: 10px;
  color: var(--primary);
  border-color: var(--primary);
  transition: background .2s ease;
}

.det-btn-sec:hover {
  background: var(--surface3)
}

.det-disclaimer {
  font-size: .82rem;
  color: var(--text3);
  text-align: center;
  padding: 8px 22px 14px;
  line-height: 1.6
}

.h-disclaimer {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text2);
  text-align: center;
  padding: 6px 22px 10px;
  line-height: 1.6
}

.det-col.det-report-panel {
  background: var(--surface) !important;
  color: var(--text);
  border-radius: 0 !important
}

.det-col.det-report-panel .pro-section-head {
  color: var(--text3)
}

.det-col.det-report-panel .pro-dim-label {
  color: var(--text)
}

.det-col.det-report-panel .pro-dim-score {
  color: var(--text2)
}

.det-col.det-report-panel .pro-dim-detail {
  color: var(--text3)
}

.det-col.det-report-panel .pro-dim-bar {
  background: var(--border)
}

.det-col.det-report-panel .pro-stat-val {
  color: var(--text)
}

.det-col.det-report-panel .pro-stat-lbl {
  color: var(--text3)
}

.det-col.det-report-panel .pro-stat {
  background: var(--surface2)
}

.det-col.det-report-panel .pro-sent-text {
  color: var(--text)
}

.det-col.det-report-panel .pro-sent-num {
  color: var(--text3)
}

.det-col.det-report-panel .cert-desc {
  color: var(--text)
}

.det-col.det-report-panel .cert-meta {
  color: var(--text2)
}

.det-col.det-report-panel .pro-watermark {
  color: var(--text3);
  border-color: var(--border)
}

.det-col.det-report-panel .pro-watermark a {
  color: var(--primary)
}

.det-col.det-report-panel .pro-section {
  border-color: var(--border)
}

.det-col.det-report-panel .pro-dim-row {
  border-color: var(--border)
}

.det-col.det-report-panel .pro-sent {
  border-color: var(--border)
}

.det-col.det-report-panel .pro-btn-outline {
  color: var(--text);
  border-color: var(--border)
}

.det-col.det-report-panel .pro-btn-outline:hover {
  background: var(--surface3)
}

/* ===== AI Detector Report — Arc Gauge Style ===== */
.gauge-wrap {
  text-align: center;
  padding: 10px 0
}

.gauge-bg {
  width: 180px;
  height: 90px;
  border-radius: 90px 90px 0 0;
  margin: 0 auto;
  position: relative;
  overflow: hidden
}

.gauge-inner {
  width: 150px;
  height: 75px;
  border-radius: 75px 75px 0 0;
  background: var(--bg);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 10px;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1
}

.gauge-inner small {
  display: block;
  font-size: .65rem;
  color: var(--text3);
  font-weight: 400;
  margin-top: 2px
}

/* Verdict Card */
.verdict-card {
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  margin: 16px 0
}

.verdict-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  background: var(--bg)
}

.verdict-header:hover {
  background: var(--surface3)
}

.verdict-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  flex-shrink: 0
}

.verdict-title {
  font-size: .95rem;
  font-weight: 700;
  flex: 1
}

.verdict-arrow {
  font-size: .65rem;
  color: var(--text3);
  transition: transform .2s
}

.verdict-card.open .verdict-arrow {
  transform: rotate(180deg)
}

.verdict-body {
  display: none;
  padding: 0 16px 16px
}

.verdict-card.open .verdict-body {
  display: block
}

.verdict-sub {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text2);
  padding: 8px 0 12px
}

.finding-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start
}

.finding-item:last-child {
  border-bottom: none
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px
}

.dot.red {
  background: #ef4444
}

.dot.green {
  background: #22c55e
}

.dot.orange {
  background: #f59e0b
}

.finding-item p {
  font-size: .8rem;
  color: var(--text);
  margin: 0
}

.finding-item blockquote {
  font-size: .75rem;
  color: var(--text2);
  font-style: italic;
  margin: 6px 0 0;
  padding-left: 10px;
  border-left: 2px solid var(--border);
  line-height: 1.4
}

.finding-item.good p {
  color: #22c55e
}

/* Category Bars */
.category-bars {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border)
}

.cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0
}

.cat-dot.red {
  background: #ef4444
}

.cat-dot.orange {
  background: #f59e0b
}

.cat-dot.green {
  background: #22c55e
}

.cat-pct {
  margin-left: auto;
  font-weight: 700;
  font-size: .9rem;
  color: var(--text)
}

/* Export Button */
.btn-export {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  margin: 16px 0;
  transition: opacity .2s
}

.btn-export:hover {
  opacity: .9
}

/* Stamp animation */
@keyframes stampIn {
  from {
    transform: scale(1.4);
    opacity: 0
  }

  to {
    transform: scale(1);
    opacity: 1
  }
}

.stamp-anim {
  animation: stampIn .45s cubic-bezier(.17, .67, .24, 1.02) both
}

.stamp-anim .stamp-num {
  transition: none
}

/* Watermark */
.report-watermark {
  text-align: center;
  padding: 8px 0 0
}

.report-watermark p {
  margin: 2px 0;
  font-size: .72rem;
  color: var(--text3)
}

.report-watermark a {
  color: var(--primary);
  text-decoration: none
}

@media(max-width:900px) {
  .detector-body {
    flex-direction: column !important
  }

  .det-col {
    max-width: 100% !important;
    flex: auto !important;
    max-height: none !important
  }

  /* ===== MOBILE LAYOUT ===== */
  #detSinglePanel { height: auto !important }

  .det-col.det-input {
    padding: 16px 12px !important;
    height: 360px !important;
    max-height: 360px !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .det-col.det-input textarea {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    resize: none !important;
  }
  .det-col.det-input textarea,
  .det-highlight-overlay { font-size: 1rem }

  .det-col.det-report-panel {
    padding: 12px 0 0 0 !important;
    height: 420px !important;
    max-height: 420px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #detReport {
    padding: 0 12px !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  /* ===== MOBILE SCROLL FIX — JS wraps elements with .det-scroll-wrap ===== */
  .det-scroll-wrap {
    flex: 1 1 auto !important;
    min-height: 0 !important;
  }
  .det-scroll-wrap::-webkit-scrollbar { width: 4px !important; }
  .det-scroll-wrap::-webkit-scrollbar-track { background: transparent !important; margin: 4px 0 !important; }
  .det-scroll-wrap::-webkit-scrollbar-thumb { background: var(--border) !important; border-radius: 99px !important; min-height: 40px !important; }
  .det-scroll-wrap::-webkit-scrollbar-thumb:hover { background: var(--primary) !important; }
  .det-scroll-wrap textarea {
    width: 100% !important; height: auto !important;
    border: none !important; background: transparent !important; color: var(--text) !important;
    font-family: var(--font) !important; font-size: 1rem !important; line-height: 1.75 !important;
    resize: none !important; outline: none !important; overflow: hidden !important; padding: 0 !important; margin: 0 !important;
  }
  #detHighlightOverlay {
    overflow: hidden !important;
    padding-bottom: 40px !important;
  }

  /* ===== MOBILE ACTIONS & TEXT ===== */
  .det-report-actions-bar { flex-shrink: 0; flex-wrap: wrap; padding: 10px 12px !important }
  .det-report-actions-bar .btn-sm { font-size: .82rem !important; padding: 8px 10px !important }
  .det-img-report-btn { flex: 0 0 auto !important; padding: 6px 8px !important; font-size: .78rem !important }
  .det-input-actions { gap: 6px }
  .det-input-actions .btn-sm { padding: 6px 10px !important; font-size: .82rem !important }
  .det-stats-bar { flex-wrap: wrap; gap: 4px 8px; font-size: .72rem }
  .det-footer { gap: 8px; padding: 12px }
  .det-btn-main { padding: 0 24px !important; font-size: .95rem !important }
  .det-btn-sec { padding: 0 16px !important; font-size: .88rem !important }
  #detSampleArea .sample-btn { padding: 10px 20px; font-size: .88rem }

  .cert-title { font-size: .88rem !important; }
  .cert-desc { font-size: .75rem !important; }
  .cert-meta { font-size: .65rem !important; }

  .cert-header { padding: 10px 10px 8px 10px !important; gap: 9px !important }
  .pro-section { padding: 0 5px !important }
  .det-highlight-overlay { padding: 0 !important }
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 32px;
  background: var(--surface)
}

.footer {
  padding: 48px 20px 0;
  border-top: 1px solid var(--border);
  margin-top: 60px
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px
}

@media(max-width:768px) {
  .footer {
    padding-top: 32px;
    margin-top: 40px
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px
  }
}

@media(max-width:480px) {
  .footer {
    padding-top: 24px;
    margin-top: 32px
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px
  }
}

.footer-brand {
  font-size: .85rem;
  line-height: 1.6
}

.footer-col h4 {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text3);
  margin-bottom: 6px
}

.footer-col a {
  display: block;
  font-size: .85rem;
  color: var(--text2);
  padding: 4px 0;
  text-decoration: none
}

.footer-col a:hover {
  color: var(--primary)
}

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .72rem;
  color: var(--text3)
}

/* ===== Misc ===== */
.text-center {
  text-align: center
}

.content-wrap {
  max-width: 720px
}

.quota-bar {
  font-size: .82rem;
  color: var(--text2);
  text-align: right
}

.quota-text {
  margin-bottom: 6px
}

.quota-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden
}

.quota-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width .4s
}

/* ===== Custom Scrollbar — Theme-aware thin rounded ===== */
/* ===== Tool Loading Indicator ===== */
.tool-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 20px;
  font-size: .92rem;
  color: var(--text2);
}
.tool-loading::before {
  content: '';
  width: 20px; height: 20px;
  border: 2.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes toolSpin { to { transform: rotate(360deg); } }

/* ===== Humanizer Loading Indicator ===== */
.h-gen-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  font-size: 1rem;
  color: var(--text2)
}

.h-gen-spin {
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: hGenSpin .7s linear infinite;
  flex-shrink: 0
}

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

.output-text::-webkit-scrollbar {
  width: 4px
}

.output-text::-webkit-scrollbar-track {
  background: transparent;
  margin: 2px 0
}

.output-text::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px
}

.output-text::-webkit-scrollbar-thumb:hover {
  background: var(--primary)
}

/* Firefox */
.output-text {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent
}

.output-text:hover {
  scrollbar-color: var(--primary) transparent
}

.h-col textarea::-webkit-scrollbar {
  width: 4px
}

.h-col textarea::-webkit-scrollbar-track {
  background: transparent;
  margin: 2px 0
}

.h-col textarea::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px
}

.h-col textarea::-webkit-scrollbar-thumb:hover {
  background: var(--primary)
}

.h-col textarea {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent
}

.h-col textarea:hover {
  scrollbar-color: var(--primary) transparent
}

#detScanning::-webkit-scrollbar {
  width: 4px
}

#detScanning::-webkit-scrollbar-track {
  background: transparent
}

#detScanning::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px
}

#detScanning::-webkit-scrollbar-thumb:hover {
  background: var(--primary)
}

#detScanning {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent
}

#detReport::-webkit-scrollbar {
  width: 4px
}

#detReport::-webkit-scrollbar-track {
  background: transparent
}

#detReport::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px
}

#detReport::-webkit-scrollbar-thumb:hover {
  background: var(--primary)
}

#detReport {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  overflow-y: scroll
}

/* ===== Professional Report Styles ===== */
.pro-report {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
  color: var(--text)
}

/* Certification Badge */
.cert-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 20px 16px 20px;
  border-radius: 0
}

.cert-header.cert-human {
  background: linear-gradient(135deg, rgba(34, 197, 94, .08), rgba(34, 197, 94, .02));
  border-bottom: 2px solid rgba(34, 197, 94, .2)
}

.cert-header.cert-mixed {
  background: linear-gradient(135deg, rgba(245, 158, 11, .08), rgba(245, 158, 11, .02));
  border-bottom: 2px solid rgba(245, 158, 11, .2)
}

.cert-header.cert-ai {
  background: linear-gradient(135deg, rgba(239, 68, 68, .08), rgba(239, 68, 68, .02));
  border-bottom: 2px solid rgba(239, 68, 68, .2)
}

.cert-stamp-col {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center
}

.cert-stamp-col svg {
  background: transparent;
  border-radius: 50%;
  padding: 6px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .12))
}

.cert-gauge-col {
  flex-shrink: 0
}

.cert-badge-col {
  flex: 1;
  min-width: 0
}

.cert-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 4px
}

.cert-human .cert-title {
  color: #16a34a
}

.cert-mixed .cert-title {
  color: #d97706
}

.cert-ai .cert-title {
  color: #dc2626
}

.cert-desc {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 5px
}

.cert-meta {
  font-size: .78rem;
  color: var(--text2);
  line-height: 1.5
}

/* Detector Compatibility Note */
.cert-compat {
  font-size: .85rem;
  padding: 10px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  line-height: 1.5
}

.detector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 0 0 12px
}

.detector-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--surface3);
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 600;
  overflow: hidden
}

.dt-icon {
  flex-shrink: 0;
  line-height: 1
}

.dt-name {
  flex: 1;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0
}

.dt-status {
  font-weight: 700;
  font-size: .7rem;
  flex-shrink: 0;
  white-space: nowrap
}

.compat-pass {
  background: rgba(34, 197, 94, .06);
  color: #16a34a
}

.compat-warn {
  background: rgba(245, 158, 11, .06);
  color: #d97706
}

.compat-fail {
  background: rgba(239, 68, 68, .06);
  color: #dc2626
}

/* Score Card */
.pro-score-card {
  text-align: center;
  padding: 28px 20px 20px;
  border-bottom: 1px solid var(--border)
}

.pro-score-card svg {
  display: block;
  margin: 0 auto 12px
}

.pro-verdict {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px
}

.pro-verdict.human {
  color: #22c55e
}

.pro-verdict.mixed {
  color: #f59e0b
}

.pro-verdict.ai-moderate {
  color: #f97316
}

.pro-verdict.ai-high {
  color: #ef4444
}

.pro-summary {
  font-size: .85rem;
  color: var(--text3);
  line-height: 1.5
}

/* Section */
.pro-section {
  padding: 0 20px;
  border-bottom: 1px solid var(--border)
}

.pro-section:last-of-type {
  border-bottom: none
}

.pro-section-head {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text3);
  padding: 14px 0 8px
}

.dim-toggle {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 4px
}

.dim-toggle:hover {
  color: var(--primary)
}

.dim-toggle-arrow {
  font-size: .65rem;
  transition: transform .2s
}

.dim-toggle.open .dim-toggle-arrow {
  transform: rotate(180deg)
}

.pro-section-body {
  overflow: hidden
}

/* AI Evidence Bullets */
.pro-bullets-scroll {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px 8px 12px 0;
  max-height: 200px;
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent
}

.pro-bullets-scroll::-webkit-scrollbar {
  width: 4px !important;
  height: 4px !important
}

.pro-bullets-scroll::-webkit-scrollbar-track {
  background: transparent !important;
  margin: 0 2px
}

.pro-bullets-scroll::-webkit-scrollbar-thumb {
  background: var(--border) !important;
  border-radius: 99px !important
}

.pro-bullet {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  cursor: pointer;
  transition: border-color .15s;
  min-width: 0
}

.pro-bullet:hover {
  border-color: var(--primary)
}

.pro-bullet-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  margin-top: 6px;
  flex-shrink: 0
}

.pro-bullet-global {
  cursor: default;
  opacity: .85
}

.pro-bullet-global .pro-bullet-dot {
  background: #f59e0b
}

.pro-bullet-text {
  font-size: .85rem;
  color: var(--text);
  flex: 1;
  line-height: 1.4;
  min-width: 0;
  word-break: break-word
}

.pro-bullet-snippet {
  font-size: .78rem;
  color: var(--text3);
  padding: 2px 0 0;
  width: 100%;
  line-height: 1.4;
  word-break: break-word
}

.pro-bullet-snippet mark {
  background: rgba(239, 68, 68, .15);
  color: var(--text);
  font-weight: 600;
  padding: 1px 3px;
  border-radius: 3px
}

.pro-bullet-more {
  display: inline-block;
  font-size: .72rem;
  color: var(--primary);
  font-weight: 500;
  padding: 2px 10px;
  margin-top: 4px;
  border: 1px solid var(--primary);
  border-radius: 99px;
  cursor: pointer;
  user-select: none;
  transition: background .15s
}

.pro-bullet-more:hover {
  background: var(--primary);
  color: #fff
}

.pro-bullet-rest {}

.pro-bullet-related {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 6px
}

.pro-bullet-rel-tag {
  font-size: .72rem;
  color: var(--text3);
  background: var(--surface3);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: normal;
  word-break: break-word
}

/* Dimension Row */
.pro-dim-row {
  padding: 8px 12px;
  border-left: 3px solid transparent;
  margin: 2px 0;
  border-radius: 0 6px 6px 0
}

.pro-dim-row.detected {
  border-left-color: #ef4444
}

.pro-dim-row.clear {
  border-left-color: #22c55e
}

.pro-dim-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px
}

.pro-dim-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 0
}

.pro-dim-score {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text2);
  margin-left: auto;
  width: 38px;
  text-align: right;
  flex-shrink: 0
}

.pro-dim-detail {
  font-size: .78rem;
  color: var(--text3);
  padding: 0 0 6px 0;
  line-height: 1.5
}

.pro-dim-bar {
  height: 5px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden
}

.pro-dim-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .4s ease
}

/* Category group header */
.pro-dim-group {
  margin-bottom: 10px
}

.pro-dim-cathead {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text3);
  padding: 8px 0 4px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px
}

/* Stats Grid */
.pro-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 0 0 16px
}

.pro-stat {
  text-align: center;
  padding: 12px 8px;
  background: var(--surface3);
  border-radius: 6px
}

.pro-stat-val {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2
}

.pro-stat-lbl {
  display: block;
  font-size: .75rem;
  color: var(--text3);
  margin-top: 3px
}

/* Flagged Sentences */
.pro-sent {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid color-mix(in srgb, var(--border) 40%, transparent)
}

.pro-sent:first-child {
  border-top: none
}

.pro-sent-num {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text3)
}

.pro-sent-text {
  font-size: .85rem;
  color: var(--text);
  line-height: 1.55
}

.pro-sent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px
}

.pro-sent-tag {
  font-size: .72rem;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(239, 68, 68, .08);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, .15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

/* Actions */
.pro-actions {
  display: flex;
  gap: 10px;
  padding: 16px
}

.pro-btn {
  flex: 1;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  transition: opacity .2s;
  text-align: center
}

.pro-btn:hover {
  opacity: .85
}

.pro-btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border)
}

.pro-btn-outline:hover {
  background: var(--surface3);
  border-color: var(--border-hover)
}

/* Watermark */
.pro-watermark {
  text-align: center;
  padding: 12px 20px 16px;
  font-size: .82rem;
  color: var(--text3);
  border-top: 1px solid var(--border)
}

.pro-watermark a {
  color: var(--primary)
}

/* Text Annotation */
.pro-annotation-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 0 10px
}

.pro-legend-tag {
  padding: 4px 14px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap
}

.pro-annotated-text {
  padding: 10px 0 16px;
  font-size: .88rem;
  line-height: 2;
  color: var(--text);
  word-break: break-word
}

.pro-annot-mark {
  transition: filter .15s;
  color: var(--text)
}

.pro-annot-mark:hover {
  filter: brightness(.92)
}

/* Scan Log in Report */
.pro-scan-log-content .scan-header,
.pro-scan-log-content .scan-complete {
  text-align: left;
  padding: 4px 0
}

.pro-scan-log-content .scan-spin {
  display: none
}

.pro-scan-log-content .scan-log-wrap {
  max-height: 180px
}

.pro-scan-log-content .scan-line {
  padding: 2px 0
}

/* ===== Responsive ===== */
.desktop-ad {
  display: block
}

.mobile-only {
  display: none
}

@media(max-width:767px) {
  .mobile-only {
    display: inline
  }
  .desktop-only {
    display: none
  }
}

.skyscraper-ad {
  display: block
}

.mobile-ad {
  display: none
}

@media(min-width:768px) and (max-width:1199px) {
  .skyscraper-ad {
    display: none
  }

  .mobile-ad {
    display: block
  }
}

@media(max-width:767px) {
  .desktop-ad {
    display: none
  }

  .mobile-ad {
    display: block
  }
}

@media(max-width:640px) {
  .header {
    padding: 12px 16px
  }

  .nav-links {
    display: none
  }

  .features-section {
    padding: 50px 16px
  }

  .features-section h2 {
    font-size: 1.7rem
  }

  .seo-section,
  .compare-section,
  .content-section {
    padding: 40px 16px
  }

  .seo-section h2,
  .compare-section h2,
  .content-section h2 {
    font-size: 1.6rem
  }

  .cta-section {
    padding: 50px 16px
  }

  .cta-section h2 {
    font-size: 1.6rem
  }

  .page-hero {
    padding: 50px 16px 30px
  }

  .page-hero h1 {
    font-size: 1.8rem
  }

  .steps-list {
    padding-left: 36px
  }

  .steps-list::before {
    left: 15px
  }

  .step-num {
    left: -36px;
    width: 34px;
    height: 34px;
    font-size: .85rem
  }

  .pro-stats {
    grid-template-columns: repeat(2, 1fr)
  }

  .pro-actions {
    flex-direction: column
  }

  /* ===== Mobile Menu ===== */
  .hamburger {
    display: flex
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    z-index: 1001;
    padding: 60px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    transition: right .3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,.1)
  }

  .mobile-menu.open {
    right: 0
  }

  .mobile-menu a {
    display: block;
    padding: 10px 14px;
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    border-radius: 8px;
    transition: background .15s
  }

  .mobile-menu a:hover {
    background: var(--surface2)
  }

  .mobile-section {
    padding: 14px 14px 6px;
    font-size: .75rem;
    font-weight: 700;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: .05em
  }

  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.4);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s
  }

  .mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto
  }
}

}