/* ─── VARIABLES ─── */
:root {
  --bg: #0d0f14;
  --surface: #161921;
  --surface2: #1e2230;
  --border: #2a2f3d;
  --accent: #6c63ff;
  --accent2: #00d4aa;
  --accent3: #ff6b6b;
  --accent4: #ffd166;
  --text: #e8eaf0;
  --text2: #8890a4;
  --text3: #555e72;
  --green: #22c55e;
  --red: #ef4444;
  --orange: #f97316;
  --sidebar-w: 220px;
}

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

body {
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  overflow: hidden;
}

/* ─── SIDEBAR ─── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar.unlimited {
  width: 260px;
}

.sidebar-logo {
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #9b8fff);
  padding: 4px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent), #9b8fff);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}

.logo-text {
  font-weight: 700;
  font-size: 16px;
}

.logo-sub {
  font-size: 10px;
  color: var(--text3);
  margin-top: 1px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.nav-section {
  padding: 14px 10px 4px;
}

.nav-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text3);
  padding: 0 8px;
  margin-bottom: 6px;
}

.sidebar-scroll {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 2px;
  text-decoration: none;
}

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

.nav-item.active {
  background: rgba(108, 99, 255, .15);
  color: var(--accent);
}

.nav-item.active .nav-dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text3);
  flex-shrink: 0;
}

.menu-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 2px;
}

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

.menu-nav-item.active {
  background: rgba(108, 99, 255, .15);
  color: var(--accent);
}

.menu-nav-item.active .menu-nav-icon {
  color: var(--accent);
}

.menu-nav-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  color: var(--text3);
  position: relative;
}

.menu-nav-item #decor {
  display: flex;
  flex-direction: column;
}

.menu-nav-item #title {
  font-size: 13px;
  font-weight: 500;
  color: inherit;
}

.menu-nav-item #description {
  font-size: 10px;
  color: var(--text3);
  margin-top: 2px;
}

.menu-description {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.menu-section {
  padding: 8px 10px;
}

.menu-section.footer-nav {
  margin-top: auto;
  padding-bottom: 16px;
}

.section-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text3);
  padding: 4px 8px;
  display: block;
  margin-bottom: 4px;
}

.menu-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.logo {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(108, 99, 255, .12);
  border: 1px solid rgba(108, 99, 255, .25);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  color: #9b8fff;
  margin-left: auto;
}

.user-avatar-small img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

/* ─── LAYOUT ─── */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.main-content {
  margin-left: 220px;
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Широкий сайдбар */
.main-content.wide-sidebar {
  margin-left: 260px;
}

/* ─── TOP BAR ─── */
.top-bar {
  padding: 14px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text2);
}

.breadcrumb strong {
  color: var(--text);
  font-weight: 600;
}

.top-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #9b8fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.container {
  padding: 28px;
  flex: 1;
}

/* ─── BUTTONS ─── */
.btn,
button.btn-primary,
button.btn-secondary,
a.btn-primary,
a.btn-secondary {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #7b74ff;
}

.btn-secondary,
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
}

.btn-secondary:hover,
.btn-ghost:hover {
  background: var(--surface2);
  color: var(--text);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-danger {
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .25);
  color: var(--red);
}

.btn-success {
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .25);
  color: var(--green);
}

/* ─── MODULE CARDS ─── */
.ai-modules {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.module-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.module-item:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.module-item.active {
  border-color: var(--accent);
  background: rgba(108, 99, 255, .08);
}

.m-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.m-icon.purple {
  background: linear-gradient(135deg, #6c63ff, #9b8fff);
}

.m-icon.blue {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.m-icon.green {
  background: linear-gradient(135deg, #22c55e, #4ade80);
}

.m-icon.red {
  background: linear-gradient(135deg, #ef4444, #f87171);
}

.m-icon.orange {
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.m-icon.cyan {
  background: linear-gradient(135deg, #06b6d4, #22d3ee);
}

.m-text strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
}

.m-text p {
  font-size: 10px;
  color: var(--text3);
  margin-top: 2px;
}

/* ─── ACTION HEADER ─── */
.action-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.action-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.action-btns {
  display: flex;
  gap: 8px;
}

/* ─── SEARCH BAR ─── */
.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.search-bar input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
}

.search-bar input::placeholder {
  color: var(--text3);
}

.search-bar input:focus {
  border-color: var(--accent);
}

.search-bar button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  cursor: pointer;
}

.search-bar button:hover {
  background: #7b74ff;
}

/* ─── PROJECT LIST ─── */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color .2s;
}

.project-card:hover {
  border-color: var(--accent);
}

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

.project-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.project-name img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--surface2);
}

.project-name a,
.a_projects {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}

.project-name a:hover,
.a_projects:hover {
  color: var(--accent);
}

.history-list {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.history-list p {
  font-size: 11px;
  color: var(--text3);
  margin: 0;
}

.history-list span {
  color: var(--text3);
}

.history-list em {
  color: var(--text2);
  font-style: normal;
}

.card-col {
  display: flex;
  align-items: center;
}

.action-col {
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.last-col {
  position: relative;
}

.stat-cell {
  text-align: center;
  min-width: 70px;
}

.stat-val {
  font-size: 16px;
  font-weight: 700;
}

.stat-label {
  font-size: 10px;
  color: var(--text3);
  margin-top: 2px;
}

.stat-val.green {
  color: var(--green);
}

.stat-val.red {
  color: var(--red);
}

.stat-val.muted {
  color: var(--text3);
}

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

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

.status-dot.ok {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.status-dot.warn {
  background: var(--orange);
}

.status-dot.none {
  background: var(--text3);
}

.link-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}

.link-btn:hover {
  background: var(--surface2);
  color: var(--text);
}

.link-btn.highlight {
  background: rgba(108, 99, 255, .15);
  border-color: rgba(108, 99, 255, .4);
  color: var(--accent);
}

/* ─── DROPDOWN ─── */
.dropdown {
  position: relative;
}

.dots-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

.dots-btn:hover {
  background: var(--surface2);
  color: var(--text);
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  z-index: 100;
  overflow: hidden;
}

.dropdown-content.show {
  display: block;
}

.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  transition: all .15s;
}

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

.dropdown-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4px 0;
}

.dropdown-content a.delete-action {
  color: var(--red);
}

/* ─── FORMS ─── */
.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color .2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text3);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
}

