/* ============================================================
   ARUNE SUPERSEO v2.1 — MODULES
   Module-specific styles for all 12 dashboard modules
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   MODULE 1: DASHBOARD (Command Center)
   ══════════════════════════════════════════════════════════ */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

/* Agent Status Panel */
.agent-status-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.agent-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.agent-status-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.agent-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.agent-counter {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  text-align: center;
}

.agent-counter-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.agent-counter-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Priority Queue */
.priority-queue {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.priority-queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
}

.priority-queue-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.priority-queue-list {
  max-height: 360px;
  overflow-y: auto;
}

.priority-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-fast);
  cursor: grab;
}

.priority-item:last-child {
  border-bottom: none;
}

.priority-item:hover {
  background: rgba(108,99,255,0.05);
}

.priority-item:active {
  cursor: grabbing;
}

.drag-handle {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  cursor: grab;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.priority-item:hover .drag-handle {
  opacity: 1;
}

.priority-item-content {
  flex: 1;
  min-width: 0;
}

.priority-item-title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.priority-item-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

.priority-item-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* Activity Feed */
.activity-feed {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.activity-feed-list {
  max-height: 320px;
  overflow-y: auto;
  padding: var(--space-3) var(--space-4);
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  animation: slideInLeft 0.3s ease;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  background: var(--color-surface-2);
  margin-top: 2px;
}

.activity-text {
  flex: 1;
  min-width: 0;
}

.activity-title {
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  font-weight: 500;
  line-height: 1.4;
}

.activity-time {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════
   MODULE 2: AUDIT
   ══════════════════════════════════════════════════════════ */

.audit-summary-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.audit-summary-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  min-width: 120px;
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.audit-summary-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.audit-summary-count {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1;
}

.audit-summary-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.audit-filters {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.audit-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--color-surface-2);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.audit-filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.audit-filter-btn.active {
  background: rgba(108,99,255,0.18);
  color: var(--color-primary);
  border-color: rgba(108,99,255,0.4);
}

.audit-filter-btn.filter-critical.active {
  background: rgba(255,77,109,0.15);
  color: var(--color-danger);
  border-color: rgba(255,77,109,0.35);
}

.audit-filter-btn.filter-warning.active {
  background: rgba(255,184,48,0.15);
  color: var(--color-warning);
  border-color: rgba(255,184,48,0.3);
}

/* Auto-exec toggle column */
.auto-exec-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auto-exec-switch {
  width: 36px;
  height: 20px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.auto-exec-switch.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.auto-exec-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--color-text-secondary);
  border-radius: 50%;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.auto-exec-switch.active::after {
  transform: translateX(16px);
  background: #fff;
}

/* Remediation Card */
.remediation-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-3);
  transition: border-color var(--transition-fast);
}

.remediation-card:hover {
  border-color: var(--color-border-hover);
}

.remediation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  cursor: pointer;
  user-select: none;
  gap: var(--space-3);
}

.remediation-title {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.remediation-chevron {
  color: var(--color-text-muted);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  font-size: 0.8rem;
}

.remediation-card.open .remediation-chevron {
  transform: rotate(180deg);
}

.remediation-body {
  display: none;
  padding: 0 var(--space-4) var(--space-4);
  border-top: 1px solid var(--color-border);
}

.remediation-card.open .remediation-body {
  display: block;
  animation: slideInDown 0.25s ease;
}

.code-block {
  background: #0D0E1F;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent);
  overflow-x: auto;
  line-height: 1.7;
  margin-top: var(--space-3);
}

/* ══════════════════════════════════════════════════════════
   MODULE 3: KEYWORDS
   ══════════════════════════════════════════════════════════ */

.keyword-cluster-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.keyword-cluster-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.keyword-cluster-btn:hover {
  color: var(--color-text-primary);
  background: rgba(255,255,255,0.05);
}

.keyword-cluster-btn.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(108,99,255,0.35);
}

/* Difficulty Bar */
.difficulty-bar {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
}

.difficulty-bar-track {
  flex: 1;
  height: 5px;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.difficulty-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--color-success);
  transition: width var(--transition-slow);
}

.difficulty-bar-fill.hard   { background: var(--color-danger); }
.difficulty-bar-fill.medium { background: var(--color-warning); }
.difficulty-bar-fill.easy   { background: var(--color-success); }

