/* ... (předchozí styly) ... */

.ai-glow {
  border: none !important;
  background: transparent;
  border-radius: var(--radius);
  margin: 10px;
  box-shadow: none;
}

[data-theme="dark"] .ai-glow {
  background: transparent;
}

.ai-chart-bar {
  height: 8px;
  background: var(--primary);
  border-radius: 4px;
  transition: width 1s ease-out;
}

.ai-chart-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ai-chart-label {
  font-size: 10px;
  font-weight: 600;
  width: 40px;
  color: var(--muted-foreground);
}

.ai-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.ai-metric-card {
  padding: 8px;
  background: var(--muted);
  border-radius: var(--radius-sm);
}

.ai-metric-value.positive {
  color: #111827;
}

.ai-metric-value.negative {
  color: #dc2626;
}

.ai-d3-chart-container {
  width: 100%;
  margin: 12px 0;
}

.ai-d3-chart-container svg {
  width: 100%;
  display: block;
}

.ai-d3-chart-container .axis text {
  font-size: 10px;
  fill: var(--muted-foreground);
}

.ai-d3-chart-container .axis line,
.ai-d3-chart-container .axis path {
  stroke: var(--border);
}

.ai-d3-chart-container .grid line {
  stroke: var(--border);
  stroke-opacity: 0.3;
}

.bar-turnover {
  fill: var(--primary);
}

.bar-profit {
  fill: #111827;
}

.bar-negative {
  fill: #dc2626 !important;
}

[data-theme="dark"] .bar-turnover {
  fill: #fbbf24;
}

[data-theme="dark"] .bar-profit {
  fill: #f8fafc;
}

[data-theme="dark"] .bar-negative {
  fill: #f87171 !important;
}

.ai-chart-legend {
  display: flex;
  gap: 16px;
  font-size: 10px;
  margin-bottom: 8px;
  color: var(--muted-foreground);
}

.ai-chart-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ai-chart-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Canvas toolbar & empty state */
.canvas-toolbar {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 20;
  background: color-mix(in srgb, var(--card) 90%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
}

.graph-empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 5;
  pointer-events: none;
}

.graph-empty-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--foreground);
  opacity: 0.6;
}

.graph-empty-desc {
  font-size: 13px;
  color: var(--muted-foreground);
  margin: 0;
  opacity: 0.5;
}

/* Graph loading overlay */
.graph-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--background) 70%, transparent);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.graph-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.graph-loading-text {
  font-size: 12px;
  color: var(--muted-foreground);
  font-weight: 500;
}

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

/* Search button loading state */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Detail panel transition */
#detailContent {
  transition: opacity 0.15s ease;
}

.search-results-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--background);
  z-index: 50;
  flex-direction: column;
  overflow-y: auto;
  padding: 20px 28px;
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
}

.search-close-x {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.search-close-x:hover {
  background: var(--destructive);
  color: white;
  border-color: var(--destructive);
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}

.search-results-overlay .list-item {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-results-overlay .list-item:hover {
  background: var(--muted);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.list-item-title {
  font-size: 14px;
  font-weight: 600;
}

.list-item-sub {
  font-size: 11px;
  color: var(--muted-foreground);
  margin-top: 0;
}

.list-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.list-item-chip {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--muted);
  color: var(--muted-foreground);
  white-space: nowrap;
  border: 1px solid var(--border);
}

.list-item-chip.chip-form {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--accent-foreground);
  border-color: color-mix(in srgb, var(--primary) 25%, transparent);
}

.search-results-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted-foreground);
}

.search-results-empty-icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.search-results-empty-text {
  font-size: 14px;
  font-weight: 500;
}

.ai-terminal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.ai-terminal {
  width: 100%;
  max-width: 500px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.ai-terminal-header {
  background: var(--muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-terminal-body {
  padding: 20px;
  height: 300px;
  overflow-y: auto;
  color: var(--foreground);
  font-size: 12px;
  line-height: 1.6;
}

.ai-pulse {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: ai-pulse 1.5s infinite;
}

@keyframes ai-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(124, 58, 237, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
  }
}

/* ... (zbytek původního CSS) ... */
:root {
  --card: #ffffff;
  --card-foreground: #262626;
  --ring: #f59e0b;
  --input: #e5e7eb;
  --muted: #f9fafb;
  --muted-foreground: #6b7280;
  --accent: #fffbeb;
  --accent-foreground: #92400e;
  --border: #e5e7eb;
  --primary: #f59e0b;
  --primary-foreground: #000000;
  --cta: #059669;
  --cta-glow: #34d399;
  --cta-shadow: rgba(5, 150, 105, 0.3);
  --secondary: #f3f4f6;
  --secondary-foreground: #4b5563;
  --background: #ffffff;
  --foreground: #262626;
  --popover: #ffffff;
  --popover-foreground: #262626;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --radius: 0.5rem;
  --radius-lg: 1.25rem;
  --radius-sm: 0.75rem;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --detail-width: clamp(360px, 50vw, 600px);
}

[data-theme="dark"] {
  --card: #262626;
  --card-foreground: #e5e5e5;
  --ring: #f59e0b;
  --input: #404040;
  --muted: #262626;
  --muted-foreground: #a3a3a3;
  --accent: #92400e;
  --accent-foreground: #fde68a;
  --border: #404040;
  --primary: #f59e0b;
  --primary-foreground: #000000;
  --cta: #10b981;
  --cta-glow: #6ee7b7;
  --cta-shadow: rgba(16, 185, 129, 0.3);
  --secondary: #262626;
  --secondary-foreground: #e5e5e5;
  --background: #171717;
  --foreground: #e5e5e5;
  --popover: #262626;
  --popover-foreground: #e5e5e5;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
}

[data-theme="dark"] .btn-outline {
  border-color: #404040;
  color: var(--foreground);
}

[data-theme="dark"] .user-badge {
  background: #1e293b;
  color: var(--foreground);
}

[data-theme="dark"] .nav-user-name {
  color: var(--foreground);
}

[data-theme="dark"] .detail-panel a:not(.btn) {
  color: #fbbf24;
}

[data-theme="dark"] .btn-outline a,
[data-theme="dark"] a.btn-outline {
  color: var(--foreground);
}

[data-theme="dark"] .theme-toggle {
  color: var(--foreground);
}

[data-theme="dark"] .btn-ghost {
  color: var(--muted-foreground);
}



body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
}

body.static-page {
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow: auto !important;
  height: auto !important;
  margin: 0;
}

.static-page-content {
  padding: 40px 20px 60px;
}

body.ranking-mode {
  overflow: auto;
  height: auto;
}

body.ranking-mode .app {
  height: auto;
}

body.ranking-mode #rankingView .landing-nav .nav-link {
  display: none;
}