.field select option {
  background: var(--surface);
}

/* ─── SETTINGS ─── */
.settings_page {
  display: none;
}

.settings_page.active {
  display: block;
}

.settings_page h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* ─── DYNAMIC LIST ─── */
.dynamic-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dynamic-list-item {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dynamic-list-item input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
}

.dynamic-list-item input:focus {
  border-color: var(--accent);
}

.dynamic-list-item button {
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .25);
  color: var(--red);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-item-btn {
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--text3);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  cursor: pointer;
  margin-top: 4px;
}

.add-item-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── KEYWORDS ─── */
.keywords-block {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 60px;
}

.keyword-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(108, 99, 255, .12);
  border: 1px solid rgba(108, 99, 255, .25);
  color: var(--accent);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
}

.keyword-tag button {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

.keyword-tag button:hover {
  color: var(--red);
}

/* ─── TABLES ─── */
.article-table,
.clusters-table {
  width: 100%;
  border-collapse: collapse;
}

.article-table th,
.clusters-table th {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.article-table td,
.clusters-table td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}

.article-table tr:hover td,
.clusters-table tr:hover td {
  background: var(--surface2);
}

.article-table a {
  color: var(--accent);
  text-decoration: none;
}

.article-table a:hover {
  text-decoration: underline;
}

/* ─── AUDIT ─── */
.audit-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.audit-panel h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ─── CARDS ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}

/* ─── EDITOR ─── */
.editor-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.editor-toolbar {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.editor-toolbar button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}

.editor-toolbar button:hover {
  background: var(--surface2);
  color: var(--text);
}

.editor-body {
  min-height: 400px;
  padding: 20px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  outline: none;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text3);
}