.difficulty-bar-value {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-secondary);
  min-width: 24px;
  text-align: right;
}

/* SERP Feature Pills */
.serp-feature-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.serp-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.serp-pill.featured    { background: rgba(108,99,255,0.2); color: var(--color-primary-light); border: 1px solid rgba(108,99,255,0.3); }
.serp-pill.maps        { background: rgba(0,212,170,0.15); color: var(--color-accent); border: 1px solid rgba(0,212,170,0.25); }
.serp-pill.images      { background: rgba(255,184,48,0.15); color: var(--color-warning); border: 1px solid rgba(255,184,48,0.25); }
.serp-pill.video       { background: rgba(255,77,109,0.15); color: var(--color-danger); border: 1px solid rgba(255,77,109,0.25); }
.serp-pill.pac         { background: rgba(96,165,250,0.15); color: #93C5FD; border: 1px solid rgba(96,165,250,0.25); }
.serp-pill.shopping    { background: rgba(34,211,165,0.12); color: var(--color-success); border: 1px solid rgba(34,211,165,0.2); }
.serp-pill.knowledge   { background: rgba(139,143,168,0.15); color: var(--color-text-secondary); border: 1px solid rgba(139,143,168,0.2); }

/* Volume Badge */
.volume-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  background: rgba(108,99,255,0.12);
  color: var(--color-primary-light);
  border: 1px solid rgba(108,99,255,0.2);
  white-space: nowrap;
}

/* Competitor Gap Table */
.competitor-gap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.competitor-gap-table td.gap-opportunity {
  background: rgba(34,211,165,0.1);
  color: var(--color-success);
  font-weight: 600;
}

.competitor-gap-table td.gap-lost {
  background: rgba(255,77,109,0.08);
  color: var(--color-danger);
}

.competitor-gap-table td.gap-won {
  background: rgba(108,99,255,0.1);
  color: var(--color-primary-light);
}

/* ══════════════════════════════════════════════════════════
   MODULE 4: ON-PAGE
   ══════════════════════════════════════════════════════════ */

/* SERP Preview */
.serp-preview {
  background: #1E2030;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  font-family: var(--font-sans);
  max-width: 600px;
}

.serp-preview-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.serp-url {
  font-size: var(--text-sm);
  color: #78C487;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.serp-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #8AB4F8;
  margin-bottom: var(--space-2);
  line-height: 1.3;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.serp-title:hover {
  color: #A8C7FA;
  text-decoration: underline;
}

.serp-description {
  font-size: var(--text-sm);
  color: #BDC1C6;
  line-height: 1.6;
}

.serp-description .highlight {
  font-weight: 700;
  color: #E8EAED;
}

.serp-char-counter {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.serp-char-counter.over-limit {
  color: var(--color-danger);
}

.serp-char-counter.near-limit {
  color: var(--color-warning);
}

/* Tag Editor */
.tag-editor {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.tag-editor:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.2);
}

.tag-editor-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 14px;
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  resize: none;
}

.tag-editor-counter {
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-surface-3);
  border-left: 1px solid var(--color-border);
  white-space: nowrap;
  font-family: var(--font-mono);
}

.tag-editor-counter.over { color: var(--color-danger); }
.tag-editor-counter.near { color: var(--color-warning); }

/* Heading Structure Tree */
.h-structure-tree {
  padding: var(--space-3) 0;
}

.h-node {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-1) 0;
  position: relative;
}

.h-node-indent {
  flex-shrink: 0;
}

.h-node-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 22px;
  border-radius: var(--radius-xs);
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.h-node-tag.h1 { background: rgba(108,99,255,0.2); color: var(--color-primary-light); }
.h-node-tag.h2 { background: rgba(0,212,170,0.15); color: var(--color-accent); }
.h-node-tag.h3 { background: rgba(255,184,48,0.15); color: var(--color-warning); }
.h-node-tag.h4 { background: rgba(139,143,168,0.12); color: var(--color-text-secondary); }
.h-node-tag.h5 { background: rgba(139,143,168,0.08); color: var(--color-text-muted); }
.h-node-tag.h6 { background: rgba(139,143,168,0.06); color: var(--color-text-muted); }

.h-node-text {
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-top: 2px;
}

/* Page Score Ring */
.page-score-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-score-ring svg {
  transform: rotate(-90deg);
}