.app {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.navbar {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: color-mix(in srgb, var(--background) 80%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  flex-shrink: 0;
}

.logo {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-brand.brand-link {
  text-decoration: none;
  color: inherit;
}

.navbar-brand.brand-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: calc(var(--radius) + 2px);
}

.navbar-title {
  font-size: 18px;
  font-weight: 700;
  margin-left: 12px;
  white-space: nowrap;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.search-container {
  flex: 1;
  max-width: 600px;
  margin: 0 20px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  background: var(--muted);
  border-radius: var(--radius);
  padding: 4px 14px;
  border: 1px solid transparent;
}

.search-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  height: 32px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  color: var(--foreground);
}

.layout {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}

.detail-panel {
  background: var(--card);
  overflow-y: auto;
  z-index: 10;
  border-left: 1px solid var(--border);
  width: var(--detail-width);
  display: flex;
  flex-direction: column;
  transition: width 0.3s;
  padding: 40px;
  box-sizing: border-box;
}

.detail-panel.collapsed {
  width: 0;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}

.graph-panel {
  flex: 1;
  position: relative;
  background: var(--background);
}

#graphCanvas {
  touch-action: none;
}

#graphCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.3;
}

.detail-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  opacity: 0.5;
}

.stat-pill {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--muted);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted-foreground);
}

.stat-value {
  font-size: 12px;
  font-weight: 700;
}

.financial-card {
  padding: 16px;
  background: var(--muted);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.financial-label {
  font-size: 11px;
  color: var(--muted-foreground);
  font-weight: 700;
  text-transform: uppercase;
}

.financial-value {
  font-size: 14px;
  font-weight: 700;
  margin-top: 4px;
}

.score-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
}

.score-badge {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.score-value {
  font-size: 22px;
  line-height: 1;
}

.score-label {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 4px;
}

.score-meta {
  flex: 1;
  min-width: 0;
}

.score-title {
  font-size: 12px;
  font-weight: 700;
}

.score-note {
  font-size: 10px;
  color: var(--muted-foreground);
  margin-top: 4px;
}

.score-cap {
  font-size: 9px;
  color: var(--muted-foreground);
  margin-top: 6px;
}

.score-green .score-badge {
  background: #16a34a18;
  color: #15803d;
  border: 1px solid #16a34a55;
}

.score-yellow .score-badge {
  background: #f59e0b18;
  color: #b45309;
  border: 1px solid #f59e0b55;
}

.score-red .score-badge {
  background: #ef444418;
  color: #b91c1c;
  border: 1px solid #ef444455;
}

.score-toggle {
  margin-top: 10px;
  width: 100%;
}

.score-breakdown {
  margin-top: 10px;
  border-top: 1px dashed var(--border);
  padding-top: 8px;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  padding: 4px 0;
}

.score-row-label {
  color: var(--muted-foreground);
}

.score-row-points {
  font-weight: 700;
}

.score-positive .score-row-points {
  color: #16a34a;
}

.score-negative .score-row-points {
  color: #dc2626;
}

.score-neutral .score-row-points {
  color: var(--muted-foreground);
}

.score-missing {
  margin-top: 8px;
  font-size: 9px;
  color: var(--muted-foreground);
  line-height: 1.4;
}

.ai-analysis-btn {
  width: 100%;
  height: 60px;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1f2937;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ai-analysis-btn:hover {
  filter: brightness(1.02);
}

.ai-analysis-icon {
  flex-shrink: 0;
}

.btn.ai-analysis-btn {
  height: 60px;
  min-height: 60px;
}

.ai-analysis-note {
  font-size: 10px;
  color: var(--muted-foreground);
  margin-top: 8px;
  line-height: 1.4;
}

.document-item {
  padding: 8px 10px;
  background: var(--muted);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s;
}

.document-item:hover {
  background: var(--accent);
}

.ai-summary {
  font-size: 12.5px;
  line-height: 1.7;
  margin-top: 14px;
  padding: 12px;
  background: var(--muted);
  border-radius: var(--radius-sm);
}

.ai-summary p {
  margin: 0 0 8px;
}

.ai-summary p:last-child {
  margin-bottom: 0;
}

.ai-section-title,
.ai-risk-title,
.ai-docs-title {
  font-size: 11.5px;
  margin-top: 14px;
  margin-bottom: 6px;
  font-weight: 700;
}

.breadcrumb-hidden {
  font-size: 11px;
  color: var(--muted-foreground);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb-hidden a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb-hidden a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 4px;
  opacity: 0.5;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.related-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--foreground);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s;
  cursor: pointer;
}

.related-item:hover {
  background: var(--accent);
}

/* Article content styling */
.article-content {
  max-width: 720px;
  line-height: 1.7;
}

.article-content h1 {
  font-size: 24px;
  margin-bottom: 8px;
}

.article-content h2 {
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--primary);
}

.article-content h3 {
  font-size: 15px;
  margin-top: 20px;
  margin-bottom: 8px;
}

.article-content p {
  font-size: 14px;
  margin-bottom: 12px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 12px;
}

.article-content th,
.article-content td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.article-content th {
  font-weight: 700;
  background: var(--accent);
  font-size: 11px;
  text-transform: uppercase;
}

.article-content ul,
.article-content ol {
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 14px;
}

.article-content li {
  margin-bottom: 4px;
}

.article-content a {
  color: var(--primary);
  text-decoration: none;
}

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