/* ─── BADGES ─── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.badge-green {
  background: rgba(34, 197, 94, .12);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, .25);
}

.badge-red {
  background: rgba(239, 68, 68, .12);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, .25);
}

.badge-purple {
  background: rgba(108, 99, 255, .12);
  color: #9b8fff;
  border: 1px solid rgba(108, 99, 255, .25);
}

/* ─── AI FAB ─── */
.ai-fab {
  position: fixed;
  bottom: 20px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(108, 99, 255, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 199;
  transition: transform .2s;
}

.ai-fab:hover {
  transform: scale(1.1);
}

@media (max-width: 1200px) {
  .ai-modules {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─── CHART.JS ─── */
.radar_div {
  margin-top: 24px;
  padding: 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.radar_div h2 {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 16px;
}

.radar_div canvas {
  max-width: 100%;
}

/* ─── AUDIT CARD STATES ─── */
.audit-action-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  flex: 1;
}

.audit-action-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.audit-action-card.generating {
  opacity: .6;
  pointer-events: none;
}

.audit-action-card.generated {
  border-color: var(--green);
  background: rgba(34, 197, 94, .05);
}


/* ═══════════════════════════════════════
   AUDIT RPT VARS & INNER LAYOUT
═══════════════════════════════════════ */
.audit-inner-layout {
  display: flex;
  /* Fill container padding (28px sides, 28px top) + top-bar (56px) */
  height: calc(100vh);
  overflow: hidden;
  margin: -28px;
}

.audit-inner-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #111318;
  border-right: 1px solid #1f2430;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.audit-inner-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px 36px;
  background: #0a0c10;
  font-family: 'Manrope', 'DM Sans', sans-serif;
}

.audit-sidebar-head {
  padding: 20px 14px 14px;
  border-bottom: 1px solid #1f2430;
  margin-bottom: 10px;
}

.audit-sidebar-label {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #e8c547;
  font-weight: 700;
  margin-bottom: 6px;
}

.audit-sidebar-title {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  letter-spacing: .06em;
  color: #e8eaf0;
  line-height: 1;
  font-weight: 800;
}

.audit-score-box {
  margin: 12px 14px;
  background: linear-gradient(135deg, rgba(232, 197, 71, .1), rgba(232, 197, 71, .03));
  border: 1px solid rgba(232, 197, 71, .2);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.audit-score-num {
  /* font-family: 'Syne', sans-serif; */
  font-size: 38px;
  color: #e8c547;
  line-height: 1;
  font-weight: 800;
}

.audit-score-info-label {
  font-size: 10px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.audit-score-info-sub {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

.audit-inner-nav-section {
  padding: 6px 14px 4px;
}

.audit-inner-nav-label {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 700;
  margin-bottom: 6px;
}

.audit-inner-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
  margin-bottom: 2px;
  font-size: 12.5px;
  color: #6b7280;
  text-decoration: none;
}

.audit-inner-nav-item:hover {
  background: #181c23;
  color: #e8eaf0;
}

.audit-inner-nav-item.active {
  background: rgba(232, 197, 71, .1);
  color: #e8c547;
  border-left: 2px solid #e8c547;
  padding-left: 8px;
}

.aini {
  font-size: 15px;
  flex-shrink: 0;
}

.aini-num {
  margin-left: auto;
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  letter-spacing: .06em;
  opacity: .5;
}

.audit-inner-nav-footer {
  margin-top: auto;
  border-top: 1px solid #1f2430;
  padding: 10px 14px;
}

.ait-tab {
  display: none;
}

.ait-tab:first-child {
  display: block;
}

/* ─── RPT PAGE ELEMENTS ─── */
.rpt-page-header {
  margin-bottom: 28px;
  position: relative;
}

.rpt-step-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #e8c547;
  background: rgba(232, 197, 71, .08);
  border: 1px solid rgba(232, 197, 71, .2);
  border-radius: 5px;
  padding: 4px 12px;
  display: inline-block;
  margin-bottom: 12px;
}

.rpt-page-title {
  font-family: 'Syne', sans-serif;
  font-size: 40px;
  letter-spacing: .04em;
  line-height: 1;
  margin-bottom: 6px;
  color: #e8eaf0;
  font-weight: 800;
}

.rpt-page-desc {
  font-size: 13px;
  color: #9ca3af;
  max-width: 560px;
  line-height: 1.6;
}

/* ─── SECTION HEAD ─── */
.rpt-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #1f2430;
}

.rpt-step-badge {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  letter-spacing: .12em;
  color: #e8c547;
  background: rgba(232, 197, 71, .08);
  border: 1px solid rgba(232, 197, 71, .2);
  border-radius: 5px;
  padding: 3px 10px;
  white-space: nowrap;
}

.rpt-section-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  letter-spacing: .05em;
  color: #e8eaf0;
  font-weight: 700;
}

.rpt-score-area {
  margin-left: auto;
  font-size: 12px;
  color: #6b7280;
}

.rpt-score-pill {
  display: inline-block;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 700;
  margin-left: 8px;
}

.rpt-score-pill.good {
  background: rgba(79, 209, 165, .1);
  border: 1px solid rgba(79, 209, 165, .25);
  color: #4fd1a5;
}

.rpt-score-pill.warn {
  background: rgba(232, 197, 71, .1);
  border: 1px solid rgba(232, 197, 71, .25);
  color: #e8c547;
}

.rpt-score-pill.bad {
  background: rgba(240, 106, 106, .1);
  border: 1px solid rgba(240, 106, 106, .25);
  color: #f06a6a;
}

/* ─── SUMMARY GRID ─── */
.rpt-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.rpt-summary-grid.x2 {
  grid-template-columns: repeat(3, 1fr);
}

.rpt-summary-grid.x3 {
  grid-template-columns: repeat(3, 1fr);
}

.rpt-summary-grid.x4 {
  grid-template-columns: repeat(4, 1fr);
}

.rpt-summary-grid.x5 {
  grid-template-columns: repeat(5, 1fr);
}

.rpt-summary-grid.x6 {
  grid-template-columns: repeat(6, 1fr);
}

.rpt-summary-card {
  background: #111318;
  border: 1px solid #1f2430;
  border-radius: 10px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}

.rpt-summary-card.surface {
  text-align: center;
  background: var(--surface);
  border: 1px solid #1f2430;
}

.rpt-summary-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 0 0 10px 10px;
}

.rpt-summary-card.good::after {
  background: #4fd1a5;
}

.rpt-summary-card.bad::after {
  background: #f06a6a;
}

.rpt-summary-card.warn::after {
  background: #e8c547;
}

.rpt-summary-card.info::after {
  background: #7c8cf8;
}

.rpt-summary-card.found::after {
  background: var(--green);
}

.rpt-summary-card.activate::after {
  background: var(--orange);
}

