/* ==========================================================================
   SERP Robot - Master Design System & Stylesheet
   Modern, Ultra-Premium Dark/Light SEO Dashboard Aesthetics
   ========================================================================== */

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

:root {
  /* Color Tokens - Light Mode */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;

  /* Brand Accents */
  --brand-green: #10b981;
  --brand-green-hover: #059669;
  --brand-green-subtle: rgba(16, 185, 129, 0.12);
  --brand-blue: #0ea5e9;
  --brand-blue-hover: #0284c7;
  --brand-blue-subtle: rgba(14, 165, 233, 0.12);
  --brand-indigo: #6366f1;
  --brand-purple: #8b5cf6;

  /* Rank Badges */
  --rank-top3-bg: #dcfce7;
  --rank-top3-text: #15803d;
  --rank-top3-border: #86efac;

  --rank-top10-bg: #e0f2fe;
  --rank-top10-text: #0369a1;
  --rank-top10-border: #7dd3fc;

  --rank-top30-bg: #fef3c7;
  --rank-top30-text: #b45309;
  --rank-top30-border: #fde68a;

  --rank-other-bg: #f1f5f9;
  --rank-other-text: #475569;
  --rank-other-border: #e2e8f0;

  --change-pos: #10b981;
  --change-neg: #ef4444;
  --change-zero: #94a3b8;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.2);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  color-scheme: light dark;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-tertiary: #1e293b;
  --bg-card: #111827;
  --bg-card-hover: #1e293b;
  --bg-glass: rgba(17, 24, 39, 0.85);

  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --border-color: #1e293b;
  --border-subtle: #162032;

  --brand-green: #10b981;
  --brand-green-subtle: rgba(16, 185, 129, 0.2);
  --brand-blue: #38bdf8;
  --brand-blue-subtle: rgba(56, 189, 248, 0.2);

  --rank-top3-bg: rgba(16, 185, 129, 0.18);
  --rank-top3-text: #4ade80;
  --rank-top3-border: rgba(16, 185, 129, 0.4);

  --rank-top10-bg: rgba(14, 165, 233, 0.18);
  --rank-top10-text: #38bdf8;
  --rank-top10-border: rgba(14, 165, 233, 0.4);

  --rank-top30-bg: rgba(245, 158, 11, 0.18);
  --rank-top30-text: #fbbf24;
  --rank-top30-border: rgba(245, 158, 11, 0.4);

  --rank-other-bg: #1e293b;
  --rank-other-text: #94a3b8;
  --rank-other-border: #334155;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.25);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* App Header / Top Navigation Bar */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-mascot-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  border: 2px solid var(--brand-green);
  transition: transform var(--transition-fast);
}

.brand-mascot-img:hover {
  transform: scale(1.08) rotate(3deg);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-title .accent {
  color: var(--brand-green);
}

.brand-title .brand-tld {
  color: var(--brand-blue);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-tag {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-indigo));
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Header Middle: Project Switcher */
.project-switcher-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-tertiary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.project-switcher-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.project-select {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  padding-right: 0.5rem;
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--brand-green);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  background: var(--brand-green-hover);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.btn-outline-green {
  background: transparent;
  color: var(--brand-green);
  border-color: var(--brand-green);
}

.btn-outline-green:hover {
  background: var(--brand-green-subtle);
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-muted);
}

/* Main Container */
.main-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem;
  width: 100%;
  flex: 1;
}

/* ==========================================================================
   Project Hero & Start Date Milestone Banner
   ========================================================================== */
.project-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-main-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.domain-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.hero-info h1 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.domain-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  text-decoration: none;
}

.domain-pill:hover {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}

.hero-badges-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-tertiary);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-weight: 500;
}

/* MILESTONE BANNER - Special agency feature */
.milestone-banner {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(16, 185, 129, 0.12));
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-left: 5px solid var(--brand-blue);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.milestone-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.milestone-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

.milestone-content h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.milestone-date-badge {
  background: var(--brand-blue);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
}

.milestone-content p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.milestone-metrics {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.milestone-metric-item {
  text-align: right;
}

.milestone-metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}

.milestone-metric-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.milestone-metric-val.highlight-green {
  color: var(--brand-green);
}

/* ==========================================================================
   KPI Summary Metric Cards (SERP Robot Grid)
   ========================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-green);
}

.kpi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.kpi-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.kpi-icon {
  font-size: 1.1rem;
  opacity: 0.8;
}

.kpi-main-val {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.kpi-total-suffix {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.kpi-trend {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.35rem;
}

.trend-up {
  color: var(--change-pos);
}

.trend-down {
  color: var(--change-neg);
}

.trend-neutral {
  color: var(--change-zero);
}

/* Dynamics Mini Bar in 6th card */
.kpi-dynamics-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.dyn-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.dyn-badge.improved {
  background: var(--brand-green-subtle);
  color: var(--brand-green);
}