.page-score-ring-track {
  fill: none;
  stroke: var(--color-surface-2);
  stroke-width: 8;
}

.page-score-ring-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dasharray var(--transition-slow);
}

.page-score-ring.good    .page-score-ring-fill { stroke: var(--color-success); }
.page-score-ring.warning .page-score-ring-fill { stroke: var(--color-warning); }
.page-score-ring.poor    .page-score-ring-fill { stroke: var(--color-danger); }

.page-score-ring-value {
  position: absolute;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1;
}

.page-score-ring-label {
  position: absolute;
  bottom: -20px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════
   MODULE 5: TECHNICAL SEO
   ══════════════════════════════════════════════════════════ */

/* Core Web Vitals Panel */
.cwv-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.cwv-metric {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cwv-metric:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.cwv-metric::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.cwv-good::before    { background: var(--color-success); }
.cwv-needs-improvement::before { background: var(--color-warning); }
.cwv-poor::before    { background: var(--color-danger); }

.cwv-metric-name {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
  font-weight: 600;
}

.cwv-metric-value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.cwv-good    .cwv-metric-value { color: var(--color-success); }
.cwv-needs-improvement .cwv-metric-value { color: var(--color-warning); }
.cwv-poor    .cwv-metric-value { color: var(--color-danger); }

.cwv-metric-unit {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.cwv-threshold {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.cwv-good    .cwv-threshold { background: rgba(34,211,165,0.15); color: var(--color-success); }
.cwv-needs-improvement .cwv-threshold { background: rgba(255,184,48,0.15); color: var(--color-warning); }
.cwv-poor    .cwv-threshold { background: rgba(255,77,109,0.15); color: var(--color-danger); }

/* Code Snippet */
.code-snippet {
  position: relative;
  background: #0A0B18;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: #E2E8F0;
  overflow-x: auto;
  line-height: 1.8;
}

.code-snippet .token-keyword   { color: var(--color-primary-light); }
.code-snippet .token-string    { color: var(--color-accent); }
.code-snippet .token-comment   { color: var(--color-text-muted); font-style: italic; }
.code-snippet .token-function  { color: var(--color-warning); }
.code-snippet .token-number    { color: #F1FA8C; }
.code-snippet .token-operator  { color: #FF79C6; }

/* Icon Checklist */
.checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.checklist-item:hover {
  border-color: var(--color-border-hover);
}

.checklist-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.checklist-item-content {
  flex: 1;
  min-width: 0;
}

.checklist-item-title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.checklist-item-detail {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════
   MODULE 6: SCHEMA ENGINE
   ══════════════════════════════════════════════════════════ */

.schema-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.schema-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: all var(--transition-fast);
  cursor: default;
}

.schema-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.schema-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.schema-card-icon {
  font-size: 1.5rem;
}

.schema-card-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  flex: 1;
  margin-top: var(--space-1);
}

.schema-card-desc {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Schema Status Badges */
.schema-valid {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  background: rgba(34,211,165,0.15);
  color: var(--color-success);
  border: 1px solid rgba(34,211,165,0.25);
}

.schema-invalid {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  background: rgba(255,77,109,0.15);
  color: var(--color-danger);
  border: 1px solid rgba(255,77,109,0.25);
}

.schema-missing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  background: rgba(139,143,168,0.12);
  color: var(--color-text-muted);
  border: 1px solid rgba(139,143,168,0.2);
}

/* Schema JSON Preview */
.schema-preview {
  background: #0A0B18;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.8;
  overflow-x: auto;
  max-height: 400px;
  overflow-y: auto;
}

.schema-preview .json-key      { color: var(--color-primary-light); }
.schema-preview .json-string   { color: var(--color-accent); }
.schema-preview .json-number   { color: #F1FA8C; }
.schema-preview .json-boolean  { color: var(--color-warning); }
.schema-preview .json-null     { color: var(--color-text-muted); }
.schema-preview .json-bracket  { color: var(--color-text-secondary); }

/* ══════════════════════════════════════════════════════════
   MODULE 7: CONTENT
   ══════════════════════════════════════════════════════════ */

/* Content Calendar */
.content-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.calendar-day-header {
  background: var(--color-surface-2);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  text-align: center;
}

.calendar-day {
  background: var(--color-surface);
  min-height: 100px;
  padding: var(--space-2);
  transition: background var(--transition-fast);
  position: relative;
}

.calendar-day:hover {
  background: rgba(108,99,255,0.04);
}

.calendar-day.today {
  background: rgba(108,99,255,0.06);
  border: 1px solid rgba(108,99,255,0.2);
}

.calendar-day.other-month {
  opacity: 0.4;
}

.calendar-day-number {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.calendar-day.today .calendar-day-number {
  color: var(--color-primary);
}

.content-calendar-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.content-calendar-item {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: filter var(--transition-fast);
}

.content-calendar-item:hover {
  filter: brightness(1.2);
}

.content-type-blog    { background: rgba(108,99,255,0.25); color: var(--color-primary-light); }
.content-type-service { background: rgba(0,212,170,0.2); color: var(--color-accent); }
.content-type-local   { background: rgba(255,184,48,0.2); color: var(--color-warning); }
.content-type-social  { background: rgba(255,77,109,0.18); color: var(--color-danger); }
.content-type-video   { background: rgba(96,165,250,0.2); color: #93C5FD; }

/* Content Pipeline (Kanban) */
.content-pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  min-height: 400px;
}

.pipeline-column {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pipeline-column-header {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-3);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.pipeline-column-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
}

.pipeline-column-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pipeline-column-items {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 200px;
}

.content-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  cursor: grab;
  transition: all var(--transition-fast);
  user-select: none;
}

.content-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.content-card:active {
  cursor: grabbing;
  opacity: 0.8;
}

.content-card-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.content-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.content-card-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Quality Gate List */
.quality-gate-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.quality-gate-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  font-size: var(--text-sm);
}

.quality-gate-icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}

.quality-gate-label {
  flex: 1;
  color: var(--color-text-primary);
}

.quality-gate-status {
  font-size: var(--text-xs);
  font-weight: 600;
}

.quality-gate-item.pass { border-left: 3px solid var(--color-success); }
.quality-gate-item.fail { border-left: 3px solid var(--color-danger); }
.quality-gate-item.warn { border-left: 3px solid var(--color-warning); }

/* ══════════════════════════════════════════════════════════
   MODULE 8: LOCAL SEO
   ══════════════════════════════════════════════════════════ */

/* GBP Panel */
.gbp-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-5);
  align-items: start;
}

.gbp-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.gbp-business-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.gbp-stats {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.gbp-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gbp-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1;
}

.gbp-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* NAP Table */
.nap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.nap-table th {
  background: var(--color-surface-2);
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.nap-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-primary);
  vertical-align: middle;
}

.nap-table tr:hover td {
  background: rgba(108,99,255,0.03);
}

.nap-pass {
  color: var(--color-success);
  font-size: 1rem;
}

.nap-fail {
  color: var(--color-danger);
  font-size: 1rem;
}

/* Neighborhood Grid */
.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.neighborhood-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: all var(--transition-fast);
  cursor: default;
}