.rpt-summary-card.notfound::after {
  background: var(--red);
}

.rpt-summary-card.sessions::after {
  background: var(--accent2);
}


.rpt-sc-label {
  font-size: 10px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 6px;
}

.rpt-sc-val {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  line-height: 1;
  margin-bottom: 4px;
  font-weight: 800;
}

.rpt-summary-card.good .rpt-sc-val {
  color: #4fd1a5;
}

.rpt-summary-card.bad .rpt-sc-val {
  color: #f06a6a;
}

.rpt-summary-card.warn .rpt-sc-val {
  color: #e8c547;
}

.rpt-summary-card.info .rpt-sc-val {
  color: #7c8cf8;
}

.rpt-summary-card.found .rpt-sc-val {
  color: var(--green);
}

.rpt-summary-card.activate .rpt-sc-val {
  color: var(--orange);
}

.rpt-summary-card.notfound .rpt-sc-val {
  color: var(--red);
}

.rpt-summary-card.sessions .rpt-sc-val {
  color: var(--accent2);
}

.rpt-sc-sub {
  font-size: 11px;
  color: #6b7280;
}

/* ─── LAUNCH PANEL ─── */
.rpt-launch-panel {
  background: #111318;
  border: 1px solid #1f2430;
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.rpt-launch-panel.surface {
  background-color: var(--surface);
  padding: 20px 24px;
  margin-bottom: 22px;
  gap: 18px;
}

.rpt-launch-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.rpt-launch-title {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  margin-bottom: 4px;
  color: #e8eaf0;
  font-weight: 700;
}

.rpt-launch-desc {
  font-size: 13px;
  color: #9ca3af;
  max-width: 380px;
  line-height: 1.5;
}

.rpt-launch-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.rpt-launch-panel.surface .rpt-launch-icon {
  font-size: 24px;
  padding: 14px;
}

.rpt-launch-panel.surface .rpt-launch-title {}

.rpt-launch-panel.surface .rpt-launch-desc {
  color: var(--text2);
}

.rpt-launch-panel.surface .rpt-launch-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ─── BUTTONS ─── */
.rpt-btn-accent {
  background: #e8c547;
  color: #0a0c10;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .15s;
}

.rpt-btn-accent:hover {
  background: #f5d454;
}

.rpt-btn-ghost {
  background: transparent;
  border: 1px solid #1f2430;
  color: #9ca3af;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}

.rpt-btn-ghost:hover {
  border-color: #e8c547;
  color: #e8c547;
}

.rpt-launch-panel.surface .rpt-btn-accent {
  background: var(--accent);
  color: #fff;
}

.rpt-launch-panel.surface .rpt-btn-accent:hover {
  background: rgb(123, 116, 255);
}

.rpt-launch-panel.surface .rpt-btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── STEPS ROW ─── */
.audit-steps-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.audit-step-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 7px;
  border: 1px solid #1f2430;
  background: #111318;
  cursor: pointer;
  transition: all .15s;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
}

.audit-step-chip:hover {
  border-color: #e8c547;
  color: #e8c547;
}

.audit-step-chip.generating,
.audit-step-chip.creating {
  border-color: rgba(79, 114, 209, 0.25);
  background: rgba(79, 103, 209, 0.05);
  color: #4f58d1;
}

.audit-step-chip.done {
  border-color: rgba(79, 209, 165, .25);
  background: rgba(79, 209, 165, .05);
  color: #4fd1a5;
}

.audit-step-num {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
}

/* ─── CHARTS ROW ─── */
.rpt-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

.rpt-chart-box {
  background: #111318;
  border: 1px solid #1f2430;
  border-radius: 12px;
  padding: 22px;
}

.rpt-chart-title {
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 18px;
}

.rpt-chart-wrap {
  position: relative;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rpt-chart-wrap.tall {
  height: 260px;
}

/* ─── PROS/CONS ─── */
.rpt-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.rpt-pros-cons.two {
  grid-template-columns: 1fr 1fr;
}

.rpt-pc-box {
  background: #111318;
  border: 1px solid #1f2430;
  border-radius: 10px;
  padding: 18px;
}

.rpt-pc-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9ca3af;
  margin-bottom: 12px;
}

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

.rpt-dot-good {
  background: #4fd1a5;
}

.rpt-dot-bad {
  background: #f06a6a;
}

.rpt-dot-warn {
  background: #e8c547;
}

.rpt-pc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rpt-pc-list li {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  color: #9ca3af;
  line-height: 1.5;
}

.rpt-pc-list li::before {
  content: '—';
  color: #6b7280;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── METRIC BARS ─── */
.rpt-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rpt-metric-row {
  display: grid;
  grid-template-columns: 148px 1fr 42px;
  align-items: center;
  gap: 12px;
}

.rpt-metric-label {
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rpt-metric-bg {
  height: 5px;
  background: #181c23;
  border-radius: 3px;
  overflow: hidden;
}

.rpt-metric-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .5s;
}

.rpt-metric-val {
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

/* ─── DATA TABLE ─── */
.rpt-data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 22px;
}

.rpt-data-table th {
  background: #181c23;
  color: #6b7280;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 9px 14px;
  text-align: left;
  border-bottom: 1px solid #1f2430;
}

.rpt-data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #1f2430;
  color: #9ca3af;
  font-size: 12.5px;
  vertical-align: top;
  line-height: 1.5;
}

.rpt-data-table tr:last-child td {
  border-bottom: none;
}

.rpt-data-table tr:hover td {
  background: rgba(255, 255, 255, .015);
}

.rpt-data-table a {
  color: #7c8cf8;
  text-decoration: none;
}

.rpt-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.rpt-badge.good {
  background: rgba(79, 209, 165, .1);
  color: #4fd1a5;
  border: 1px solid rgba(79, 209, 165, .2);
}

.rpt-badge.warn {
  background: rgba(232, 197, 71, .1);
  color: #e8c547;
  border: 1px solid rgba(232, 197, 71, .2);
}

.rpt-badge.bad {
  background: rgba(240, 106, 106, .1);
  color: #f06a6a;
  border: 1px solid rgba(240, 106, 106, .2);
}

/* ─── COMPETITOR CARDS ─── */
.rpt-comp-card {
  background: #111318;
  border: 1px solid #1f2430;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 12px;
}

.rpt-comp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.rpt-comp-url {
  font-size: 14px;
  font-weight: 700;
  color: #7c8cf8;
}

.rpt-comp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.rpt-comp-col-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.rpt-comp-col-title.better {
  color: #4fd1a5;
}

.rpt-comp-col-title.worse {
  color: #f06a6a;
}

.rpt-comp-col-title.action {
  color: #e8c547;
}

.rpt-comp-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rpt-comp-items li {
  font-size: 12px;
  color: #6b7280;
  padding-left: 10px;
  position: relative;
  line-height: 1.4;
}

.rpt-comp-items li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #6b7280;
}