.dyn-badge.declined {
  background: rgba(239, 68, 68, 0.12);
  color: var(--change-neg);
}

.dyn-badge.unchanged {
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

/* ==========================================================================
   Chart Panel Section
   ========================================================================== */
.chart-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.chart-title-group h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.chart-title-group p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.chart-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chart-pill-selector {
  display: flex;
  background: var(--bg-tertiary);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.chart-pill-btn {
  background: transparent;
  border: none;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chart-pill-btn.active {
  background: var(--bg-secondary);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

/* Chart Canvas / SVG Container */
.chart-container {
  position: relative;
  width: 100%;
  min-height: 320px;
}

.serp-chart-svg {
  width: 100%;
  height: 320px;
  overflow: visible;
}

.chart-grid-line {
  stroke: var(--border-color);
  stroke-dasharray: 4 4;
}

.chart-axis-label {
  fill: var(--text-muted);
  font-size: 11px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.chart-axis-label.milestone-month {
  fill: var(--brand-blue);
  font-weight: 800;
}

.chart-region-label {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-sans);
}

.chart-region-label.before {
  fill: var(--text-muted);
}

.chart-region-label.after {
  fill: var(--brand-green);
}

.chart-milestone-badge-text {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-sans);
}

.chart-point-hitarea {
  cursor: pointer;
}

.chart-point-outer {
  transition: r 0.15s ease, stroke-width 0.15s ease;
}

/* Chart Hover Tooltip */
.chart-tooltip {
  position: absolute;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  z-index: 20;
  min-width: 170px;
  font-size: 0.8rem;
}

.tooltip-header {
  font-weight: 800;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.35rem;
  margin-bottom: 0.5rem;
}

.tooltip-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
  color: var(--text-secondary);
}

.tooltip-val {
  font-weight: 700;
  color: var(--text-main);
}

.tooltip-val.highlight {
  color: var(--brand-green);
}

/* ==========================================================================
   Monthly Keyword Matrix Table (SERP Robot Core Feature)
   ========================================================================== */
.table-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 2rem;
}

.table-toolbar {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  min-width: 260px;
}

.search-input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.85rem 0.55rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  border-color: var(--brand-green);
  background: var(--bg-secondary);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.filter-select {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}

.filter-select:focus {
  border-color: var(--brand-green);
}

.table-scroll-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.serp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.serp-table th {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.serp-table th.th-start-month {
  background: var(--brand-blue-subtle);
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
}

.serp-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  white-space: nowrap;
}

.serp-table tr:hover td {
  background: var(--bg-card-hover);
}

/* Sticky first column for keyword names */
.serp-table th:first-child,
.serp-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 10;
  background: var(--bg-card);
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.04);
}

.serp-table th:first-child {
  background: var(--bg-tertiary);
  z-index: 11;
}

.serp-table tr:hover td:first-child {
  background: var(--bg-card-hover);
}

/* Keyword Cell */
.kw-cell-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 220px;
}

.kw-title-link {
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.kw-title-link:hover {
  color: var(--brand-green);
}

.kw-target-url {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kw-target-url:hover {
  color: var(--brand-blue);
}

.kw-tags-row {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.15rem;
  flex-wrap: wrap;
}

.kw-tag {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* Rank Pills */
.rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 26px;
  padding: 0 7px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.rank-top3 {
  background: var(--rank-top3-bg);
  color: var(--rank-top3-text);
  border-color: var(--rank-top3-border);
}

.rank-top10 {
  background: var(--rank-top10-bg);
  color: var(--rank-top10-text);
  border-color: var(--rank-top10-border);
}

.rank-top30 {
  background: var(--rank-top30-bg);
  color: var(--rank-top30-text);
  border-color: var(--rank-top30-border);
}

.rank-other {
  background: var(--rank-other-bg);
  color: var(--rank-other-text);
  border-color: var(--rank-other-border);
}

.rank-none {
  color: var(--text-muted);
  font-weight: normal;
}

/* Delta indicators */
.delta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.delta-pill.gain {
  color: var(--change-pos);
}

.delta-pill.loss {
  color: var(--change-neg);
}

.delta-pill.zero {
  color: var(--change-zero);
}

.delta-pill.new {
  background: var(--brand-blue-subtle);
  color: var(--brand-blue);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* History Column Cells */
.month-col-cell {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
}

.month-col-cell.start-col {
  background: rgba(14, 165, 233, 0.05);
}

/* Table Row Actions */
.row-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-action-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.95rem;
}

.btn-action-icon:hover {
  background: var(--bg-tertiary);
  color: var(--text-main);
}

.btn-action-icon.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--change-neg);
}

/* ==========================================================================
   Modals & Drawers
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-dialog.large {
  max-width: 820px;
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: var(--bg-tertiary);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

/* Form Groups */
.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-label .helper {
  font-weight: normal;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--brand-green);
  background: var(--bg-secondary);
}

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

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* SERP Google Snippet Preview */
.serp-preview-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1rem;
}

