/* AuraFlow Design System Variables */
:root {
  --bg-app: #09090e;
  --bg-sidebar: #0f0f18;
  --bg-card: #151522;
  --bg-card-hover: #1b1b2d;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-glow: rgba(139, 92, 246, 0.3);

  /* Brand Accents (HSL and Hex) */
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.15);
  --accent-purple-hover: #a78bfa;
  --accent-green: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.15);
  --accent-green-hover: #34d399;
  --accent-blue: #3b82f6;
  --accent-blue-glow: rgba(59, 130, 246, 0.15);
  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.15);
  --accent-red: #ef4444;
  --accent-red-glow: rgba(239, 68, 68, 0.15);
  
  /* Text colors */
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', -apple-system, sans-serif;

  /* Layout Constants */
  --sidebar-width: 260px;
  --header-height: 80px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.25);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* Reset and Core Setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  overflow-x: hidden;
  height: 100vh;
}

/* Main Layout Grid */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  animation: view-fade-in 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sidebar Navigation */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding-left: 8px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.logo-icon {
  width: 20px;
  height: 20px;
  color: white;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(to right, #ffffff, #dcd7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.nav-item i {
  width: 18px;
  height: 18px;
}

.nav-item:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
  color: white;
  background-color: var(--accent-purple-glow);
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: inset 0 0 10px rgba(139, 92, 246, 0.1);
}

.nav-item.active i {
  color: var(--accent-purple);
  filter: drop-shadow(0 0 4px var(--accent-purple));
}

.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.user-info {
  display: flex;
  flex-direction: column;
}

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

.user-role {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Main Content Workspace */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  height: 100vh;
}

/* Header bar */
.top-header {
  height: var(--header-height);
  padding: 0 40px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background-color: rgba(9, 9, 14, 0.5);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 90;
}

.page-title-section h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.page-title-section p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  background-color: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-animation 2s infinite;
}

/* Views & Dynamic Tabs styling */
.view-container {
  flex: 1;
  padding: 30px 40px;
}

.tab-view {
  display: none;
  animation: view-fade-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-view.active {
  display: block;
}

/* Company Selector Header control */
.company-selector-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.company-selector-wrapper .select-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--accent-purple);
  pointer-events: none;
}

.company-select-control {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: white;
  padding: 8px 16px 8px 36px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: var(--transition-fast);
}

.company-select-control:focus, .company-select-control:hover {
  border-color: var(--accent-purple);
  background-color: rgba(255, 255, 255, 0.06);
}

/* AEO Connection status badge */
.connection-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 4px;
}

.connection-status-badge i {
  width: 12px;
  height: 12px;
  color: var(--accent-purple);
}

/* Metric Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.metric-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.metric-card:hover {
  transform: translateY(-4px);
  background-color: var(--bg-card-hover);
  border-color: var(--border-color-glow);
}

.metric-card.glow-card {
  box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.05);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.card-icon {
  width: 20px;
  height: 20px;
}

.card-icon.c-purple { color: var(--accent-purple); }
.card-icon.c-green { color: var(--accent-green); }
.card-icon.c-blue { color: var(--accent-blue); }
.card-icon.c-gold { color: var(--accent-gold); }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: white;
}

.metric-trend {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.metric-trend.trend-up {
  color: var(--accent-green);
}

.metric-trend.trend-down {
  color: var(--accent-green);
}

.metric-trend.trend-down.negative {
  color: var(--accent-red);
}

/* Charts Grid */
.charts-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

.chart-container-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.block-65 { grid-column: span 8; }
.block-35 { grid-column: span 4; }

@media (max-width: 1024px) {
  .block-65, .block-35 {
    grid-column: span 12;
  }
}

.card-title-bar {
  margin-bottom: 20px;
}