.neighborhood-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.neighborhood-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.neighborhood-rank {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1;
}

.neighborhood-rank.rank-top3   { color: var(--color-success); }
.neighborhood-rank.rank-top10  { color: var(--color-warning); }
.neighborhood-rank.rank-beyond { color: var(--color-danger); }

.neighborhood-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: 600;
}

.trend-up   { color: var(--color-success); }
.trend-down { color: var(--color-danger); }
.trend-flat { color: var(--color-text-muted); }

/* Review Velocity */
.review-velocity {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.review-velocity-chart {
  height: 120px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding-top: var(--space-3);
}

.velocity-bar-item {
  flex: 1;
  border-radius: var(--radius-xs) var(--radius-xs) 0 0;
  background: rgba(108,99,255,0.4);
  transition: background var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.velocity-bar-item:hover {
  background: var(--color-primary);
}

/* ══════════════════════════════════════════════════════════
   MODULE 9: BACKLINKS
   ══════════════════════════════════════════════════════════ */

/* Backlink Quality Meter */
.backlink-quality-meter {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}

.quality-meter-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.quality-meter-score {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.quality-meter-track {
  width: 100%;
  height: 16px;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.quality-meter-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-danger), var(--color-warning), var(--color-success));
  position: relative;
  transition: width var(--transition-slow);
}

.quality-meter-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 20px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

/* Outreach Pipeline */
.outreach-pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.outreach-stage {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.outreach-stage-header {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-3);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.outreach-stage-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
}

.outreach-stage-items {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 150px;
}

.outreach-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  cursor: grab;
  transition: all var(--transition-fast);
}