.serp-preview-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.google-snippet {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  max-width: 600px;
}

.google-snippet-url {
  font-size: 0.75rem;
  color: #202124;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

[data-theme="dark"] .google-snippet-url {
  color: #bdc1c6;
}

.google-snippet-title {
  font-size: 1.05rem;
  color: #1a0dab;
  font-weight: 500;
  text-decoration: none;
  display: block;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

[data-theme="dark"] .google-snippet-title {
  color: #8ab4f8;
}

.google-snippet-desc {
  font-size: 0.82rem;
  color: #4d5156;
  line-height: 1.4;
}

[data-theme="dark"] .google-snippet-desc {
  color: #bdc1c6;
}

/* Live SERP Scan Simulation Modal */
.scan-progress-wrap {
  text-align: center;
  padding: 1.5rem 0;
}

.scan-robot-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--brand-green);
  animation: pulseScan 1.5s infinite ease-in-out;
  object-fit: cover;
}

@keyframes pulseScan {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 16px rgba(16, 185, 129, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.scan-progress-bar-bg {
  width: 100%;
  height: 10px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 1.25rem 0;
}

.scan-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-blue));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.scan-log-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  min-height: 24px;
}

/* App Footer */
.app-footer {
  border-top: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  background: var(--bg-secondary);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .milestone-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .milestone-metrics {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   NEW ADVANCED SERP ROBOT FEATURES
   ========================================================================== */

/* 1. Client Presentation Mode Banner & Read-Only Locks */
.client-share-banner {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  padding: 8px 1.5rem;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.banner-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.banner-badge {
  background: #ffffff;
  color: #0369a1;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-right: 8px;
  letter-spacing: 0.5px;
}

.btn-banner-exit {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-banner-exit:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Hide admin controls when in read-only client presentation mode */
.readonly-mode .admin-only {
  display: none !important;
}

/* 2. Free SERP Checker Button & Bot Fleet Status Pill */
.btn-brand-glow {
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-brand-glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.45);
}

.btn-bot-pill {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-bot-pill:hover {
  border-color: var(--brand-green);
  background: var(--bg-card);
}

.bot-pulsing-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: botPulse 1.8s infinite;
}

@keyframes botPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* 3. Competitor Badges, Legend, and Matrix Columns */
.comp-pill {
  background: #fef3c7 !important;
  color: #92400e !important;
  border: 1px solid #fde68a !important;
}

[data-theme="dark"] .comp-pill {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}

.chart-legend-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 8px 1.25rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text-main);
}

.legend-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-competitors-group {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.legend-checkbox-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  color: var(--text-secondary);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.legend-checkbox-item:hover {
  color: var(--text-main);
}

.legend-checkbox-item input[type="checkbox"] {
  accent-color: var(--brand-blue);
  cursor: pointer;
}

.th-comp-col {
  background: #fefce8 !important;
  color: #854d0e !important;
  border-left: 1px dashed #fde047;
  border-right: 1px dashed #fde047;
}

[data-theme="dark"] .th-comp-col {
  background: #1c1917 !important;
  color: #facc15 !important;
  border-left: 1px dashed rgba(250, 204, 21, 0.3);
  border-right: 1px dashed rgba(250, 204, 21, 0.3);
}

.comp-col-cell {
  background: rgba(254, 240, 138, 0.08);
  border-left: 1px dashed var(--border-color);
  border-right: 1px dashed var(--border-color);
  text-align: center;
}

/* 4. SERP Features Badges */
.serp-feats-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.serp-feat-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.serp-feat-won {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.25);
}

[data-theme="dark"] .serp-feat-won {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.45);
}

/* 5. Free SERP Checker Radar Pulse Animation & Grid */
.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .form-grid-3 {
    grid-template-columns: 1fr;
  }
}

.radar-pulse {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand-green-subtle);
  border: 2px solid var(--brand-green);
  margin: 0 auto;
  position: relative;
  animation: radarExpand 1.4s infinite ease-out;
}

@keyframes radarExpand {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* 6. Alerts & Bot Manager Components */
.alert-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid var(--border-color);
}

.alert-toggle-row p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

.alert-toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-green);
  cursor: pointer;
}