.article-content details {
  margin: 8px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.article-content summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.article-content details[open] summary {
  margin-bottom: 8px;
}

.ai-risk-item {
  font-size: 11.5px;
  margin-bottom: 6px;
  opacity: 0.9;
  padding-left: 12px;
}

.ai-doc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: var(--radius-sm);
  background: var(--muted);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.ai-doc-item:hover {
  background: var(--accent);
}

.ai-doc-icon {
  font-size: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.ai-doc-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ai-doc-title {
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-doc-date {
  font-size: 10px;
  color: var(--muted-foreground);
  margin-top: 2px;
}

.ai-doc-open {
  margin-left: auto;
  font-size: 16px;
  opacity: 0.7;
}

.ai-doc-item:hover .ai-doc-open {
  opacity: 0.9;
}

.ai-doc-item::after {
  content: none;
}

.ai-doc-cta {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 6px;
}

.ownership-row {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.ownership-row-clickable {
  cursor: pointer;
  transition: background 0.15s;
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  margin: 0 -6px;
}

.ownership-row-clickable:hover {
  background: var(--muted);
}

.timeline-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.timeline-tab {
  background: var(--muted);
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.timeline-tab.is-active {
  background: var(--card);
  color: var(--primary);
  border-color: rgba(0, 0, 0, 0.12);
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
  padding-left: 44px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 26px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--muted-foreground);
}

.timeline-dot svg {
  width: 17px;
  height: 17px;
}

.timeline-badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: #0f172a;
  border: 2px solid currentColor;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.timeline-badge svg {
  width: 9px;
  height: 9px;
}

.timeline-badge.is-add {
  background: #dcfce7;
  color: #15803d;
  border-color: #15803d;
}

.timeline-badge.is-remove {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #b91c1c;
}

.timeline-badge.is-edit {
  background: #ffedd5;
  color: #c2410c;
  border-color: #c2410c;
}

.timeline-dot.type-vznik {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

.timeline-dot.type-jmeno {
  background: #f3e8ff;
  color: #7e22ce;
  border-color: #d8b4fe;
}

.timeline-dot.type-adresa {
  background: #fde2e4;
  color: #be123c;
  border-color: #fbcfe8;
}

.timeline-dot.type-kapital {
  background: #fef3c7;
  color: #92400e;
  border-color: #f5d0a8;
}

.timeline-dot.type-board-in {
  background: #f4e3cf;
  color: #8b5a2b;
  border-color: #e4cbb0;
}

.timeline-dot.type-board-out {
  background: #f4e3cf;
  color: #8b5a2b;
  border-color: #e4cbb0;
}

.timeline-dot.type-owner-in {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.timeline-dot.type-owner-out {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.timeline-empty {
  font-size: 10px;
  color: var(--muted-foreground);
  padding: 6px 4px 10px;
}

.btn {
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

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

.btn-ghost {
  background: transparent;
  color: var(--muted-foreground);
}

.btn-xs {
  height: 22px;
  font-size: 11px;
  padding: 0 8px;
}

.badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  background: var(--muted);
  color: var(--muted-foreground);
}

.source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.source-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  letter-spacing: 0.02em;
}

.chip-dph {
  background: #059669;
}

.chip-res {
  background: #4d7c0f;
}

.chip-ros {
  background: #0f766e;
}

.chip-rzp {
  background: #f59e0b;
  color: #1f2937;
}

.chip-red {
  background: #3b82f6;
}

.chip-vr {
  background: #f97316;
}

.chip-rpsh {
  background: #8b5cf6;
}

.chip-rs {
  background: #0891b2;
}

.chip-ceu {
  background: var(--cta);
}

.chip-nrpzs {
  background: #64748b;
}

.chip-rcns {
  background: #9333ea;
}

.chip-szr {
  background: #475569;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.toggle-sidebar-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  z-index: 100;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px 0 0 8px;
  border-right: none;
  right: 0;
}

.toggle-sidebar-btn svg {
  transition: transform 0.3s;
}

.toggle-sidebar-btn.panel-collapsed svg {
  transform: rotate(180deg);
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

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

/* ChatKit floating widget */
.chatkit-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: auto;
  z-index: 9000;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.chatkit-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.chatkit-fab.active {
  background: var(--muted-foreground);
}

.chatkit-wrapper {
  position: fixed;
  bottom: 88px;
  left: 24px;
  right: auto;
  z-index: 9001;
  width: 380px;
  height: 520px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  flex-direction: column;
  overflow: hidden;
}

.chatkit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
}

.chatkit-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--muted-foreground);
  line-height: 1;
}

.chatkit-body {
  flex: 1;
  overflow: auto;
  min-height: 0;
}

.chatkit-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Paywall & Auth Prompt styles */
.paywall-overlay {
  background: linear-gradient(to bottom, transparent, var(--card) 30%);
  padding: 48px 20px 32px;
  text-align: center;
  border-radius: var(--radius-sm);
  margin-top: 0;
  position: relative;
  z-index: 10;
}

.paywall-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--cta), var(--cta-glow));
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.paywall-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--foreground);
}

.paywall-text {
  font-size: 11px;
  color: var(--muted-foreground);
  margin-bottom: 12px;
  line-height: 1.4;
}

.paywall-features {
  text-align: left;
  display: inline-block;
  margin-bottom: 16px;
}

.paywall-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--foreground);
  padding: 3px 0;
}

.paywall-feature svg {
  color: #10b981;
  flex-shrink: 0;
}

.paywall-btn {
  width: 100%;
  height: 40px;
  font-size: 13px;
  font-weight: 700;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: filter 0.15s, transform 0.15s;
}

.paywall-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.paywall-btn-pro {
  background: linear-gradient(135deg, var(--cta), var(--cta-glow));
  color: white;
  box-shadow: 0 4px 16px var(--cta-shadow);
}

/* AI Auth Prompt (login/rate-limit inline) */
.ai-auth-prompt {
  text-align: center;
  padding: 24px 16px;
  background: var(--muted);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.ai-auth-icon {
  color: var(--primary);
  margin-bottom: 12px;
}

.ai-auth-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 6px;
}

.ai-auth-text {
  font-size: 12px;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin-bottom: 14px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.ai-auth-features {
  text-align: left;
  display: inline-block;
  margin-bottom: 16px;
}

.ai-auth-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--foreground);
  padding: 3px 0;
}

.ai-auth-feature svg {
  color: #10b981;
  flex-shrink: 0;
}

.ai-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1f2937;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
  transition: filter 0.15s, transform 0.15s;
}

.ai-auth-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.ai-auth-note {
  font-size: 10px;
  color: var(--muted-foreground);
  margin-top: 10px;
}

/* AI CTA Card (in action section) */
.ai-cta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.ai-cta-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(251, 191, 36, 0.04));
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.ai-cta-body {
  padding: 14px 16px;
}

.ai-cta-desc {
  font-size: 12px;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin-bottom: 10px;
}

.ai-cta-perks {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--foreground);
  font-weight: 600;
  margin-bottom: 14px;
}

.ai-cta-perks span {
  white-space: nowrap;
}

.ai-cta-card .ai-analysis-btn {
  margin: 0 16px 16px;
  width: calc(100% - 32px);
}

.login-btn-nav {
  background: var(--primary);
  color: white !important;
  font-weight: 600;
  padding: 4px 12px !important;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 12px;
  height: 36px;
  background: var(--muted);
  border-radius: 20px;
  color: var(--foreground);
}

/* Nav auth */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-auth a,
.nav-auth button {
  text-decoration: none;
}

.pro-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--cta), var(--cta-glow));
  color: white;
}

.nav-user-name {
  font-size: 11px;
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-initials {
  display: none;
  font-size: 11px;
  font-weight: 700;
}

/* Profile Dropdown */
.nav-profile-wrap {
  position: relative;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 200;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 220px;
  overflow: hidden;
}

.profile-dropdown-header {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.profile-dropdown-plan {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.profile-dropdown-actions {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Pricing Modal */
/* ── Profile Page (Full-Page View) ── */
.profile-page {
  min-height: 100vh;
  background: var(--background);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Profile Navbar */
.profile-navbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  height: 56px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.profile-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background .15s;
}

.profile-back-btn:hover {
  background: var(--muted);
}

.profile-navbar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--foreground);
  flex: 1;
}

/* User Card (inline horizontal) */
.profile-user-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  flex-wrap: wrap;
}

.profile-user-info {
  flex: 1;
  min-width: 140px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 26px;
  margin: 0;
  flex-shrink: 0;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

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

.profile-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-email {
  font-size: 13px;
  color: var(--muted-foreground);
  margin-top: 2px;
}

.profile-plan {
  flex-shrink: 0;
}

.profile-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.profile-plan-badge.pro {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
}

.profile-plan-badge.free {
  background: var(--muted);
  color: var(--muted-foreground);
}

.profile-plan-sub {
  display: block;
  font-size: 11px;
  color: var(--muted-foreground);
  margin-top: 4px;
  text-align: right;
}

/* Tabs */
.profile-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  flex-shrink: 0;
}

.profile-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border: none;
  background: none;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}