/* ─── RATINGS ─── */
.rpt-ratings-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.rpt-rating-card {
  background: #111318;
  border: 1px solid #1f2430;
  border-radius: 10px;
  padding: 18px;
  text-align: center;
}

.rpt-rating-name {
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
  margin-bottom: 5px;
}

.rpt-rating-val {
  font-family: 'Syne', sans-serif;
  font-size: 42px;
  line-height: 1;
  color: #e8c547;
  margin-bottom: 4px;
  font-weight: 800;
}

.rpt-rating-stars {
  font-size: 15px;
  color: #e8c547;
  margin-bottom: 7px;
  letter-spacing: 2px;
}

.rpt-rating-desc {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.5;
}

/* ─── REVIEW GROUPS ─── */
.rpt-rev-groups-section {
  margin-bottom: 24px;
}

.rpt-rev-groups-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rpt-rev-groups-title.pos {
  color: #4fd1a5;
}

.rpt-rev-groups-title.neg {
  color: #f06a6a;
}

.rpt-rev-groups-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #1f2430;
}

.rpt-rev-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

.rpt-rev-group-card {
  background: #111318;
  border: 1px solid #1f2430;
  border-radius: 10px;
  padding: 16px 18px;
}

.rpt-rev-group-card.positive {
  border-left: 3px solid #4fd1a5;
}

.rpt-rev-group-card.negative {
  border-left: 3px solid #f06a6a;
}

.rpt-rev-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.rpt-rev-group-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: #e8eaf0;
}

.rpt-rev-group-cnt {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
}

.rpt-rev-group-cnt.pos {
  background: rgba(79, 209, 165, .12);
  color: #4fd1a5;
  border: 1px solid rgba(79, 209, 165, .25);
}

.rpt-rev-group-cnt.neg {
  background: rgba(240, 106, 106, .12);
  color: #f06a6a;
  border: 1px solid rgba(240, 106, 106, .25);
}

.rpt-rev-group-quote {
  font-size: 12px;
  color: #9ca3af;
  font-style: italic;
  line-height: 1.5;
  padding: 8px 10px;
  background: #181c23;
  border-radius: 6px;
  margin-bottom: 9px;
}

.rpt-rev-group-action {
  font-size: 12px;
  line-height: 1.5;
  padding-top: 8px;
  border-top: 1px solid #1f2430;
}

.rpt-rev-group-action.maintain {
  color: #4fd1a5;
}

.rpt-rev-group-action.fix {
  color: #e8c547;
}

.rpt-rev-group-action::before {
  content: '💡 ';
}

/* ─── PRESENCE CARDS ─── */
.rpt-presence-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.rpt-presence-card {
  background: #111318;
  border: 1px solid #1f2430;
  border-radius: 10px;
  padding: 16px 18px;
}

.rpt-presence-card.strong {
  border-left: 3px solid #4fd1a5;
}

.rpt-presence-card.weak {
  border-left: 3px solid #f06a6a;
}