.bot-status-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(14, 165, 233, 0.1));
  border: 1px solid var(--border-color);
  padding: 14px 16px;
  border-radius: var(--radius-md);
}

.bot-online-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-green);
  letter-spacing: 0.5px;
}

.bot-nodes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.bot-node-pill {
  background: var(--bg-tertiary);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-color);
}

/* 7. Toast Notification Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-message {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: 420px;
  pointer-events: auto;
  border-left: 4px solid var(--brand-green);
  animation: slideToast 0.3s ease-out;
}

@keyframes slideToast {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==========================================================================
   SERP ROBOT EXACT "NEW PROJECT" MODAL STYLES
   ========================================================================== */

.serp-project-modal {
  max-width: 720px !important;
  background: var(--bg-card);
  border-radius: 8px !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18) !important;
  overflow: hidden;
}

.serp-modal-header {
  padding: 16px 24px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

[data-theme="dark"] .serp-modal-header {
  background: #1e293b;
  border-bottom-color: #334155;
}

.serp-modal-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #334155;
  margin: 0;
}

[data-theme="dark"] .serp-modal-header h3 {
  color: #f1f5f9;
}

.serp-form-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 20px;
}

@media (max-width: 640px) {
  .serp-form-row {
    flex-direction: column;
    gap: 6px;
  }
  .serp-form-label-col {
    width: 100% !important;
    padding-top: 0 !important;
  }
}

.serp-form-label-col {
  width: 175px;
  flex-shrink: 0;
  padding-top: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #475569;
  display: flex;
  align-items: center;
}

[data-theme="dark"] .serp-form-label-col {
  color: #cbd5e1;
}

.serp-form-input-col {
  flex-grow: 1;
  position: relative;
}

.serp-field {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  font-size: 0.92rem;
  color: #334155;
  background: #ffffff;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

[data-theme="dark"] .serp-field {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}

.serp-field:focus {
  border-color: #38c172;
  box-shadow: 0 0 0 3px rgba(56, 193, 114, 0.18);
}

.info-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #38c172;
  color: #38c172;
  font-size: 10px;
  font-weight: 700;
  margin-left: 6px;
  cursor: help;
  user-select: none;
  line-height: 1;
}

.domain-sub-option {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #475569;
}

.serp-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.serp-checkbox-label input[type="checkbox"] {
  accent-color: #38c172;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.kw-single-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  position: relative;
}

.btn-clear-kw {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 6px;
}

.btn-clear-kw:hover {
  color: #ef4444;
}

.kw-tools-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.btn-kw-tool-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: transform 0.15s ease;
}

.btn-kw-tool-icon:hover {
  transform: scale(1.15);
}

.input-with-pin {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-pin input {
  padding-right: 34px;
}

.input-pin-icon {
  position: absolute;
  right: 10px;
  color: #94a3b8;
  pointer-events: none;
  font-size: 14px;
}

.advanced-options-divider {
  position: relative;
  text-align: center;
  margin: 22px 0 18px 0;
}

.advanced-options-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e2e8f0;
}

[data-theme="dark"] .advanced-options-divider::before {
  background: #334155;
}

.advanced-options-divider span {
  position: relative;
  background: var(--bg-card);
  padding: 0 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #64748b;
}

[data-theme="dark"] .advanced-options-divider span {
  color: #94a3b8;
}

.serp-modal-footer {
  padding: 16px 28px 24px;
  display: flex;
  justify-content: flex-end;
  background: transparent;
}

.btn-serp-add-project {
  background: #38c172;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 11px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(56, 193, 114, 0.3);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-serp-add-project:hover {
  background: #2d995b;
  transform: translateY(-1px);
}

/* ==========================================================================
   XMLRiver Live Engine & Real SERP Tracking Styles
   ========================================================================== */
.engine-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
  cursor: help;
  user-select: none;
}

[data-theme="dark"] .engine-live-pill {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.7);
  animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.btn-action-icon.btn-check-live {
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.05);
}

.btn-action-icon.btn-check-live:hover {
  background: rgba(16, 185, 129, 0.2);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.5);
  transform: rotate(45deg);
}

.btn-action-icon.btn-check-live.scanning {
  animation: spinAction 0.9s linear infinite;
  pointer-events: none;
  opacity: 0.8;
  border-color: #10b981;
}

@keyframes spinAction {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Batch Scan Modal */
.batch-scan-spinner-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.batch-scan-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid var(--border-color);
  border-top-color: #10b981;
  border-right-color: #3b82f6;
  border-radius: 50%;
  animation: spinAction 0.9s linear infinite;
}

.batch-scan-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.batch-scan-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.live-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 700;
  letter-spacing: 0.3px;
  vertical-align: middle;
}