.profile-tab:hover {
  color: var(--foreground);
}

.profile-tab.active {
  color: #f59e0b;
  border-bottom-color: #f59e0b;
  font-weight: 600;
}

.profile-tab-count {
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.profile-tab.active .profile-tab-count {
  background: #fef3c7;
  color: #92400e;
}

/* Tab Content */
.profile-tab-content,
.profile-tab-panel {
  flex: 1;
  padding: 20px 28px 28px;
  overflow-y: auto;
}

.profile-load-more {
  display: block;
  width: 100%;
  margin: 16px 0 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: none;
  color: var(--foreground);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.profile-load-more:hover {
  background: var(--muted);
  border-color: #f59e0b;
}

/* Card Grid */
.profile-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.profile-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}

.profile-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12);
}

.profile-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.profile-card-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--muted);
  color: var(--muted-foreground);
}

.profile-card-chip.changes {
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
}

.profile-card-chip.no-changes {
  background: #ecfdf5;
  color: #065f46;
}

.profile-card-date {
  font-size: 11px;
  color: var(--muted-foreground);
}

.profile-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.profile-card-link {
  font-size: 12px;
  color: #f59e0b;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.profile-card-link:hover {
  text-decoration: underline;
}

.profile-card-link.danger {
  color: #ef4444;
}

/* Empty State */
.profile-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted-foreground);
}

.profile-empty svg {
  margin: 0 auto 12px;
  opacity: 0.4;
}

.profile-empty-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--foreground);
}

.profile-empty-desc {
  font-size: 13px;
}

/* Clear History Button */
.profile-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: none;
  color: var(--muted-foreground);
  font-size: 12px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: color .15s, border-color .15s;
}

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

/* History Table */
.profile-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.profile-history-table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.profile-history-table thead th:last-child {
  text-align: right;
  width: 140px;
}

.profile-history-row {
  cursor: pointer;
  transition: background .12s;
}

.profile-history-row:hover {
  background: var(--muted);
}

.profile-history-row td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.profile-history-name {
  font-weight: 600;
  color: var(--foreground);
}

.profile-history-ico {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-top: 2px;
}

.profile-history-date {
  text-align: right;
  font-size: 12px;
  color: var(--muted-foreground);
  white-space: nowrap;
}

/* Dark mode overrides */
[data-theme="dark"] .profile-tab.active .profile-tab-count {
  background: #78350f;
  color: #fde68a;
}

[data-theme="dark"] .profile-card-chip.changes {
  background: #78350f;
  color: #fde68a;
}

[data-theme="dark"] .profile-card-chip.no-changes {
  background: #064e3b;
  color: #6ee7b7;
}

/* ── Sidebar Stats ── */
.profile-sidebar-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 8px;
}

.profile-stat {
  text-align: center;
  padding: 4px 0;
  position: relative;
}

.profile-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}

.profile-stat-value {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--foreground);
  line-height: 1.2;
}

.profile-stat-label {
  display: block;
  font-size: 11px;
  color: var(--muted-foreground);
  margin-top: 3px;
  letter-spacing: 0.02em;
}

/* ── Sidebar Actions ── */
.profile-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.profile-sidebar-actions .btn {
  white-space: nowrap;
  justify-content: center;
}

/* ── Main Content ── */
.profile-main {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* ── Responsive: Profile ── */
@media (max-width: 768px) {
  .profile-user-card {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .profile-sidebar-stats {
    max-width: 320px;
    margin: 0 auto;
  }

  .profile-tabs {
    padding: 0 16px;
  }

  .profile-tab {
    padding: 12px 14px;
    font-size: 13px;
  }

  .profile-tab-content,
  .profile-tab-panel {
    padding: 20px 16px;
  }

  .profile-cards {
    grid-template-columns: 1fr;
  }
}

/* ═══ Analysis Teaser Landing Page ═══ */
.analysis-teaser-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.at-logo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 15px;
  font-weight: 700;
  color: var(--foreground);
}

.analysis-teaser-header {
  text-align: center;
  margin-bottom: 32px;
}

.analysis-teaser-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #f59e0b;
  margin: 0 0 8px;
}

.analysis-teaser-company {
  font-size: 28px;
  font-weight: 800;
  color: var(--foreground);
  margin: 0 0 8px;
}

.analysis-teaser-meta {
  font-size: 13px;
  color: var(--muted-foreground);
}

.analysis-teaser-section {
  margin-bottom: 36px;
}

.analysis-teaser-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted-foreground);
  margin-bottom: 12px;
}

.analysis-teaser-label .material-symbols-outlined {
  text-transform: none;
}

.analysis-teaser-summary {
  font-size: 15px;
  line-height: 1.8;
  color: var(--foreground);
  margin: 0;
}

/* Badges */
.analysis-teaser-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}

.analysis-teaser-badge {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 12px;
}

.analysis-teaser-badge-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--foreground);
  line-height: 1.1;
}

.analysis-teaser-badge-label {
  display: block;
  font-size: 12px;
  color: var(--muted-foreground);
  margin-top: 4px;
}

/* Blurred chart */
.analysis-teaser-chart-wrapper {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  min-height: 200px;
  overflow: hidden;
}

.analysis-teaser-chart {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 160px;
  filter: blur(6px);
  opacity: 0.5;
}

.analysis-teaser-bar {
  flex: 1;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  min-width: 28px;
}

.analysis-teaser-bar-profit {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.analysis-teaser-bar span {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.analysis-teaser-blur-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted-foreground);
  font-size: 14px;
  font-weight: 500;
  background: rgba(var(--background-rgb, 255, 255, 255), 0.1);
}

/* === Locked / blurred sections === */
.at-locked-section {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

/* Blur placeholder lines */
.at-blur-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.at-blur-line {
  height: 12px;
  background: var(--muted-foreground);
  opacity: 0.12;
  border-radius: 6px;
  filter: blur(2px);
}

/* Blur risk items */
.at-blur-risk {
  padding: 10px 16px;
  background: var(--border);
  border-left: 3px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  margin-bottom: 8px;
  filter: blur(2px);
  opacity: 0.5;
}

.at-blur-risk .at-blur-line {
  opacity: 0.3;
  filter: none;
}

/* Blur table */
.at-blur-table {
  width: 100%;
  border-collapse: collapse;
  filter: blur(3px);
  opacity: 0.4;
}

.at-blur-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}

.at-blur-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.at-blur-table .at-blur-line {
  height: 10px;
  opacity: 0.25;
  filter: none;
}

/* Blur ownership boxes */
.at-blur-box {
  flex: 1;
  height: 60px;
  background: var(--muted-foreground);
  opacity: 0.08;
  border-radius: 10px;
  filter: blur(2px);
}