.rpt-presence-card.med {
  border-left: 3px solid #e8c547;
}

.rpt-presence-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.rpt-presence-card-name {
  font-size: 13px;
  font-weight: 700;
  color: #e8eaf0;
}

.rpt-presence-card-type {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 10px;
}

.rpt-presence-sub {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.rpt-presence-sub.warn {
  color: #e8c547;
}

.rpt-presence-sub.good {
  color: #4fd1a5;
}

.rpt-presence-body {
  font-size: 12.5px;
  color: #9ca3af;
  line-height: 1.5;
  margin-bottom: 8px;
}

/* ─── EMPTY STATE ─── */
.rpt-empty-state {
  text-align: center;
  padding: 48px 20px;
  color: #6b7280;
  font-size: 13px;
  background: #111318;
  border: 1px dashed #1f2430;
  border-radius: 12px;
}

@media (max-width: 1100px) {
  .rpt-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rpt-charts-row,
  .rpt-pros-cons,
  .rpt-comp-grid {
    grid-template-columns: 1fr;
  }

  .rpt-presence-cards,
  .rpt-rev-group-row {
    grid-template-columns: 1fr;
  }
}

/* Audit page: inner-layout uses negative margin to compensate container padding */

/* ═══════════════════════════════════════
   TOGGLE BUTTONS & TABS
═══════════════════════════════════════ */
.toggle-module {
  margin-bottom: 24px;
}

.toggle-buttons {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: var(--surface2);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
}

.toggle-btn {
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: all .15s;
  font-family: 'DM Sans', sans-serif;
}

.toggle-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}

.toggle-btn.active {
  background: var(--accent);
  color: #0d0f14;
  font-weight: 600;
}

.toggle-content {
  position: relative;
}

.toggle-panel {
  display: none;
}

.toggle-panel.active {
  display: block;
}

/* ─── General buttons ─── */
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  border: 1px solid transparent;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #0d0f14;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #a78bfa;
  border-color: #a78bfa;
}

.btn-secondary {
  background: transparent;
  color: var(--text2);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text3);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface2);
}

/* ─── Small buttons ─── */
.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}

/* ─── Danger button ─── */
.btn-danger {
  background: rgba(240, 68, 68, .15);
  color: #f06a6a;
  border-color: rgba(240, 68, 68, .3);
}

.btn-danger:hover {
  background: rgba(240, 68, 68, .25);
}

/* ═══════════════════════════════════════
   SEO PROJECT — DUAL SIDEBAR LAYOUT
═══════════════════════════════════════ */
.seo-inner-layout {
  display: flex;
  margin: -28px;
  height: calc(100vh);
  overflow: hidden;
}

.seo-inner-sidebar {
  width: 210px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 16px 10px;
}

.seo-inner-head {
  padding: 0 8px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.seo-inner-label {
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 4px;
}

.seo-inner-title {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}

.seo-inner-nav {
  flex: 1;
}

.seo-inner-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
  margin-bottom: 3px;
  font-size: 13px;
  color: var(--text2);
}

.seo-inner-item:hover {
  background: var(--surface2);
  color: var(--text);
}

.seo-inner-item.active {
  background: rgba(108, 99, 255, .15);
  color: var(--accent);
}

.seo-inner-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.seo-inner-footer {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
}

.seo-inner-back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text3);
  font-size: 13px;
  text-decoration: none;
  transition: all .15s;
}

.seo-inner-back:hover {
  color: var(--text);
  background: var(--surface2);
}

.seo-inner-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

/* ═══════════════════════════════════════
   TABS
═══════════════════════════════════════ */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--surface2);
  padding: 4px;
  border-radius: 10px;
  width: fit-content;
  margin-bottom: 18px;
}

.tab {
  padding: 7px 16px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text3);
  transition: all .15s;
  font-family: 'DM Sans', sans-serif;
}

.tab.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.tab:hover:not(.active) {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}

/* ═══════════════════════════════════════
   SECTION HEADER
═══════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

/* ═══════════════════════════════════════
   FORM CONTROLS
═══════════════════════════════════════ */
.form-control {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: var(--accent);
}

.form-control::placeholder {
  color: var(--text3);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: .3px;
}

/* ═══════════════════════════════════════
   BTN SYSTEM (unified)
═══════════════════════════════════════ */
.btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn.btn-primary:hover {
  background: #7b74ff;
}

.btn.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
}

.btn.btn-ghost:hover {
  background: var(--surface2);
  color: var(--text);
}

.btn.btn-danger {
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .25);
  color: var(--red);
}

.btn.btn-danger:hover {
  background: rgba(239, 68, 68, .2);
}

.btn.btn-success {
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .25);
  color: var(--green);
}

/* ═══════════════════════════════════════
   KEYWORD LIST
═══════════════════════════════════════ */
.kw-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 2px;
}

.kw-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  transition: background .15s;
  font-size: 13px;
  color: var(--text);
}

.kw-item:hover {
  background: var(--surface2);
}