.card-title-bar h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.sub-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.chart-wrapper {
  position: relative;
  flex: 1;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* AI Recommendation List */
.opportunities-section {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.section-title-bar {
  margin-bottom: 24px;
}

.section-title-bar h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: white;
}

.section-title-bar p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.recommendation-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rec-item {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.rec-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(139, 92, 246, 0.2);
}

.rec-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  max-width: 75%;
}

.rec-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rec-icon-box.r-purple { background-color: var(--accent-purple-glow); color: var(--accent-purple); }
.rec-icon-box.r-green { background-color: var(--accent-green-glow); color: var(--accent-green); }
.rec-icon-box.r-gold { background-color: var(--accent-gold-glow); color: var(--accent-gold); }

.rec-text h4 {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.rec-text p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.rec-meta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  align-items: center;
}

.pill-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.pill-badge.green {
  background-color: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pill-badge.gold {
  background-color: rgba(245, 158, 11, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.pill-badge.red {
  background-color: rgba(239, 68, 68, 0.12);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}


/* Glass Panels and Auditing Styling */
.glass-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
}

.panel-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  margin-top: 2px;
}

/* Forms */
.inline-form {
  display: flex;
  gap: 16px;
  align-items: center;
}

@media (max-width: 768px) {
  .inline-form {
    flex-direction: column;
    align-items: stretch;
  }
}

.input-wrapper {
  position: relative;
  flex: 1;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.input-wrapper input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 12px 12px 42px;
  color: white;
  font-size: 14px;
  transition: var(--transition-fast);
}

.input-wrapper input:focus {
  border-color: var(--accent-purple);
  outline: none;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Button UI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  font-family: var(--font-sans);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
  color: white;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-purple-hover), var(--accent-purple));
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--border-color-glow);
}

.btn-full {
  width: 100%;
}

.btn-icon span {
  margin-top: 1px;
}

/* SEO View Specifics */
.score-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 30px;
}

.gauge-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 12px;
}

.gauge-wrapper-text {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid var(--accent-purple);
  box-shadow: 0 0 15px var(--accent-purple-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(139, 92, 246, 0.05);
}

#aeo-grade-val {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: white;
}

.gauge-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 8;
}

.gauge-fill {
  fill: none;
  stroke: var(--accent-purple);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-in-out;
}

.gauge-fill.speed-color {
  stroke: var(--accent-green);
}

.gauge-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.gauge-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.summary-details-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 900px) {
  .summary-details-card {
    grid-column: span 1;
  }
}

.summary-details-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: white;
}

.highlight-text {
  color: var(--accent-purple);
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
}