/* Lock badge */
.at-lock-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 16px;
  background: rgba(245, 158, 11, 0.08);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #f59e0b;
}

.at-lock-badge .material-symbols-outlined {
  font-size: 16px;
}

/* === Big CTA box === */
.analysis-teaser-cta-box {
  text-align: center;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(217, 119, 6, 0.04) 100%);
  border: 2px solid #f59e0b;
  border-radius: 20px;
  padding: 48px 32px;
  margin-top: 48px;
}

.analysis-teaser-cta-sparkle {
  color: #f59e0b;
  margin-bottom: 16px;
}

.analysis-teaser-cta-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--foreground);
}

.analysis-teaser-cta-desc {
  font-size: 14px;
  color: var(--muted-foreground);
  margin: 0 0 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.analysis-teaser-cta-main-btn {
  width: 100%;
  max-width: 460px;
  height: 64px;
  font-size: 15px;
  text-decoration: none;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.analysis-teaser-cta-sub {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted-foreground);
  opacity: 0.7;
}

/* === Skeleton loading === */
.skel {
  background: linear-gradient(90deg, var(--border) 25%, var(--muted) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: skel-pulse 1.5s ease-in-out infinite;
  border-radius: 6px;
}

.skel-inline {
  display: inline-block;
}

@keyframes skel-pulse {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* === Social proof banner === */
.at-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 10px 16px;
  margin-bottom: 24px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.15);
  font-size: 13px;
  color: var(--muted-foreground);
}

.at-social-proof strong {
  color: var(--foreground);
  font-weight: 700;
}

/* === Scroll fade-in animations === */
.at-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.at-fade-in.at-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Lock badge pulse === */
.at-lock-badge {
  animation: lock-pulse 3s ease-in-out infinite;
}

@keyframes lock-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* === CTA hover effects === */
.analysis-teaser-cta-main-btn {
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.analysis-teaser-cta-main-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.35);
}

.analysis-teaser-cta-sparkle svg {
  transition: transform 0.4s ease;
}

.analysis-teaser-cta-box:hover .analysis-teaser-cta-sparkle svg {
  transform: rotate(15deg) scale(1.1);
}

/* === Dark mode overrides === */
[data-theme="dark"] .analysis-teaser-page {
  background: var(--background);
}

[data-theme="dark"] .at-logo-bar {
  color: var(--foreground);
}

[data-theme="dark"] .analysis-teaser-badge {
  background: var(--card);
  border-color: var(--border);
}

[data-theme="dark"] .at-locked-section {
  background: var(--card);
  border-color: var(--border);
}

[data-theme="dark"] .at-blur-line {
  background: var(--foreground);
  opacity: 0.08;
}

[data-theme="dark"] .at-blur-risk {
  background: var(--muted);
  border-left-color: #d97706;
}

[data-theme="dark"] .at-blur-box {
  background: var(--foreground);
  opacity: 0.06;
}

[data-theme="dark"] .at-lock-badge {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

[data-theme="dark"] .analysis-teaser-cta-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.06) 100%);
  border-color: rgba(245, 158, 11, 0.4);
}

[data-theme="dark"] .at-social-proof {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
}

[data-theme="dark"] .analysis-teaser-chart-wrapper {
  background: var(--card);
  border-color: var(--border);
}

[data-theme="dark"] .analysis-teaser-blur-overlay {
  background: rgba(23, 23, 23, 0.3);
}

[data-theme="dark"] .at-blur-table th {
  color: var(--muted-foreground);
  border-bottom-color: var(--border);
}

[data-theme="dark"] .at-blur-table td {
  border-bottom-color: var(--border);
}

[data-theme="dark"] .skel {
  background: linear-gradient(90deg, var(--muted) 25%, var(--border) 50%, var(--muted) 75%);
  background-size: 200% 100%;
}

/* === Mobile responsive === */
@media (max-width: 640px) {
  .analysis-teaser-page {
    padding: 20px 12px 48px;
  }

  .analysis-teaser-company {
    font-size: 20px;
  }

  .analysis-teaser-badges {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .analysis-teaser-cta-box {
    padding: 28px 16px;
    border-radius: 14px;
  }

  .analysis-teaser-cta-title {
    font-size: 18px;
  }

  .analysis-teaser-cta-main-btn {
    height: 56px;
    font-size: 14px;
  }

  .at-locked-section {
    padding: 16px;
    border-radius: 10px;
  }

  /* Horizontal scroll for tables on mobile */
  .at-blur-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .at-social-proof {
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
  }

  .analysis-teaser-summary {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .analysis-teaser-company {
    font-size: 18px;
  }

  .analysis-teaser-cta-sparkle svg {
    width: 40px;
    height: 40px;
  }

  .at-logo-bar {
    font-size: 14px;
  }
}

.pricing-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pricing-modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 560px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.pricing-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--muted-foreground);
  line-height: 1;
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pricing-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
}

.pricing-card-popular {
  border-color: var(--cta);
  border-width: 2px;
}

.pricing-badge-popular {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cta);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

.pricing-card-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-card-price {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.pricing-card-price span {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-foreground);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  font-size: 11px;
  text-align: left;
}

.pricing-features li {
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
  color: var(--muted-foreground);
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 700;
}

.pricing-btn {
  width: 100%;
}

/* ========================================
   LANDING PAGE
   ======================================== */
body.landing-mode {
  overflow: auto;
  height: auto;
}

body.landing-mode .app {
  height: auto;
}

/* Nav */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--background) 80%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.landing-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hero */
.landing-hero {
  padding: 80px 24px 60px;
}

.landing-hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.landing-h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin: 0 0 16px;
}

.landing-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin: 0 0 32px;
  max-width: 520px;
}

/* Search */
.landing-search-wrap {
  max-width: 520px;
}

.landing-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 8px 6px 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.landing-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.12);
}

.landing-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  height: 40px;
  color: var(--foreground);
  min-width: 0;
}

.landing-search .btn {
  height: 40px;
  padding: 0 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Chips */
.landing-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.landing-chips-label {
  font-size: 12px;
  color: var(--muted-foreground);
  font-weight: 500;
}

.landing-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--muted);
  color: var(--foreground);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.landing-chip:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.landing-chip-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Pricing Section (Landing) */
.landing-pricing {
  padding: 80px 24px;
  background: var(--background);
  border-top: 1px solid var(--border);
}

.landing-pricing-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.landing-pricing-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  color: var(--foreground);
}

.landing-pricing-subtitle {
  text-align: center;
  color: var(--muted-foreground);
  margin-bottom: 32px;
  font-size: 16px;
}

/* Billing Toggle */
.billing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.billing-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.billing-label.active {
  color: var(--foreground);
}

.billing-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.billing-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.billing-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border);
  transition: .3s ease-in-out;
  border-radius: 34px;
}

.billing-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s ease-in-out;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