.kw-item input[type=checkbox] {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  cursor: pointer;
}

.kw-item span[contenteditable] {
  outline: none;
  flex: 1;
}

/* ═══════════════════════════════════════
   CHIPS
═══════════════════════════════════════ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.chip-blue {
  background: rgba(108, 99, 255, .15);
  color: #9b8fff;
  border: 1px solid rgba(108, 99, 255, .25);
}

.chip-green {
  background: rgba(34, 197, 94, .1);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, .2);
}

.chip-orange {
  background: rgba(249, 115, 22, .1);
  color: var(--orange, #f97316);
  border: 1px solid rgba(249, 115, 22, .2);
}

.chip-red {
  background: rgba(239, 68, 68, .1);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, .2);
}

/* ═══════════════════════════════════════
   DATA TABLE (pages, clusters)
═══════════════════════════════════════ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 22px;
}

.data-table th {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text3);
  font-weight: 500;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(42, 47, 61, .5);
  vertical-align: top;
  color: var(--text2);
}

.data-table tr:hover td {
  background: rgba(30, 34, 48, .6);
}

.data-table a {
  color: var(--accent);
  font-size: 12px;
  text-decoration: none;
}

.data-table a:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════
   GROUP CARDS
═══════════════════════════════════════ */
.group-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .2s;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.group-card:hover {
  border-color: var(--accent);
}

.group-card.open {
  border-radius: 10px 10px 0 0;
  border-color: var(--accent);
}

.group-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}

.group-name:focus {
  outline: 1px dashed var(--accent);
  border-radius: 3px;
}

.group-count {
  font-size: 11px;
  color: var(--text3);
  margin-top: 3px;
}

.group-chevron {
  color: var(--text3);
  font-size: 18px;
  transition: transform .2s;
}

.group-card.open .group-chevron {
  transform: rotate(90deg);
}

/* ═══════════════════════════════════════
   PROMPT SECTION
═══════════════════════════════════════ */
.prompt-section {
  background: rgba(108, 99, 255, .06);
  border: 1px solid rgba(108, 99, 255, .2);
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
}

.prompt-title {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.prompt-area {
  width: 100%;
  background: var(--surface2);
  border: 1px solid rgba(108, 99, 255, .25);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  outline: none;
  resize: vertical;
  min-height: 80px;
  transition: border-color .2s;
  box-sizing: border-box;
}

.prompt-area:focus {
  border-color: var(--accent);
}

.prompt-area::placeholder {
  color: var(--text3);
}

.prompt-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* ─── override settings_page width inside seo-inner-content ─── */
.seo-inner-content .settings_page {
  padding: 0;
}

.seo-inner-content h2 {
  display: none;
}

/* Tabs: editor / preview */
.article-editor-tabs {
  display: flex;
  gap: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px 10px 0 0;
  border-bottom: none;
  overflow: hidden;
}

.article-editor-tab {
  flex: 1;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--text3);
  transition: all .15s;
  border-right: 1px solid var(--border);
}

.article-editor-tab:last-child {
  border-right: none;
}

.article-editor-tab.active {
  background: var(--surface);
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.article-editor-tab:hover:not(.active) {
  color: var(--text);
  background: rgba(255, 255, 255, .03);
}

.article-editor-pane {
  display: none;
}

.article-editor-pane.active {
  display: block;
}

.article-text-area {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 0 0 10px 10px;
  padding: 14px 16px;
  font-family: 'DM Sans';
  font-size: 13.5px;
  line-height: 1.7;
  outline: none;
  resize: vertical;
  min-height: 260px;
  transition: border-color .2s;
}

.article-text-area:focus {
  border-color: var(--accent);
}

.preview-pane-inner {
  border: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  background: #0f1117;
  padding: 24px 28px;
  min-height: 260px;
  max-height: 520px;
  overflow-y: auto;
}

/* Char/word counter */
.article-counter-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 4px;
  font-size: 11px;
  color: var(--text3);
}

.article-counter-row span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Keyword rows */
.buyer-kw-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.buyer-kw-table-head {
  display: grid;
  grid-template-columns: 2fr 100px 90px 90px 110px 130px;
  gap: 0;
  padding: 9px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text3);
}

.buyer-kw-row {
  display: grid;
  grid-template-columns: 2fr 100px 90px 90px 110px 130px;
  gap: 0;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(42, 47, 61, .4);
  align-items: center;
  transition: background .15s;
  cursor: pointer;
}

.buyer-kw-row:last-child {
  border-bottom: none;
}

.buyer-kw-row:hover {
  background: rgba(108, 99, 255, .04);
}

.buyer-kw-word {
  font-size: 13px;
  font-weight: 500;
}

.buyer-kw-pos {
  font-size: 13px;
  font-family: 'Syne';
  font-weight: 700;
}

.buyer-kw-pos.top {
  color: var(--green);
}

.buyer-kw-pos.mid {
  color: var(--orange);
}

.buyer-kw-pos.low {
  color: var(--red);
}