.outreach-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.outreach-domain {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.outreach-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.outreach-da {
  font-weight: 700;
  color: var(--color-primary-light);
}

/* Quota Tracker */
.quota-tracker {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.quota-tracker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.quota-tracker-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

.quota-tracker-count {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
}

/* ══════════════════════════════════════════════════════════
   MODULE 10: CRO
   ══════════════════════════════════════════════════════════ */

/* A/B Test Card */
.ab-test-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color var(--transition-fast);
}

.ab-test-card:hover {
  border-color: var(--color-border-hover);
}

.ab-test-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.ab-test-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
}

.ab-test-split {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.ab-variant {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.ab-variant-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: 24px;
  flex-shrink: 0;
}

.ab-variant-bar-track {
  flex: 1;
  height: 8px;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.ab-variant-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.ab-variant.control .ab-variant-bar-fill  { background: var(--gradient-primary); }
.ab-variant.variant .ab-variant-bar-fill  { background: var(--gradient-accent); }

.ab-variant-value {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-primary);
  min-width: 40px;
  text-align: right;
}

.ab-winner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-success);
}

/* Funnel Chart */
.funnel-chart {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-4) 0;
}

.funnel-step {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
}

.funnel-step-bar-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
}

.funnel-step-bar {
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  opacity: 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width var(--transition-slow), opacity var(--transition-fast);
  cursor: pointer;
}

.funnel-step-bar:hover {
  opacity: 1;
}

.funnel-step-bar span {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.funnel-step-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  min-width: 100px;
  text-align: right;
}

.funnel-step-value {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-primary);
  min-width: 70px;
}

.funnel-step-drop {
  font-size: var(--text-xs);
  color: var(--color-danger);
  min-width: 50px;
  text-align: right;
}

/* Conversion Metric */
.conversion-metric {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
}

.conversion-metric-value {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.conversion-metric-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.conversion-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  font-weight: 600;
}

.conversion-trend.up   { color: var(--color-success); }
.conversion-trend.down { color: var(--color-danger); }

/* CTA Heatmap */
.cta-heatmap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 4px;
  padding: var(--space-3) 0;
}

.cta-heatmap-cell {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: filter var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.cta-heatmap-cell:hover {
  filter: brightness(1.2);
}

.cta-heatmap-cell-label {
  font-size: 9px;
  font-weight: 600;
  text-align: center;
  color: rgba(255,255,255,0.8);
  line-height: 1.2;
  z-index: 1;
}

.cta-heatmap-cell-value {
  font-size: var(--text-xs);
  font-weight: 700;
  color: #fff;
  z-index: 1;
}

/* Heat levels */
.heat-0  { background: rgba(108,99,255,0.08); }
.heat-1  { background: rgba(108,99,255,0.15); }
.heat-2  { background: rgba(108,99,255,0.25); }
.heat-3  { background: rgba(108,99,255,0.38); }
.heat-4  { background: rgba(108,99,255,0.52); }
.heat-5  { background: rgba(108,99,255,0.70); }
.heat-6  { background: rgba(0,212,170,0.6); }
.heat-7  { background: rgba(34,211,165,0.75); }
.heat-8  { background: rgba(34,211,165,0.9); }
.heat-9  { background: var(--color-success); }

/* ══════════════════════════════════════════════════════════
   MODULE 11: REPORTS
   ══════════════════════════════════════════════════════════ */

.report-header {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
}

.report-header::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(108,99,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.report-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.report-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.report-brand-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.report-brand-sub {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.report-date {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-align: right;
}

.report-summary-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.report-stat {
  text-align: center;
  padding: var(--space-3);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.report-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.report-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.report-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
}

.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.weekly-summary-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.weekly-summary-item {
  text-align: center;
}

.weekly-summary-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.weekly-summary-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Competitor Table */
.competitor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.competitor-table th {
  background: var(--color-surface-2);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}

.competitor-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-primary);
}

.competitor-table .diff-positive {
  color: var(--color-success);
  font-weight: 600;
}

.competitor-table .diff-negative {
  color: var(--color-danger);
  font-weight: 600;
}

.competitor-table .is-us {
  background: rgba(108,99,255,0.07);
  font-weight: 700;
}

.competitor-table .is-us td {
  color: var(--color-primary-light);
}

/* ══════════════════════════════════════════════════════════
   MODULE 12: CHANGE REQUESTS
   ══════════════════════════════════════════════════════════ */

.cr-queue {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cr-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color var(--transition-fast);
  position: relative;
}

.cr-card:hover {
  border-color: var(--color-border-hover);
}

.cr-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.cr-card-id {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 600;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}

.cr-card-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  flex: 1;
  line-height: 1.3;
}