input:checked+.billing-slider {
  background-color: var(--cta);
}

input:checked+.billing-slider:before {
  transform: translateX(24px);
}

.billing-discount {
  color: var(--cta);
  background: color-mix(in srgb, var(--cta) 12%, transparent);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  margin-left: 6px;
}

.landing-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.landing-pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.landing-pricing-card.pro {
  border-color: var(--cta);
  box-shadow: 0 12px 32px var(--cta-shadow);
}

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

  .landing-pricing-card {
    padding: 24px;
  }

  .billing-toggle-wrap {
    margin-bottom: 32px;
  }
}

.landing-pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--cta), var(--cta-glow));
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px var(--cta-shadow);
}

.landing-pricing-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--foreground);
  text-align: center;
}

.landing-pricing-price {
  font-size: 40px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: var(--foreground);
  line-height: 1;
}

.landing-pricing-price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted-foreground);
}

.landing-pricing-desc {
  text-align: center;
  font-size: 13px;
  color: var(--muted-foreground);
  margin-bottom: 32px;
}

.landing-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  flex: 1;
}

.landing-pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--foreground);
}

.landing-pricing-feature-missing {
  color: var(--muted-foreground);
  opacity: 0.7;
}

.landing-pricing-feature svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.landing-pricing-feature.missing svg {
  color: var(--muted-foreground);
}

.landing-pricing-feature.included svg {
  color: #10b981;
}

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

.landing-chip-logo img {
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.landing-chip-logo .chip-arrow {
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.3;
  transition: opacity 0.2s;
}

.landing-chip-logo:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: var(--foreground);
}

.landing-chip-logo:hover .chip-arrow {
  opacity: 0.7;
}

/* ── Recent Companies Section (LP) ── */
.recent-section {
  display: none;
  padding: 48px 24px;
  background: var(--background);
}

.recent-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.recent-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted-foreground);
}

.recent-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
  margin: 0;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.recent-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}

.recent-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.10);
  transform: translateY(-1px);
}

.recent-card-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
}

.recent-card:hover .recent-card-icon {
  background: rgba(245, 158, 11, 0.10);
  color: #f59e0b;
}

.recent-card-body {
  flex: 1;
  min-width: 0;
}

.recent-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted-foreground);
}

.recent-card-ico {
  font-variant-numeric: tabular-nums;
}

.recent-card-time {
  opacity: 0.7;
}

.recent-card-arrow {
  flex-shrink: 0;
  color: var(--muted-foreground);
  opacity: 0.3;
  transition: opacity .15s, color .15s;
}

.recent-card:hover .recent-card-arrow {
  opacity: 0.8;
  color: #f59e0b;
}

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

/* Demo canvas */
.landing-hero-demo {
  position: relative;
}

.landing-demo-canvas-wrap {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.landing-demo-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.landing-demo-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--foreground);
  background: color-mix(in srgb, var(--card) 90%, transparent);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.3s ease;
}

.demo-label-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.demo-label-logo svg {
  display: block;
}

.demo-fullscreen-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--card) 90%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s;
}

.demo-fullscreen-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .demo-fullscreen-btn {
    display: none;
  }
}

.landing-demo-canvas-wrap:fullscreen,
.landing-demo-canvas-wrap:-webkit-full-screen {
  aspect-ratio: auto;
  background: var(--background);
}

/* Stats */
.landing-stats {
  border: none;
  background: none;
}

.landing-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.landing-stat-value {
  font-size: 42px;
  font-weight: 800;
  color: var(--foreground);
  letter-spacing: -0.03em;
}

.landing-stat-label {
  font-size: 14px;
  color: var(--muted-foreground);
  margin-top: 6px;
}

/* Features */
.landing-features {
  padding: 80px 24px;
}

.landing-features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.landing-section-title {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 48px;
  letter-spacing: -0.01em;
}

.landing-feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.2s;
}

.landing-feature-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.landing-feature-wide {
  margin-bottom: 24px;
}

.landing-features-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.landing-feature-icon {
  margin-bottom: 16px;
}

.landing-feature-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.landing-feature-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin: 0;
}

/* Chip cards */
.landing-chip-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  text-decoration: none;
}

.landing-chip-card svg {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.landing-chip-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.landing-chip-card:hover svg {
  opacity: 1;
  color: var(--primary);
  stroke: var(--primary);
}

/* Feature benefit subtitle */
.landing-feature-benefit {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-top: 4px;
}

/* Use Cases */
.landing-usecases {
  padding: 80px 24px;
}

.landing-usecases-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.landing-usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.landing-usecase-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow 0.2s;
}

.landing-usecase-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.landing-usecase-icon {
  margin-bottom: 16px;
}

.landing-usecase-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.landing-usecase-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin: 0;
}

/* Showcase */
.landing-showcase {
  padding: 80px 24px;
  background: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.landing-showcase-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.landing-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.landing-showcase-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.landing-showcase-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.landing-showcase-logo {
  border-radius: 0;
  object-fit: contain;
  margin-bottom: 12px;
}

.landing-showcase-name {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--foreground);
}

.landing-showcase-sub {
  font-size: 13px;
  color: var(--muted-foreground);
  margin: 0 0 16px;
  line-height: 1.5;
  flex: 1;
}

.landing-showcase-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s;
}

.landing-showcase-card:hover .landing-showcase-btn {
  text-decoration: underline;
}

.landing-showcase-cta {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

/* Social Proof */
.landing-social-proof {
  padding: 60px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.landing-social-proof-inner {
  max-width: 800px;
  margin: 0 auto;
}

.landing-social-proof-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 32px;
}

.landing-social-proof-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.landing-social-proof-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.landing-social-proof-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.landing-social-proof-label {
  font-size: 13px;
  color: var(--muted-foreground);
}

/* CTA chips */
.landing-cta-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.landing-cta-chips-label {
  font-size: 12px;
  color: var(--muted-foreground);
  font-weight: 500;
}

/* Feature mocks */
.landing-feature-mock {
  margin-top: 20px;
  padding: 16px;
  background: var(--muted);
  border-radius: var(--radius-sm);
}

.landing-mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-foreground);
}

.landing-mock-row:last-child {
  margin-bottom: 0;
}

.landing-mock-row>span:first-child {
  width: 50px;
}

.landing-mock-row>span:last-child {
  width: 36px;
  text-align: right;
}

.landing-mock-bar {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.landing-mock-bar>div {
  height: 100%;
  background: var(--cta);
  border-radius: 4px;
}

.landing-mock-bar-green>div {
  background: #10b981;
}

.landing-mock-chart {
  width: 100%;
  height: auto;
  display: block;
}

/* Person search feature mock */
.landing-mock-autocomplete {
  padding: 0;
  overflow: hidden;
}

.landing-mock-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--foreground);
}

.landing-mock-dropdown {
  padding: 4px 0;
}

.landing-mock-ac-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 11px;
  color: var(--foreground);
}

.landing-mock-ac-highlight {
  background: var(--muted);
}