.summary-table td {
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.summary-table td:first-child {
  color: var(--text-secondary);
  width: 45%;
}

.summary-table td.t-val {
  font-weight: 600;
  color: white;
}

.meta-tag-audit {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.meta-box {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.box-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-purple);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.meta-text {
  font-size: 13px;
  color: white;
  line-height: 1.5;
}

.seo-keywords-list h4 {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.k-tag {
  background-color: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 50px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.k-tag-density {
  background-color: rgba(139, 92, 246, 0.2);
  color: white;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.diagnostics-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.diag-item {
  border-left: 3px solid transparent;
  padding: 12px 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background-color: rgba(255, 255, 255, 0.01);
}

.diag-item.critical { border-left-color: var(--accent-red); background-color: rgba(239, 68, 68, 0.02); }
.diag-item.warning { border-left-color: var(--accent-gold); background-color: rgba(245, 158, 11, 0.02); }
.diag-item.optimal { border-left-color: var(--accent-green); background-color: rgba(16, 185, 129, 0.02); }

.diag-title-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  align-items: center;
}

.diag-title {
  font-weight: 600;
  font-size: 13px;
  color: white;
}

.diag-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.diag-badge.bg-critical { background-color: rgba(239, 68, 68, 0.15); color: #f87171; }
.diag-badge.bg-warning { background-color: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.diag-badge.bg-optimal { background-color: rgba(16, 185, 129, 0.15); color: #34d399; }

.diag-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 6px;
}

.diag-fix {
  font-size: 11px;
  color: #c084fc;
  background-color: rgba(124, 58, 237, 0.04);
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px dashed rgba(124, 58, 237, 0.15);
}

.remediation-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rem-step-item {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  color: var(--text-primary);
  line-height: 1.5;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.rem-step-bullet {
  background-color: var(--accent-purple);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Competitor Share Voice */
.dominance-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}

.dom-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dom-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
}

.dom-name {
  color: white;
}

.dom-pct {
  font-weight: 600;
  color: var(--text-secondary);
}

.dom-pct.highlight {
  color: var(--accent-purple);
}

.dom-progress-bar {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  overflow: hidden;
}

.dom-progress-fill {
  height: 100%;
  background: linear-gradient(to right, #4f46e5, var(--accent-purple));
  border-radius: 10px;
}

.dom-item:first-child .dom-progress-fill {
  background: linear-gradient(to right, var(--accent-purple), var(--accent-blue));
}

.dom-rank {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Competitor Alerts feed */
.alert-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.alert-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 14px;
}

.alert-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.alert-badge-icon.a-red { background-color: var(--accent-red-glow); color: var(--accent-red); }
.alert-badge-icon.a-yellow { background-color: var(--accent-gold-glow); color: var(--accent-gold); }

.alert-body h4 {
  font-size: 13px;
  color: white;
  font-weight: 600;
  margin-bottom: 2px;
}

.alert-body p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Responsive Table Layouts */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.app-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.app-table th {
  background-color: rgba(255, 255, 255, 0.02);
  padding: 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  letter-spacing: 0.5px;
}

.app-table td {
  padding: 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  vertical-align: middle;
}

.app-table tbody tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

.app-table tbody tr:last-child td {
  border-bottom: none;
}

.t-main-cell {
  font-weight: 600;
  color: white;
}

.t-sub-cell {
  font-size: 11px;
  color: var(--text-secondary);
  display: block;
}

/* Ads Page details */
.ads-optimizer-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.platform-ad-card {
  padding: 28px;
}

.platform-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.platform-name {
  display: flex;
  gap: 16px;
  align-items: center;
}

.platform-name .logo-icon {
  width: 32px;
  height: 32px;
}

.g-ads-color { color: #4285f4; }
.m-ads-color { color: #e1306c; }

.platform-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.bg-red { background-color: var(--accent-red-glow); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.2); }
.bg-yellow { background-color: var(--accent-gold-glow); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.2); }

.ad-metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.ad-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ad-lbl {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.ad-val {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.ad-val.text-red { color: var(--accent-red); }
.ad-val.text-yellow { color: var(--accent-gold); }

.wasted-keywords-section h4, .campaign-recommendations h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.info-note {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
}

.wasted-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.wasted-list li {
  background-color: rgba(239, 68, 68, 0.03);
  border: 1px solid rgba(239, 68, 68, 0.1);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wasted-term {
  font-family: monospace;
  font-size: 12px;
  color: #f87171;
  font-weight: 600;
}

.wasted-cost {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.ad-recs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ad-rec-card {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: var(--radius-sm);
}

.ad-rec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ad-rec-title {
  font-size: 13px;
  font-weight: 600;
  color: white;
}

.ad-rec-saving {
  font-size: 11px;
  color: var(--accent-green);
  font-weight: 700;
  background-color: rgba(16, 185, 129, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.ad-rec-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.creative-fatigue-box h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
}

.fatigue-gauge {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.gauge-track {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.gauge-progress {
  height: 100%;
  background: linear-gradient(to right, var(--accent-gold), var(--accent-red));
  border-radius: 4px;
}

.fatigue-text {
  font-size: 11px;
  color: var(--text-secondary);
}

/* AI Copywriting Form */
.ai-copy-optimizer-panel {
  padding: 28px;
}

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

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  color: white;
  font-size: 14px;
  transition: var(--transition-fast);
  font-family: var(--font-sans);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-purple);
  background-color: rgba(255, 255, 255, 0.04);
}

.copy-optimizer-form {
  gap: 30px;
  margin-top: 10px;
}

.output-column {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.optimized-result-box {
  background-color: rgba(139, 92, 246, 0.04);
  border: 1px dashed rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 13px;
  color: white;
  line-height: 1.5;
  min-height: 80px;
}

.optimized-details-box {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  background-color: rgba(255, 255, 255, 0.02);
  padding: 12px;
  border-radius: var(--radius-sm);
}

/* Social Media Post Scheduler */
.channel-selector-row {
  display: flex;
  gap: 12px;
}

.channel-btn {
  flex: 1;
  cursor: pointer;
}

.channel-btn input {
  display: none;
}

.channel-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.channel-btn input:checked + .channel-label {
  background-color: var(--accent-purple-glow);
  border-color: var(--accent-purple);
  color: white;
}

.social-post-queue {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}

.queued-post-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.post-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.post-channel-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.post-channel-tag.linkedin i { color: #0077b5; }
.post-channel-tag.twitter i { color: #1da1f2; }

.post-content-body {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 14px;
  white-space: pre-wrap;
}

.post-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-secondary);
}

.schedule-time {
  display: flex;
  align-items: center;
  gap: 6px;
}

.schedule-time i {
  width: 12px;
  height: 12px;
}

/* ROI & CAC Simulator Sliders */
.welcome-sim-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(59, 130, 246, 0.08));
  border-color: rgba(139, 92, 246, 0.2);
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.banner-icon {
  width: 44px;
  height: 44px;
  color: var(--accent-purple);
  flex-shrink: 0;
}

.welcome-sim-banner h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.welcome-sim-banner p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.slider-group {
  margin-bottom: 30px;
  margin-top: 10px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.slider-value {
  color: var(--accent-purple);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  margin-bottom: 8px;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-purple);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
  transition: transform 0.1s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.simulation-assumptions h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.assumptions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.assumptions-list li {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: flex;
  gap: 10px;
}

.assump-icon {
  width: 14px;
  height: 14px;
  color: var(--accent-green);
  flex-shrink: 0;
  margin-top: 1px;
}

.sim-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.sim-out-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-md);
}

.sim-lbl {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 8px;
}

.sim-comparison {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.sim-old {
  font-size: 13px;
  text-decoration: line-through;
  color: var(--text-muted);
}

.sim-arrow {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
}

.sim-new {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: white;
}

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

.sim-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.sim-chart-wrapper {
  margin-top: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: var(--transition-smooth);
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color-glow);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  transform: translateY(0);
  transition: var(--transition-smooth);
}

.modal-overlay.hidden .modal-card {
  transform: translateY(20px);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-close:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
}

/* Custom Table Badges */
.badge-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.badge-status.closed-won {
  background-color: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-status.proposal-sent {
  background-color: rgba(59, 130, 246, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-status.sql, .badge-status.contacted {
  background-color: rgba(245, 158, 11, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-status.nurturing, .badge-status.lead-generated {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.card-title-bar-with-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* Utilities */
.hidden { display: none !important; }
.text-red { color: var(--accent-red) !important; }
.text-yellow { color: var(--accent-gold) !important; }
.text-green { color: var(--accent-green) !important; }
.highlight-green { color: var(--accent-green) !important; }

/* Grid systems */
.grid-2-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.grid-2-col-35-65 {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 24px;
}

.grid-2-col-40-60 {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 24px;
}

@media (max-width: 900px) {
  .grid-2-col-35-65, .grid-2-col-40-60 {
    grid-template-columns: 1fr;
  }
}

.loading-placeholder {
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
  padding: 30px;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.01);
}

/* Keyframes and Animations */
@keyframes pulse-animation {
  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); }
}

@keyframes view-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Login Page overlays CSS rules */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-app);
  background-image: radial-gradient(circle at 50% 30%, rgba(139, 92, 246, 0.12), transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(139, 92, 246, 0.05);
  animation: login-fade-in 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes login-fade-in {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.login-brand h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: white;
}

.login-desc {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 30px;
}

/* Paywall and Subscription Panel */
.paywall-panel {
  width: 100%;
  padding: 40px;
  background-color: var(--bg-card);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-lg);
  margin-bottom: 30px;
  animation: view-fade-in 0.4s ease-out;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(239, 68, 68, 0.02);
}

.paywall-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.paywall-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.lock-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-red);
  filter: drop-shadow(0 0 4px var(--accent-red));
}

.paywall-card h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(to right, #ffffff, #ffccd5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.paywall-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 35px;
}

.paywall-desc strong {
  color: white;
}

.paywall-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 960px;
  margin-bottom: 30px;
}

@media (max-width: 900px) {
  .paywall-plans-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

.plan-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-smooth);
  position: relative;
}

.plan-card:hover {
  transform: translateY(-4px);
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.plan-card.featured {
  background-color: rgba(139, 92, 246, 0.03);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.plan-card.featured:hover {
  border-color: var(--accent-purple);
  background-color: rgba(139, 92, 246, 0.05);
}

.plan-badge {
  position: absolute;
  top: -12px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: white;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.plan-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: white;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
}

.plan-price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.plan-features-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  align-self: flex-start;
  margin-bottom: 12px;
}

.plan-features-list {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  flex: 1;
}

.plan-features-list li {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.plan-features-list li .check-icon {
  width: 14px;
  height: 14px;
  color: var(--accent-green);
  flex-shrink: 0;
}

.paywall-footer {
  font-size: 11px;
  color: var(--text-muted);
}

/* Billing settings view specific layout */
.billing-view-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: view-fade-in 0.4s ease-out;
}

/* Checkout Modal */
.checkout-card {
  max-width: 480px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.checkout-summary {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.chk-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.checkout-summary h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.chk-plan-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  margin-top: 4px;
  font-size: 13px;
}

.chk-plan-info span {
  color: var(--text-secondary);
}

.chk-plan-info strong {
  color: var(--accent-purple);
  font-weight: 600;
}

.checkout-success-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  z-index: 10;
  animation: view-fade-in 0.4s ease-out;
}

.success-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.success-checkmark {
  width: 36px;
  height: 36px;
  color: var(--accent-green);
  filter: drop-shadow(0 0 6px var(--accent-green));
}

.checkout-success-view h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.checkout-success-view p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 320px;
}

/* ==========================================
   GMB EVERYWHERE & LOCAL SEO STYLING
   ========================================== */

/* Teleport Grid Nodes styling */
.teleport-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.teleport-node:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.teleport-node.rank-winner {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: #10b981 !important;
  color: #34d399 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15) !important;
}

.teleport-node.rank-visible {
  background: rgba(245, 158, 11, 0.1) !important;
  border-color: #f59e0b !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.15) !important;
}

.teleport-node.rank-poor {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: #ef4444 !important;
  color: #f87171 !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.15) !important;
}

.teleport-node-loc {
  font-size: 8px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  margin-top: 2px;
}

/* Sentiment progress scales */
.sentiment-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  text-align: left;
}

.sentiment-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

.sentiment-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  overflow: hidden;
}

.sentiment-bar-fill {
  height: 100%;
  border-radius: 4px;
}

.sentiment-bar-fill.positive {
  background: linear-gradient(to right, #10b981, #34d399);
}

.sentiment-bar-fill.negative {
  background: linear-gradient(to right, #ef4444, #f87171);
}

/* LinkArtemis Blogger Outreach styling */
.outreach-search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.outreach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.outreach-crm-panel {
  padding: 24px;
}

.outreach-composer-panel {
  padding: 24px;
}

.outreach-template-select {
  margin-bottom: 15px;
}

.outreach-preview-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 150px;
  margin-top: 10px;
}