.cr-risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.cr-risk-high     { background: rgba(255,77,109,0.18); color: var(--color-danger); border: 1px solid rgba(255,77,109,0.3); }
.cr-risk-medium   { background: rgba(255,184,48,0.15); color: var(--color-warning); border: 1px solid rgba(255,184,48,0.25); }
.cr-risk-low      { background: rgba(96,165,250,0.15); color: #93C5FD; border: 1px solid rgba(96,165,250,0.25); }
.cr-risk-critical { background: rgba(255,77,109,0.25); color: var(--color-danger); border: 1px solid rgba(255,77,109,0.4); }

.cr-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.cr-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

.cr-meta-icon {
  color: var(--color-text-muted);
}

.cr-card-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-4);
}

/* SLA Timer */
.sla-timer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.sla-timer-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex: 1;
}

.sla-timer-value {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: 0.05em;
}

.sla-timer.urgent {
  border-color: rgba(255,77,109,0.3);
  background: rgba(255,77,109,0.06);
}

.sla-timer.urgent .sla-timer-value {
  color: var(--color-danger);
  animation: pulse 1.5s ease-in-out infinite;
}

.sla-timer.warning {
  border-color: rgba(255,184,48,0.3);
  background: rgba(255,184,48,0.06);
}

.sla-timer.warning .sla-timer-value {
  color: var(--color-warning);
}

/* CR Actions */
.cr-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.cr-actions-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Audit Log Entry */
.audit-log-entry {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
  transition: background var(--transition-fast);
}

.audit-log-entry:last-child {
  border-bottom: none;
}

.audit-log-entry:hover {
  background: rgba(255,255,255,0.02);
}

.audit-log-timestamp {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}

.audit-log-action {
  flex: 1;
  color: var(--color-text-primary);
}

.audit-log-action .action-type {
  font-weight: 600;
  color: var(--color-primary-light);
}

.audit-log-user {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE OVERRIDES FOR MODULES
   ══════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
  .cwv-panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .content-pipeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .outreach-pipeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .neighborhood-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .report-summary-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cwv-panel {
    grid-template-columns: 1fr;
  }

  .content-pipeline {
    grid-template-columns: 1fr;
  }

  .outreach-pipeline {
    grid-template-columns: 1fr;
  }

  .neighborhood-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .schema-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gbp-panel {
    grid-template-columns: 1fr;
  }

  .report-summary-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .weekly-summary-card {
    grid-template-columns: 1fr;
  }

  .content-calendar {
    display: none; /* Hidden on mobile, show list view instead */
  }

  .audit-summary-bar {
    flex-direction: column;
  }

  .report-kpi-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .neighborhood-grid {
    grid-template-columns: 1fr 1fr;
  }

  .schema-grid {
    grid-template-columns: 1fr;
  }

  .agent-counters {
    grid-template-columns: repeat(3, 1fr);
  }
}



/* ================================================================
   ARUNE INTERIORS — PERMANENT PROFESSIONAL CURSOR OVERRIDE
   Completely destroys trishul-cursor and custom image cursors site-wide.
================================================================ */

*, *::before, *::after, html, body {
  cursor: auto !important;
}

a, button, select, textarea, input, .btn, .btn-one, .theme-btn, .submit-btn, .glass-card, .btn-luxury-gold, .btn-luxury-outline {
  cursor: pointer !important;
}

input[type="text"], input[type="email"], input[type="tel"], textarea {
  cursor: text !important;
}

/* Hard disable any magic-cursor or trishul-cursor elements */
#magic-cursor-dot, #magic-cursor-ring, [class*="trishul"], [id*="trishul"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