/* CTA */
.landing-cta {
  padding: 80px 24px;
  background: var(--muted);
  border-top: 1px solid var(--border);
  text-align: center;
}

.landing-cta-inner {
  max-width: 560px;
  margin: 0 auto;
}

.landing-cta-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px;
}

.landing-cta-sub {
  font-size: 14px;
  color: var(--muted-foreground);
  margin: 0 0 32px;
}

.landing-cta .landing-search-wrap {
  max-width: 100%;
}

/* FAQ */
.landing-faq {
  padding: 64px 24px;
  background: var(--card);
  border-top: 1px solid var(--border);
}

.landing-faq-inner {
  max-width: 720px;
  margin: 0 auto;
}

.landing-faq-title {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 32px;
}

.landing-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landing-faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--background);
  transition: border-color 0.15s;
}

.landing-faq-item[open] {
  border-color: var(--primary);
}

.landing-faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.landing-faq-item summary::-webkit-details-marker {
  display: none;
}

.landing-faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--muted-foreground);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.landing-faq-item[open] summary::after {
  content: '\2212';
  color: var(--primary);
}

.landing-faq-item p {
  padding: 0 20px 16px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* Footer */
.landing-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px 0;
}

.landing-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.landing-footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.landing-footer-brand-col {
  flex: 1;
}

.landing-footer-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--foreground);
  margin: 0 0 4px;
}

.landing-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
}

.landing-footer-note {
  font-size: 11px;
  color: var(--muted-foreground);
  margin: 4px 0 0;
  line-height: 1.5;
}

.landing-footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted-foreground);
  text-align: center;
}

/* Responsive — App */
@media (max-width: 768px) {
  .navbar {
    padding: 4px 12px;
    gap: 4px;
    flex-wrap: wrap;
  }

  .navbar-title {
    display: none;
  }

  .search-container {
    order: 10;
    width: 100%;
    margin: 0;
    max-width: none;
    min-width: 0;
    flex: 0 0 100%;
  }

  .search-input-wrap {
    padding: 4px 10px;
  }

  .search-input-wrap input {
    font-size: 16px;
    padding: 0 8px;
  }

  /* 16px prevents iOS zoom */
  .search-input-wrap .btn {
    padding: 0 10px;
    font-size: 12px;
  }

  .navbar-actions {
    gap: 4px;
    margin-left: auto;
  }

  /* Hide non-essential items on mobile */
  .navbar-actions .btn-ghost:not(.nav-link),
  .navbar-actions .nav-link {
    display: none;
  }

  .nav-user-name {
    display: none;
  }

  .nav-user-initials {
    display: inline;
  }

  .user-badge {
    padding: 4px 8px;
    height: 28px;
  }

  .login-btn-nav {
    font-size: 11px;
    padding: 0 8px;
  }

  .layout {
    flex-direction: column;
  }

  .graph-panel {
    min-height: 0;
  }

  /* Toggle as horizontal handle bar */
  .toggle-sidebar-btn {
    position: static !important;
    transform: none !important;
    width: 100%;
    height: 36px;
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--border);
    background: var(--card);
    flex-shrink: 0;
    z-index: 10;
    flex-direction: column;
    gap: 2px;
  }

  .toggle-sidebar-btn svg {
    display: none;
  }

  .toggle-sidebar-btn::before {
    content: '';
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--muted-foreground);
    opacity: 0.5;
  }

  .toggle-sidebar-btn::after {
    content: '⌄';
    font-size: 10px;
    color: var(--muted-foreground);
    opacity: 0.4;
    line-height: 1;
  }

  .toggle-sidebar-btn.panel-collapsed::after {
    content: '⌃';
  }

  /* Detail panel as bottom sheet */
  .detail-panel {
    width: 100% !important;
    max-height: 85vh;
    min-height: 0;
    border-left: none;
    border-top: 1px solid var(--border);
    transition: max-height 0.3s ease;
    flex-shrink: 0;
    padding: 8px 12px;
    overflow-y: auto;
  }

  .detail-panel.collapsed {
    width: 100% !important;
    max-height: 56px;
    overflow: hidden;
  }

  .detail-panel.collapsed .detail-content {
    display: none;
  }

  .detail-panel.collapsed #companyHeader {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .search-results-overlay {
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .chatkit-wrapper {
    width: calc(100vw - 24px);
    height: 60vh;
  }
}

/* Responsive — Landing */
@media (max-width: 768px) {
  .landing-hero-inner {
    width: 100%;
  }

  .landing-hero-demo {
    margin-top: 32px;
  }

  .landing-hero {
    padding: 40px 16px 40px;
  }

  .landing-stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px 16px;
  }

  .landing-features-row {
    grid-template-columns: 1fr;
  }

  .landing-features {
    padding: 48px 16px;
  }

  .landing-cta {
    padding: 48px 16px;
  }

  .landing-faq {
    padding: 48px 16px;
  }

  .landing-footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .landing-footer-col {
    align-items: center;
  }

  .landing-search .btn {
    padding: 0 14px;
    font-size: 12px;
  }

  /* Chip cards responsive */
  .landing-chips {
    gap: 8px;
  }

  .landing-chip-card {
    font-size: 12px;
    padding: 8px 12px;
  }

  #recentContainer {
    column-count: 2 !important;
  }

  /* Use cases responsive */
  .landing-usecases {
    padding: 48px 16px;
  }

  .landing-usecases-grid {
    grid-template-columns: 1fr;
  }

  /* Showcase responsive */
  .landing-showcase {
    padding: 48px 16px;
  }

  .landing-showcase-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Social proof responsive */
  .landing-social-proof {
    padding: 40px 16px;
  }

  .landing-social-proof-stats {
    flex-direction: column;
    gap: 20px;
  }

  .landing-social-proof-title {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .landing-showcase-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }
}

/* Autocomplete dropdown */
.search-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 9999;
  margin-top: 4px;
  padding: 4px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  max-height: 340px;
  overflow-y: auto;
}

.search-autocomplete-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.1s;
}

.search-autocomplete-item:hover,
.search-autocomplete-item.active {
  background: var(--muted);
}

.search-autocomplete-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-autocomplete-meta {
  font-size: 10px;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-autocomplete-empty {
  padding: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--muted-foreground);
}

.ac-chip {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.ac-chip-person {
  background: #7c3aed20;
  color: #7c3aed;
}

[data-theme="dark"] .ac-chip-person {
  background: #7c3aed30;
  color: #a78bfa;
}

.ac-chip-ico {
  background: var(--muted);
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}

.ac-chip-form {
  background: #f59e0b15;
  color: #b45309;
}

[data-theme="dark"] .ac-chip-form {
  background: #f59e0b25;
  color: #fbbf24;
}

/* Person panel */
.person-company-row {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border);
  margin-bottom: 6px;
  transition: background 0.15s, border-color 0.15s;
}

.person-company-row:hover {
  background: var(--muted);
  border-color: var(--primary);
}

.person-company-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--foreground);
}