.buyer-kw-pos.none {
  color: var(--text3);
}

.buyer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.pill-found {
  background: rgba(34, 197, 94, .1);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, .2);
}

.pill-active {
  background: rgba(249, 115, 22, .1);
  color: var(--orange);
  border: 1px solid rgba(249, 115, 22, .2);
}

.pill-notfound {
  background: rgba(239, 68, 68, .1);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, .2);
}

.pill-queued {
  background: rgba(136, 144, 164, .1);
  color: var(--text3);
  border: 1px solid rgba(136, 144, 164, .2);
}

/* Progress bar */
.buyer-progress-bar {
  height: 4px;
  background: var(--surface2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 18px;
}

.buyer-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

/* Session detail / visit timeline */
  .buyer-session-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
  }
  .buyer-session-header {
    padding: 14px 18px;
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
  }
  .buyer-session-kw {
    font-size: 13px; font-weight: 700;
  }
  .buyer-session-engine {
    font-size: 11px; color: var(--text3);
  }
  .buyer-session-body {
    padding: 18px 20px;
  }

  /* SERP mockup */
  .buyer-serp {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
  }
  .buyer-serp-title {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--text3); margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
  }
  .buyer-serp-title::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
  }
  .buyer-serp-result {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    border: 1px solid transparent;
    transition: border-color .15s;
  }
  .buyer-serp-result.our-site {
    border-color: rgba(34,197,94,.3);
    background: rgba(34,197,94,.04);
  }
  .buyer-serp-result.competitor {
    background: rgba(255,255,255,.02);
  }
  .buyer-serp-result-pos {
    font-size: 10px; color: var(--text3); margin-bottom: 3px;
  }
  .buyer-serp-result-title {
    font-size: 13px; font-weight: 600; color: #7ca8ff;
    margin-bottom: 2px; line-height: 1.3;
  }
  .buyer-serp-result.our-site .buyer-serp-result-title {
    color: var(--green);
  }
  .buyer-serp-result-url {
    font-size: 11px; color: var(--green); opacity: .7; margin-bottom: 3px;
  }
  .buyer-serp-result-desc {
    font-size: 12px; color: var(--text3); line-height: 1.4;
  }
  .serp-click-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.25);
    color: var(--green); border-radius: 5px;
    padding: 2px 8px; font-size: 10px; font-weight: 700;
    margin-top: 4px;
  }

  /* Visit timeline */
  .buyer-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .buyer-timeline-item {
    display: flex;
    gap: 14px;
    position: relative;
  }
  .buyer-timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px; top: 32px;
    width: 2px; bottom: 0;
    background: var(--border);
  }
  .buyer-tl-dot {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
    border: 2px solid var(--border);
    background: var(--surface2);
    position: relative; z-index: 1;
  }
  .buyer-tl-dot.search { border-color: var(--accent); background: rgba(108,99,255,.1); }
  .buyer-tl-dot.click  { border-color: var(--green);  background: rgba(34,197,94,.1); }
  .buyer-tl-dot.nav    { border-color: var(--accent2); background: rgba(0,212,170,.08); }
  .buyer-tl-dot.action { border-color: var(--orange); background: rgba(249,115,22,.1); }
  .buyer-tl-dot.exit   { border-color: var(--text3); background: var(--surface2); }
  .buyer-tl-body {
    padding: 6px 0 20px;
    flex: 1;
  }
  .buyer-tl-time {
    font-size: 10px; color: var(--text3); margin-bottom: 3px;
  }
  .buyer-tl-title {
    font-size: 13px; font-weight: 600; margin-bottom: 3px;
  }
  .buyer-tl-desc {
    font-size: 12px; color: var(--text2); line-height: 1.5;
  }
  .buyer-tl-url {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; color: var(--accent);
    margin-top: 4px; text-decoration: none;
  }
  .buyer-tl-page-preview {
    margin-top: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px; color: var(--text2); line-height: 1.5;
  }
  .buyer-tl-duration {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 5px; padding: 2px 8px;
    font-size: 11px; color: var(--text2); margin-top: 5px;
  }

@font-face {
	font-family: 'fontello';
	src: url('./font/fontello.eot?E800');
	src: url('./font/fontello.eot?E800#iefix') format('embedded-opentype'),
	     url('./font/fontello.woff2?E800') format('woff2'),
	     url('./font/fontello.woff?E800') format('woff'),
	     url('./font/fontello.ttf?E800') format('truetype'),
	     url('./font/fontello.svg?E800#fontello') format('svg');
	font-weight: normal;
	font-style: normal;
}
.hide_change {
	font-family: "E800";
	font-style: normal;
	font-weight: normal;
	speak: none;

	/* For safety - reset parent styles, that can break glyph codes*/
	font-variant: normal;
	text-transform: none;

	/* Font smoothing. That was taken from TWBS */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	/* Uncomment for 3D effect */
	/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */

	/* add spacing to better separate each image */
	letter-spacing: 2px;
}