.person-company-role {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 3px;
}

.role-owner {
  background: #f59e0b15;
  color: #b45309;
}

.role-board {
  background: #f59e0b15;
  color: #d97706;
}

.role-other {
  background: var(--muted);
  color: var(--muted-foreground);
}

[data-theme="dark"] .role-owner {
  background: #f59e0b25;
  color: #fbbf24;
}

[data-theme="dark"] .role-board {
  background: #f59e0b25;
  color: #fbbf24;
}

/* Footer links */
.footer-links {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.footer-link {
  font-size: 11px;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Rankings */
.ranking-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.ranking-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--foreground);
}

.ranking-content .ranking-desc {
  color: var(--muted-foreground);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.ranking-content .ranking-count {
  color: var(--muted-foreground);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.ranking-note {
  margin-top: 20px;
  color: var(--muted-foreground);
  font-size: 0.85rem;
  text-align: center;
}

.ranking-pagination {
  margin: 12px 0 18px;
  text-align: center;
  font-size: 0.9rem;
}

.ranking-pagination a {
  color: var(--accent);
  text-decoration: none;
}

.ranking-pagination a:hover {
  text-decoration: underline;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ranking-table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--border);
  color: var(--muted-foreground);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ranking-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.ranking-table tbody tr:hover {
  background: var(--muted);
}

.ranking-table .rank-num {
  color: var(--muted-foreground);
  font-weight: 500;
  width: 40px;
}

.ranking-table a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.ranking-table a:hover {
  text-decoration: none;
  opacity: 0.9;
}

.ranking-table .emp-badge {
  display: inline-block;
  background: var(--muted);
  color: var(--muted-foreground);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.ranking-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.ranking-cat-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--foreground);
  transition: border-color 0.15s, box-shadow 0.15s;
}

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

.ranking-cat-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.ranking-cat-title:hover {
  text-decoration: none;
  opacity: 0.9;
}

.ranking-cat-card p {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin: 0;
}

.ranking-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: var(--muted);
  border-radius: 10px;
}

.ranking-preview-item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
}

.ranking-preview-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.75rem;
}

.ranking-preview-name {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-preview-value {
  color: var(--muted-foreground);
  font-size: 0.78rem;
  text-align: right;
  white-space: nowrap;
}

.ranking-preview-empty {
  color: var(--muted-foreground);
  font-size: 0.8rem;
  text-align: center;
  padding: 4px 0;
}

.ranking-cat-cta {
  align-self: flex-start;
  margin-top: auto;
}

.ranking-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.ranking-back:hover {
  color: var(--primary);
}

.ranking-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted-foreground);
  margin: 32px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.85rem;
}

.ranking-section-title:first-of-type {
  margin-top: 24px;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--muted-foreground);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb-sep {
  margin: 0 6px;
  color: var(--muted-foreground);
  opacity: 0.5;
}

/* Cookie Consent */
.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 24px;
  overflow-y: auto;
  animation: consentFadeIn 0.25s ease-out;
}

body.consent-open {
  overflow: hidden;
}

@keyframes consentFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Phase 1 card */
.consent-card {
  background: var(--card);
  border-radius: 16px;
  padding: 32px;
  max-width: 520px;
  width: 100%;
  margin: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  animation: consentSlideUp 0.3s ease-out;
}

@keyframes consentSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

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

.consent-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--foreground);
}

.consent-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin: 0 0 24px;
}

.consent-desc a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.consent-btn-ghost {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 10px;
  transition: background 0.15s;
  font-family: inherit;
}

.consent-btn-ghost:hover {
  background: var(--muted);
}

.consent-btn-primary {
  background: var(--foreground);
  color: var(--background);
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 24px;
  border-radius: 10px;
  flex: 1;
  transition: opacity 0.15s;
  font-family: inherit;
}

.consent-btn-primary:hover {
  opacity: 0.85;
}

/* Phase 2 detail modal */
.consent-detail {
  background: var(--card);
  border-radius: 16px;
  padding: 32px;
  max-width: 560px;
  width: 100%;
  margin: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  position: relative;
  animation: consentSlideUp 0.3s ease-out;
}

.consent-detail-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: var(--muted);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--muted-foreground);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.consent-detail-close:hover {
  background: var(--border);
}

.consent-detail-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--foreground);
}

.consent-detail-intro {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin: 0 0 24px;
}

.consent-detail-subtitle {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--foreground);
}

/* Category rows */
.consent-category {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}

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

.consent-category-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
}

.consent-category-always {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.consent-category-desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted-foreground);
  margin: 0;
}

/* Toggle switch */
.consent-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.consent-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.consent-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}

.consent-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.consent-toggle input:checked+.consent-toggle-slider {
  background: var(--foreground);
}

.consent-toggle input:checked+.consent-toggle-slider::before {
  transform: translateX(20px);
}

.consent-btn-full {
  width: 100%;
  margin-top: 20px;
  text-align: center;
}

@media (max-width: 600px) {
  .consent-overlay {
    padding: 12px;
  }

  .consent-card,
  .consent-detail {
    padding: 24px;
  }

  .consent-card-actions {
    flex-direction: column;
  }

  .consent-btn-ghost {
    order: 2;
  }

  .consent-btn-primary {
    order: 1;
  }
}

.score-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: stretch;
}

.score-actions .btn {
  height: 32px;
  min-height: 32px;
}

.score-toggle {
  margin-top: 0;
}

.link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-external-icon {
  opacity: 0.65;
}

.link-with-icon:hover .link-external-icon {
  opacity: 0.9;
}

.ai-analysis-note {
  text-align: center;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 1em;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  vertical-align: middle;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

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

a:hover {
  text-decoration: none;
}

a[target="_blank"]::after {
  content: 'open_in_new';
  font-family: 'Material Symbols Outlined';
  font-size: 0.95em;
  line-height: 1;
  margin-left: 6px;
  opacity: 0.7;
  vertical-align: -1px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

a[target="_blank"]:hover::after {
  opacity: 0.9;
}

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

a:hover {
  text-decoration: none;
}

.detail-panel .ai-glow {
  margin: 0;
}

/* Watchlist unread badge */
.watchlist-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  margin-left: 6px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 99px;
  line-height: 1;
  animation: unreadPulse 2s ease-in-out infinite;
}

@keyframes unreadPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* Global nav unread badge */
.nav-unread-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 99px;
  line-height: 1;
  pointer-events: none;
  animation: unreadPulse 2s ease-in-out infinite;
  box-shadow: 0 1px 4px rgba(239, 68, 68, 0.4);
}

/* Inline unread dot for profile watchlist cards */
.watchlist-unread-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 8px;
  background: #f97316;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 99px;
  line-height: 1;
  animation: unreadPulse 2s ease-in-out infinite;
}

/* Profile card with unread changes */
.profile-card.has-unread {
  border-left: 3px solid #f97316;
}

[data-theme="dark"] .profile-card.has-unread {
  border-left-color: #fb923c;
}