

/* Geist Pixel – official name per https://vercel.com/font?type=pixel#get; support multiple possible internal names */
@font-face {
  font-family: 'Geist Pixel';
  src: url('/fonts/GeistPixel-Line.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono Pixel';
  src: url('/fonts/GeistPixel-Line.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GeistMonoPixel';
  src: url('/fonts/GeistPixel-Line.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Technical accent: Geist Pixel for labels, badges, table headers */
.pixel-label {
  font-family: 'Geist Mono Pixel', monospace;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* iOS safe area: dark background when dashboard is shown */
html:has(.dashboard-page),
body:has(.dashboard-page) {
  background: #141414;
}

/* Free tier: light mode */
html:has(.dashboard-page[data-free-tier="true"]),
body:has(.dashboard-page[data-free-tier="true"]) {
  background: #f9f9f9;
}
.dashboard-page[data-free-tier="true"] {
  background: #f9f9f9;
}
.dashboard-page[data-free-tier="true"] .dashboard-sidebar,
.dashboard-page[data-free-tier="true"] .dashboard-main {
  background: #f9f9f9;
}
.dashboard-page[data-free-tier="true"] .sidebar-summary-card,
.dashboard-page[data-free-tier="true"] .dashboard-topbar {
  background: #ffffff;
  border-color: #e8e8e8;
  color: #1a1a1a;
}
.dashboard-page[data-free-tier="true"] .risk-gauge-background { stroke: #e8e8e8 !important; }
.dashboard-page[data-free-tier="true"] .risk-gauge-arc { stroke: #e65d31 !important; }
.dashboard-page[data-free-tier="true"] .risk-gauge-value,
.dashboard-page[data-free-tier="true"] .risk-severity-label { color: #1a1a1a !important; }
.dashboard-page[data-free-tier="true"] .sidebar-summary-card .breakdown-header {
  border-top-color: #d0d0d0 !important;
}
.dashboard-page[data-free-tier="true"] .summary-label,
.dashboard-page[data-free-tier="true"] .breakdown-title,
.dashboard-page[data-free-tier="true"] .total-findings-value { color: #1a1a1a !important; }
.dashboard-page[data-free-tier="true"] .topbar-logo .logo-text { color: #1a1a1a; }
.dashboard-page[data-free-tier="true"] .topbar-new-scan-btn,
.dashboard-page[data-free-tier="true"] .topbar-manage-files-btn,
.dashboard-page[data-free-tier="true"] .topbar-export-btn {
  background: rgba(230, 93, 49, 0.1);
  color: #e65d31;
  border-color: rgba(230, 93, 49, 0.3);
}
.dashboard-page[data-free-tier="true"] .main-title {
  color: #000;
}

/* Free tier: all white text → dark grey */
.dashboard-page[data-free-tier="true"] .dashboard-sidebar,
.dashboard-page[data-free-tier="true"] .dashboard-main {
  color: #4a4a4a;
}
.dashboard-page[data-free-tier="true"] .sidebar-summary-card .summary-label,
.dashboard-page[data-free-tier="true"] .sidebar-summary-card .breakdown-title,
.dashboard-page[data-free-tier="true"] .sidebar-summary-card .total-findings-value,
.dashboard-page[data-free-tier="true"] .sidebar-summary-card .bar-category,
.dashboard-page[data-free-tier="true"] .sidebar-summary-card .bar-count,
.dashboard-page[data-free-tier="true"] .sidebar-data-export-help-btn,
.dashboard-page[data-free-tier="true"] .sidebar-upgrade-card .sidebar-upgrade-subtext,
.dashboard-page[data-free-tier="true"] .topbar-scan-usage,
.dashboard-page[data-free-tier="true"] .viewing-file-label,
.dashboard-page[data-free-tier="true"] .viewing-file-name,
.dashboard-page[data-free-tier="true"] .filter-label,
.dashboard-page[data-free-tier="true"] .filter-dropdown-btn,
.dashboard-page[data-free-tier="true"] .filter-bar-label,
.dashboard-page[data-free-tier="true"] .empty-title,
.dashboard-page[data-free-tier="true"] .empty-description {
  color: #4a4a4a !important;
}
.dashboard-page[data-free-tier="true"] .viewing-file-name {
  color: #e65d31 !important;
}
.dashboard-page[data-free-tier="true"] .sidebar-upgrade-card,
.dashboard-page[data-free-tier="true"] .sidebar-upgrade-card .sidebar-upgrade-text,
.dashboard-page[data-free-tier="true"] .sidebar-data-export-help-btn {
  color: #e65d31 !important;
}
.dashboard-page[data-free-tier="true"] .sidebar-upgrade-card .sidebar-upgrade-subtext {
  color: #666 !important;
}

/* Free tier: Manage Files cards - light background, dark grey text */
.dashboard-page[data-free-tier="true"] .file-manager-card {
  background: #ffffff !important;
  border-color: #e8e8e8 !important;
}
.dashboard-page[data-free-tier="true"] .file-manager-card:hover {
  border-color: #d0d0d0 !important;
}
.dashboard-page[data-free-tier="true"] .file-manager-card .file-manager-name,
.dashboard-page[data-free-tier="true"] .file-manager-card .file-manager-meta-label,
.dashboard-page[data-free-tier="true"] .file-manager-card .file-manager-meta-value,
.dashboard-page[data-free-tier="true"] .file-manager-card .file-manager-meta-separator,
.dashboard-page[data-free-tier="true"] .file-manager-card .file-manager-action-btn,
.dashboard-page[data-free-tier="true"] .file-manager-card .file-manager-icon {
  color: #4a4a4a !important;
}
.dashboard-page[data-free-tier="true"] .file-manager-card .file-manager-meta-label,
.dashboard-page[data-free-tier="true"] .file-manager-card .file-manager-meta-separator {
  color: #666 !important;
}
.dashboard-page[data-free-tier="true"] .file-manager-card .file-manager-action-btn:hover {
  color: #1a1a1a !important;
}
.dashboard-page[data-free-tier="true"] .file-manager-card .file-manager-view-btn {
  color: #e65d31 !important;
}
.dashboard-page[data-free-tier="true"] .file-manager-card .file-manager-delete-btn {
  color: #dc2626 !important;
}
.dashboard-page[data-free-tier="true"] .file-manager-card-body {
  border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}
.dashboard-page[data-free-tier="true"] .file-manager-header .main-title {
  color: #1a1a1a !important;
}
.dashboard-page[data-free-tier="true"] .file-manager-add-btn {
  color: #ffffff !important;
}
.dashboard-page[data-free-tier="true"] .file-manager-add-btn:hover {
  color: #ffffff !important;
}
.dashboard-page[data-free-tier="true"] .file-manager-view-all-btn {
  color: #4a4a4a !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}
.dashboard-page[data-free-tier="true"] .file-manager-view-all-btn:hover {
  color: #1a1a1a !important;
}
.dashboard-page[data-free-tier="true"] .back-to-findings-link {
  color: #4a4a4a !important;
  background: rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}
.dashboard-page[data-free-tier="true"] .back-to-findings-link:hover {
  color: #1a1a1a !important;
}

.dashboard-page[data-free-tier="true"] .topbar-menu-btn,
.dashboard-page[data-free-tier="true"] .topbar-chat-toggle,
.dashboard-page[data-free-tier="true"] .topbar-settings-btn,
.dashboard-page[data-free-tier="true"] .topbar-quick-exit-btn {
  color: #4a4a4a !important;
}
.dashboard-page[data-free-tier="true"] .topbar-menu-btn:hover,
.dashboard-page[data-free-tier="true"] .topbar-chat-toggle:hover,
.dashboard-page[data-free-tier="true"] .topbar-settings-btn:hover {
  color: #1a1a1a !important;
}
.dashboard-page[data-free-tier="true"] .topbar-menu-btn svg,
.dashboard-page[data-free-tier="true"] .topbar-chat-toggle svg,
.dashboard-page[data-free-tier="true"] .topbar-settings-btn svg {
  stroke: #4a4a4a !important;
}
.dashboard-page[data-free-tier="true"] .topbar-menu-btn:hover svg,
.dashboard-page[data-free-tier="true"] .topbar-chat-toggle:hover svg,
.dashboard-page[data-free-tier="true"] .topbar-settings-btn:hover svg {
  stroke: #1a1a1a !important;
}
.dashboard-page[data-free-tier="true"] .back-to-findings-link {
  color: #4a4a4a !important;
}
.dashboard-page[data-free-tier="true"] .back-to-findings-link:hover {
  color: #1a1a1a !important;
}
.dashboard-page[data-free-tier="true"] #topbar-case-file-link,
.dashboard-page[data-free-tier="true"] #topbar-case-file-link-evidence,
.dashboard-page[data-free-tier="true"] .menu-dropdown-nav-section a[href="/case-file"] {
  display: none !important;
}
.dashboard-page[data-free-tier="true"] .upload-zone-text {
  color: #4a4a4a !important;
}

/* Free tier: detection/finding cards - light background, dark text */
.dashboard-page[data-free-tier="true"] .finding-card {
  background: #ffffff !important;
  border-color: #e8e8e8 !important;
}
.dashboard-page[data-free-tier="true"] .finding-card:hover {
  border-color: #d0d0d0 !important;
}
.dashboard-page[data-free-tier="true"] .most-critical-finding-card {
  background: #ffffff !important;
  border-color: #e8e8e8 !important;
}
.dashboard-page[data-free-tier="true"] .most-critical-finding-card.critical {
  border-left-color: #b91c1c !important;
}
.dashboard-page[data-free-tier="true"] .most-critical-finding-card.high {
  border-left-color: #e65d31 !important;
}
.dashboard-page[data-free-tier="true"] .finding-card .finding-title,
.dashboard-page[data-free-tier="true"] .finding-card .finding-details-extra,
.dashboard-page[data-free-tier="true"] .finding-card .finding-date,
.dashboard-page[data-free-tier="true"] .finding-card .finding-natural-description,
.dashboard-page[data-free-tier="true"] .finding-card .finding-details-text,
.dashboard-page[data-free-tier="true"] .finding-card .finding-device-details-label,
.dashboard-page[data-free-tier="true"] .finding-card .finding-device-detail-item,
.dashboard-page[data-free-tier="true"] .finding-card .finding-location-map-label,
.dashboard-page[data-free-tier="true"] .finding-card .finding-category-badge,
.dashboard-page[data-free-tier="true"] .finding-card .finding-platform-badge,
.dashboard-page[data-free-tier="true"] .finding-card .action-step-text,
.dashboard-page[data-free-tier="true"] .finding-card .finding-data-label,
.dashboard-page[data-free-tier="true"] .finding-card .finding-data-content,
.dashboard-page[data-free-tier="true"] .most-critical-finding-label,
.dashboard-page[data-free-tier="true"] .most-critical-finding-content,
.dashboard-page[data-free-tier="true"] .most-critical-finding-description {
  color: #1a1a1a !important;
}
.dashboard-page[data-free-tier="true"] .most-critical-finding-card .most-critical-finding-description {
  border-top-color: rgba(0, 0, 0, 0.1) !important;
}
.dashboard-page[data-free-tier="true"] .ai-analysis-actions-label,
.dashboard-page[data-free-tier="true"] .ai-analysis-actions-list li {
  color: #4a4a4a !important;
}
.dashboard-page[data-free-tier="true"] .finding-card .finding-date,
.dashboard-page[data-free-tier="true"] .finding-card .finding-details-text,
.dashboard-page[data-free-tier="true"] .finding-card .finding-device-detail-item {
  color: #4a4a4a !important;
}
.dashboard-page[data-free-tier="true"] .finding-card .finding-category-badge,
.dashboard-page[data-free-tier="true"] .finding-card .finding-platform-badge {
  background: rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #4a4a4a !important;
}
.dashboard-page[data-free-tier="true"] .finding-card .finding-preview-lock-badge {
  color: #4a4a4a !important;
}
.dashboard-page[data-free-tier="true"] .finding-card .finding-actionable-toggle {
  color: #e65d31 !important;
}

.dashboard-page[data-free-tier="true"] .known-locations-prompt-text h4,
.dashboard-page[data-free-tier="true"] .known-locations-prompt-text p {
  color: #000 !important;
}
.dashboard-page[data-free-tier="true"] .known-locations-prompt-btn.primary {
  color: #ffffff !important;
}
.dashboard-page[data-free-tier="true"] .known-locations-prompt-btn.secondary {
  background: rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  color: #000 !important;
}
.dashboard-page[data-free-tier="true"] .known-locations-prompt-btn.secondary:hover {
  background: rgba(0, 0, 0, 0.1) !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
  color: #000 !important;
}

/* Free tier: Settings, What ForensAI Detects, Support, FAQ - dark grey text */
.dashboard-page[data-free-tier="true"] .menu-content-view .menu-content-title,
.dashboard-page[data-free-tier="true"] .menu-content-view .menu-content-back,
.dashboard-page[data-free-tier="true"] .menu-content-view .menu-content-intro,
.dashboard-page[data-free-tier="true"] .menu-content-view .menu-content-item-title,
.dashboard-page[data-free-tier="true"] .menu-content-view .menu-content-item-description,
.dashboard-page[data-free-tier="true"] .menu-content-view .menu-content-pattern-note,
.dashboard-page[data-free-tier="true"] .menu-content-view .menu-settings-section-title,
.dashboard-page[data-free-tier="true"] .menu-content-view .menu-settings-item-title,
.dashboard-page[data-free-tier="true"] .menu-content-view .menu-settings-item-description,
.dashboard-page[data-free-tier="true"] .menu-content-view .menu-settings-item svg,
.dashboard-page[data-free-tier="true"] .menu-content-view .menu-settings-partner-input,
.dashboard-page[data-free-tier="true"] .menu-content-view .support-form-label,
.dashboard-page[data-free-tier="true"] .menu-content-view .support-form-input,
.dashboard-page[data-free-tier="true"] .menu-content-view .support-form-select,
.dashboard-page[data-free-tier="true"] .menu-content-view .support-form-textarea,
.dashboard-page[data-free-tier="true"] .menu-content-view .support-form-checkbox-label,
.dashboard-page[data-free-tier="true"] .menu-content-view .support-form-message,
.dashboard-page[data-free-tier="true"] .menu-content-view .menu-faq-question,
.dashboard-page[data-free-tier="true"] .menu-content-view .menu-faq-answer p,
.dashboard-page[data-free-tier="true"] .menu-content-view .forensai-faq-text {
  color: #4a4a4a !important;
}
.dashboard-page[data-free-tier="true"] .menu-content-view .menu-content-back:hover {
  color: #1a1a1a !important;
}
.dashboard-page[data-free-tier="true"] .menu-content-view .menu-content-back {
  background: rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}
.dashboard-page[data-free-tier="true"] .menu-content-view .menu-content-header {
  border-bottom-color: rgba(0, 0, 0, 0.12) !important;
}
.dashboard-page[data-free-tier="true"] .menu-content-view .menu-content-item {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}
.dashboard-page[data-free-tier="true"] .menu-content-view .menu-settings-item,
.dashboard-page[data-free-tier="true"] .menu-content-view .menu-settings-item-clickable:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}
.dashboard-page[data-free-tier="true"] .menu-content-view .menu-settings-partner-input {
  background: rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}
.dashboard-page[data-free-tier="true"] .menu-content-view .menu-settings-partner-input::placeholder {
  color: rgba(0, 0, 0, 0.4) !important;
}
.dashboard-page[data-free-tier="true"] .menu-content-view .support-form-input,
.dashboard-page[data-free-tier="true"] .menu-content-view .support-form-select,
.dashboard-page[data-free-tier="true"] .menu-content-view .support-form-textarea {
  background: rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}
.dashboard-page[data-free-tier="true"] .menu-content-view .menu-faq-item {
  border-bottom-color: rgba(0, 0, 0, 0.12) !important;
}
.dashboard-page[data-free-tier="true"] .menu-content-view .menu-faq-question:hover,
.dashboard-page[data-free-tier="true"] .menu-content-view .menu-faq-question.expanded {
  color: #e65d31 !important;
}

/* Free tier: show chat panel, sized to window height below header */
.dashboard-page[data-free-tier="true"] .dashboard-chat {
  display: flex !important;
  position: fixed !important;
  top: calc(64px + env(safe-area-inset-top)) !important;
  bottom: 0 !important;
  height: calc(100vh - 64px - env(safe-area-inset-top)) !important;
  height: calc(100dvh - 64px - env(safe-area-inset-top)) !important;
  min-height: 0;
}
/* Chat locked overlay - free tier (light) */
.chat-locked-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  cursor: pointer;
  transition: background 0.2s;
}
.chat-locked-overlay:hover {
  background: rgba(255, 255, 255, 0.5);
}
.chat-locked-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}
.chat-locked-overlay-icon {
  color: rgba(26, 26, 26, 0.5);
}
.chat-locked-overlay-text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(26, 26, 26, 0.85);
  max-width: 180px;
  line-height: 1.4;
}
.chat-locked-overlay-btn {
  margin-top: 4px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: #e65d31;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.chat-locked-overlay-btn:hover {
  background: #d95428;
  transform: translateY(-1px);
}

/* Free tier: greyed-out chat prompt buttons */
.chat-prompts-greyed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-prompt-btn-greyed {
  opacity: 0.5;
  cursor: default;
  color: rgba(255, 255, 255, 0.6) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Free tier: light theme for locked chat panel only */
.dashboard-chat.chat-panel-light {
  background: #f5f5f5;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}
.dashboard-chat.chat-panel-light .chat-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
}
.dashboard-chat.chat-panel-light .chat-title {
  color: #1a1a1a;
}
.dashboard-chat.chat-panel-light .chat-content,
.dashboard-chat.chat-panel-light .chat-content-free-tier,
.dashboard-chat.chat-panel-light .chat-messages {
  background: #f5f5f5;
}
.dashboard-chat.chat-panel-light .chat-prompt-btn-greyed {
  color: #4a4a4a !important;
  background: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
}
.dashboard-chat.chat-panel-light .chat-locked-overlay {
  background: rgba(255, 255, 255, 0.6);
}
.dashboard-chat.chat-panel-light .chat-locked-overlay:hover {
  background: rgba(255, 255, 255, 0.75);
}
.dashboard-chat.chat-panel-light .chat-locked-overlay-icon {
  color: #4a4a4a;
}
.dashboard-chat.chat-panel-light .chat-locked-overlay-text {
  color: #1a1a1a;
}

/* Free tier: chat content fills height */
.dashboard-page[data-free-tier="true"] .dashboard-chat .chat-content-free-tier {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Free tier: Upgrade card - same style as risk score (sidebar-summary-card) */
.sidebar-upgrade-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #e65d31;
  font-weight: 600;
  transition: opacity 0.2s;
  margin-top: 16px;
}
.sidebar-upgrade-card:hover {
  opacity: 0.9;
}
.sidebar-upgrade-card .sidebar-upgrade-icon {
  margin-bottom: 8px;
}
.sidebar-upgrade-card .sidebar-upgrade-icon .logo-icon {
  width: 24px;
  height: 24px;
}
.sidebar-upgrade-card .sidebar-upgrade-text {
  font-size: 1rem;
}
.sidebar-upgrade-card .sidebar-upgrade-subtext {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 2px;
}

/* Free tier upgrade banner */
.free-tier-upgrade-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #e65d31;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}
.free-tier-upgrade-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.free-tier-upgrade-banner-text {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}
.free-tier-upgrade-banner-btn {
  padding: 10px 24px;
  background: #ffffff;
  color: #e65d31;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.free-tier-upgrade-banner-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Free tier upload prompt (no scan yet) */
.free-tier-upload-prompt {
  padding: 48px 24px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.free-tier-upload-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px 0;
  line-height: 1.3;
}
.free-tier-upload-subtext {
  font-size: 1rem;
  color: #666;
  margin: 0 0 24px 0;
  line-height: 1.5;
}
.free-tier-upload-zone {
  position: relative;
  border: 2px dashed #ccc;
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  background: #ffffff;
  transition: border-color 0.2s, background 0.2s;
}
.free-tier-upload-zone:hover,
.free-tier-upload-zone.drag-over {
  border-color: #e65d31;
  background: rgba(230, 93, 49, 0.04);
}
.free-tier-upload-zone-content svg {
  color: #e65d31;
  margin-bottom: 16px;
}
.free-tier-upload-zone-text {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

/* Free tier overview (risk + locked sections) */
.free-tier-overview {
  padding: 32px 24px;
}
.free-tier-risk-section {
  text-align: center;
  margin-bottom: 40px;
}
.free-tier-risk-gauge-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.free-tier-risk-gauge {
  position: relative;
  width: 140px;
  height: 140px;
}
.free-tier-gauge-svg {
  width: 100%;
  height: 100%;
}
.free-tier-gauge-bg { stroke: #e8e8e8; }
.free-tier-gauge-arc { stroke: #e65d31; stroke-linecap: round; transition: stroke-dashoffset 0.5s; }
.free-tier-risk-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  font-weight: 800;
  color: #e65d31;
  font-family: 'Geist Mono Pixel', monospace;
}
.free-tier-detection-text {
  font-size: 1.125rem;
  color: #1a1a1a;
  margin: 0 0 24px 0;
  text-align: center;
  padding-top: 32px;
}
.free-tier-locked-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.free-tier-locked-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.free-tier-locked-card:hover {
  border-color: #e65d31;
  box-shadow: 0 4px 12px rgba(230, 93, 49, 0.15);
}
.free-tier-locked-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(249,249,249,0.6) 0%, rgba(249,249,249,0.9) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
}
.free-tier-locked-icon {
  position: relative;
  color: #888;
  margin-bottom: 12px;
}
.free-tier-locked-icon svg {
  width: 28px;
  height: 28px;
  margin: 0 auto;
  display: block;
}
.free-tier-locked-title {
  position: relative;
  font-size: 0.875rem;
  font-weight: 600;
  color: #555;
}
.free-tier-locked-desc {
  position: relative;
  font-size: 0.75rem;
  color: #777;
  line-height: 1.35;
  margin: 8px 0 0 0;
}

/* Locked element modal */
.locked-element-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.locked-element-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 48px rgba(0,0,0,0.2);
}
.locked-element-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  border-radius: 8px;
}
.locked-element-modal-close:hover {
  background: #f0f0f0;
  color: #1a1a1a;
}
.locked-element-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 20px 0;
}
.locked-element-modal-preview {
  position: relative;
  height: 160px;
  background: #e8e8e8;
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
}
.locked-element-modal-blur {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ccc 0%, #e0e0e0 100%);
  filter: blur(8px);
}
.locked-element-modal-pricing {
  margin-bottom: 20px;
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.8;
}
.locked-element-pricing-option {
  padding: 4px 0;
}
.locked-element-modal-cta {
  display: block;
  text-align: center;
  padding: 14px 24px;
  background: #e65d31;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.locked-element-modal-cta:hover {
  background: #d14d20;
  transform: translateY(-1px);
}

/* Ensure all text elements use Instrument Sans */
h1, h2, h3, h4, h5, h6,
p, a, span, div, button, input, textarea, select,
.forensai-logo, .forensai-nav-link, .forensai-btn,
.forensai-headline, .forensai-subheadline,
.forensai-service-title, .forensai-service-description,
.forensai-testimonial-text, .forensai-testimonial-author,
.forensai-faq-question, .forensai-faq-answer,
.forensai-footer-title, .forensai-form input, .forensai-form textarea {
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}


.forensai-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}


.forensai-header {
  background: transparent;
  border-bottom: none;
  z-index: 1000;
  padding: 20px 0;
}

.forensai-header .forensai-container {
  padding-left: 32px;
  padding-right: 32px;
}

.forensai-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.forensai-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1a1a1a;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.forensai-logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
}

.forensai-logo-text {
  font-size: 1.5rem;
}

@media (min-width: 769px) {
  .forensai-header .forensai-logo {
    gap: 10px;
  }
  .forensai-header .forensai-logo-icon {
    width: 32px;
    height: 32px;
  }
  .forensai-header .forensai-logo-text {
    font-size: 1.625rem;
  }
}

.forensai-logo-forens {
  font-family: 'Geist Pixel', 'Geist Mono Pixel', 'GeistMonoPixel', ui-monospace, monospace !important;
  font-weight: 900 !important;
}
.logo-ai {
  font-weight: 500;
}

.forensai-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.forensai-nav-link {
  color: #71717a;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: -0.01em;
}

.forensai-nav-link:hover {
  color: #1a1a1a;
}

.forensai-nav-link-active {
  color: #1a1a1a !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.forensai-section-dark .forensai-nav-link-active {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* Dark section overrides for nav links */
.forensai-section-dark .forensai-nav-link {
  color: rgba(255, 255, 255, 0.7);
}

.forensai-section-dark .forensai-nav-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

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

.forensai-nav-cta {
  display: inline-flex;
  white-space: nowrap;
}

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

.user-email {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
}

.forensai-nav-cta {
  color: #1a1a1a;
  font-weight: 600;
}

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

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

.user-email {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
}

.forensai-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
}

.forensai-menu-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: all 0.3s;
}

.forensai-section-dark .forensai-menu-toggle span,
.forensai-header.forensai-header-dark .forensai-menu-toggle span {
  background: rgba(255, 255, 255, 0.9);
}

.forensai-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.forensai-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.forensai-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Buttons  */
.forensai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.01em;
  position: relative;
}

.forensai-btn-primary {
  background: linear-gradient(180deg, #e55e31 0%, #d14f26 100%);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(230, 93, 49, 0.3);
  position: relative;
  overflow: hidden;
}

.forensai-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  pointer-events: none;
}

.forensai-btn-primary:hover {
  background: linear-gradient(180deg, #e55e31 0%, #d14f26 100%);
  box-shadow: 0 6px 16px rgba(230, 93, 49, 0.4);
  transform: translateY(-1px);
}

.forensai-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(230, 93, 49, 0.3);
}

.forensai-btn-large {
  padding: 16px 32px;
  font-size: 1rem;
}

/* Mobile: larger logo for front-end header */
@media (max-width: 768px) {
  .forensai-header .forensai-logo-text {
    font-size: 1.65rem;
  }
  .forensai-header .forensai-logo-icon {
    width: 32px;
    height: 32px;
  }
  .forensai-header-actions #sign-in-btn {
    padding: 10px 18px;
    font-size: 0.9375rem;
  }
  .forensai-header-actions {
    gap: 10px;
  }
  .forensai-menu-toggle {
    padding: 8px;
  }
  .forensai-menu-toggle span {
    width: 26px;
    height: 2px;
  }
}

/* Ensure Sign In button stays on one line on smallest mobile */
@media (max-width: 480px) {
  #sign-in-btn {
    white-space: nowrap;
    padding: 10px 16px;
    font-size: 0.875rem;
    min-width: auto;
    flex-shrink: 0;
  }
  
  .forensai-header-actions {
    gap: 8px;
    flex-shrink: 0;
  }
  
  .forensai-header-inner {
    gap: 12px;
  }
}

/* Narrow phones (e.g. iPhone 16 Pro 402px): keep exit + Sign In + menu on one row */
@media (max-width: 430px) {
  .forensai-header .forensai-container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .forensai-header-inner {
    gap: 8px;
  }
  .forensai-header-actions {
    gap: 6px;
  }
  #sign-in-btn {
    padding: 9px 14px;
    font-size: 0.875rem;
  }
  .forensai-header .forensai-logo-text {
    font-size: 1.6rem;
  }
  .forensai-header .forensai-logo-icon {
    width: 32px;
    height: 32px;
  }
  .forensai-menu-toggle {
    padding: 7px;
  }
  .forensai-menu-toggle span {
    width: 24px;
  }
  .forensai-header .forensai-logo {
    min-width: 0;
  }
  .forensai-header-actions {
    flex-shrink: 0;
  }
}

.forensai-btn-full-width {
  width: 100%;
  margin-top: 4px;
}

/* Hero Section  */
#hero-drop-zone {
  scroll-margin-top: 96px;
}

.forensai-hero {
  padding: 56px 0;
  background: 
    linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.85) 25%, rgba(0, 0, 0, 0.85) 50%, rgba(0, 0, 0, 0.85) 75%, rgba(0, 0, 0, 0.85) 100%),
    url('/assets/img/onboarding-e.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 48px;
  margin: 0 24px;
  position: relative;
  overflow: hidden;
}

/* Ensure hero background image overrides section-dark background */
.forensai-hero.forensai-section-dark {
  background: 
    linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.85) 25%, rgba(0, 0, 0, 0.85) 50%, rgba(0, 0, 0, 0.85) 75%, rgba(0, 0, 0, 0.85) 100%),
    url('/assets/img/onboarding-e.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
}


.forensai-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 40px 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}

@media (min-width: 769px) {
  .forensai-hero-grid {
    gap: 24px 80px; /* less space below drop area on desktop */
  }
}

.forensai-hero-title-block {
  grid-column: 1;
  grid-row: 1;
}

.forensai-hero-testimonial-block {
  grid-column: 1;
  grid-row: 2;
}

.forensai-hero-drop-block {
  grid-column: 2;
  grid-row: 1;
}

.forensai-hero-cta-block {
  grid-column: 2;
  grid-row: 2;
}

/* Hero Left (title and testimonial blocks) */
.forensai-hero-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.forensai-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  margin-top: -120px;
}

/* Consistent padding above Detection Engine Active on desktop - avoid shift at ~1020px and 1300–1400px */
@media (min-width: 769px) {
  .forensai-status {
    padding-top: 40px;
  }
}

.forensai-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.forensai-status-text {
  color: #d4d4d8;
  font-size: 1rem;
  font-weight: 500;
}

.forensai-hero-tagline {
  font-size: clamp(2.75rem, 5.75vw, 4.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #ffffff;
  margin: 0;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.forensai-hero-subtitle {
  font-size: clamp(1.375rem, 2.25vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  color: #e55e31;
  letter-spacing: -0.01em;
  margin: 6px 0 0 0;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

@media (max-width: 1024px) {
  .forensai-hero-subtitle {
    font-size: clamp(1.5rem, 2.75vw, 2rem);
  }
}

@media (max-width: 450px) {
  .forensai-hero-subtitle {
    font-size: clamp(1.25rem, 4.75vw, 1.5rem);
  }
}

@media (max-width: 434px) {
  .forensai-hero-subtitle {
    font-size: clamp(1.3rem, 5vw, 1.55rem);
  }
}

/* Hero arrow - points from subtitle to drop zone (visible 1025px+) */
.forensai-hero-arrow {
  display: none;
}

.forensai-hero-arrow-img {
  display: block;
  max-width: 100%;
  height: auto;
}

@media (min-width: 1025px) {
  .forensai-hero-arrow {
    display: block;
    align-self: flex-end;
    margin-top: -158px;
    margin-right: -10px;
  }

  .forensai-hero-arrow-img {
    width: clamp(160px, 17.25vw, 280px);
    height: auto;
  }
}

/* Hide capital-C "Changes" except at 435px and below */
.forensai-hero-subtitle .hero-subtitle-changes-sm {
  display: none;
}

@media (max-width: 1023px) {
  .forensai-subtitle-br-desktop {
    display: none;
  }
}

.hero-testimonial {
  max-width: 600px;
  margin: 12px 0 16px 0;
  padding: 0 20px;
}

.testimonial-quote {
  font-size: 18px;
  line-height: 1.6;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 4px 0;
}

.testimonial-attribution {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-style: normal;
}

.forensai-hero-accent {
  color: #e65d31;
}

.forensai-hero-brand {
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
  color: #ffffff;
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.15);
  margin-top: 20px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Hero Right */
.forensai-hero-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.forensai-hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #ffffff;
  margin-top: -30px;
  text-align: center;
  width: 100%;
}

.forensai-hero-description strong {
  font-weight: 700;
  color: #ffffff;
}

/* Upload Zone Card - Redesigned */
.forensai-upload-zone {
  width: 100%;
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 32px;
  padding: 60px 40px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  border: 2px dashed rgba(0, 0, 0, 0.12);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.forensai-upload-zone:hover {
  border-style: solid;
  border-color: #E8744F;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.forensai-upload-zone:hover .forensai-upload-icon-svg {
  transform: scale(1.05);
}

.forensai-upload-zone.drag-over {
  border-style: solid;
  border-color: #E8744F;
  background: rgba(255, 248, 245, 0.98);
  box-shadow: 0 12px 40px rgba(232, 116, 79, 0.2);
}

.forensai-upload-zone.drag-over .forensai-upload-default-content,
.forensai-upload-zone.drag-over .forensai-upload-progress {
  display: none !important;
}

.forensai-upload-zone.drag-over .forensai-upload-drop-here {
  display: flex !important;
}

.forensai-upload-zone.uploading .forensai-upload-default-content,
.forensai-upload-zone.uploading .forensai-upload-drop-here {
  display: none !important;
}

.forensai-upload-zone.uploading .forensai-upload-progress {
  display: flex !important;
}

.forensai-upload-drop-here {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: #E8744F;
  pointer-events: none;
}

.forensai-upload-default-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}

.forensai-upload-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.forensai-upload-icon-svg {
  width: 88px;
  height: 88px;
  transition: transform 0.25s ease;
}

.forensai-upload-title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Desktop/mobile copy toggles (mobile = 768px and below) */
.upload-subtext-mobile,
.upload-formats-mobile,
.upload-benefit-1-mobile,
.upload-benefit-2-mobile {
  display: none;
}

.forensai-upload-subtext {
  font-size: 1.0625rem;
  font-weight: 500;
  color: #666;
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.forensai-upload-formats {
  font-size: 0.875rem;
  color: #999;
  margin: 0 0 20px 0;
  font-weight: 400;
  font-style: normal;
}

.forensai-upload-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #666;
  line-height: 1.4;
}

.forensai-upload-benefits .upload-check {
  color: #22c55e;
  font-weight: 700;
  margin-right: 6px;
}

.forensai-upload-progress {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 0.9375rem;
  color: #666;
}

.forensai-upload-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(0, 0, 0, 0.08);
  border-top-color: #E8744F;
  border-radius: 50%;
  animation: forensai-upload-spin 0.8s linear infinite;
}

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

/* CTA section: keep same card look (white box) */
.forensai-upload-zone-cta .forensai-upload-title,
.forensai-upload-zone-cta .forensai-upload-subtext,
.forensai-upload-zone-cta .forensai-upload-formats,
.forensai-upload-zone-cta .forensai-upload-benefits {
  color: inherit;
}

.forensai-upload-zone-cta .forensai-upload-title { color: #1a1a1a; }
.forensai-upload-zone-cta .forensai-upload-subtext { color: #666; }
.forensai-upload-zone-cta .forensai-upload-formats { color: #999; }
.forensai-upload-zone-cta .forensai-upload-benefits { color: #666; }

/* Ready to Know CTA: match /upload (intake) dropzone styling */
#ready-to-know .forensai-upload-zone-cta,
.forensai-cta-hero .forensai-upload-zone-cta {
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px dashed rgba(196, 90, 52, 0.5);
  border-radius: 32px;
  padding: 48px 32px;
  min-height: 280px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
#ready-to-know .forensai-upload-zone-cta:hover,
.forensai-cta-hero .forensai-upload-zone-cta:hover {
  border-color: rgba(196, 90, 52, 0.8);
  background: rgba(20, 20, 20, 0.75);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
#ready-to-know .forensai-upload-zone-cta.drag-over,
.forensai-cta-hero .forensai-upload-zone-cta.drag-over {
  border-color: rgba(196, 90, 52, 0.8);
  background: rgba(20, 20, 20, 0.75);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
#ready-to-know .forensai-upload-zone-cta .forensai-upload-drop-here,
.forensai-cta-hero .forensai-upload-zone-cta .forensai-upload-drop-here {
  color: #c45a34;
  font-size: 1.125rem;
  border-radius: 30px;
}
#ready-to-know .forensai-upload-zone-cta .forensai-upload-title,
.forensai-cta-hero .forensai-upload-zone-cta .forensai-upload-title {
  color: #fff;
  font-size: 1.25rem;
}
#ready-to-know .forensai-upload-zone-cta .forensai-upload-subtext,
.forensai-cta-hero .forensai-upload-zone-cta .forensai-upload-subtext {
  color: rgba(255, 255, 255, 0.6);
}
#ready-to-know .forensai-upload-zone-cta .forensai-upload-formats,
.forensai-cta-hero .forensai-upload-zone-cta .forensai-upload-formats {
  color: rgba(255, 255, 255, 0.4);
}
#ready-to-know .forensai-upload-zone-cta .forensai-upload-benefits,
.forensai-cta-hero .forensai-upload-zone-cta .forensai-upload-benefits {
  color: rgba(255, 255, 255, 0.6);
}
#ready-to-know .forensai-upload-zone-cta .forensai-upload-benefits .upload-check,
.forensai-cta-hero .forensai-upload-zone-cta .forensai-upload-benefits .upload-check {
  color: #22c55e;
}

@media (max-width: 768px) {
  .forensai-upload-zone {
    padding: 40px 24px;
    min-height: 260px;
  }

  #ready-to-know .forensai-upload-zone-cta,
  .forensai-cta-hero .forensai-upload-zone-cta {
    padding: 28px 20px;
    min-height: 200px;
  }
  #ready-to-know .forensai-upload-zone-cta .forensai-upload-title,
  .forensai-cta-hero .forensai-upload-zone-cta .forensai-upload-title {
    font-size: 1rem;
  }
  #ready-to-know .forensai-upload-zone-cta .forensai-upload-subtext,
  .forensai-cta-hero .forensai-upload-zone-cta .forensai-upload-subtext {
    font-size: 0.875rem;
  }
  #ready-to-know .forensai-upload-zone-cta .forensai-upload-formats,
  .forensai-cta-hero .forensai-upload-zone-cta .forensai-upload-formats {
    font-size: 0.75rem;
  }

  .forensai-upload-icon-svg {
    width: 60px;
    height: 60px;
  }

  .forensai-upload-title {
    font-size: 1.375rem;
  }

  .forensai-upload-subtext {
    font-size: 0.9375rem;
  }

  .forensai-upload-formats {
    font-size: 0.8125rem;
  }

  .forensai-upload-benefits {
    font-size: 0.875rem;
  }

  /* Mobile copy: show mobile, hide desktop */
  .upload-subtext-desktop,
  .upload-formats-desktop,
  .upload-benefit-1-desktop,
  .upload-benefit-2-desktop {
    display: none;
  }

  .upload-subtext-mobile,
  .upload-formats-mobile,
  .upload-benefit-1-mobile,
  .upload-benefit-2-mobile {
    display: inline;
  }
}

/* Sections */
.forensai-section {
  padding: 56px 0;
  position: relative;
}

.forensai-section-light {
  background: #ffffff;
  color: #1a1a1a;
}

.forensai-section-dark {
  background: #0a0a0a;
  color: #ffffff;
}

.forensai-section-orange {
  background: #e55e31;
  color: #ffffff;
}

/* Section Labels */
.forensai-section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.forensai-label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e65d31;
}

.forensai-label-text {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #71717a;
}

.forensai-section-dark .forensai-label-text {
  color: #a1a1aa;
}

/* Headlines - Instrument Sans */
.forensai-headline {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.forensai-headline-serif {
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
}

.forensai-headline-light {
  color: #ffffff;
}

.forensai-subheadline {
  font-size: 1.25rem;
  line-height: 1.4;
  color: #71717a;
  max-width: 1000px;
  margin-bottom: 48px;
}

/* Pricing section: center "Try it free..." and headline */
#pricing .forensai-container > .forensai-headline,
#pricing .forensai-container > .forensai-subheadline {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: block;
}
#pricing .forensai-container > .forensai-subheadline {
  max-width: 800px;
}

.forensai-section-dark .forensai-subheadline {
  color: #d4d4d8;
}

.forensai-section-orange .forensai-label-text {
  color: rgba(255, 255, 255, 0.9);
}

.forensai-section-orange .forensai-label-dot {
  background: rgba(255, 255, 255, 0.3);
}

.forensai-section-orange .forensai-headline {
  color: #ffffff;
}

.forensai-section-orange .forensai-subheadline {
  color: rgba(255, 255, 255, 0.95);
}

/* Center all content in Access for All section */
.forensai-section-orange .forensai-container {
  text-align: center;
}

.forensai-section-orange .forensai-section-label {
  justify-content: center;
}

.forensai-section-orange .forensai-headline {
  margin-left: auto;
  margin-right: auto;
}

.forensai-section-orange .forensai-subheadline {
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

/* Access for All two-column layout */
.forensai-access-grid {
  display: grid;
  grid-template-columns: 60% 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 24px;
}

@media (min-width: 769px) {
  .forensai-access-grid {
    align-items: center;
  }
}

.forensai-access-content .forensai-headline {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.forensai-access-content .forensai-subheadline {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  text-align: left;
}

.forensai-access-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  text-align: left;
}

.forensai-access-card-headline {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px 0;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.3;
}

.forensai-access-card-body {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 24px 0;
}

.forensai-access-card-cta {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  margin-bottom: 16px;
}

.forensai-access-card-divider {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 16px 0;
}

.forensai-access-card-ghost {
  display: inline-flex;
  width: 100%;
  justify-content: center;
}

/* Ghost button on orange: white outline */
.forensai-section-orange .forensai-access-card .forensai-access-card-ghost {
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
}

.forensai-section-orange .forensai-access-card .forensai-access-card-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
}

@media (max-width: 768px) {
  .forensai-access-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .forensai-access-card {
    width: 100%;
  }
}

.forensai-headline-orange {
  color: #ffffff;
}

.forensai-subheadline-orange {
  color: rgba(255, 255, 255, 0.95);
}

.forensai-section-grey {
  background: #f3f4f6;
  color: #000000;
}

.forensai-section-grey .forensai-subheadline {
  color: #36454f;
}

.forensai-headline-orange-text {
  color: #e55e31;
}

/* About Section */
.forensai-about {
  max-width: 900px;
}

/* Platform Logos – Analyze Data Exports From: title black, icons brand colors → orange on hover */
#platforms .forensai-container > h2.forensai-headline {
  text-align: center;
  color: #000000;
}

#platforms.forensai-section-dark .forensai-container > h2.forensai-headline {
  color: #ffffff;
}

/* Same styling as "Is your ex or someone else..." (forensai-detect-lead) but brand orange */
#platforms .forensai-detect-lead {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.5;
  color: #e55e31;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

#platforms.forensai-section-dark .platforms-help-label,
#platforms.forensai-section-dark .platforms-help-subtext {
  color: rgba(255, 255, 255, 0.9);
}

/* "Click" on desktop, "Press" on iPad and smaller */
.platforms-help-action-touch {
  display: none;
}

@media (max-width: 1024px) {
  .platforms-help-action-desktop {
    display: none;
  }
  .platforms-help-action-touch {
    display: inline;
  }
}

#platforms .forensai-platform-logo svg {
  transition: fill 0.2s ease;
}

#platforms .forensai-platform-logo:hover svg {
  fill: #e55e31;
}

#platforms .forensai-platform-logo-apple svg,
#platforms .forensai-platform-logo-x svg {
  fill: #ffffff;
}

@media (max-width: 768px) {
  #platforms .forensai-platform-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 12px;
    row-gap: 24px;
  }
  #platforms .forensai-platform-logo svg {
    width: 56px;
    height: 56px;
  }
  #platforms .forensai-platform-logo-apple svg {
    width: 64px;
    height: 64px;
  }
  #platforms .forensai-platform-logo-x svg {
    width: 48px;
    height: 48px;
  }
}

/* Platforms section – light background: dark help text */
#platforms.forensai-section-light .platforms-help-label {
  color: #1a1a1a;
  font-weight: 700;
}

#platforms.forensai-section-light .platforms-help-subtext {
  text-align: center;
  margin-top: 32px;
  font-size: 24px;
  color: #52525b;
  font-weight: 500;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.forensai-platforms {
  text-align: center;
  margin-top: 48px;
}

.forensai-platform-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 52px;
}

@media (min-width: 769px) {
  .forensai-platform-logos {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 52px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Data Export Help Section - Standalone (removed from landing, kept for reference) */
.data-export-help-section {
  text-align: center;
  padding: 48px 0;
}

.data-export-help-text {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.data-export-help-subtext {
  font-size: 15px;
  color: #71717a;
  margin-bottom: 24px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.data-export-help-platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}

.data-export-help-platform {
  background: transparent;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.data-export-help-platform:hover {
  border-color: #e55e31;
  background: rgba(230, 93, 49, 0.05);
  transform: translateY(-2px);
}

.data-export-help-platform svg {
  width: 40px;
  height: 40px;
}

.data-export-help-hint {
  font-size: 13px;
  color: #71717a;
  font-style: italic;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Data Export Help Below Platforms */
.data-export-help-below-platforms {
  margin-top: 60px;
  text-align: center;
}

.data-export-help-text-below {
  font-size: 24px;
  font-weight: 500;
  color: #858585;
  padding: 16px 32px;
  background: rgba(26, 26, 26, 0.12);
  border-radius: 999px;
  display: inline-block;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (max-width: 768px) {
  .data-export-help-text-below {
    font-size: 17px;
  }
}

/* Data Export Guide Modal */
.data-export-guide-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.data-export-guide-modal {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.data-export-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  background: #1a1a1a;
  z-index: 1;
}

.data-export-guide-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}
.data-export-guide-title.pixel-label {
  font-family: 'Geist Mono Pixel', monospace !important;
  letter-spacing: 0.05em;
  text-transform: none;
}

.data-export-guide-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
}

.data-export-guide-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.data-export-guide-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.data-export-guide-platforms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-export-guide-platform-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 100px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  text-align: center;
}

.data-export-guide-platform-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.data-export-guide-platform-btn.active {
  background: rgba(230, 93, 49, 0.12);
  border-color: #e55e31;
  color: #ffffff;
}

.data-export-guide-platform-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.data-export-guide-platform-icon svg {
  width: 40px;
  height: 40px;
  fill: #e65d31;
}

.data-export-guide-platform-name {
  font-size: 14px;
  font-weight: 600;
}

.data-export-guide-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.data-export-guide-platform-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-export-guide-platform-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.data-export-guide-platform-header-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.data-export-guide-platform-header-icon svg {
  width: 100%;
  height: 100%;
  fill: #e55e31;
}

.data-export-guide-platform-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.data-export-guide-time-estimate {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.data-export-guide-time-estimate svg {
  width: 16px;
  height: 16px;
}

.data-export-guide-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.data-export-guide-step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.data-export-guide-step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 93, 49, 0.2);
  border: 1px solid rgba(230, 93, 49, 0.3);
  border-radius: 8px;
  color: #e65d31;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.data-export-guide-step-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.data-export-guide-step-text a {
  color: #e65d31;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.data-export-guide-step-text a:hover {
  color: #ff7a4d;
}

.data-export-guide-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.data-export-guide-footer-cta {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.data-export-guide-footer-cta .forensai-btn {
  width: 100%;
  justify-content: center;
}

.data-export-guide-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(230, 93, 49, 0.1);
  border: 1px solid rgba(230, 93, 49, 0.3);
  border-radius: 12px;
  color: #e65d31;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.data-export-guide-link-btn:hover {
  background: rgba(230, 93, 49, 0.15);
  border-color: rgba(230, 93, 49, 0.5);
  color: #ff7a4d;
  transform: translateY(-1px);
}

.data-export-guide-link-btn svg {
  width: 18px;
  height: 18px;
}

/* Responsive */
@media (max-width: 768px) {
  .data-export-guide-modal {
    max-width: 100%;
    border-radius: 16px;
  }
  
  .data-export-guide-header {
    padding: 20px;
  }
  
  .data-export-guide-content {
    padding: 20px;
  }
  
  .data-export-guide-platforms {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .data-export-guide-platform-btn {
    padding: 16px 12px;
    min-height: 90px;
    font-size: 13px;
  }
  
  .data-export-guide-platform-icon,
  .data-export-guide-platform-icon svg {
    width: 32px !important;
    height: 32px !important;
  }
  
  .data-export-guide-platform-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .data-export-guide-platform-header-left {
    width: 100%;
  }
  
  .data-export-guide-link-btn {
    width: 100%;
    justify-content: center;
  }
  
  .data-export-help-platforms {
    gap: 16px;
  }
  
  .data-export-help-platform {
    padding: 12px;
  }
  
  .data-export-help-platform svg {
    width: 32px;
    height: 32px;
  }
}

.forensai-platform-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.forensai-platform-logo:hover {
  transform: translateY(-2px);
}

.forensai-platform-logo:hover svg,
.forensai-platform-logo:hover svg path,
.forensai-platform-logo:hover svg rect,
.forensai-platform-logo:hover svg polygon {
  fill: #e55e31;
}

.forensai-platform-logo svg {
  width: 75px;
  height: 75px;
  display: block;
  transition: fill 0.2s ease;
}

.forensai-platform-logo-apple svg {
  width: 88px;
  height: 88px;
}

.forensai-platform-logo-x svg {
  width: 62px;
  height: 62px;
}

/* Steps / How It Works */
.forensai-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 64px;
}

.forensai-step {
  text-align: center;
}

.forensai-step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 auto 24px;
}

.forensai-step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e65d31;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.forensai-step-description {
  font-size: 1rem;
  line-height: 1.3;
  color: #d4d4d8;
}

#how-it-works .forensai-headline {
  text-align: center;
}

#how-it-works .forensai-detect-lead {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

/* Hide step number circles in From Confusion to Clarity in Minutes */
#how-it-works .forensai-step-number {
  display: none;
}

/* How It Works – light section: dark content */
#how-it-works.forensai-section-light .forensai-step-number {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
}

#how-it-works.forensai-section-light .forensai-step-description {
  color: #52525b;
}

#how-it-works.forensai-section-light .forensai-step-cta-note {
  color: #71717a;
}

#how-it-works .forensai-btn-large {
  font-size: 1.25rem;
  padding: 20px 48px;
}

/* Stats */
.forensai-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 64px;
}

.forensai-stat-card {
  background: #f9fafb;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.forensai-stat-number {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.forensai-stat-label {
  font-size: 1rem;
  color: #71717a;
  font-weight: 500;
}

/* Services Grid */
.forensai-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 64px;
}

.forensai-service-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  transition: all 0.3s;
}

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

.forensai-service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  width: 48px;
  height: 48px;
}

.forensai-service-icon svg {
  width: 100%;
  height: 100%;
}

.forensai-service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.forensai-service-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #b0b0b0;
}

/* Summary Card - Lighter/Outlined Style */
.forensai-service-card-summary {
  background: transparent;
  border: 2px dashed rgba(0, 0, 0, 0.15);
  backdrop-filter: none;
}

.forensai-section-light .forensai-service-card-summary {
  border-color: rgba(0, 0, 0, 0.15);
}

.forensai-service-card-summary:hover {
  background: rgba(230, 93, 49, 0.03);
  border-color: rgba(230, 93, 49, 0.3);
  transform: translateY(-4px);
}

.forensai-service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;
}

.forensai-service-card-link:hover {
  text-decoration: none;
}

.forensai-service-card-summary .forensai-service-icon svg {
  stroke: #71717a;
  opacity: 0.7;
}

.forensai-service-card-summary:hover .forensai-service-icon svg {
  stroke: #e65d31;
  opacity: 1;
}

.forensai-service-card-summary .forensai-service-title {
  color: #71717a;
}

.forensai-service-card-summary:hover .forensai-service-title {
  color: #1a1a1a;
}

.forensai-service-card-summary .forensai-service-description {
  color: #71717a;
}

/* What We Detect section - centered, light background */
#what-we-detect .forensai-container {
  text-align: center;
}

#what-we-detect .forensai-section-label {
  justify-content: center;
}

#what-we-detect .forensai-headline {
  text-align: center;
}

.forensai-headline-brand {
  color: #e55e31;
}

/* Landing Give Back: "Justice Shouldn't Cost Thousands" in mid grey */
.landing-page .forensai-section-dark .forensai-headline .forensai-headline-brand {
  color: #a1a1aa;
}

#results-preview .forensai-container > .forensai-headline,
#results-preview .forensai-detect-lead,
#results-preview .forensai-container > .forensai-subheadline {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#results-preview .forensai-subheadline.landing-results-lead {
  max-width: 1100px;
}

#results-preview .forensai-detect-lead {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  color: #000000;
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
  max-width: 100%;
}

#what-we-detect .forensai-detect-lead {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #000000;
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 100%;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#what-we-detect.forensai-section-dark .forensai-detect-lead {
  color: #ffffff;
}

#what-we-detect .forensai-subheadline {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Our Forensic Engine - single column, 4 parts stacked */
.forensai-engine-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.forensai-engine-part {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Wrapper: light grey bg + hero-style rounded corners, extends around intro + dark band */
.forensai-engine-wrapper {
  background: #f4f4f5;
  border-radius: 48px;
  overflow: hidden;
  width: 100%;
  padding-bottom: 48px;
}

/* PART 1: Intro - headline, subheadline, body */
.forensai-engine-intro {
  margin-bottom: 0;
  padding: 48px 64px 32px;
}

#what-we-detect .forensai-engine-intro {
  align-items: center;
  text-align: center;
}

/* Engine intro uses forensai-headline + forensai-headline-brand, forensai-detect-lead (same as results-preview) */
#what-we-detect .forensai-engine-intro .forensai-headline {
  text-align: center;
  margin-bottom: 24px;
}

#what-we-detect .forensai-engine-intro .forensai-detect-lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#what-we-detect .forensai-engine-intro .forensai-subheadline {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Dark band: same treatment as hero (onboarding-e, overlay, rounded corners) */
.forensai-engine-dark-band {
  padding: 64px 24px 72px;
  margin: 48px 24px 0;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.85) 25%, rgba(0, 0, 0, 0.85) 50%, rgba(0, 0, 0, 0.85) 75%, rgba(0, 0, 0, 0.85) 100%),
    url('/assets/img/onboarding-e.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 48px;
  position: relative;
  overflow: hidden;
}

/* Three Steps section: hero-style container (crossbg.svg, rounded corners, no overlay) */
.landing-three-steps-wrap {
  padding: 64px 32px 72px;
  margin: 48px 24px 0;
  background: url('/assets/img/crossbg.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 48px;
  position: relative;
  overflow: hidden;
}

#how-it-works .landing-three-steps-wrap .forensai-headline,
#how-it-works .landing-three-steps-wrap .forensai-detect-lead {
  color: #1a1a1a;
}

#how-it-works .landing-three-steps-wrap .forensai-step-title {
  color: #1a1a1a;
}

#how-it-works .landing-three-steps-wrap .forensai-step-description {
  color: #52525b;
}

#how-it-works .landing-three-steps-wrap .forensai-step-number {
  display: flex !important;
  color: #e55e31;
  border-color: rgba(229, 94, 49, 0.5);
  background: rgba(0, 0, 0, 0.05);
}

/* Justice section: same as Three Steps (crossbg.svg, no overlay, dark text) */
#justice-section {
  padding-top: 40px;
}

/* AI Forensic Chat: reduce gap from What We Detect section */
#ai-forensic-chat {
  padding-top: 40px;
}

/* FAQ: reduce gap from Justice section */
#faq {
  padding-top: 40px;
}

/* What We Detect: reduce gap from How It Works section */
#what-we-detect {
  padding-top: 40px;
}

/* Evidence: reduce gap from Personalized Detection section */
#evidence {
  padding-top: 40px;
}

/* Pricing: reduce gap from Evidence section */
#pricing {
  padding-top: 40px;
}

.landing-justice-wrap {
  padding: 64px 32px 72px;
  margin: 16px 24px 0;
  background: url('/assets/img/crossbg.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 48px;
  position: relative;
  overflow: hidden;
}

#justice-section .landing-justice-wrap .forensai-headline,
#justice-section .landing-justice-wrap .forensai-headline-brand,
#justice-section .landing-justice-wrap .forensai-subheadline {
  color: #1a1a1a;
}

#justice-section .landing-justice-wrap .forensai-access-card-headline {
  color: #1a1a1a;
}

#justice-section .landing-justice-wrap .forensai-access-card-body {
  color: #52525b;
}

#justice-section .landing-justice-wrap .forensai-access-card-divider {
  color: #71717a;
}

#justice-section .landing-justice-wrap .forensai-access-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

#justice-section .landing-justice-wrap .forensai-access-card-ghost {
  border-color: rgba(0, 0, 0, 0.2);
  color: #374151;
}

#justice-section .landing-justice-wrap .forensai-access-card-ghost:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.3);
  color: #1a1a1a;
}

/* Pricing comparison: hero-style container (onboarding-e, rounded corners) */
.forensai-pricing-hero-wrap {
  padding: 64px 32px 72px;
  margin: 48px 24px 0;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.85) 25%, rgba(0, 0, 0, 0.85) 50%, rgba(0, 0, 0, 0.85) 75%, rgba(0, 0, 0, 0.85) 100%),
    url('/assets/img/onboarding-e.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 48px;
  position: relative;
  overflow: hidden;
}

.forensai-pricing-hero-wrap .forensai-headline {
  color: #ffffff;
}
.forensai-pricing-hero-wrap .forensai-subheadline {
  color: rgba(255, 255, 255, 0.95);
}

.forensai-pricing-hero-wrap .forensai-subheadline {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
}

/* PART 2: Flow timeline (Apple-style, no box, icons above line) */
.flow-timeline {
  position: relative;
  padding: 60px 0 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.flow-line {
  position: absolute;
  top: 52px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.15) 10%,
    rgba(255, 255, 255, 0.15) 90%,
    transparent
  );
  z-index: 0;
}

.flow-stages {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.flow-timeline .flow-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.flow-timeline .flow-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.flow-timeline .flow-icon svg {
  width: 32px;
  height: 32px;
  color: inherit;
}

.flow-timeline .flow-icon.flow-icon-lg {
  width: 40px;
  height: 40px;
}

.flow-timeline .flow-icon.flow-icon-lg svg {
  width: 40px;
  height: 40px;
}

.flow-timeline .flow-icon:hover {
  transform: scale(1.1);
  color: #FF6B35;
}

/* Sequential highlight: each dot turns orange for 2s, then next dot (10s cycle for 5 dots) */
@keyframes flow-node-highlight {
  0% { background: rgba(255, 255, 255, 0.3); }
  1% { background: #FF6B35; }
  20% { background: #FF6B35; }
  21%, 100% { background: rgba(255, 255, 255, 0.3); }
}

.flow-timeline .flow-node {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  animation: flow-node-highlight 10s ease-in-out infinite;
}

.flow-timeline .flow-stage:nth-child(1) .flow-node { animation-delay: 0s; }
.flow-timeline .flow-stage:nth-child(2) .flow-node { animation-delay: 1.5s; }
.flow-timeline .flow-stage:nth-child(3) .flow-node { animation-delay: 3s; }
.flow-timeline .flow-stage:nth-child(4) .flow-node { animation-delay: 4.5s; }
.flow-timeline .flow-stage:nth-child(5) .flow-node { animation-delay: 6s; }

.flow-timeline .flow-stage-title {
  font-size: 14px;
  font-weight: 600;
  color: #e65d31;
  text-align: center;
  letter-spacing: -0.01em;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  margin: 0;
}

/* Flow stage pixel labels: larger, brighter orange for readability on dark background */
.flow-timeline .flow-stage-title.pixel-label {
  font-size: 17px;
  color: #FF7849;
}

.flow-timeline .flow-stage-description {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.35;
  text-align: center;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  margin: 0;
}

.flow-timeline .flow-caption {
  margin: 32px 0 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* PART 3: Category pills (inside dark band - outline style) */
.forensai-engine-dark-band .forensai-engine-categories-wrap {
  margin-bottom: 32px;
  text-align: center;
}

.forensai-engine-dark-band .forensai-engine-categories-wrap::after {
  content: '';
  display: block;
  height: 1px;
  width: 80%;
  max-width: 1000px;
  margin: 54px auto 0;
  background: linear-gradient(90deg,
    transparent 0%,
    #FF6B35 10%,
    #FF6B35 90%,
    transparent 100%
  );
}

.forensai-engine-dark-band .forensai-engine-headline-part3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 24px 0;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.forensai-engine-category-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Category pills - outline style (premium, no solid bg) */
.forensai-engine-dark-band .forensai-engine-category-pill,
.forensai-engine-dark-band .category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.95);
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.forensai-engine-dark-band .forensai-engine-category-pill:hover,
.forensai-engine-dark-band .category-pill:hover {
  border-color: #FF6B35;
  background: rgba(255, 107, 53, 0.08);
}

.forensai-engine-dark-band .forensai-engine-category-pill.active,
.forensai-engine-dark-band .category-pill.active {
  border-color: #FF6B35;
  background: rgba(255, 107, 53, 0.12);
  color: #fff;
}

.forensai-engine-pill-emoji {
  font-size: 1.125rem;
  line-height: 1;
}

/* Pill icons below 25+ Forensic Detection Types: vector SVG, brand orange */
#what-we-detect .forensai-engine-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FF6B35;
  line-height: 1;
}
#what-we-detect .forensai-engine-pill-icon svg {
  width: 1.125rem;
  height: 1.125rem;
  color: inherit;
}
/* Ensure all pills in this section use Instrument Sans */
#what-we-detect .forensai-engine-category-pill,
#what-we-detect .forensai-engine-category-pills .category-pill,
#what-we-detect .forensai-engine-detection-pill,
#what-we-detect .detection-pills .detection-pill {
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Geist Pixel: ensure .pixel-label wins in this section (overrides Instrument Sans) */
#what-we-detect .pixel-label,
.forensai-engine-dark-band .pixel-label {
  font-family: 'Geist Mono Pixel', monospace !important;
}

/* PART 4: Detection area (no container, radial glow behind pills) */
.detection-area {
  position: relative;
  padding: 32px 0 24px;
}

.detection-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 107, 53, 0.03), transparent 70%);
  pointer-events: none;
}

.detection-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.forensai-detection-pattern-note {
  max-width: 640px;
  margin: 36px auto 0;
  padding-top: 24px;
  text-align: center;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* Detection pills - smaller, refined (no container) */
.forensai-engine-detection-pill,
.detection-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  transition: all 0.3s ease;
}

.forensai-engine-detection-pill:hover,
.detection-pill:hover {
  /* No strong hover - category pills are the interactive ones */
}

/* Detection pill icon - orange tint */
.forensai-engine-dark-band .forensai-engine-detection-pill .forensai-engine-pill-icon,
.forensai-engine-dark-band .detection-pill .forensai-engine-pill-icon {
  color: rgba(255, 107, 53, 0.8);
}

.forensai-engine-dark-band .forensai-engine-detection-pill .forensai-engine-pill-icon svg,
.forensai-engine-dark-band .detection-pill .forensai-engine-pill-icon svg {
  width: 14px;
  height: 14px;
}

/* When filtered out */
.forensai-engine-detection-pill.dimmed,
.detection-pill.dimmed {
  opacity: 0.25;
  filter: grayscale(100%);
  pointer-events: none;
}

/* When active in filter */
.forensai-engine-detection-pill.highlighted,
.detection-pill.highlighted {
  opacity: 1;
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
}

/* Light section overrides only for intro (not dark band) */
#what-we-detect.forensai-section-light .forensai-engine-intro .forensai-headline,
#what-we-detect.forensai-section-light .forensai-engine-intro .forensai-detect-lead,
#what-we-detect.forensai-section-light .forensai-engine-intro .forensai-subheadline {
  color: #1a1a1a;
}
#what-we-detect.forensai-section-light .forensai-engine-intro .forensai-detect-lead { margin-left: auto; margin-right: auto; }
#what-we-detect.forensai-section-light .forensai-engine-intro .forensai-subheadline { margin-left: auto; margin-right: auto; }
#what-we-detect.forensai-section-light .forensai-engine-headline-part3 {
  color: #1a1a1a;
}
/* Dark band content stays light on text - override if section is light */
#what-we-detect .forensai-engine-dark-band .forensai-engine-headline-part3 {
  color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 767px) {
  .forensai-engine-wrapper {
    border-radius: 32px;
    padding-bottom: 40px;
  }

  .forensai-engine-intro {
    margin-bottom: 0;
    padding: 40px 24px 24px;
  }

  .forensai-engine-intro .forensai-subheadline {
    line-height: 1.4;
  }

  /* Dark band: stay within wrapper to avoid clipping (no negative margin breakout) */
  .forensai-engine-dark-band {
    padding: 28px 20px 32px;
    margin: 40px 16px 0;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    border-radius: 24px;
  }

  /* Hide entire flow timeline on mobile so "25+ Forensic Detection Types" sits near top */
  .flow-timeline {
    display: none;
  }

  .forensai-engine-dark-band .forensai-engine-categories-wrap {
    margin-bottom: 28px;
  }

  .forensai-engine-dark-band .forensai-engine-categories-wrap::after {
    display: none;
  }

  .forensai-engine-dark-band .detection-area {
    display: none;
  }

  .forensai-engine-headline-part3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
  }

  .forensai-engine-category-pills {
    gap: 10px;
  }

  .forensai-engine-dark-band .forensai-engine-category-pill,
  .forensai-engine-dark-band .category-pill {
    padding: 10px 20px;
    font-size: 0.875rem;
    width: fit-content;
  }

  .detection-area {
    padding: 24px 0 8px;
  }

  .detection-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .forensai-engine-detection-pill,
  .detection-pill {
    padding: 6px 12px;
    font-size: 12px;
    width: fit-content;
  }

  .forensai-engine-dark-band .forensai-engine-detection-pill .forensai-engine-pill-icon svg,
  .forensai-engine-dark-band .detection-pill .forensai-engine-pill-icon svg {
    width: 12px;
    height: 12px;
  }
}

#what-we-detect .forensai-detect-card {
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
}

#what-we-detect .forensai-detect-card:hover {
  background: #f5f5f5;
  border-color: rgba(229, 94, 49, 0.25);
}

#what-we-detect .forensai-detect-hero {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

#what-we-detect .forensai-detect-category {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #e55e31;
  margin-bottom: 12px;
}

#what-we-detect .forensai-detect-details {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #52525b;
  margin-bottom: 12px;
}

#what-we-detect .forensai-detect-example {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #71717a;
  font-style: italic;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

@media (max-width: 767px) {
  .forensai-detect-example {
    display: none;
  }
}

.forensai-detect-credibility {
  font-size: 1.155rem;
  font-weight: 700;
  line-height: 1.5;
  color: #93939b;
  text-align: center;
  max-width: 960px;
  margin: 78px auto 0;
  padding: 20px 32px;
  
}

/* Pricing Toggle (Monthly / Commit & Save) */
.forensai-pricing-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 0;
}

.forensai-pricing-toggle {
  display: inline-flex;
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 280px;
  box-sizing: border-box;
}

.forensai-pricing-toggle-option {
  flex: 1;
  position: relative;
  z-index: 1;
  padding: 14px 28px;
  min-height: 48px;
  border: none;
  background: transparent;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: color 0.25s ease;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.forensai-pricing-toggle-option:hover {
  color: rgba(255, 255, 255, 0.85);
}

.forensai-pricing-toggle-option.is-active {
  color: #1a1a1a;
  cursor: default;
}

.forensai-pricing-toggle-slider {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  background: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.forensai-pricing-toggle[data-active="commit"] .forensai-pricing-toggle-slider {
  transform: translateX(100%);
}

/* Pricing toggle on light section (dark content) */
.forensai-section-light .forensai-pricing-toggle {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}

.forensai-section-light .forensai-pricing-toggle-option {
  color: #71717a;
}

.forensai-section-light .forensai-pricing-toggle-option:hover {
  color: #1a1a1a;
}

.forensai-section-light .forensai-pricing-toggle-option.is-active {
  color: #1a1a1a;
}

/* Pricing views (toggle content) */
.forensai-pricing-view {
  margin-top: 48px;
  margin-bottom: 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.forensai-pricing-view.is-visible {
  opacity: 1;
  visibility: visible;
}

.forensai-pricing-commit-note {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 520px;
  margin: 24px auto 0 auto;
  line-height: 1.5;
}

.forensai-pricing-sub {
  font-size: 1rem;
  color: #71717a;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Pricing Cards */
.forensai-pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 0;
  margin-bottom: 0;
}

.forensai-pricing-cards-three {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.forensai-pricing-cards-two {
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.forensai-pricing-cards-commit-three {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.forensai-pricing-card {
  background: #f3f4f6;
  border-radius: 20px;
  padding: 40px 32px;
  border: none;
  box-shadow: none;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}

.forensai-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.forensai-pricing-card-featured {
  background: #fef3ef;
  border: none;
  box-shadow: none;
  z-index: 1;
}

.forensai-pricing-card-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pricing-plan-label-wrap {
  text-align: left;
  margin-bottom: 20px;
  height: 6rem;
}

.pricing-plan-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 4px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.pricing-plan-descriptor {
  font-size: 0.875rem;
  font-weight: 500;
  color: #71717a;
  line-height: 1.35;
  min-height: 2.5rem;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.forensai-pricing-price {
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1;
  color: #1a1a1a;
  margin-top: 5px;
  margin-bottom: 20px;
  letter-spacing: -0.05em;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.forensai-pricing-period {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: #71717a;
  margin-bottom: 24px;
}

.pricing-unlimited-callout {
  display: inline-block;
  background: rgba(229, 94, 49, 0.12);
  color: #e55e31;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.forensai-pricing-savings {
  font-size: 0.875rem;
  color: #22c55e;
  font-weight: 600;
  margin-bottom: 32px;
}

.forensai-pricing-cta + .forensai-pricing-features {
  margin-top: 16px;
}

.forensai-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  flex-grow: 1;
  width: 100%;
  align-self: stretch;
  text-align: left;
}

.forensai-pricing-features li {
  padding: 8px 0;
  padding-left: 28px;
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.25;
  position: relative;
}

.forensai-pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
  font-size: 1.125rem;
}

.pricing-features-free li::before {
  content: '•';
  color: #71717a;
  font-weight: 600;
}

.pricing-feature-coming {
  font-style: italic;
  color: #71717a !important;
  padding-bottom: 4px !important;
}

.forensai-pricing-features:has(.pricing-feature-coming) {
  margin-bottom: 16px;
}

.forensai-pricing-tagline {
  font-size: 0.9375rem;
  color: #71717a;
  font-weight: 600;
  margin: 0 0 20px 0;
  font-style: italic;
  line-height: 1.35;
}

.forensai-pricing-features-sublist-wrap {
  list-style: none;
}

.forensai-pricing-features-sublist-wrap::before {
  display: none;
}

.forensai-pricing-features-sublist {
  list-style: none;
  padding: 4px 0 4px 12px;
  margin: 8px 0 0;
  border-left: 2px solid rgba(34, 197, 94, 0.35);
}

.forensai-pricing-features-sublist li {
  padding: 4px 0;
  padding-left: 12px;
  line-height: 1.35;
  position: relative;
}

.forensai-pricing-features-sublist li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
  font-size: 0.875rem;
}

.forensai-pricing-cta {
  width: 100%;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.forensai-pricing-cta-large {
  padding: 18px 24px;
  font-size: 1.125rem;
}

.forensai-pricing-cta-monthly {
  border: 2px solid #e55e31;
  padding: 20px 24px;
  font-size: 1.125rem;
}

.forensai-pricing-note {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #71717a;
  margin-top: 48px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Pricing tier boxes (Advocacy Partners, Investigators & Legal) */
.pricing-tier-box {
  background: #f3f4f6;
  border: none;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: left;
}

.pricing-tier-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px 0;
}

.pricing-tier-sublabel {
  font-family: 'Geist Mono Pixel', monospace;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.875rem;
  color: #71717a;
  margin: 0 0 12px 0;
}

.pricing-tier-body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #374151;
  margin: 0 0 20px 0;
}

.pricing-tier-cta {
  font-size: 0.9375rem;
}

.pricing-trust-line {
  text-align: center;
  font-size: 0.9375rem;
  color: #71717a;
  margin-top: 48px;
  line-height: 1.5;
}

/* Mobile: Toggle and cards stack */
@media (max-width: 768px) {
  #pricing {
    padding-top: 72px !important;
  }
  .forensai-pricing-toggle-wrap {
    margin-top: 32px;
    padding: 0 16px;
  }

  .forensai-pricing-toggle {
    min-width: 100%;
    max-width: 320px;
  }

  .forensai-pricing-toggle-option {
    padding: 12px 20px;
    min-height: 44px;
    font-size: 0.9375rem;
  }

  .forensai-pricing-cards,
  .forensai-pricing-cards-three,
  .forensai-pricing-cards-two,
  .forensai-pricing-cards-commit-three {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .forensai-pricing-cards-two {
    max-width: none;
  }

  .forensai-pricing-card-featured {
    transform: scale(1);
  }

  .forensai-pricing-card-featured:hover {
    transform: translateY(-4px);
  }

  .forensai-pricing-price {
    font-size: 2.25rem;
  }

  .forensai-pricing-card {
    padding: 32px 24px;
  }

  .forensai-pricing-commit-note {
    padding: 0 16px;
    font-size: 0.8125rem;
  }

  .forensai-pricing-features li {
    line-height: 1.15;
    padding: 4px 12px 4px 28px;
  }

  .forensai-pricing-features-sublist li {
    line-height: 1.2;
    padding: 2px 12px 2px 12px;
  }

  .pricing-tier-cards {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Pricing Table */
.forensai-pricing-table {
  margin-top: 64px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.forensai-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Desktop: dark glass treatment for comparison table in pricing hero (matches mobile cards) */
.forensai-pricing-hero-wrap .forensai-table {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.forensai-pricing-hero-wrap .forensai-table th,
.forensai-pricing-hero-wrap .forensai-table td {
  padding: 16px 32px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.forensai-pricing-hero-wrap .forensai-table th {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 18px 32px;
}

.forensai-pricing-hero-wrap .forensai-table td {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.forensai-pricing-hero-wrap .forensai-table th:nth-child(2),
.forensai-pricing-hero-wrap .forensai-table th:nth-child(3),
.forensai-pricing-hero-wrap .forensai-table-price,
.forensai-pricing-hero-wrap .forensai-table td:nth-child(3) {
  text-align: center !important;
}
.forensai-pricing-hero-wrap .forensai-table th:nth-child(2),
.forensai-pricing-hero-wrap .forensai-table-price {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.forensai-pricing-hero-wrap .forensai-table-price strong {
  font-weight: 600;
  display: block;
  color: rgba(255, 255, 255, 0.95);
}

.forensai-pricing-hero-wrap .forensai-table-summary-row {
  background: rgba(0, 0, 0, 0.5);
  border-top: 2px solid #e55e31;
}

.forensai-pricing-hero-wrap .forensai-table-summary-row td {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  padding-top: 16px;
  padding-bottom: 16px;
}

.forensai-pricing-hero-wrap .forensai-table-summary-row .forensai-table-price strong {
  color: #e55e31;
}

/* Software section header row */
.forensai-pricing-hero-wrap .forensai-table tbody tr:nth-child(7) th {
  background: rgba(0, 0, 0, 0.25);
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
}

.forensai-table th,
.forensai-table td {
  padding: 16px 32px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.forensai-table th {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 1.25rem;
  background: #f9fafb;
  padding: 18px 32px;
}

.forensai-table td {
  color: #71717a;
  font-size: 1rem;
}

/* Price column - center-aligned and bold */
.forensai-table th:nth-child(2),
.forensai-table-price {
  text-align: center !important;
  font-weight: 600;
  color: #1a1a1a;
}

.forensai-table-price strong {
  font-weight: 600;
  display: block;
}

.forensai-table-summary-row .forensai-table-price {
  text-align: center !important;
}

.forensai-table-summary-row .forensai-table-price div {
  text-align: center;
}

.forensai-table-forensai-row .forensai-table-price {
  text-align: center !important;
  color: #ffffff;
}

.forensai-table-forensai-row .forensai-table-price strong {
  color: #ffffff;
  font-weight: 700;
}

/* Summary row styling - orange/amber tint */
.forensai-table-summary-row {
  background: #ffffff;
  border-top: 2px solid #e55e31;
}

.forensai-table-summary-row td {
  font-weight: 600;
  color: #1a1a1a;
  padding-top: 16px;
  padding-bottom: 16px;
}

/* ForensAI row - orange gradient background */
.forensai-table-forensai-row {
  background: linear-gradient(135deg, #e55e31 0%, #ff6b3d 100%);
  border-top: 2px solid rgba(229, 94, 49, 0.3);
}

.forensai-table-forensai-row td {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.125rem;
  padding-top: 16px;
  padding-bottom: 16px;
}

.forensai-table-forensai-row td strong {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.125rem;
}

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

/* Comparison cards: hidden by default, shown only on small mobile */
.forensai-comparison-cards {
  display: none;
}

/* Mobile card grid (max-width: 600px) */
@media (max-width: 600px) {
  /* Ready to Know CTA: text above drop zone, mobile subtext */
  #ready-to-know .forensai-cta-hero-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 48px;
    align-items: center;
  }
  #ready-to-know .forensai-cta-hero-left {
    order: 1 !important;
    text-align: center;
    align-items: center;
    width: 100%;
    max-width: 360px;
  }
  #ready-to-know .forensai-cta-hero-right {
    order: 2 !important;
    align-items: center;
    width: 100%;
  }
  .cta-subtext-desktop {
    display: none;
  }
  .cta-subtext-mobile {
    display: inline;
  }

  .forensai-comparison-wrap .forensai-pricing-table {
    display: none !important;
  }
  .forensai-comparison-cards {
    display: block;
    margin-top: 0;
  }
  .forensai-comparison-cards .forensai-comparison-cards-section-label:first-child {
    display: none;
  }
  /* Expandable: Forensic Firms (mobile only, collapsed by default) */
  .forensai-comparison-firms-expandable {
    margin-top: -20px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
  }
  .forensai-comparison-firms-expandable-trigger {
    font-family: 'Geist Mono Pixel', monospace;
    font-size: 1.35rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.9);
    padding: 22px 20px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .forensai-comparison-firms-expandable-trigger::-webkit-details-marker {
    display: none;
  }
  .forensai-comparison-firms-expandable-trigger::after {
    content: '▼';
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.2s ease;
    flex-shrink: 0;
  }
  .forensai-comparison-firms-expandable[open] .forensai-comparison-firms-expandable-trigger::after {
    transform: rotate(180deg);
  }
  .forensai-comparison-firms-expandable-content {
    padding: 0 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  .forensai-comparison-firms-expandable-content .forensai-comparison-card {
    margin-top: 12px;
  }
  .forensai-comparison-firms-expandable-content .forensai-comparison-card:first-child {
    margin-top: 16px;
  }
  .forensai-comparison-cards-section-label {
    font-family: 'Geist Mono Pixel', monospace;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    margin: 24px 0 12px 0;
    text-align: center;
  }
  .forensai-comparison-cards-section-label:first-child {
    margin-top: 0;
  }
  .forensai-comparison-card {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    margin-bottom: 12px;
    text-align: center;
  }
  .forensai-comparison-card-name {
    width: 100%;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }
  .forensai-comparison-card-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    justify-items: center;
  }
  .forensai-comparison-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    text-align: center;
    line-height: 1.2;
  }
  .forensai-comparison-field-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.2;
  }
  .forensai-comparison-field-value {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.2;
  }
  .forensai-comparison-card-industry {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid #e55e31;
  }
  .forensai-comparison-card-industry .forensai-comparison-card-name {
    font-family: 'Geist Mono Pixel', monospace;
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .forensai-comparison-price-red {
    color: #e55e31 !important;
    font-weight: 600;
  }
  .forensai-comparison-cards-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 20px 0 16px 0;
  }
  .forensai-comparison-card-forensai {
    background: #E8440A;
    padding: 20px 16px;
    color: #ffffff;
  }
  .forensai-comparison-card-forensai .forensai-forensai-table-icon {
    width: 36px;
    height: 36px;
  }
  .forensai-comparison-card-forensai .forensai-comparison-card-name,
  .forensai-comparison-card-forensai .forensai-comparison-card-name strong {
    color: #ffffff;
    font-size: 1.625rem !important;
  }
  .forensai-comparison-card-forensai .forensai-comparison-field-label {
    color: rgba(255, 255, 255, 0.85);
  }
  .forensai-comparison-card-forensai .forensai-comparison-field-value {
    color: #ffffff;
  }
  .forensai-comparison-card-forensai .forensai-logo-forens,
  .forensai-comparison-card-forensai .logo-ai {
    color: #ffffff;
  }
}

/* Mobile: horizontal scroll so columns stay readable; no squeezing */
@media (max-width: 768px) {
  .forensai-pricing-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .forensai-table {
    width: 100%;
    min-width: 360px;
    font-size: 0.875rem;
  }

  .forensai-table th,
  .forensai-table td {
    padding: 10px 12px;
    font-size: 0.875rem;
    line-height: 1.4;
    text-align: center !important;
  }

  .forensai-table th {
    font-size: 0.9375rem;
    padding: 12px 12px;
    white-space: nowrap;
    text-align: center !important;
  }

  /* Firm column: min width so names don't split badly; allow wrap at words */
  .forensai-table th:nth-child(1),
  .forensai-table td:nth-child(1) {
    min-width: 100px;
    text-align: left !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .forensai-table th:nth-child(2) {
    white-space: nowrap;
    text-align: center !important;
  }

  /* Prices: keep on one line so numbers don't break (e.g. $3,000) */
  .forensai-table-price {
    white-space: nowrap;
    min-width: 88px;
  }

  .forensai-table-summary-row td div {
    text-align: center;
  }

  .forensai-table-forensai-row td > div {
    justify-content: center;
  }

  .forensai-table tbody th {
    text-align: center !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .forensai-table-summary-row td {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 0.875rem;
  }

  .forensai-table-summary-row td div {
    font-size: 0.75rem;
    margin-top: 2px;
    line-height: 1.3;
  }

  .forensai-table-forensai-row td {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 0.9375rem;
    line-height: 1.4;
  }

  .forensai-table-forensai-row td strong {
    font-size: 0.8125rem;
  }

  .forensai-table-forensai-row svg,
  .forensai-table-forensai-row .forensai-forensai-table-icon {
    display: none !important;
  }

  .forensai-table-forensai-row svg {
    width: 24px !important;
    height: 24px !important;
  }
}

/* 480px and smaller: same scroll approach, slightly tighter padding */
@media (max-width: 480px) {
  .forensai-table {
    min-width: 320px;
    font-size: 0.8125rem;
  }

  .forensai-table th,
  .forensai-table td {
    padding: 8px 10px;
    font-size: 0.8125rem;
    line-height: 1.35;
  }

  .forensai-table th:nth-child(1),
  .forensai-table td:nth-child(1) {
    min-width: 88px;
  }

  .forensai-table th {
    font-size: 0.875rem;
    padding: 10px 10px;
  }

  .forensai-table-price {
    min-width: 80px;
  }

  .forensai-table tbody th {
    text-align: center !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .forensai-table-summary-row td {
    font-size: 0.8125rem;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .forensai-table-summary-row td div {
    font-size: 0.6875rem;
  }

  .forensai-table-forensai-row td {
    font-size: 0.875rem;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .forensai-table-forensai-row td strong {
    font-size: 0.75rem;
  }

  .forensai-table-forensai-row svg {
    width: 20px !important;
    height: 20px !important;
  }
}

/* Testimonials */
.forensai-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 64px;
}

.forensai-testimonial-card {
  background: #1f1f1f;
  border-radius: 24px;
  padding: 24px 40px 40px;
}

.forensai-testimonial-stars {
  color: #e65d31;
  font-size: 1.25rem;
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.forensai-testimonial-text {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 32px;
  font-weight: 700;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.forensai-testimonial-author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.forensai-testimonial-author-name {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 700;
  margin: 0;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.forensai-testimonial-author-title {
  font-size: 0.9375rem;
  color: #ffffff;
  font-weight: 400;
  margin: 0;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.forensai-testimonial-author {
  font-size: 1rem;
  color: #a1a1aa;
  font-weight: 500;
}

@media (max-width: 768px) {
  .forensai-testimonial-text {
    line-height: 1.35;
  }
  .forensai-testimonial-author-name,
  .forensai-testimonial-author-title {
    line-height: 1.3;
  }
}

/* Results Preview */
.forensai-results-demo-intro {
  font-size: 1.1rem;
  line-height: 1.35rem;
  font-weight: 600;
  color: #52525b;
  text-align: center;
  margin: 0 0 16px 0;
}

.results-demo-intro-break {
  display: none;
}

@media (max-width: 483px) {
  .results-demo-intro-break {
    display: block;
  }
}

.forensai-results-preview {
  margin-top: 24px;
  text-align: center;
  background: none;
}

.forensai-results-preview img {
  background: none;
}

.demo-image-cta {
  display: block;
  width: fit-content;
  margin: -20px auto 0;
  white-space: nowrap;
  padding: 16px 40px !important;
  text-align: center;
}

/* Magnifier lens - desktop only */
@media (min-width: 769px) {
  .magnifier-lens {
    position: fixed;
    width: 325px;
    height: 325px;
    border-radius: 50%;
    background-image: url('/assets/FORENSAI-dashboard-imac-v3.jpg');
    background-repeat: no-repeat;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    display: none;
    z-index: 1000;
  }
  .magnifier-lens.visible {
    display: block;
  }
  .demo-mockup-wrap .demo-mockup-img {
    cursor: crosshair;
  }
}

@media (max-width: 768px) {
  #results-preview,
  #results-preview .forensai-container,
  .forensai-results-preview {
    overflow-x: hidden;
    width: 100%;
  }
  .demo-image-container {
    overflow: visible;
    padding-bottom: 80px;
  }
  .demo-image-container img {
    width: 100%;
    max-width: none;
    display: block;
    transform: scale(1.3);
    transform-origin: center top;
  }
  .demo-image-cta {
    font-size: 15px !important;
    padding: 10px 28px !important;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
}

.forensai-hero-cta {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.forensai-results-demo-embed {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 24px;
  max-width: 1350px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

/* Results preview section: wider container so embed can use full width */
#results-preview .forensai-container {
  max-width: 1420px;
}

.forensai-results-demo-iframe {
  display: block;
  width: 100%;
  height: 560px;
  border: none;
  background: #0f172a;
}

@media (max-width: 768px) {
  .forensai-results-demo-iframe {
    height: 480px;
  }
}

.forensai-results-demo-open {
  display: block;
  margin: 0;
  padding: 14px 20px;
  font-size: 18px;
  font-weight: 800;
  color: #e55e31;
  text-align: center;
  text-decoration: none;
  background: #161616;
  transition: background 0.2s ease, color 0.2s ease;
}

.forensai-results-demo-open:hover {
  background: #d14f26;
  color: #ffffff;
}

.forensai-results-mockup {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Risk Gauge Section (matching dashboard) */
.forensai-mockup-risk-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.forensai-mockup-risk-section .risk-severity-label {
  margin-top: 16px;
}

.forensai-mockup-findings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

/* Finding Cards (matching dashboard style) */
.forensai-mockup-findings .finding-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.forensai-mockup-findings .finding-card-header {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.forensai-mockup-findings .finding-severity-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 10px;
}

.forensai-mockup-findings .finding-severity-icon.severity-high {
  background: rgba(249, 115, 22, 0.15);
  color: #e55e31;
}

.forensai-mockup-findings .finding-severity-icon.severity-medium {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

.forensai-mockup-findings .finding-content-main {
  flex: 1;
  min-width: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.forensai-mockup-findings .finding-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
  width: 100%;
}

.forensai-mockup-findings .finding-badges-group {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.forensai-mockup-findings .finding-title {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  text-align: left;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  flex: 1;
  min-width: 0;
}

.forensai-mockup-findings .finding-category-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  flex-shrink: 0;
}

.forensai-mockup-findings .finding-platform-badge {
  padding: 4px 10px;
  background: rgba(230, 93, 49, 0.15);
  border: 1px solid rgba(230, 93, 49, 0.3);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #e65d31;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  flex-shrink: 0;
}

.forensai-mockup-findings .finding-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  align-items: flex-start;
  width: 100%;
}

.forensai-mockup-findings .finding-natural-description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  text-align: left;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.forensai-mockup-findings .finding-timestamp {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-align: left;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.forensai-results-caption {
  font-size: 1.3rem;
  color: #a1a1aa;
  text-align: center;
  font-style: italic;
  margin-top: 26px;
}
.landing-page .forensai-results-caption {
  font-size: 0.8125rem;
}

/* Locations Visual Mockup */
.forensai-locations-visual {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.forensai-locations-container {
  display: flex;
  gap: 24px;
  align-items: stretch;
  justify-content: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Map Wrapper - 40% on desktop */
.forensai-locations-map-wrapper {
  flex: 0 0 40%;
  min-height: 400px;
}

.forensai-locations-map {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border-radius: 20px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Popup box inside the embedded map only – narrower, real detection style */
.forensai-locations-map-wrapper .landing-map-popup-wrapper {
  margin-bottom: 20px;
}
.forensai-locations-map-wrapper .leaflet-popup-content-wrapper {
  max-width: 240px;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  background: #1a1a1a;
  border: none;
}
.forensai-locations-map-wrapper .leaflet-popup-content {
  margin: 0;
  min-width: 0;
  color: rgba(255, 255, 255, 0.95);
}
.forensai-locations-map-wrapper .landing-map-popup-title {
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 4px;
}
.forensai-locations-map-wrapper .landing-map-popup-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.35;
  margin-bottom: 8px;
}
.forensai-locations-map-wrapper .landing-map-popup-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-variant-numeric: tabular-nums;
}
.forensai-locations-map-wrapper .leaflet-popup-tip {
  margin-top: -1px;
  background: #1a1a1a;
}

/* Dark map: light attribution text */
.forensai-locations-map-wrapper .leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.4) !important;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
}
.forensai-locations-map-wrapper .leaflet-control-attribution a {
  color: rgba(255, 255, 255, 0.85);
}

/* Location List - 40% on desktop */
.forensai-locations-mockup {
  flex: 0 0 40%;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: none;
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
  .forensai-locations-container {
    flex-direction: column;
  }
  
  .forensai-locations-map-wrapper {
    flex: 1 1 auto;
    width: 100%;
    min-height: 300px;
  }
  
  .forensai-locations-map {
    min-height: 300px;
  }
  
  .forensai-locations-mockup {
    flex: 1 1 auto;
    width: 100%;
  }
}

.forensai-location-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  transition: all 0.2s;
}

.forensai-location-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.forensai-location-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.forensai-location-item.safe .forensai-location-icon {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.forensai-location-item.suspect .forensai-location-icon {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.forensai-location-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.forensai-location-name {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
}

.forensai-location-badge {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.forensai-location-badge.safe {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.forensai-location-badge.suspect {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Personalized Detection – dark section: light content */
.forensai-section-dark .forensai-locations-mockup {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.forensai-section-dark .forensai-location-item {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.forensai-section-dark .forensai-location-item:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.forensai-section-dark .forensai-location-name {
  color: rgba(255, 255, 255, 0.95);
}

.forensai-section-dark .forensai-location-badge.safe {
  background: rgba(34, 197, 94, 0.25);
  color: #4ade80;
}

.forensai-section-dark .forensai-location-badge.suspect {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.forensai-section-dark .forensai-location-item.safe .forensai-location-icon {
  color: #4ade80;
}

.forensai-section-dark .forensai-location-item.suspect .forensai-location-icon {
  color: #f87171;
}

.forensai-section-dark .forensai-section-label .forensai-label-text {
  color: rgba(255, 255, 255, 0.8);
}

.forensai-section-dark .forensai-section-label .forensai-label-dot {
  background: #e65d31;
}

/* AI Callout */
.forensai-ai-callout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 64px;
}

.forensai-ai-content {
  max-width: 100%;
}

.forensai-ai-subheadline {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #71717a;
  margin-bottom: 32px;
}

.forensai-ai-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.forensai-ai-feature {
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 1rem;
  line-height: 1.6;
  color: #1a1a1a;
}

.forensai-ai-feature strong {
  color: #e65d31;
  font-weight: 700;
}

.forensai-ai-mockup {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
}

.forensai-chat-mockup {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.forensai-chat-message {
  padding: 16px 20px;
  border-radius: 12px;
  max-width: 90%;
  width: 90%;
  box-sizing: border-box;
}

.forensai-chat-message.user {
  background: #e55e31;
  align-self: flex-end;
  margin-left: auto;
  width: fit-content;
  max-width: 90%;
}

.forensai-chat-message.user .forensai-chat-text {
  color: #ffffff;
  width: auto;
  max-width: 100%;
}

.forensai-chat-message.ai {
  background: transparent;
  align-self: flex-start;
  border: none;
}

.forensai-chat-message.ai .forensai-chat-text {
  line-height: 1.45;
  font-weight: 600;
}

/* AI response fade: white gradient over bottom half to imply more content */
.forensai-chat-text-fade {
  position: relative;
  max-height: 7.5em;
  overflow: hidden;
}
.forensai-chat-text-fade::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent, #ffffff);
  pointer-events: none;
}

.forensai-chat-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #1a1a1a;
  width: 90%;
  max-width: 100%;
  box-sizing: border-box;
}

/* AI Analysis Section - Dark Background */
.forensai-ai-analysis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 24px;
}

.forensai-ai-analysis-content {
  max-width: 100%;
}

.forensai-ai-chat-mockup {
  background: transparent;
  padding: 16px 32px 32px 32px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.forensai-chat-interface {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.forensai-section-dark .forensai-chat-message.user {
  background: #e55e31;
  border: 1px solid rgba(229, 94, 49, 0.5);
}

.forensai-section-dark .forensai-chat-message.ai {
  background: transparent;
  border: none;
}

.forensai-section-dark .forensai-chat-text {
  color: #ffffff;
}

/* Evidence Export Section - White background, dark content */
#evidence.forensai-section-light .forensai-label-text {
  color: #52525b;
}

#evidence.forensai-section-light .forensai-subheadline {
  color: #52525b;
}

.forensai-evidence-export {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 64px;
}

.forensai-evidence-content {
  max-width: 100%;
}

.forensai-evidence-features {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.forensai-evidence-features li {
  font-size: 1rem;
  line-height: 1.6;
  color: #a1a1aa;
  padding-left: 24px;
  position: relative;
}

.forensai-evidence-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #e65d31;
  font-size: 1.5rem;
  line-height: 1;
}

.forensai-evidence-preview {
  display: flex;
  justify-content: center;
  align-items: center;
}

.forensai-pdf-mockup-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.forensai-pdf-mockup-wrapper {
  position: relative;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.forensai-pdf-mockup-back-page {
  position: absolute;
  top: 8px;
  left: 8px;
  right: -8px;
  bottom: -8px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 0;
  transform: rotate(-2deg);
}

.forensai-pdf-mockup {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 32px;
  max-width: 500px;
  width: 100%;
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
  z-index: 1;
}

.forensai-pdf-mockup:hover {
  transform: rotate(0deg) scale(1.02);
}

/* Cover Page */
.forensai-pdf-cover {
  text-align: center;
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 2px solid #e65d31;
}

.forensai-pdf-cover-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.forensai-pdf-cover-subtitle {
  font-size: 1rem;
  color: #71717a;
  margin-bottom: 24px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.forensai-pdf-report-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.forensai-pdf-metadata-box {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 16px;
  margin: 24px 0;
  text-align: left;
}

.forensai-pdf-metadata-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.forensai-pdf-metadata-row:last-child {
  border-bottom: none;
}

.forensai-pdf-metadata-label {
  color: #71717a;
  font-weight: 500;
}

.forensai-pdf-metadata-value {
  color: #1a1a1a;
  font-weight: 600;
}

.forensai-pdf-metadata-row.forensai-pdf-metadata-highlight {
  background: rgba(230, 93, 49, 0.08);
  margin: 0 -16px;
  padding: 12px 16px;
  border-radius: 6px;
  border-top: 2px solid rgba(230, 93, 49, 0.2);
}

.forensai-pdf-metadata-highlight .forensai-pdf-metadata-value {
  color: #e65d31;
  font-weight: 700;
  font-size: 0.9375rem;
}

.forensai-pdf-risk-level-high {
  color: #e55e31 !important;
}

.forensai-pdf-risk-level-critical {
  color: #b91c1c !important;
}

.forensai-pdf-risk-level-medium {
  color: #eab308 !important;
}

.forensai-pdf-risk-level-low {
  color: #71717a !important;
}

.forensai-pdf-cover-footer {
  font-size: 0.8125rem;
  color: #71717a;
  margin-top: 16px;
  font-weight: 500;
  line-height: 1.3;
}

/* Sample Report CTA: crossbg.svg, white bg, dark text, pill CTA */
.sample-report-cta-wrap {
  padding: 64px 32px 72px;
  margin: 0 24px 88px;
  background: #ffffff url('/assets/img/crossbg.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 48px;
  position: relative;
  overflow: hidden;
}

.sample-report-cta-headline {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.sample-report-cta-subheadline {
  font-size: 1.125rem;
  color: #52525b;
  margin-bottom: 32px;
  line-height: 1.6;
}

.sample-report-cta-pill {
  display: inline-block;
  padding: 16px 36px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px !important;
  text-decoration: none;
  background: linear-gradient(180deg, #e55e31 0%, #d14f26 100%);
  color: #ffffff;
  transition: all 0.2s ease;
  border: none;
  box-shadow: 0 4px 12px rgba(229, 94, 49, 0.3);
}

.sample-report-cta-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(229, 94, 49, 0.4);
}

/* Content Sections */
.forensai-pdf-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.forensai-pdf-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.forensai-pdf-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: -10px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.forensai-pdf-section-title.pixel-label {
  font-family: 'Geist Mono Pixel', monospace;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: none;
}

/* Stats Dashboard */
.forensai-pdf-stats-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.forensai-pdf-stat {
  text-align: center;
  padding: 12px;
  background: rgba(230, 93, 49, 0.05);
  border: 1px solid rgba(230, 93, 49, 0.15);
  border-radius: 8px;
}

.forensai-pdf-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e65d31;
  margin-bottom: 4px;
}

.forensai-pdf-stat-label {
  font-size: 0.75rem;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.forensai-pdf-summary-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #71717a;
  margin-top: 8px;
}

/* Table */
.forensai-pdf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-top: 8px;
}

.forensai-pdf-table thead {
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.forensai-pdf-table th {
  padding: 10px 8px;
  text-align: left;
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.forensai-pdf-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: #71717a;
}

.forensai-pdf-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

/* Finding Items */
.forensai-pdf-finding-item {
  padding: 12px;
  background: rgba(0, 0, 0, 0.02);
  border-left: 3px solid #e65d31;
  border-radius: 4px;
  margin-bottom: 12px;
}

.forensai-pdf-finding-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.forensai-pdf-finding-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
  flex: 1;
}

.forensai-pdf-severity-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.forensai-pdf-severity-badge.severity-high {
  background: rgba(249, 115, 22, 0.15);
  color: #e55e31;
}

.forensai-pdf-finding-desc {
  font-size: 0.875rem;
  color: #71717a;
  line-height: 1.5;
  margin-bottom: 6px;
}

.forensai-pdf-finding-meta {
  font-size: 0.75rem;
  color: #a1a1aa;
  font-style: italic;
}

/* Report Sections List */
.forensai-pdf-sections-list {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  margin-top: 8px;
}

.forensai-pdf-section-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 4px 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.1;
  color: #71717a;
}

.forensai-pdf-section-number {
  font-weight: 600;
  color: #1a1a1a;
  min-width: 20px;
}

.forensai-pdf-section-name {
  color: #1a1a1a;
  font-weight: 500;
}

/* Page Footer */
.forensai-pdf-page-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
}

.forensai-pdf-page-number {
  font-size: 0.75rem;
  color: #71717a;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Final CTA section - same treatment as hero (rounded container, onboarding-e, overlay) */
.forensai-cta-hero {
  padding: 56px 0;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.85) 25%, rgba(0, 0, 0, 0.85) 50%, rgba(0, 0, 0, 0.85) 75%, rgba(0, 0, 0, 0.85) 100%),
    url('/assets/img/onboarding-e.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 48px;
  margin: 0 24px 64px 24px;
  position: relative;
  overflow: hidden;
}

.forensai-cta-hero.forensai-section-dark {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.85) 25%, rgba(0, 0, 0, 0.85) 50%, rgba(0, 0, 0, 0.85) 75%, rgba(0, 0, 0, 0.85) 100%),
    url('/assets/img/onboarding-e.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
}

/* CTA hero layout: same grid as hero so upload zone container matches */
.forensai-cta-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.forensai-cta-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.forensai-cta-hero-left .forensai-headline {
  margin-bottom: 0;
}

.forensai-cta-hero-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

/* Ready to Know CTA subtext: desktop vs mobile copy */
.cta-subtext-mobile {
  display: none;
}
.cta-subtext-desktop {
  display: inline;
}

/* Final CTA (legacy; CTA hero now uses hero grid) */
.forensai-final-cta {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.forensai-final-cta-subheadline {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #71717a;
  margin-bottom: 48px;
}

.forensai-final-cta-upload {
  width: 100%;
}

/* FAQ */
.forensai-faq {
  max-width: 900px;
  margin: 64px auto 0;
}

.forensai-faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 0;
}

.forensai-section-dark .forensai-faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.forensai-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 1.375rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}

.forensai-section-dark .forensai-faq-question {
  color: #ffffff;
}

.forensai-faq-question:hover {
  color: #e65d31;
}

.forensai-faq-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: #e65d31;
  min-width: 48px;
}

.forensai-faq-text {
  flex: 1;
}

.forensai-faq-answer {
  padding: 0 0 24px 72px;
  display: none;
}

.forensai-faq-answer p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #71717a;
}

.forensai-section-dark .forensai-faq-answer p {
  color: #d4d4d8;
}

.forensai-faq-item.active .forensai-faq-answer {
  display: block;
}

/* Footer */
.forensai-footer {
  background: #0f0f0f;
  color: #ffffff;
  padding: 56px 0 32px;
}

/* Contact Section */
.forensai-footer-contact {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 120px;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  align-items: center;
}

.forensai-footer-contact-left {
  display: flex;
  align-items: center;
  padding-right: 40px;
}

.forensai-footer-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.forensai-footer-contact-right {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.forensai-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.forensai-form input,
.forensai-form textarea {
  padding: 16px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  color: #ffffff;
  font-size: 1rem;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  width: 100%;
}

.forensai-form input::placeholder,
.forensai-form textarea::placeholder {
  color: #a1a1aa;
}

.forensai-form input:focus,
.forensai-form textarea:focus {
  outline: none;
  border-bottom-color: #ffffff;
}

.forensai-footer-send-cta,
.forensai-contact-cta {
  border-radius: 9999px !important;
}

/* ========== Nominate Page (matches How Forensics Works) ========== */
.nominate-content {
  max-width: 900px;
  margin: 0 auto;
}

/* Form card on light section - same style as forensics-feature */
.forensai-section-light .nominate-form-card {
  background: #f9fafb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 0;
  text-align: left;
}

.nominate-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* Light section form inputs - dark text, gray borders */
.forensai-section-light .nominate-form input,
.forensai-section-light .nominate-form textarea {
  padding: 16px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  color: #1a1a1a;
  font-size: 1rem;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  width: 100%;
}

.forensai-section-light .nominate-form input::placeholder,
.forensai-section-light .nominate-form textarea::placeholder {
  color: #71717a;
}

.forensai-section-light .nominate-form input:focus,
.forensai-section-light .nominate-form textarea:focus {
  outline: none;
  border-bottom-color: #e55e31;
}

.forensai-section-light .nominate-form select {
  padding: 16px 28px 16px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  color: #1a1a1a;
  font-size: 1rem;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  width: 100%;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

.forensai-section-light .nominate-form select:focus {
  outline: none;
  border-bottom-color: #e55e31;
}

.forensai-section-light .nominate-form select option {
  background: #ffffff;
  color: #1a1a1a;
}

.forensai-section-light .nominate-success-message {
  padding: 20px;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 12px;
  color: #166534;
  font-size: 1rem;
  margin-bottom: 24px;
}

.forensai-section-light .nominate-form-error {
  color: #dc2626;
  font-size: 0.9375rem;
  margin: 0;
}

.nominate-submit-btn {
  width: 100%;
  margin-top: 8px;
}

/* FAQ on light section - dark text */
.forensai-faq-light .forensai-faq-question {
  color: #1a1a1a;
}

.forensai-faq-light .forensai-faq-number {
  color: #e55e31;
}

.forensai-faq-light .forensai-faq-answer p {
  color: #71717a;
}

@media (max-width: 768px) {
  .forensai-section-light .nominate-form-card {
    padding: 24px 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .forensics-content.nominate-content {
    padding: 0 16px;
  }
}

/* Footer Main */
.forensai-footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  margin-bottom: 40px;
}

.forensai-footer-col {
  flex-shrink: 0;
}

.forensai-footer-col-logo {
  /* left column */
}

.forensai-footer-col-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.forensai-footer-col-nav .forensai-footer-nav {
  flex-wrap: wrap;
  justify-content: center;
}

.forensai-footer-col-alternatives {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.forensai-footer-col-alternatives .forensai-footer-nav {
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.forensai-footer-alternatives-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.forensai-footer-nav {
  display: flex;
  gap: 32px;
}

.forensai-footer-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.forensai-footer-nav a:hover {
  color: #e65d31;
}

/* Social buttons hidden until accounts are set up */
.forensai-footer-social {
  display: none;
  gap: 16px;
}

.forensai-social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s;
}

.forensai-social-icon:hover {
  border-color: #e55e31;
  color: #e65d31;
  transform: translateY(-2px);
}

.forensai-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a1a1aa;
  font-size: 0.875rem;
}

.forensai-footer-bottom-left {
  color: #ffffff;
}

.forensai-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #ffffff;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.forensai-footer-logo:hover {
  opacity: 0.9;
}

.forensai-footer-logo-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: contain;
}

.forensai-footer-logo-text {
  font-size: 2.5rem;
}

.forensai-footer .forensai-logo-forens,
.forensai-footer .logo-ai {
  color: #ffffff;
}

.forensai-footer-bottom-right {
  display: flex;
  gap: 24px;
}

.forensai-footer-bottom-right a {
  color: #a1a1aa;
  text-decoration: none;
  transition: color 0.2s;
}

.forensai-footer-bottom-right a:hover {
  color: #ffffff;
}

/* Crisis Funnel Pages */
.crisis-funnel-page .forensai-section-dark {
  background: #0b0d10;
}
/* Crisis hero: uses forensai-pricing-hero-wrap (onboarding-e, rounded corners) */
.crisis-hero-wrap {
  text-align: center;
}
/* Someone-hacked variant: stat pills + orange free line */
.crisis-hero-stat-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin-bottom: 20px;
}
.crisis-hero-stat-pill {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 999px;
}
.crisis-hero-stat-pill-sep {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  user-select: none;
}
.crisis-hero-free-line {
  font-size: 1.0625rem;
  color: #e55e31;
  margin: 0 0 24px 0;
  font-weight: 500;
}
.is-my-account-hacked-page main > section:first-of-type {
  padding-top: 16px;
}
.crisis-h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
}
.crisis-sub {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.crisis-cta {
  font-size: 1.125rem !important;
  padding: 18px 40px !important;
  min-width: 260px;
  display: inline-block;
  text-align: center;
}
.crisis-trust {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 24px;
}
.crisis-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.crisis-icon-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #1a1a1a;
}
.forensai-section-dark .crisis-icon-item {
  color: rgba(255, 255, 255, 0.9);
}
.crisis-icon-grid-light .crisis-icon-item {
  color: rgba(255, 255, 255, 0.9);
}
.crisis-icon {
  color: #e55e31;
  font-size: 0.75rem;
}
.crisis-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}
.crisis-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.9);
}
.crisis-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #e55e31;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9375rem;
}
.crisis-cta-wrap {
  margin-top: 24px;
  text-align: center;
}
.crisis-testimonials {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.crisis-quote {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #1a1a1a;
  margin: 0;
  font-style: italic;
}
.crisis-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 0.9375rem;
  color: #71717a;
  font-style: normal;
}
.crisis-quote-light {
  color: rgba(255, 255, 255, 0.95);
  max-width: 560px;
  margin: 0 auto;
}
.crisis-quote-light cite {
  color: rgba(255, 255, 255, 0.6);
}
.crisis-urgency {
  text-align: center;
}
.crisis-urgency-p {
  max-width: 560px;
  margin: 24px auto 32px;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}
.crisis-faq .forensai-faq-item {
  margin-bottom: 16px;
}
.is-my-account-hacked-page .crisis-faq-expanded .forensai-faq-answer {
  display: block;
}
/* Examples wrap: crossbg.svg on white, rounded corners (like landing Three Steps) */
.imah-examples-wrap {
  padding: 40px 32px 48px;
  margin: 48px 24px 0;
  background: url('/assets/img/crossbg.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 48px;
  position: relative;
  overflow: hidden;
}
.imah-examples-wrap .forensai-headline {
  color: #1a1a1a;
}
.imah-examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 767px) {
  .imah-examples-grid {
    grid-template-columns: 1fr;
  }
  .imah-examples-wrap {
    margin-left: 16px;
    margin-right: 16px;
    padding: 32px 20px 40px;
    border-radius: 32px;
  }
}
.imah-example-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 4px solid #e55e31;
}
.imah-example-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.imah-example-icon svg {
  width: 32px;
  height: 32px;
}
.imah-example-icon-apple svg {
  fill: #000000;
}
.imah-example-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.imah-example-finding {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}
.imah-example-label {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 400;
}
.imah-severity-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 6px;
}
.imah-severity-high {
  background: rgba(229, 94, 49, 0.15);
  color: #e55e31;
}
.imah-severity-medium {
  background: rgba(234, 179, 8, 0.2);
  color: #ca8a04;
}
.imah-examples-trust {
  font-size: 0.9375rem;
  color: #52525b;
  margin: 0;
}
.crisis-trust-dark {
  color: rgba(255, 255, 255, 0.7);
}
.imah-export-grid {
  margin-top: 24px;
}
.imah-export-note {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: #71717a;
  margin-bottom: 0;
}
.crisis-links {
  margin-top: 24px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
}
.crisis-links a {
  color: #e55e31;
  text-decoration: underline;
}
.forensai-section-light .crisis-links {
  color: #71717a;
}
.forensai-section-light .crisis-links a {
  color: #e55e31;
}

/* Am I Being Hacked page: centered content, rounded CTAs, Instrument Sans titles */
.am-i-being-hacked-page main .forensai-container {
  text-align: center;
}
.am-i-being-hacked-page .crisis-icon-grid {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}
.am-i-being-hacked-page .crisis-testimonials {
  text-align: center;
}
.am-i-being-hacked-page .forensai-final-cta {
  text-align: center;
}
.am-i-being-hacked-page .forensai-btn {
  border-radius: 9999px;
}
.am-i-being-hacked-page .forensai-hero-tagline,
.am-i-being-hacked-page .forensai-headline,
.am-i-being-hacked-page .forensai-headline-serif,
.am-i-being-hacked-page .forensai-headline-light,
.am-i-being-hacked-page .forensai-footer-headline {
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
}

/* What ForensAI Checks: two columns, orange dot, breathing room */
.am-i-being-hacked-page .am-i-checks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 48px;
  max-width: 560px;
  margin: 32px auto 0;
  text-align: left;
}
.am-i-being-hacked-page .am-i-checks-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #1a1a1a;
  line-height: 1.4;
}
.am-i-being-hacked-page .forensai-section-light .am-i-checks-item {
  color: #1a1a1a;
}
.am-i-being-hacked-page .am-i-checks-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e55e31;
}

/* How It Works: step cards, row on desktop, stack on mobile */
.am-i-being-hacked-page .am-i-steps-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  text-align: center;
}
.am-i-being-hacked-page .am-i-step-card {
  padding: 28px 24px 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.am-i-being-hacked-page .am-i-step-card .crisis-step-num {
  margin: 0;
}
.am-i-being-hacked-page .am-i-step-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  line-height: 1.35;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}
.am-i-being-hacked-page .am-i-step-desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 768px) {
  .am-i-being-hacked-page .am-i-checks-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }
  .am-i-being-hacked-page .am-i-steps-cards {
    grid-template-columns: 1fr;
    margin-top: 32px;
    gap: 20px;
  }
  .am-i-being-hacked-page .am-i-step-card {
    padding: 24px 20px 28px;
  }
}

/* Is My Account Hacked page: same treatments as Am I Being Hacked */
.is-my-account-hacked-page main .forensai-container {
  text-align: center;
}
.is-my-account-hacked-page .crisis-platforms-row {
  justify-content: center;
}
.is-my-account-hacked-page .crisis-platforms-logos {
  margin: 16px auto 24px;
  justify-content: center;
  width: 100%;
  max-width: 720px;
}
.is-my-account-hacked-page .crisis-hero-wrap .forensai-platform-logo svg {
  width: 40px;
  height: 40px;
}
.is-my-account-hacked-page .crisis-hero-wrap .forensai-platform-logo-apple svg,
.is-my-account-hacked-page .crisis-hero-wrap .forensai-platform-logo-x svg {
  fill: #ffffff;
}
/* Relocated platform icons (One Scan section, light background) */
.is-my-account-hacked-page .imah-platform-logos-later {
  margin: 16px auto 24px;
  justify-content: center;
}
.is-my-account-hacked-page .imah-platform-logos-later .forensai-platform-logo svg {
  width: 40px;
  height: 40px;
}
.is-my-account-hacked-page .imah-platform-logos-later .forensai-platform-logo-apple svg,
.is-my-account-hacked-page .imah-platform-logos-later .forensai-platform-logo-x svg {
  fill: #1a1a1a;
}
.is-my-account-hacked-page .forensai-final-cta {
  text-align: center;
}
.is-my-account-hacked-page .forensai-btn {
  border-radius: 9999px;
}
.is-my-account-hacked-page .forensai-hero-tagline,
.is-my-account-hacked-page .forensai-headline,
.is-my-account-hacked-page .forensai-headline-serif,
.is-my-account-hacked-page .forensai-headline-light,
.is-my-account-hacked-page .forensai-footer-headline {
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
}
.is-my-account-hacked-page .forensai-subheadline {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
/* What We Detect: hero-container (onboarding-e, rounded corners) */
.is-my-account-hacked-page .imah-what-we-detect-wrap {
  text-align: center;
}
@media (max-width: 768px) {
  .is-my-account-hacked-page .imah-what-we-detect-wrap {
    margin-left: 16px;
    margin-right: 16px;
    padding: 32px 20px 40px;
    border-radius: 32px;
  }
}
/* What We Detect: pills (match landing) */
.is-my-account-hacked-page .imah-detection-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.is-my-account-hacked-page .imah-detection-pills .detection-pill .forensai-engine-pill-icon {
  color: rgba(255, 107, 53, 0.8);
}
.is-my-account-hacked-page .imah-detection-pills .detection-pill .forensai-engine-pill-icon svg {
  width: 14px;
  height: 14px;
}
@media (max-width: 768px) {
  .is-my-account-hacked-page .imah-detection-pills {
    margin-top: 24px;
    gap: 10px;
  }
}

/* Cost calculator: two-column layout (match cost-of-digital-forensics) */
.is-my-account-hacked-page .cost-calculator.cost-calc-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.is-my-account-hacked-page .cost-calc-right {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.is-my-account-hacked-page .cost-calc-left .cost-page-quiz-field:has(+ .cost-calc-unlimited-note) {
  margin-bottom: 8px;
}
.is-my-account-hacked-page .cost-calc-left .cost-calc-unlimited-note {
  margin: 0;
  font-size: 0.9375rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 768px) {
  .is-my-account-hacked-page .cost-calculator.cost-calc-two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .is-my-account-hacked-page .cost-pricing-calc-inline .cost-calc-left {
    text-align: center;
  }
  .is-my-account-hacked-page .cost-pricing-calc-inline .cost-page-quiz-label {
    text-align: center;
  }
  .is-my-account-hacked-page .cost-pricing-calc-inline .cost-page-quiz-select {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

.crisis-platforms-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 32px;
}
.crisis-logo {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.crisis-examples {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.crisis-example {
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  font-size: 1rem;
  color: #1a1a1a;
}
.crisis-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.crisis-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #1a1a1a;
}
.crisis-check-item::before {
  content: "✓";
  color: #e55e31;
  font-weight: 700;
}
.crisis-phone-mockup {
  width: 160px;
  height: 280px;
  margin: 24px auto;
  background: #1a1a1a;
  border-radius: 24px;
  padding: 12px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}
.crisis-phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 20px;
}
.crisis-phone-app {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.crisis-phone-status {
  font-size: 0.8125rem;
  opacity: 0.9;
}
.crisis-app-badge {
  display: inline-block;
  margin: 16px 0 24px;
}
.crisis-app-badge img {
  display: block;
}
.crisis-app-badge-inline,
.crisis-app-badge-final {
  margin: 0 0 16px;
}
.crisis-phone-hero .crisis-cta {
  margin-top: 8px;
}
@media (max-width: 768px) {
  .is-my-account-hacked-page .forensai-section:has(.crisis-hero-wrap) {
    padding-top: 12px;
    padding-bottom: 16px;
  }
  .is-my-account-hacked-page .crisis-hero-wrap {
    margin-left: 16px;
    margin-right: 16px;
    padding: 48px 20px 56px;
    border-radius: 32px;
  }
  .crisis-cta { min-width: 100%; padding: 18px 24px !important; }
  .crisis-steps { flex-direction: column; align-items: center; }
  .crisis-platforms-row { gap: 8px; }
  .crisis-logo { width: 40px; height: 40px; font-size: 1rem; }
  .crisis-phone-mockup { width: 140px; height: 250px; margin: 20px auto; }
}

/* Phone Hacked Quiz Funnel (/phone-hacked) */
.phone-hacked-page .forensai-header { position: absolute; background: transparent; }
.phone-hacked-page .forensai-header-dark .forensai-logo { color: #fff; }
.phone-hacked-page .forensai-header-dark .forensai-nav-link { color: rgba(255,255,255,0.7); }
.phone-hacked-page .forensai-header-dark .forensai-nav-link:hover { color: rgba(255,255,255,0.95); }
.phone-hacked-hero { position: relative; overflow: hidden; }
.phone-hacked-hero-bg {
  position: absolute; inset: 0; opacity: 0.4;
  background-image:
    linear-gradient(rgba(229, 94, 49, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 94, 49, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.phone-hacked-h1 { font-size: clamp(1.5rem, 4vw, 2.5rem) !important; max-width: 700px; margin-left: auto; margin-right: auto; }
.phone-hacked-sub { margin-bottom: 28px !important; }
.phone-hacked-trust { font-size: 0.875rem; color: rgba(255,255,255,0.65); margin-top: 20px; }
.phone-hacked-trust-item { display: block; }
.phone-hacked-trust-check { color: #e55e31; }
.phone-hacked-progress-wrap { margin-bottom: 32px; }
.phone-hacked-progress-bar { height: 6px; background: rgba(255,255,255,0.15); border-radius: 3px; overflow: hidden; }
.phone-hacked-progress-fill { height: 100%; background: linear-gradient(90deg, #e55e31, #f97316); border-radius: 3px; transition: width 0.4s ease; }
.phone-hacked-progress-text { font-size: 0.9375rem; color: rgba(255,255,255,0.8); margin-top: 8px; }
.phone-hacked-questions { display: flex; flex-direction: column; gap: 24px; }
.phone-hacked-question {
  opacity: 0; max-height: 0; overflow: hidden; transform: translateY(12px);
  transition: opacity 0.4s ease, max-height 0.5s ease, transform 0.4s ease;
}
.phone-hacked-question-visible {
  opacity: 1; max-height: 500px; transform: translateY(0);
}
.phone-hacked-question-answered {
  opacity: 0.5; pointer-events: none;
}
.phone-hacked-question-answered .phone-hacked-option { cursor: default; }
.phone-hacked-question-title { font-size: 1.25rem; margin-bottom: 16px; color: rgba(255,255,255,0.95); text-align: left; }
.phone-hacked-options { display: flex; flex-direction: column; gap: 6px; }
.phone-hacked-option {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px; cursor: pointer; padding: 8px 14px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; transition: background 0.2s, border-color 0.2s;
  min-height: 40px; text-align: left;
}
.phone-hacked-option:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); }
.phone-hacked-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.phone-hacked-checkbox-custom {
  width: 22px; height: 22px; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.4); border-radius: 6px;
  background: transparent; transition: all 0.2s;
}
.phone-hacked-option input:checked + .phone-hacked-checkbox-custom {
  background: #e55e31; border-color: #e55e31;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}
.phone-hacked-option-text { font-size: 1rem; color: rgba(255,255,255,0.9); text-align: left; flex: 1; }
.phone-hacked-results-section { padding-top: 48px; padding-bottom: 48px; }
.phone-hacked-results-inner { max-width: 640px; margin: 0 auto; text-align: left; }
.phone-hacked-results-visible .phone-hacked-results-inner {
  animation: phone-hacked-fade-slide 0.6s ease forwards;
}
@keyframes phone-hacked-fade-slide {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.phone-hacked-results-gauge-wrap { text-align: center; margin-bottom: 32px; }
.phone-hacked-results-gauge-wrap.risk-gauge-wrapper { gap: 12px; }
/* Quiz results: gauge value and risk label use pixel font and match dashboard */
.phone-hacked-page .risk-gauge-value,
.phone-hacked-page .risk-severity-label,
.forensics-cost-check-page .risk-gauge-value,
.forensics-cost-check-page .risk-severity-label {
  font-family: 'Geist Mono Pixel', 'Geist Pixel', monospace !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
}
.phone-hacked-page .risk-severity-label,
.forensics-cost-check-page .risk-severity-label {
  text-transform: uppercase;
}
.phone-hacked-page .risk-severity-label {
  font-size: 1.25rem;
  padding: 12px 22px;
}
.phone-hacked-results-heading { font-size: 1.5rem; margin-bottom: 20px; color: #fff; text-align: center; }
.phone-hacked-results-body { margin-bottom: 28px; }
.phone-hacked-results-body p, .phone-hacked-results-body li { margin-bottom: 12px; color: rgba(255,255,255,0.9); line-height: 1.6; }
.phone-hacked-results-body ul, .phone-hacked-results-body ol { padding-left: 24px; margin-bottom: 16px; }
.phone-hacked-warning-list { list-style: none; padding-left: 0; }
.phone-hacked-cta-wrap { margin-bottom: 16px; }
.phone-hacked-cta-wrap .forensai-btn { margin: 0 8px 12px 0; }
.phone-hacked-cta-note { font-size: 0.875rem; color: rgba(255,255,255,0.65); margin-top: 12px; }
.phone-hacked-direct-upload-wrap { margin-top: 12px; margin-bottom: 0; }
.phone-hacked-direct-upload-link { font-size: 0.875rem; color: rgba(255,255,255,0.7); text-decoration: none; }
.phone-hacked-direct-upload-link:hover { color: #e55e31; text-decoration: underline; }
.phone-hacked-urgency-badge { display: inline-block; margin-bottom: 20px; padding: 10px 20px; background: rgba(249,115,22,0.3); border-radius: 8px; font-weight: 600; color: #f97316; }
.phone-hacked-pricing { font-size: 0.9375rem; color: rgba(255,255,255,0.8); margin-top: 12px; }
.phone-hacked-critical-pricing { font-size: 1rem; font-weight: 700; color: #f97316; margin-top: 12px; }
.phone-hacked-support { font-size: 0.9375rem; margin-top: 20px; }
.phone-hacked-support a { color: #e55e31; text-decoration: underline; }
.phone-hacked-email-capture, .phone-hacked-email-success { margin-top: 24px; padding: 24px; background: rgba(255,255,255,0.06); border-radius: 12px; }
.phone-hacked-email-form { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.phone-hacked-email-form input { flex: 1; min-width: 200px; padding: 14px 18px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.3); color: #fff; font-size: 1rem; }
.phone-hacked-testimonial-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.phone-hacked-testimonial-card {
  padding: 24px; background: rgba(255,255,255,0.06); border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
}
.phone-hacked-stars { color: #eab308; font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px; }
.phone-hacked-testimonial-text { font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,0.9); margin-bottom: 12px; }
.phone-hacked-testimonial-card cite { font-size: 0.875rem; color: rgba(255,255,255,0.6); font-style: normal; }
.phone-hacked-final-cta { text-align: center; }
.phone-hacked-option input[type="radio"] + .phone-hacked-checkbox-custom { border-radius: 50%; }
.phone-hacked-option input[type="radio"]:checked + .phone-hacked-checkbox-custom {
  background: #e55e31; border-color: #e55e31;
  background-image: none; box-shadow: inset 0 0 0 5px #0b0d10;
}
.forensics-cost-comparison { margin: 24px 0 32px; overflow-x: auto; }
.forensics-cost-table {
  width: 100%; border-collapse: collapse; font-size: 1rem;
}
.forensics-cost-table th, .forensics-cost-table td {
  padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.15);
}
.forensics-cost-table th { color: rgba(255,255,255,0.9); font-weight: 600; }
.forensics-cost-table td { color: rgba(255,255,255,0.85); }
.forensics-cost-table tbody tr:last-child td { border-bottom: none; }
.forensics-cost-table td:first-child { color: rgba(255,255,255,0.7); }
@media (max-width: 768px) {
  .phone-hacked-testimonial-cards { grid-template-columns: 1fr; }
  .phone-hacked-question-visible { max-height: 800px; }
  .phone-hacked-email-form { flex-direction: column; }
  .phone-hacked-email-form input { min-width: 100%; }
  .forensics-cost-table th, .forensics-cost-table td { padding: 10px 12px; font-size: 0.9375rem; }
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s;
}

.loading-content {
  text-align: center;
}

.loading-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.75rem;
  display: block;
}

.loading-icon path,
.loading-icon .cls-1 {
  fill: #e65d31 !important; /* Brand orange */
}

.loading-content .logo {
  font-size: 3.25rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 2rem;
  letter-spacing: -0.04em;
}

.loading-content .logo .loading-logo-forens {
  font-family: 'Geist Pixel', 'Geist Mono Pixel', 'GeistMonoPixel', ui-monospace, monospace !important;
  font-weight: 900 !important;
}

.loading-spinner {
  width: 56px;
  height: 56px;
  border: 3px solid rgba(230, 93, 49, 0.2);
  border-top-color: #e65d31;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

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

/* Insights Page Styles */
.forensai-insights-hero {
  padding: 56px 0;
  background: 
    linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.85) 25%, rgba(0, 0, 0, 0.85) 50%, rgba(0, 0, 0, 0.85) 75%, rgba(0, 0, 0, 0.85) 100%),
    url('/assets/img/onboarding-e.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 48px;
  margin: 0 24px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}


.forensai-insights-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.forensai-insights-hero .forensai-section-label {
  margin-bottom: 24px;
}

.forensai-insights-hero .forensai-label-text {
  color: #a1a1aa;
}

.forensai-insights-hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: #ffffff;
  margin: 0 0 24px 0;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.forensai-insights-hero-description {
  font-size: 1.5rem;
  line-height: 1.7;
  color: #d4d4d8;
  margin: 0;
  max-width: 600px;
}

/* How Forensics Works Hero Styles */
.forensai-forensics-hero {
  padding: 56px 0;
  background: 
    linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.85) 25%, rgba(0, 0, 0, 0.85) 50%, rgba(0, 0, 0, 0.85) 75%, rgba(0, 0, 0, 0.85) 100%),
    url('/assets/img/onboarding-e.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 48px;
  margin: 0 24px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}


.forensai-forensics-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.forensai-forensics-hero .forensai-section-label {
  margin-bottom: 24px;
}

.forensai-forensics-hero .forensai-label-text {
  color: #a1a1aa;
}

.forensai-forensics-hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: #ffffff;
  margin: 0 0 24px 0;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.forensai-forensics-hero-description {
  font-size: 1.5rem;
  line-height: 1.7;
  color: #d4d4d8;
  margin: 0;
  max-width: 600px;
}

/* Post Hero Styles */
.forensai-post-hero {
  padding: 56px 0;
  background: 
    linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.85) 25%, rgba(0, 0, 0, 0.85) 50%, rgba(0, 0, 0, 0.85) 75%, rgba(0, 0, 0, 0.85) 100%),
    url('/assets/img/onboarding-e.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 48px;
  margin: 0 24px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}


.forensai-post-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.forensai-post-hero .forensai-section-label {
  margin-bottom: 16px;
}

.forensai-post-hero .forensai-label-text {
  color: #a1a1aa;
}

.forensai-post-hero-meta {
  margin-bottom: 24px;
}

.forensai-post-read-time {
  font-size: 1rem;
  color: #a1a1aa;
  font-weight: 500;
}

.forensai-post-hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: #ffffff;
  margin: 0 0 24px 0;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.forensai-post-hero-author {
  font-size: 1.125rem;
  color: #d4d4d8;
  margin: 0;
  font-weight: 500;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
  margin-top: 64px;
}

.insights-post-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s ease;
}

.insights-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: rgba(230, 93, 49, 0.2);
}

.insights-post-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.875rem;
}

.insights-post-category {
  color: #e65d31;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.insights-post-read-time {
  color: #71717a;
}

.insights-post-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.insights-post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.insights-post-title a:hover {
  color: #e65d31;
}

.insights-post-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #71717a;
  margin-bottom: 20px;
}

.insights-post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
  color: #71717a;
}

.insights-post-author {
  font-weight: 500;
}

/* Story Page Styles */
.story-content {
  max-width: 800px;
  margin: 0 auto;
}

.story-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #1a1a1a;
}

.story-signature {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* How Forensics Works Page Styles */
.forensics-content {
  max-width: 900px;
  margin: 0 auto;
}

.forensics-intro {
  margin-bottom: 64px;
}

.forensics-section {
  margin-bottom: 64px;
}

.forensics-heading {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.forensics-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 40px;
}

.forensics-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.forensics-step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e65d31;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.forensics-step-content {
  flex: 1;
}

.forensics-step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.forensics-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.forensics-feature {
  padding: 24px;
  background: #f9fafb;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.forensics-feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Affiliate page */
.affiliate-commission-block {
  margin-bottom: 64px;
}

.affiliate-lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #1a1a1a;
  margin-bottom: 0;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.affiliate-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.affiliate-stat {
  padding: 28px 24px;
  background: #f9fafb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  text-align: center;
}

.affiliate-stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #e65d31;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.affiliate-stat-label {
  font-size: 0.9375rem;
  color: #71717a;
  line-height: 1.4;
}

.affiliate-audience-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.affiliate-audience-list li {
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 1.125rem;
  line-height: 1.7;
  color: #1a1a1a;
}

.affiliate-audience-list li:last-child {
  border-bottom: none;
}

.affiliate-audience-list strong {
  display: block;
  margin-bottom: 6px;
  color: #1a1a1a;
  font-size: 1.125rem;
}

.affiliate-cta-block .forensai-btn {
  display: inline-block;
}

/* Refer hero form (glassmorphism) */
.refer-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  width: 100%;
}

.refer-hero-copy {
  position: relative;
  z-index: 1;
}

.refer-hero-form-col {
  position: relative;
  z-index: 1;
}

.refer-hero-form-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.refer-hero-form-wrapper {
  margin-top: 0;
}

#refer-success-state.refer-hero-form-card {
  margin-top: 24px;
}

.refer-hero-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.refer-hero-form input,
.refer-hero-form select {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  transition: border-color 0.2s, background 0.2s;
}

.refer-hero-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.refer-hero-form select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.refer-hero-form select option {
  background: #1a1a1a;
  color: #fff;
}

.refer-hero-form input:focus,
.refer-hero-form select:focus {
  outline: none;
  border-color: #e65d31;
  background: rgba(255, 255, 255, 0.08);
}

.refer-form-error {
  color: #fca5a5;
  font-size: 0.9375rem;
  margin: 0 0 4px 0;
}

.refer-hero-submit {
  margin-top: 8px;
  width: 100%;
  padding: 18px 24px;
  font-size: 1.0625rem;
  font-weight: 700;
}

.refer-success-state {
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 28px 36px;
}

.refer-success-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.refer-success-link-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.refer-link-input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  font-size: 0.9375rem;
  font-family: ui-monospace, monospace;
}

.refer-copy-btn {
  flex-shrink: 0;
  padding: 14px 24px;
}

.refer-copy-btn-copied {
  background: #22c55e !important;
  border-color: #22c55e !important;
}

.refer-success-instructions {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.refer-success-message {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

/* Two ways to earn */
.refer-two-ways-intro {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #71717a;
  margin-bottom: 32px;
}

.refer-platform-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.refer-platform-card {
  padding: 28px 24px;
  background: #f9fafb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
}

.refer-platform-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.refer-platform-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: #52525b;
  margin: 0;
}

/* How it works list */
.refer-how-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.refer-how-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 1.125rem;
  line-height: 1.7;
  color: #1a1a1a;
}

.refer-how-list li:last-child {
  border-bottom: none;
}

.refer-how-list strong {
  display: block;
  margin-bottom: 4px;
  color: #1a1a1a;
}

/* Dashboard mockup */
.refer-dashboard-mockup {
  margin-top: 32px;
  max-width: 380px;
}

.refer-dashboard-mockup-inner {
  background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.refer-dashboard-mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.refer-dashboard-mockup-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.refer-dashboard-mockup-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.refer-dashboard-mockup-body {
  padding: 20px;
}

.refer-dashboard-mockup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
}

.refer-dashboard-mockup-row:last-child {
  border-bottom: none;
}

.refer-dashboard-mockup-value {
  font-weight: 700;
  color: #e65d31;
}

/* Resources */
.refer-resources-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #1a1a1a;
}

.refer-resources-list li {
  padding: 14px 0 14px 32px;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.refer-resources-list li:last-child {
  border-bottom: none;
}

.refer-resources-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22px;
  width: 8px;
  height: 8px;
  background: #e65d31;
  border-radius: 50%;
}

/* Example earnings */
.refer-earnings-note {
  font-size: 0.9375rem;
  color: #71717a;
  margin-bottom: 24px;
}

.refer-earnings-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.refer-earnings-card {
  padding: 28px 24px;
  background: #f9fafb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  text-align: center;
}

.refer-earnings-card-featured {
  background: linear-gradient(145deg, #fff5f2 0%, #fff 100%);
  border-color: rgba(230, 93, 49, 0.25);
  box-shadow: 0 4px 20px rgba(230, 93, 49, 0.08);
}

.refer-earnings-card-value {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.refer-earnings-card-period {
  font-size: 1.125rem;
  color: #71717a;
  margin-left: 2px;
}

.refer-earnings-card-desc {
  display: block;
  font-size: 0.9375rem;
  color: #71717a;
  margin-top: 8px;
}

.refer-earnings-footnote {
  font-size: 14px;
  color: #94a3b8;
  margin-top: 16px;
  margin-bottom: 0;
  text-align: left;
}

/* Refer FAQ (expanded, not accordion) */
.refer-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.refer-faq-item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.refer-faq-item:last-child {
  border-bottom: none;
}

.refer-faq-q {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.refer-faq-a {
  font-size: 1rem;
  line-height: 1.7;
  color: #52525b;
  margin: 0;
}

@media (max-width: 768px) {
  .refer-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .refer-hero-copy {
    order: 1;
  }
  .refer-hero-form-col {
    order: 2;
  }
  .refer-hero-form-card {
    padding: 24px 20px;
  }
  .refer-success-link-row {
    flex-direction: column;
    align-items: stretch;
  }
  .refer-copy-btn {
    width: 100%;
  }
  .refer-platform-cards {
    grid-template-columns: 1fr;
  }
  .refer-earnings-cards {
    grid-template-columns: 1fr;
  }
}

/* Attorney Partnership page */
.attorney-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.attorney-benefit-card {
  padding: 28px 24px;
  background: #f9fafb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
}

.attorney-benefit-card-featured {
  background: linear-gradient(145deg, #fff5f2 0%, #fff 100%);
  border-color: rgba(230, 93, 49, 0.25);
}

.attorney-benefit-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.attorney-pricing-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.attorney-tier-card {
  padding: 28px 24px;
  background: #f9fafb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  position: relative;
}

.attorney-tier-card-popular {
  background: linear-gradient(145deg, #fff5f2 0%, #fff 100%);
  border-color: rgba(230, 93, 49, 0.3);
}

.attorney-tier-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #e65d31;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.attorney-tier-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.attorney-tier-list {
  margin-bottom: 16px;
}

.attorney-tier-perfect {
  font-size: 0.9375rem;
  color: #52525b;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.attorney-threat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 24px;
  margin-top: 24px;
}

.attorney-threat-item {
  font-size: 1rem;
  line-height: 1.6;
  color: #1a1a1a;
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.attorney-sample-filing {
  margin: 24px 0;
  padding: 24px 28px;
  background: #f9fafb;
  border-left: 4px solid #e65d31;
  border-radius: 0 12px 12px 0;
  font-size: 1rem;
  line-height: 1.8;
  color: #1a1a1a;
  font-style: italic;
}

.attorney-testimonials {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 24px;
}

.attorney-testimonial {
  padding: 28px 32px;
  background: #f9fafb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  margin: 0;
}

.attorney-testimonial p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.attorney-testimonial cite {
  font-size: 0.9375rem;
  color: #71717a;
  font-style: normal;
}

.attorney-math-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.attorney-math-card {
  padding: 28px 24px;
  background: #f9fafb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
}

.attorney-math-card-featured {
  background: linear-gradient(145deg, #fff5f2 0%, #fff 100%);
  border-color: rgba(230, 93, 49, 0.25);
}

.attorney-math-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.attorney-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 768px) {
  .attorney-benefits-grid,
  .attorney-pricing-tiers,
  .attorney-math-grid {
    grid-template-columns: 1fr;
  }
  .attorney-cta-buttons {
    flex-direction: column;
  }
  .attorney-cta-buttons .forensai-btn {
    width: 100%;
    margin-left: 0 !important;
  }
}

.forensics-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.forensics-list li {
  padding-left: 0;
  position: relative;
}

.forensics-cta {
  margin-top: 48px;
  text-align: center;
}

/* Post Page Styles */
.post-article {
  padding: 48px 0;
}

.post-back-link-container {
  padding: 40px 0 0;
  margin: 0 24px;
}

.post-back-link {
  display: inline-block;
  color: #e65d31;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.post-back-link:hover {
  color: #d45a1f;
}

.post-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.post-category {
  color: #e65d31;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-read-time,
.post-date {
  color: #71717a;
}

.post-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.post-author {
  font-size: 1rem;
  color: #71717a;
  margin-bottom: 48px;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #1a1a1a;
}

.post-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 48px;
  margin-bottom: 24px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.post-content ul,
.post-content ol {
  margin: 24px 0;
  padding-left: 32px;
}

.post-content li {
  margin-bottom: 12px;
}

.post-content a {
  color: #e65d31;
  text-decoration: underline;
}

.post-content a:hover {
  color: #d45a1f;
}

/* Related Posts */
.post-related {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.post-related-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: #000;
}

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

.post-related-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.post-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.post-related-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 12px;
}

.post-related-title-small {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
  color: #000;
}

.post-related-read-time {
  font-size: 0.875rem;
  color: #666;
  margin-top: auto;
}

/* Reading Progress Indicator */
.post-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #e55e31 0%, #d45a1f 100%);
  z-index: 10000;
  transition: width 0.1s ease;
}

/* CTA above Share (insight article bottom) */
.post-cta-scan {
  margin-top: 48px;
  margin-bottom: 32px;
  text-align: center;
}

.post-cta-scan .forensai-btn {
  display: inline-flex;
}

/* Social Share Buttons */
.post-share {
  margin-top: 0;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.post-share-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #71717a;
}

.post-share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.post-share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  border: none;
  font-family: inherit;
}

.post-share-button:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.post-share-button svg {
  flex-shrink: 0;
}

.share-copied {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8125rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.share-copied.show {
  opacity: 1;
}

.share-copied::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #1a1a1a;
}

@media (max-width: 1024px) {
  .post-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .post-related {
    margin-top: 60px;
    padding-top: 40px;
  }
  
  .post-related-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }
  
  .post-related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .post-related-card {
    padding: 20px;
  }
}

/* 404 Page Styles */
.error-404-title {
  font-size: 8rem;
  font-weight: 800;
  color: #e65d31;
  line-height: 1;
  margin-bottom: 24px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.error-404-headline {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.error-404-description {
  font-size: 1.25rem;
  color: #71717a;
  margin-bottom: 48px;
}

.error-404-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.forensai-btn-secondary {
  background: transparent;
  border: 1px solid #e65d31;
  color: #e65d31;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  letter-spacing: -0.01em;
}

.forensai-btn-secondary:hover {
  background: rgba(230, 93, 49, 0.1);
  border-color: #e55e31;
  color: #e65d31;
}

/* Legal Pages Styles */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.legal-updated {
  font-size: 0.875rem;
  color: #71717a;
  margin-bottom: 48px;
}

.legal-section {
  margin-bottom: 48px;
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.legal-section p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #1a1a1a;
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
  .forensai-hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 48px;
    display: flex;
    flex-direction: column;
  }
  
  .forensai-hero-title-block {
    order: 1;
    grid-column: unset;
    grid-row: unset;
  }
  
  .forensai-hero-drop-block {
    order: 2;
    grid-column: unset;
    grid-row: unset;
  }
  
  .forensai-hero-cta-block {
    order: 3;
    grid-column: unset;
    grid-row: unset;
  }
  
  .forensai-hero-testimonial-block {
    order: 4;
    grid-column: unset;
    grid-row: unset;
  }
  
  .forensai-hero-drop-block,
  .forensai-hero-cta-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .forensai-hero-drop-block .forensai-upload-zone {
    width: 100%;
    max-width: 420px;
  }
  
  .forensai-hero-cta-block .forensai-btn {
    width: 100%;
    max-width: 320px;
  }
  
  .forensai-hero-left {
    order: unset;
  }
  
  .forensai-hero-right {
    order: unset;
  }

  /* Ready to Know CTA: text first, drop zone second (scoped by ID so it always wins) */
  #ready-to-know .forensai-cta-hero-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 48px;
    align-items: center;
  }
  #ready-to-know .forensai-cta-hero-left {
    order: 1 !important;
    text-align: center;
    align-items: center;
    width: 100%;
    max-width: 360px;
  }
  #ready-to-know .forensai-cta-hero-right {
    order: 2 !important;
    align-items: center;
    width: 100%;
  }
  
  .forensai-ai-callout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .forensai-ai-analysis {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .forensai-evidence-export {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .forensai-evidence-features {
    display: none;
  }

  .forensai-evidence-content a[href="/sample-report"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
  }

  #how-it-works .forensai-btn-large {
    font-size: 1.125rem;
    padding: 18px 36px;
  }
  
  .forensai-nav {
    display: none;
  }
  
  .forensai-menu-toggle {
    display: flex;
  }
  
  /* Burger dropdown: fixed below header bar, full width */
  .forensai-header {
    position: relative;
  }
  .forensai-header-inner {
    flex-wrap: wrap;
    gap: 12px 8px;
  }
  .forensai-header-actions {
    display: contents;
  }
  .forensai-header .forensai-logo {
    order: 0;
    flex-shrink: 0;
  }
  .forensai-nav-actions-row {
    order: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
  }
  .forensai-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 32px 24px;
    margin-top: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }
  .forensai-section-dark .forensai-header .forensai-nav {
    border-top-color: rgba(255, 255, 255, 0.15);
    background: #0a0a0a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }
  .forensai-header.forensai-nav-open .forensai-nav {
    display: flex;
  }
  .forensai-header.forensai-nav-open .forensai-nav .forensai-nav-link {
    font-size: 1.125rem;
    font-weight: 600;
  }
  
  .forensai-header-actions #get-started-btn {
    display: none !important;
  }
  
  .forensai-footer-contact {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .forensai-footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  
  .forensai-footer-col-nav .forensai-footer-nav {
    justify-content: flex-start;
  }
  
  .forensai-footer-col-alternatives {
    align-self: flex-end;
    align-items: flex-end;
  }
  
  .forensai-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  /* Mobile header: Row 1 = logo (left) + nav-actions-row (right); Row 2 = Get Started full width */
  .forensai-header-inner {
    flex-wrap: wrap;
    gap: 12px 8px;
  }
  .forensai-header-actions {
    display: contents;
  }
  .forensai-header .forensai-logo {
    order: 0;
    flex-shrink: 0;
  }
  .forensai-nav-actions-row {
    order: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
  }
  .forensai-header-actions #get-started-btn {
    order: 2;
    width: 100%;
    justify-content: center;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
  .forensai-section-dark .forensai-header .forensai-header-actions #get-started-btn {
    border-top-color: rgba(255, 255, 255, 0.15);
  }
  .forensai-nav {
    order: 3;
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0 0;
    margin-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
  .forensai-section-dark .forensai-header .forensai-nav {
    border-top-color: rgba(255, 255, 255, 0.15);
  }
  .forensai-header.forensai-nav-open .forensai-nav {
    display: flex;
  }
  .forensai-header.forensai-nav-open .forensai-nav .forensai-nav-link {
    font-size: 1.125rem;
    font-weight: 600;
  }

  .forensai-hero {
    padding: 40px 0 40px;
    margin: 0 16px;
    margin-top: 0;
    border-radius: 32px;
  }

  .forensai-hero-title-block,
  .forensai-hero-left {
    text-align: left;
    align-items: flex-start;
  }

  .forensai-hero-subtitle {
    text-align: left;
    align-self: stretch;
    width: 100%;
  }

  @media (max-width: 435px) {
    .forensai-hero-subtitle .hero-subtitle-security-word {
      display: none;
    }
    .forensai-hero-subtitle .hero-subtitle-changes-lg {
      display: none;
    }
    .forensai-hero-subtitle .hero-subtitle-changes-sm {
      display: inline;
    }
  }

  .forensai-cta-hero {
    padding: 40px 0 48px;
    margin: 0 16px 32px 16px;
    border-radius: 32px;
  }

  #ready-to-know .forensai-cta-hero-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 48px;
    align-items: center;
  }

  #ready-to-know .forensai-cta-hero-left {
    order: 1 !important;
    text-align: center;
    align-items: center;
    width: 100%;
    max-width: 360px;
  }

  #ready-to-know .forensai-cta-hero-right {
    order: 2 !important;
    align-items: center;
    width: 100%;
  }

  /* Center section titles on mobile (landing) */
  .landing-page .forensai-section-dark .forensai-access-content .forensai-headline,
  #justice-section .landing-justice-wrap .forensai-access-content .forensai-headline {
    text-align: center;
  }
  #faq .forensai-container > .forensai-headline {
    text-align: center;
  }
  
  .forensai-insights-hero {
    padding: 40px 0;
    margin: 0 16px;
    margin-top: 24px;
    border-radius: 32px;
  }
  
  .forensai-forensics-hero {
    padding: 40px 0;
    margin: 0 16px;
    margin-top: 24px;
    border-radius: 32px;
  }
  
  .forensai-post-hero {
    padding: 40px 0;
    margin: 0 16px;
    margin-top: 16px;
    border-radius: 32px;
  }
  
  .post-back-link-container {
    margin: 0 16px;
    padding: 24px 0 0;
  }
  
  .forensai-container {
    padding: 0 24px;
  }

  /* Pricing hero: match hero container (16px wall) — zero container padding, hero-wrap margin 16px */
  #pricing .forensai-container {
    padding-left: 0;
    padding-right: 0;
  }
  #pricing .forensai-pricing-hero-wrap {
    margin-left: 16px;
    margin-right: 16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .forensai-section {
    padding: 40px 0;
  }
  
  .forensai-detect-credibility {
    margin-top: 32px;
    padding: 12px 20px;
  }
  
  .forensai-ai-chat-mockup {
    padding: 8px 24px 24px 24px;
  }
  
  .forensai-chat-message.ai {
    width: 100%;
    max-width: 100%;
  }
  
  .forensai-chat-message.ai .forensai-chat-text {
    width: 100%;
  }
  
  .forensai-pdf-mockup {
    transform: rotate(0deg);
    max-width: 100%;
  }
  
  .forensai-ai-analysis {
    gap: 32px;
  }
  
  .forensai-evidence-export {
    gap: 32px;
  }
  
  .forensai-footer-contact {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 60px;
  }
  
  .forensai-footer-headline {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  
  .forensai-footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  
  .forensai-footer-col-nav .forensai-footer-nav {
    justify-content: flex-start;
  }
  
  .forensai-footer-col-alternatives {
    align-self: flex-end;
    align-items: flex-end;
  }
  
  .forensai-footer-nav {
    flex-wrap: wrap;
    gap: 24px;
  }
  
  .forensai-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .forensai-footer-bottom-right {
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .forensai-hero-grid {
    gap: 32px;
  }
  
  .forensai-status {
    margin-top: -20px;
    margin-bottom: 8px;
  }
  
  .forensai-hero-tagline {
    line-height: 1.05;
  }
  
  .hero-testimonial {
    margin: 12px 0 16px 0;
  }
  
  .testimonial-quote {
    font-size: 20px;
  }
  
  .testimonial-attribution {
    font-size: 16px;
  }
  
  .forensai-hero-description {
    margin-top: 0;
  }
  
  .forensai-hero-brand {
    font-size: clamp(3rem, 8vw, 6rem);
  }
  
  .insights-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .story-content {
    padding: 0 16px;
  }
  
  .forensics-content {
    padding: 0 16px;
  }
  
  .forensics-heading {
    font-size: 2rem;
  }
  
  .forensics-steps {
    gap: 24px;
  }
  
  .forensics-step {
    flex-direction: column;
    gap: 16px;
  }
  
  .forensics-features {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Processing Overlay - Glassmorphism with Dashboard Visible */
.processing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.processing-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.processing-overlay-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0a0a0a;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.processing-overlay-card {
  position: relative;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 0;
  max-width: 520px;
  width: 90%;
  box-shadow: none;
  text-align: center;
  transform: scale(1);
  transition: none;
  z-index: 1;
}

.processing-overlay.active .processing-overlay-card {
  transform: scale(1);
}

.processing-spinner-container {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.processing-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(230, 93, 49, 0.2);
  border-top-color: #e65d31;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.processing-headline {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.processing-status {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 24px 0;
  font-weight: 500;
  min-height: 24px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.processing-progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.processing-progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(230, 93, 49, 0.15);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.processing-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #e65d31 0%, #d14f26 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
  box-shadow: 0 2px 8px rgba(230, 93, 49, 0.4);
}

.processing-progress-text {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  min-width: 45px;
  text-align: right;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.processing-reassurance {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-weight: 500;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Blurred Dashboard During Processing */
.results-page.processing-active {
  position: relative;
}

.results-page.processing-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  pointer-events: none;
  border-radius: 0;
}

.results-page.processing-active > * {
  filter: blur(2px);
  opacity: 0.6;
  transition: filter 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

/* Dashboard empty state (zero scans) */
.dashboard-upload-area-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 24px;
  text-align: center;
}
.dashboard-empty-state {
  margin-bottom: 32px;
  max-width: 560px;
}
.dashboard-empty-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
  line-height: 1.3;
}
.dashboard-empty-subtext {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 24px 0;
  line-height: 1.5;
}
.dashboard-empty-guide {
  margin: 0 auto;
  max-width: 320px;
}
.dashboard-empty-guide .sidebar-data-export-help-btn {
  width: 100%;
}
.dashboard-upload-zone-large {
  min-height: 200px;
  width: 100%;
  max-width: 560px;
}

/* Paid dashboard: center upload area (empty state + drop zone) */
.dashboard-page:not([data-free-tier="true"]) .dashboard-upload-area-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}
.dashboard-page:not([data-free-tier="true"]) .dashboard-upload-area-empty-state .dashboard-empty-state,
.dashboard-page:not([data-free-tier="true"]) .dashboard-upload-area-empty-state .dashboard-upload-zone {
  margin-left: auto;
  margin-right: auto;
}

/* Dashboard processing state */
.dashboard-page.processing-active {
  position: relative;
}

.dashboard-page.processing-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  pointer-events: none;
}

.dashboard-page.processing-active > * {
  filter: blur(2px);
  opacity: 0.6;
  transition: filter 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

/* Results page bypass button */
.results-bypass .btn-secondary:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

/* ========================================
   DASHBOARD - Aesthetic
   ======================================== */

.dashboard-page {
  min-height: 100vh;
  background: #141414;
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  position: relative;
}

.dashboard-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(230, 93, 49, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(34, 197, 94, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Top Bar (Fixed) */
.dashboard-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding-top: env(safe-area-inset-top);
  height: calc(64px + env(safe-area-inset-top));
  min-height: calc(64px + env(safe-area-inset-top));
  background: #141414;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.topbar-content {
  max-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 32px;
}

.topbar-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
}

.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
  transform: translateY(-2px);
  object-fit: contain;
}

.logo-text {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Removed nav tabs - dashboard is unified view */

.topbar-right {
  flex-shrink: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-scan-usage {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}
.topbar-scan-usage.scan-usage-warning {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}

.topbar-new-scan-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #e65d31;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.topbar-new-scan-btn:hover {
  background: #e65d31;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230, 93, 49, 0.3);
}

.topbar-export-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.topbar-export-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.topbar-manage-files-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.topbar-manage-files-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* Button text visibility - show full text on desktop, abbreviated on mobile */
.btn-text-mobile {
  display: none;
}

@media (max-width: 768px) {
  .btn-text-full {
    display: none;
  }
  
  .btn-text-mobile {
    display: none;
  }
  
  /* Dashboard topbar only: hide nav items and scan pill on mobile (keep logo, Add Files, quick exit, burger) */
  .dashboard-page .dashboard-topbar .topbar-nav-desktop {
    display: none !important;
  }
  
  /* Reduce padding for icon-only buttons on mobile */
  .topbar-new-scan-btn,
  .topbar-manage-files-btn,
  .topbar-export-btn {
    padding: 10px 12px;
    gap: 0;
  }
}

/* Quick Exit on dashboard: left of menu burger, light grey icon */
.topbar-quick-exit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 12px 2px 12px 4px;
  margin: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
}
@media (max-width: 395px) {
  .topbar-quick-exit-btn {
    padding: 12px 0 12px 2px;
  }
}
.topbar-quick-exit-btn img {
  display: block;
  width: 24px;
  height: 24px;
  opacity: 0.95;
}
.topbar-quick-exit-btn:hover img {
  opacity: 1;
}

/* Menu Burger and Dropdown */
.topbar-menu-wrapper {
  position: relative;
}

.topbar-menu-btn {
  width: auto;
  height: auto;
  padding: 12px 0 12px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.2s;
}

.topbar-menu-btn svg {
  width: 28px;
  height: 28px;
}

.topbar-menu-btn:hover {
  color: #ffffff;
}

.topbar-menu-btn.active {
  color: #e65d31;
}

.topbar-menu-btn.active svg {
  stroke: #e65d31;
}

.topbar-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 300px;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  overflow: hidden;
}

.menu-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-dropdown-item:last-child {
  border-bottom: none;
}

.menu-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.menu-dropdown-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
}

.menu-dropdown-item:hover svg {
  color: #e65d31;
}

/* Nav section at top of dropdown (mobile: scan pill + Manage Files, Case File, Export Evidence) */
.menu-dropdown-nav-section {
  padding: 8px 0 4px;
}
.menu-dropdown-nav-section .topbar-scan-usage {
  margin: 0 16px 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
}
.menu-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0 0;
}
.menu-dropdown-nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
  box-sizing: border-box;
}
.menu-dropdown-nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* Menu Content Views */
.menu-content-view {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.menu-content-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-content-back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.menu-content-back:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.menu-content-back svg {
  width: 20px;
  height: 20px;
}

.menu-content-title {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.menu-content-body {
  padding: 0;
}

.menu-content-intro {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}

.menu-content-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.menu-content-pattern-note {
  margin-top: 32px;
  padding-top: 24px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
}

.menu-content-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.menu-content-item-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 93, 49, 0.1);
  border: 1px solid rgba(230, 93, 49, 0.3);
  border-radius: 8px;
  color: #e65d31;
  font-size: 18px;
  font-weight: 700;
}

.menu-content-item-content {
  flex: 1;
}

.menu-content-item-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.menu-content-item-description {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* FAQ Styles */
.menu-faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.menu-faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0;
}

.menu-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 1.375rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}

.menu-faq-question:hover {
  color: #e65d31;
}

.menu-faq-question.expanded {
  color: #e65d31;
}

.menu-faq-answer {
  display: none;
  padding: 0 0 24px 0;
}

.menu-faq-answer p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Settings Styles */
.menu-settings-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.menu-settings-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu-settings-section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* Demo: grey out Partner Code and AI Context Memory in Settings */
.menu-settings-section-demo-disabled {
  opacity: 0.6;
  filter: saturate(0.7);
  pointer-events: none;
  cursor: not-allowed;
}
.menu-settings-section-demo-disabled .menu-settings-item-action:disabled,
.menu-settings-section-demo-disabled .menu-settings-partner-input:disabled {
  opacity: 0.8;
}

/* Support Form Styles */
.support-form-container {
  max-width: 600px;
  margin: 0 auto;
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.support-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.support-form-input,
.support-form-select,
.support-form-textarea {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-size: 1rem;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: all 0.2s;
}

.support-form-input:focus,
.support-form-select:focus,
.support-form-textarea:focus {
  outline: none;
  border-color: #e55e31;
  background: rgba(255, 255, 255, 0.08);
}

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

.support-form-select {
  cursor: pointer;
}

.support-form-submit {
  align-self: flex-start;
  margin-top: 8px;
}

.support-form-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9375rem;
  margin-top: 8px;
}

/* Admin Dashboard Styles */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px;
  color: #ffffff;
}

.admin-header {
  position: relative;
  margin-bottom: 48px;
}

.admin-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #ffffff;
}

.admin-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.admin-stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.admin-stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #e65d31;
  margin-bottom: 8px;
}

.admin-stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-tickets {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-ticket-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s;
}

.admin-ticket-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

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

.admin-ticket-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.admin-ticket-date {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.admin-ticket-email {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.admin-ticket-actions {
  flex-shrink: 0;
}

.admin-ticket-status {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.admin-ticket-status.status-new {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.admin-ticket-status.status-in-progress {
  background: rgba(234, 179, 8, 0.2);
  border-color: rgba(234, 179, 8, 0.4);
  color: #e55e31;
}

.admin-ticket-status.status-resolved {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.admin-ticket-subject {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.admin-ticket-message {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  white-space: pre-wrap;
}

.admin-loading,
.admin-empty,
.admin-error {
  text-align: center;
  padding: 48px 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
}

.admin-error {
  color: #ef4444;
}

.admin-logout-btn {
  position: absolute;
  top: 40px;
  right: 32px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 0.875rem;
  cursor: pointer;
}

.admin-login {
  max-width: 360px;
  margin: 48px auto;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.admin-login-hint {
  margin: 0 0 16px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
}

.admin-login-input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  box-sizing: border-box;
}

.admin-login-btn {
  width: 100%;
  padding: 12px 16px;
  background: #e65d31;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-login-error {
  margin-top: 12px;
  color: #ef4444;
  font-size: 0.875rem;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-tab {
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}

.admin-tab:hover {
  color: rgba(255, 255, 255, 0.9);
}

.admin-tab.active {
  color: #e65d31;
  border-bottom-color: #e65d31;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
}

.admin-panel-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: #fff;
}

.admin-usage-text {
  margin: 0 0 8px 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}

.admin-tables-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.admin-table-select {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9375rem;
  min-width: 200px;
}

.admin-table-load-btn {
  padding: 8px 20px;
  background: #e65d31;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-table-wrap {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
}

.admin-table-scroll {
  overflow-x: auto;
  max-height: 60vh;
  overflow-y: auto;
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.admin-data-table th,
.admin-data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-data-table th {
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  white-space: nowrap;
}

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

.admin-table-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.admin-pagination-btn {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  font-size: 0.875rem;
  cursor: pointer;
}

.admin-revenue-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.admin-revenue-card {
  display: block;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.admin-revenue-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-revenue-card-title {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.admin-revenue-card-desc {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.admin-revenue-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.admin-revenue-period-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.admin-revenue-period-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.admin-revenue-period-tabs {
  display: flex;
  gap: 4px;
}

.admin-revenue-period-tab {
  padding: 6px 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.admin-revenue-period-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.admin-revenue-period-tab.active {
  background: rgba(229, 94, 49, 0.25);
  border-color: rgba(229, 94, 49, 0.5);
  color: #fff;
}

.admin-help-section {
  margin-bottom: 32px;
}

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

.admin-help-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
}

.admin-help-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-help-card-date {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

.admin-help-card-email {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  flex: 1;
}

.admin-help-status {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  font-size: 0.875rem;
  cursor: pointer;
}

.admin-help-card-subject {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.admin-help-card-msg {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-help-card-meta {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Admin dashboard layout (matches dashboard.js) */
html:has(.admin-dashboard-page),
body:has(.admin-dashboard-page) {
  background: #141414;
}

.admin-topbar-badge {
  padding: 4px 10px;
  background: rgba(230, 93, 49, 0.2);
  color: #e65d31;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
}

.admin-layout-single {
  margin-top: calc(64px + env(safe-area-inset-top));
}

.admin-layout-single .dashboard-main {
  margin-left: 0;
  margin-right: 0;
}

.admin-main-solo {
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.admin-main {
  margin-right: 350px;
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-sidebar-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}

.admin-sidebar-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.95);
}

.admin-sidebar-item.active {
  background: rgba(230, 93, 49, 0.15);
  color: #e65d31;
}

.admin-revenue-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s;
}

.admin-revenue-card:hover {
  transform: translateY(-2px);
}

.admin-login-input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  box-sizing: border-box;
}

.admin-login-error {
  margin-top: 12px;
  color: #ef4444;
  font-size: 0.875rem;
}

.admin-table-wrap .admin-table-scroll {
  max-height: 60vh;
  overflow: auto;
}

.admin-table-wrap .admin-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table-wrap .admin-data-table th,
.admin-table-wrap .admin-data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-table-wrap .admin-data-table th {
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  white-space: nowrap;
}

.admin-table-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.admin-pagination-btn {
  padding: 6px 14px;
  font-size: 13px;
}

/* Internal admin chat panel (separate from user .dashboard-chat / .chat-*) */
.admin-internal-chat {
  width: 350px;
  flex-shrink: 0;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  position: fixed;
  right: 0;
  top: 64px;
  bottom: 0;
  z-index: 1;
}

.admin-internal-chat-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.admin-internal-chat-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-internal-chat-new-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.admin-internal-chat-new-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.admin-internal-chat-threads {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  max-height: 72px;
  overflow-y: auto;
}

.admin-internal-chat-thread-pill {
  padding: 4px 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  cursor: pointer;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.admin-internal-chat-thread-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
}

.admin-internal-chat-thread-pill.active {
  background: rgba(229, 94, 49, 0.25);
  border-color: rgba(229, 94, 49, 0.5);
  color: #fff;
}

.admin-internal-chat-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
}

.admin-internal-chat-icon {
  animation: pulsate 2s ease-in-out infinite;
}

.admin-internal-chat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.admin-internal-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-internal-chat-welcome-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.admin-internal-chat-prompts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-internal-chat-prompt-btn {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.admin-internal-chat-prompt-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.admin-internal-chat-input-area {
  padding: 16px 24px 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.admin-internal-chat-input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
}

.admin-internal-chat-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.admin-internal-chat-send {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e65d31;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.admin-internal-chat-send:hover:not(:disabled) {
  background: #e55e31;
  transform: translateY(-1px);
}

.admin-internal-chat-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.admin-internal-chat-message {
  max-width: 90%;
}

.admin-internal-chat-message-user {
  align-self: flex-end;
}

.admin-internal-chat-message-user .admin-internal-chat-message-content {
  background: rgba(230, 93, 49, 0.2);
  border: 1px solid rgba(230, 93, 49, 0.3);
  border-radius: 12px 12px 4px 12px;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
}

.admin-internal-chat-message-ai {
  align-self: flex-start;
}

.admin-internal-chat-message-ai .admin-internal-chat-message-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px 12px 12px 4px;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.6;
}

.admin-internal-chat-typing {
  display: inline-flex;
  gap: 4px;
}

.admin-internal-chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  animation: admin-internal-chat-bounce 1.4s ease-in-out infinite both;
}

.admin-internal-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.admin-internal-chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes admin-internal-chat-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Admin V2 — God View */
.admin-v2 .admin-layout-v2 { display: flex; min-height: calc(100vh - 56px); }
.admin-v2 .admin-main { flex: 1; min-width: 0; padding: 24px; overflow: auto; }
.admin-v2 .admin-main { margin-right: 350px; }
.admin-v2.quant-active .admin-main { margin-right: 0; }
.admin-brief-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 24px; }
.admin-brief-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
@media (max-width: 900px) { .admin-brief-stats { grid-template-columns: repeat(2, 1fr); } .admin-brief-two-col { grid-template-columns: 1fr; } }

/* Admin dashboard — mobile */
@media (max-width: 768px) {
  .admin-dashboard-page .admin-mobile-menu-btn { display: flex; }
  .admin-dashboard-page .topbar-content { padding: 0 16px; gap: 12px; }
  .admin-dashboard-page .admin-topbar-badge { font-size: 10px; padding: 3px 6px; }
  .admin-dashboard-page .admin-layout-v2 { flex-direction: row; margin-top: calc(64px + env(safe-area-inset-top)); }
  .admin-dashboard-page .dashboard-sidebar.admin-sidebar {
    position: fixed; left: 0; top: calc(64px + env(safe-area-inset-top)); bottom: 0;
    width: min(280px, 85vw); max-width: 280px; z-index: 1002;
    transform: translateX(-100%); transition: transform 0.2s ease-out;
    box-shadow: 4px 0 24px rgba(0,0,0,0.3);
  }
  .admin-dashboard-page.admin-sidebar-open .dashboard-sidebar.admin-sidebar { transform: translateX(0); }
  .admin-dashboard-page .admin-sidebar-overlay {
    display: block; position: fixed; left: 0; right: 0; bottom: 0;
    top: calc(64px + env(safe-area-inset-top)); z-index: 1001;
    opacity: 0; pointer-events: none; transition: opacity 0.2s;
  }
  .admin-dashboard-page.admin-sidebar-open .admin-sidebar-overlay {
    opacity: 1; pointer-events: auto;
  }
  .admin-dashboard-page .admin-main { margin-right: 0; padding: 16px; min-width: 0; }
  .admin-dashboard-page .admin-internal-chat.admin-quant-chat { display: none !important; }
  .admin-dashboard-page .admin-brief-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .admin-dashboard-page .admin-brief-cards .admin-brief-value { font-size: 1.35rem; }
  .admin-dashboard-page .admin-brief-cards .admin-brief-card { padding: 14px; }
  .admin-dashboard-page .main-title { font-size: 1.5rem; }
  .admin-dashboard-page .admin-tables-toolbar,
  .admin-dashboard-page .admin-logs-toolbar {
    flex-wrap: wrap; gap: 10px;
  }
  .admin-dashboard-page .admin-table-select { min-width: 0; flex: 1 1 120px; }
  .admin-dashboard-page .admin-revenue-cards { grid-template-columns: 1fr; }
  .admin-dashboard-page .admin-revenue-combined { padding: 16px; }
  .admin-dashboard-page .admin-revenue-combined-value { font-size: 1.5rem; }
  .admin-dashboard-page .admin-table-scroll-wrap,
  .admin-dashboard-page .admin-table-wrap .admin-table-scroll {
    overflow-x: auto; -webkit-overflow-scrolling: touch; max-height: 50vh;
  }
  .admin-dashboard-page .admin-data-table { font-size: 12px; }
  .admin-dashboard-page .admin-data-table th,
  .admin-dashboard-page .admin-data-table td { padding: 10px 8px; white-space: nowrap; }
  .admin-dashboard-page .admin-sidebar-grouped .admin-sidebar-item {
    min-height: 44px; padding: 12px 16px;
  }
  .admin-dashboard-page .admin-funnel-label { min-width: 100px; font-size: 12px; }
  .admin-dashboard-page .admin-funnel-num { min-width: 36px; font-size: 12px; }
  .admin-dashboard-page .admin-feature-bar-row .admin-feature-bar-label { min-width: 100px; font-size: 12px; }
  .admin-dashboard-page .admin-feature-bar-row .admin-feature-bar-num { min-width: 40px; font-size: 12px; }
  .admin-dashboard-page .admin-mrr-bar-label { min-width: 90px; font-size: 12px; }
  .admin-dashboard-page .admin-donut-chart { width: 140px; height: 140px; }
  .admin-dashboard-page .admin-donut-chart.admin-donut-filled { box-shadow: inset 0 0 0 24px #141414; }
  .admin-dashboard-page .admin-help-card-head { flex-wrap: wrap; gap: 8px; }
  .admin-dashboard-page .admin-help-status { min-width: 100px; }
  .admin-dashboard-page .topbar-new-scan-btn,
  .admin-dashboard-page .forensai-btn { min-height: 44px; padding: 10px 16px; }
}
@media (max-width: 480px) {
  .admin-dashboard-page .admin-brief-stats { grid-template-columns: 1fr; }
}

/* Morning Brief — gradient cards and commanding numbers */
.admin-brief-cards .admin-brief-card { border-radius: 12px; padding: 20px; border: 1px solid rgba(255,255,255,0.08); }
.admin-brief-cards .admin-brief-value { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 4px; }
.admin-brief-card-mrr { background: linear-gradient(135deg, rgba(22, 101, 52, 0.25) 0%, rgba(22, 101, 52, 0.08) 100%); }
.admin-brief-card-mrr .admin-brief-value { color: #4ade80; }
.admin-brief-card-subs { background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%); }
.admin-brief-card-dau { background: linear-gradient(135deg, rgba(10, 132, 255, 0.2) 0%, rgba(10, 132, 255, 0.06) 100%); }
.admin-brief-card-dau .admin-brief-value { color: #60a5fa; }
.admin-brief-card-tau { background: linear-gradient(135deg, rgba(10, 132, 255, 0.15) 0%, rgba(10, 132, 255, 0.04) 100%); }
.admin-brief-card-tau .admin-brief-value { color: #93c5fd; }
.admin-brief-card-api { background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%); }
.admin-brief-card-tickets { background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%); }
.admin-brief-card-tickets.admin-brief-card-tickets-active { background: linear-gradient(135deg, rgba(234, 88, 12, 0.22) 0%, rgba(234, 88, 12, 0.08) 100%); border-color: rgba(234, 88, 12, 0.3); }
.admin-brief-card-tickets.admin-brief-card-tickets-active .admin-brief-value { color: #fb923c; }

/* Last updated per tab */
.admin-tab-last-updated { font-size: 12px; color: rgba(255,255,255,0.5); margin: -8px 0 12px 0; }

/* Sidebar summary under command center */
.admin-sidebar-summary { padding: 0 16px 12px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 12px; }
.admin-sidebar-summary-label { font-size: 11px; color: #666; text-transform: lowercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.admin-sidebar-summary-stats { font-size: 12px; color: rgba(255,255,255,0.65); }

/* Help unread badge */
.admin-sidebar-badge { display: none; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; background: #ea580c; color: #fff; border-radius: 9px; margin-left: 6px; }

/* Revenue combined MRR card */
.admin-revenue-combined { padding: 20px 24px; background: linear-gradient(135deg, rgba(22, 101, 52, 0.2) 0%, rgba(22, 101, 52, 0.06) 100%); border: 1px solid rgba(74, 222, 128, 0.2); border-radius: 12px; margin-bottom: 20px; }
.admin-revenue-combined-value { font-size: 1.75rem; font-weight: 800; color: #4ade80; letter-spacing: -0.02em; }
.admin-revenue-combined-label { font-size: 12px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.admin-revenue-combined-badges { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.admin-revenue-source-badge { font-size: 12px; padding: 4px 10px; border-radius: 6px; font-weight: 600; }
.admin-revenue-web { background: rgba(230, 93, 49, 0.25); color: #f97316; }
.admin-revenue-ios { background: rgba(10, 132, 255, 0.25); color: #60a5fa; }

/* Funnel interpretation text */
.admin-funnel-interpretation { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.5; }

/* User table 7-day sparkline */
.admin-user-sparkline { display: flex; align-items: flex-end; gap: 2px; height: 20px; width: 70px; }
.admin-user-sparkline .admin-spark-bar { flex: 1; min-width: 2px; background: rgba(230,93,49,0.5); border-radius: 2px; align-self: flex-end; }
.admin-user-scan-num { font-size: 13px; color: rgba(255,255,255,0.85); margin-left: 8px; }

/* Admin mobile menu button (visible only on small screens) */
.admin-mobile-menu-btn { display: none; width: 44px; height: 44px; padding: 0; margin: 0; margin-right: 4px; align-items: center; justify-content: center; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.admin-mobile-menu-btn:hover { background: rgba(255,255,255,0.12); }
.admin-mobile-menu-icon { display: block; width: 20px; height: 14px; position: relative; }
.admin-mobile-menu-icon::before, .admin-mobile-menu-icon::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 1px; }
.admin-mobile-menu-icon::before { top: 0; }
.admin-mobile-menu-icon::after { bottom: 0; }
.admin-mobile-menu-icon { box-shadow: 0 6px 0 currentColor; }

.admin-sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1001; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.admin-activity-feed-body { max-height: 400px; overflow-y: auto; }
.admin-activity-card { display: flex; align-items: center; gap: 8px; padding: 8px 12px; margin-bottom: 6px; background: rgba(255,255,255,0.04); border-radius: 8px; font-size: 13px; }
.admin-activity-card.admin-activity-upgrade { border-left: 3px solid #e65d31; }
.admin-activity-card.admin-activity-export { border-left: 3px solid #22c55e; }
.admin-activity-card.admin-activity-feature { border-left: 3px solid #0a84ff; }
.admin-activity-feature { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-activity-time { color: rgba(255,255,255,0.5); font-size: 12px; }
.admin-platform-badge { display: inline-block; }
.admin-alerts-body p { margin: 0 0 8px 0; font-size: 14px; color: rgba(255,255,255,0.85); }
.admin-funnel-section { margin-top: 24px; }
.admin-funnel-viz { display: flex; flex-direction: column; gap: 12px; }
.admin-funnel-row { display: flex; align-items: center; gap: 12px; }
.admin-funnel-label { min-width: 140px; font-size: 13px; color: rgba(255,255,255,0.8); }
.admin-funnel-bar-wrap { flex: 1; height: 24px; background: rgba(0,0,0,0.2); border-radius: 6px; overflow: hidden; }
.admin-funnel-bar { height: 100%; background: #e65d31; border-radius: 6px; min-width: 4px; transition: width 0.2s; }
.admin-funnel-num { min-width: 48px; text-align: right; font-size: 13px; color: rgba(255,255,255,0.9); }
.admin-funnel-pct { min-width: 40px; text-align: right; font-size: 12px; color: rgba(255,255,255,0.7); }
.admin-table-section { margin-top: 24px; }
.admin-table-scroll-wrap { overflow-x: auto; max-height: 50vh; margin-top: 8px; }
.admin-mrr-bars { margin-bottom: 20px; }
.admin-mrr-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.admin-mrr-bar-label { min-width: 120px; font-size: 13px; }
.admin-mrr-bar-track { flex: 1; height: 20px; background: rgba(0,0,0,0.2); border-radius: 4px; overflow: hidden; }
.admin-mrr-bar-fill { height: 100%; background: #e65d31; border-radius: 4px; transition: width 0.2s; }
.admin-mrr-bar-value { min-width: 70px; text-align: right; font-size: 13px; }
.admin-cost-trend-bars { display: flex; gap: 2px; align-items: flex-end; height: 120px; margin-top: 8px; }
.admin-cost-trend-bar-wrap { flex: 1; min-width: 4px; display: flex; align-items: flex-end; }
.admin-cost-trend-bar { height: 100%; min-height: 4px; background: rgba(230,93,49,0.6); border-radius: 2px 2px 0 0; transition: height 0.2s; }
.admin-quant-placeholder { color: rgba(255,255,255,0.6); font-size: 14px; margin: 24px 0 0 0; }
.admin-quant-chat { display: flex; flex-direction: column; flex: 1; min-height: 400px; }
.admin-quant-chat .admin-internal-chat-content { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.admin-quant-chat .admin-internal-chat-messages { flex: 1; overflow-y: auto; min-height: 200px; }
.admin-quant-chat .admin-internal-chat-input-area { flex-shrink: 0; }
.admin-user-row { cursor: pointer; }
.admin-user-row:hover { background: rgba(255,255,255,0.05); }
.admin-user-expand td { background: rgba(0,0,0,0.15); padding: 12px 16px; }
.admin-user-expand-inner { font-size: 13px; color: rgba(255,255,255,0.8); }
.admin-error { color: #ef4444; font-size: 14px; }

/* Admin grouped sidebar (command center) */
.admin-v2 .dashboard-sidebar.admin-sidebar { width: 200px; flex-shrink: 0; }
.admin-sidebar-grouped .admin-sidebar-nav { width: 100%; flex-shrink: 0; }
.admin-sidebar-brand { padding: 16px 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 12px; }
.admin-sidebar-brand-name { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: 0.02em; }
.admin-sidebar-brand-tagline { font-size: 11px; color: #666; text-transform: lowercase; margin-top: 2px; }
.admin-nav-group { margin-bottom: 20px; }
.admin-nav-group:last-child { margin-bottom: 0; }
.admin-nav-group-title { font-size: 11px; color: #666; letter-spacing: 0.1em; text-transform: uppercase; padding: 0 16px 6px; margin-bottom: 4px; }
.admin-sidebar-grouped .admin-sidebar-item { color: #888; border-left: 3px solid transparent; padding-left: 13px; display: flex; align-items: center; justify-content: space-between; }
.admin-sidebar-grouped .admin-sidebar-item .admin-sidebar-item-text { flex: 1; text-align: left; }
.admin-sidebar-grouped .admin-sidebar-item:hover { color: rgba(255,255,255,0.9); }
.admin-sidebar-grouped .admin-sidebar-item.active { color: #e65d31; border-left-color: #e65d31; background: rgba(230,93,49,0.1); }
.admin-pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-right: 6px; animation: admin-pulse-dot 2s ease-in-out infinite; }
@keyframes admin-pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(0.9); } }

.admin-refresh-countdown { font-size: 11px; color: #666; margin-top: 4px; }

.admin-stat-card { position: relative; }
.admin-stat-card .stat-value { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.admin-stat-card .stat-trend { font-size: 12px; font-weight: 600; }
.admin-stat-card .stat-trend-up { color: #22c55e; }
.admin-stat-card .stat-trend-down { color: #ef4444; }
.admin-stat-card .stat-trend-flat { color: #888; }
.stat-sparkline { display: flex; align-items: flex-end; gap: 2px; height: 24px; margin-top: 6px; }
.admin-spark-bar { flex: 1; min-width: 4px; background: rgba(230,93,49,0.5); border-radius: 2px; transition: height 0.15s; }

.admin-activity-icon { font-size: 16px; flex-shrink: 0; }

.admin-empty-state { text-align: center; padding: 32px 16px; color: rgba(255,255,255,0.6); font-size: 14px; }
.admin-empty-state .admin-empty-icon { display: block; font-size: 24px; margin-bottom: 8px; opacity: 0.6; }
.admin-skeleton-line { height: 14px; background: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 100%); background-size: 200% 100%; animation: admin-skeleton 1.2s ease-in-out infinite; border-radius: 4px; margin-bottom: 8px; }
.admin-skeleton-line:last-child { margin-bottom: 0; }
@keyframes admin-skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.admin-table-skeleton { padding: 16px; }

.admin-funnel-dropoff { color: #ef4444; font-size: 12px; }
.admin-funnel-bar { transition: width 0.35s ease-out; }

.admin-feature-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.admin-feature-bar-row .admin-feature-bar-label { min-width: 140px; font-size: 13px; color: rgba(255,255,255,0.9); }
.admin-feature-bar-row .admin-feature-bar-num { min-width: 48px; text-align: right; font-size: 13px; color: rgba(255,255,255,0.8); }
.admin-feature-bar-track { flex: 1; display: flex; height: 20px; background: rgba(0,0,0,0.2); border-radius: 4px; overflow: hidden; min-width: 0; }
.admin-feature-bar-inner { display: flex; width: 0; min-width: 0; transition: width 0.25s ease-out; }
.admin-feature-bar-ios { height: 100%; background: #0a84ff; min-width: 2px; transition: width 0.25s; }
.admin-feature-bar-web { height: 100%; background: #e65d31; min-width: 2px; transition: width 0.25s; }

.admin-donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.admin-donut-chart { width: 160px; height: 160px; border-radius: 50%; flex-shrink: 0; }
.admin-donut-chart.admin-donut-filled { box-shadow: inset 0 0 0 28px #141414; }
.admin-donut-legend { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: center; font-size: 13px; color: rgba(255,255,255,0.9); }
.admin-donut-legend-item { display: flex; align-items: center; gap: 6px; }
.admin-donut-swatch { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }

.admin-table-zebra tbody tr:nth-child(even) { background: rgba(255,255,255,0.03); }
.admin-table-zebra tbody tr:hover { background: rgba(255,255,255,0.06); }

.admin-logs-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.admin-logs-body { min-height: 200px; }

.admin-tier-badge { display: inline-block; }
.admin-margin-bar-wrap { display: inline-flex; align-items: center; gap: 8px; min-width: 80px; }
.admin-margin-bar { height: 8px; border-radius: 4px; min-width: 4px; transition: width 0.2s; }
.admin-margin-high { background: #22c55e; }
.admin-margin-mid { background: #eab308; }
.admin-margin-low { background: #ef4444; }

.admin-cell-null { color: #666; font-style: italic; }
.admin-bool { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.admin-bool-true { background: rgba(34,197,94,0.2); color: #22c55e; }
.admin-bool-false { background: rgba(239,68,68,0.2); color: #ef4444; }
.admin-cell-json { max-width: 280px; }
.admin-json-preview { overflow: hidden; text-overflow: ellipsis; }
.admin-json-toggle { margin-left: 4px; padding: 0 6px; font-size: 11px; cursor: pointer; background: rgba(255,255,255,0.1); border: none; border-radius: 4px; color: rgba(255,255,255,0.8); }

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

.admin-overview-card {
  display: flex;
  flex-direction: column;
}

.admin-overview-link {
  margin-top: auto;
  padding-top: 16px;
  background: none;
  border: none;
  color: #e65d31;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.admin-overview-link:hover {
  color: #fff;
}

.menu-settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  gap: 16px;
}

.menu-settings-item-clickable {
  cursor: pointer;
  transition: all 0.2s;
}

.menu-settings-item-clickable:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.menu-settings-item-danger {
  border-color: rgba(239, 68, 68, 0.3);
}

.menu-settings-item-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.4);
}

.menu-settings-item-content {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.menu-settings-item-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 4px 0;
  text-align: left;
}

.menu-settings-item-description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  text-align: left;
}

.menu-settings-item-action {
  padding: 8px 20px;
  background: #e65d31;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.menu-settings-item-action:hover {
  background: #e65d31;
}

.menu-settings-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.5);
}

.menu-settings-partner-input {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  outline: none;
  transition: all 0.2s;
  min-width: 200px;
}

.menu-settings-partner-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.menu-settings-partner-input:focus {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.topbar-chat-toggle,
.topbar-settings-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s;
}

.topbar-chat-toggle:hover,
.topbar-settings-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.dev-pro-toggle-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.dev-pro-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

.dev-pro-toggle-btn.unlocked {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.dev-pro-toggle-btn.unlocked:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
}

/* Dashboard Layout */
.dashboard-layout {
  display: flex;
  margin-top: calc(64px + env(safe-area-inset-top));
  min-height: calc(100vh - 64px - env(safe-area-inset-top));
}

/* Custom Scrollbar for Dashboard */
.dashboard-sidebar::-webkit-scrollbar,
.dashboard-main::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar,
.file-list::-webkit-scrollbar {
  width: 6px;
}

.dashboard-sidebar::-webkit-scrollbar-track,
.dashboard-main::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track,
.file-list::-webkit-scrollbar-track {
  background: transparent;
}

.dashboard-sidebar::-webkit-scrollbar-thumb,
.dashboard-main::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb,
.file-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover,
.dashboard-main::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover,
.file-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Left Sidebar (Fixed) */
.dashboard-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #141414;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  position: fixed;
  left: 0;
  top: 64px;
  bottom: 0;
  z-index: 1;
}

/* Scan Summary Card */
.sidebar-summary-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.summary-label {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  text-align: center;
}

/* Dashboard sidebar: Risk Score header uppercase */
.dashboard-page .sidebar-summary-card .summary-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Risk Gauge Wrapper - contains gauge and label */
.risk-gauge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Risk Gauge - Circular Visualization */
.risk-gauge-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.risk-gauge-background {
  stroke: rgba(255, 255, 255, 0.1);
}

.risk-gauge-arc {
  transition: stroke-dashoffset 0.6s ease, stroke 0.3s ease;
}

.risk-gauge-arc.risk-low {
  stroke: #22c55e;
}

.risk-gauge-arc.risk-medium {
  stroke: #eab308;
}

.risk-gauge-arc.risk-high {
  stroke: #b91c1c;
}

.risk-gauge-arc.risk-critical {
  stroke: #b91c1c;
}

.risk-gauge-arc.risk-moderate {
  stroke: #eab308;
}

.risk-gauge-value {
  position: absolute;
  font-size: 36px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.risk-gauge-value.risk-low {
  color: #22c55e;
}

.risk-gauge-value.risk-medium {
  color: #eab308;
}

.risk-gauge-value.risk-high {
  color: #b91c1c;
}

.risk-gauge-value.risk-critical {
  color: #b91c1c;
}

.risk-gauge-value.risk-moderate {
  color: #eab308;
}

.risk-severity-label {
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  padding: 8px 14px;
  border-radius: 6px;
  display: inline-block;
  width: auto;
  margin-left: auto;
  margin-right: auto;
}

/* Remove bottom margin when inside wrapper */
.risk-gauge-wrapper .risk-severity-label {
  margin-bottom: 0;
}

.risk-severity-label.risk-low {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.risk-severity-label.risk-medium {
  color: #eab308;
  background: rgba(234, 179, 8, 0.1);
}

.risk-severity-label.risk-high {
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.1);
}

.risk-severity-label.risk-critical {
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.1);
}

.risk-severity-label.risk-moderate {
  color: #eab308;
  background: rgba(234, 179, 8, 0.1);
}

.summary-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-value {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

/* Finding Breakdown Visualization */
.sidebar-breakdown-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.breakdown-header {
  margin-bottom: 2px;
}

.breakdown-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
}

/* Dashboard sidebar: TOTAL FINDINGS & FINDINGS BREAKDOWN larger and white */
.dashboard-page .sidebar-summary-card .breakdown-title {
  font-size: 13px;
  color: #ffffff;
}

/* Dashboard: Geist Mono Pixel for technical/system labels (forensic aesthetic) */
.dashboard-page .summary-label,
.dashboard-page .risk-gauge-value,
.dashboard-page .total-findings-value,
.dashboard-page .risk-severity-label,
.dashboard-page .breakdown-title,
.dashboard-page .bar-category,
.dashboard-page .professional-help-headline,
.dashboard-page .known-locations-empty-text,
.dashboard-page .evidence-title,
.dashboard-page .main-title,
.dashboard-page .ai-analysis-title,
.dashboard-page .evidence-export-title,
.dashboard-page .evidence-report-severity-badge,
.dashboard-page .timeline-activity-subtitle,
.dashboard-page .geographic-title,
.dashboard-page .timeline-title,
.dashboard-page .geographic-header-summary,
.dashboard-page .timeline-header-summary,
.dashboard-page .known-locations-count,
.dashboard-page .meta-label,
.dashboard-page .evidence-no-reports p,
.dashboard-page .evidence-generated-title,
.dashboard-page .evidence-section-title,
.dashboard-page .sidebar-files-section-title,
.dashboard-page .file-manager-meta-label {
  font-family: 'Geist Mono Pixel', monospace !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
}
.dashboard-page .risk-severity-label,
.dashboard-page .breakdown-title,
.dashboard-page .evidence-report-severity-badge {
  text-transform: uppercase;
}
.dashboard-page .bar-category {
  text-transform: none; /* Category names like Login, Device - keep casing */
}
.dashboard-page .ai-analysis-loading-text {
  font-family: 'Geist Mono Pixel', monospace !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase;
}
.dashboard-page .evidence-export-badge,
.dashboard-page .finding-category-badge,
.dashboard-page .finding-platform-badge,
.dashboard-page .most-critical-finding-label {
  font-family: 'Geist Mono Pixel', monospace !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase;
}
/* Processing overlay: status and percentage in pixel */
.processing-status,
.processing-progress-text {
  font-family: 'Geist Mono Pixel', monospace !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase;
}
/* Scan complete page */
.scan-complete-header,
.scan-complete-left .summary-label,
.scan-complete-left .summary-label-centered,
.scan-complete-left .risk-severity-label,
.scan-complete-left .summary-label-text {
  font-family: 'Geist Mono Pixel', monospace !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
}
.scan-complete-left .risk-severity-label {
  text-transform: uppercase;
}
/* Modal headers and pixel labels */
.known-locations-modal-title,
.consultation-modal-title,
.demo-modal-title,
.known-locations-section-title,
.paywall-tier-badge {
  font-family: 'Geist Mono Pixel', monospace !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase;
}
/* Detection list (What ForensAI Detects) rule names only */
.menu-detects-rule-name {
  font-family: 'Geist Mono Pixel', monospace !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
}

.total-findings-value {
  font-size: 24px;
  font-weight: 600;
  color: #e65d31;
  text-align: left;
  margin-top: 0;
  margin-bottom: 0;
  font-variant-numeric: tabular-nums;
}

.breakdown-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breakdown-bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.breakdown-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bar-category {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.bar-count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.breakdown-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.breakdown-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #e65d31 0%, #e65d31 100%);
  border-radius: 3px;
  transition: width 0.6s ease;
  box-shadow: 0 0 8px rgba(230, 93, 49, 0.3);
}

/* Sidebar Files Card */
.sidebar-files-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
}

.sidebar-files-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  max-height: 400px;
  overflow-y: auto;
}

.sidebar-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-file-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.sidebar-file-item.active {
  background: rgba(230, 93, 49, 0.1);
  border-color: #e55e31;
  border-width: 2px;
}

.sidebar-file-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-file-item.active .sidebar-file-icon {
  color: #e65d31;
}

.sidebar-file-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-file-name {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-file-item.active .sidebar-file-name {
  color: #ffffff;
}

.sidebar-file-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.sidebar-file-date {
  color: rgba(255, 255, 255, 0.5);
}

.sidebar-file-separator {
  color: rgba(255, 255, 255, 0.3);
}

.sidebar-file-count {
  color: rgba(255, 255, 255, 0.5);
}

.sidebar-add-file-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.sidebar-add-file-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.sidebar-add-file-btn svg {
  width: 14px;
  height: 14px;
}

.sidebar-manage-files-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(230, 93, 49, 0.1);
  border: 1px solid rgba(230, 93, 49, 0.3);
  border-radius: 8px;
  color: #e65d31;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.sidebar-manage-files-btn:hover {
  background: rgba(230, 93, 49, 0.15);
  border-color: rgba(230, 93, 49, 0.4);
  color: #e65d31;
}

.sidebar-manage-files-btn svg {
  width: 14px;
  height: 14px;
}

/* File Manager Container */
.file-manager-container {
  display: none;
  width: 100%;
  padding: 0;
}

.file-manager-container.active {
  display: block;
}

/* File Manager View */
.file-manager-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.file-manager-nav {
  margin-bottom: 8px;
}

.back-to-findings-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.back-to-findings-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.back-to-findings-link svg {
  width: 16px;
  height: 16px;
}

.file-manager-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.file-manager-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.file-manager-view-all-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.file-manager-view-all-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.file-manager-view-all-btn svg {
  width: 16px;
  height: 16px;
}

.file-manager-add-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #e65d31;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(230, 93, 49, 0.3);
}

.file-manager-add-btn:hover {
  background: #e65d31;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230, 93, 49, 0.4);
}

.file-manager-add-btn svg {
  width: 16px;
  height: 16px;
}

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

.file-manager-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.file-manager-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Demo: grey out scanned files in Manage Files — show all CTAs but disabled */
.file-manager-demo-readonly .file-manager-card-demo-readonly {
  opacity: 0.85;
  filter: saturate(0.7);
}
.file-manager-demo-readonly .file-manager-card-demo-readonly:hover {
  transform: none;
}
.file-manager-demo-readonly .file-manager-add-btn:disabled,
.file-manager-demo-readonly .file-manager-add-btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.5);
}
.file-manager-card-actions-disabled .file-manager-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.5);
}
.file-manager-card-demo-readonly .file-manager-card-actions .file-manager-action-btn {
  pointer-events: none;
}

.file-manager-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.file-manager-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.file-manager-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-manager-icon svg {
  width: 100%;
  height: 100%;
}

.file-manager-name {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  word-break: break-word;
  flex: 1;
}

.file-risk-badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.file-risk-badge.risk-low {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.file-risk-badge.risk-medium {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #eab308;
}

.file-risk-badge.risk-high {
  background: rgba(185, 28, 28, 0.15);
  border: 1px solid rgba(185, 28, 28, 0.3);
  color: #b91c1c;
}

.file-risk-badge.risk-critical {
  background: rgba(185, 28, 28, 0.15);
  border: 1px solid rgba(185, 28, 28, 0.3);
  color: #b91c1c;
}

.file-risk-badge.risk-moderate {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #eab308;
}

.file-manager-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.file-manager-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  flex-wrap: wrap;
}

.file-manager-meta-label {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.file-manager-meta-value {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.file-manager-meta-separator {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 4px;
}

.file-manager-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.file-manager-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.file-manager-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.file-manager-view-btn {
  background: rgba(230, 93, 49, 0.1);
  border-color: rgba(230, 93, 49, 0.3);
  color: #e65d31;
}

.file-manager-view-btn:hover {
  background: rgba(230, 93, 49, 0.15);
  border-color: rgba(230, 93, 49, 0.4);
  color: #e65d31;
}

.file-manager-delete-btn {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: rgba(239, 68, 68, 0.8);
}

.file-manager-delete-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.file-manager-action-btn svg {
  width: 16px;
  height: 16px;
}

/* Viewing File Indicator */
.viewing-file-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(230, 93, 49, 0.1);
  border: 1px solid rgba(230, 93, 49, 0.3);
  border-radius: 8px;
  font-size: 13px;
}

.viewing-file-label {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.viewing-file-name {
  color: #e65d31;
  font-weight: 600;
}

.view-all-files-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
  transition: all 0.2s;
}

.view-all-files-link:hover {
  color: #e65d31;
  gap: 6px;
}

.view-all-files-link svg {
  width: 14px;
  height: 14px;
}

/* New Scan Button */
.sidebar-export-btn {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  margin-top: auto;
}

.sidebar-export-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* File Filter Pills */
.file-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  margin-bottom: 8px;
  align-items: center;
}

.file-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.file-pill:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.file-pill.active {
  background: rgba(230, 93, 49, 0.15);
  border-color: #e55e31;
  color: #e65d31;
}

.file-pill.active:hover {
  background: rgba(230, 93, 49, 0.2);
  border-color: #e55e31;
}

.file-pill-all {
  font-weight: 600;
}

.file-pill-add {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.5);
}

.file-pill-add:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
}

.file-pill-add svg {
  width: 14px;
  height: 14px;
}

.files-analyzed-link {
  transition: all 0.2s;
}

.files-analyzed-link:hover {
  color: #e65d31 !important;
  text-decoration-color: #e65d31 !important;
}

/* Responsive: File pills */
@media (max-width: 1400px) {
  .file-filter-pills {
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  
  .file-filter-pills::-webkit-scrollbar {
    height: 4px;
  }
  
  .file-filter-pills::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
  }
  
  .file-filter-pills::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
  }
  
  .file-filter-pills::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
  }
}

/* Main Content Area */
.dashboard-main {
  flex: 1;
  margin-left: 260px;
  margin-right: 300px;
  margin-top: -15px;
  padding: 32px;
  overflow-y: auto;
  min-height: calc(100vh - 64px);
  z-index: 1;
  position: relative;
  transition: margin-right 0.3s ease, margin-left 0.3s ease;
}

.dashboard-main.chat-expanded {
  margin-right: 0;
}

.dashboard-main.findings-expanded {
  margin-right: 0;
}

/* Evidence/Files view: hide other sections so only the active view shows (fixes paid dashboard) */
/* Use #dashboard-findings-section to avoid hiding evidence-view-section (which also has dashboard-findings-section class) */
.dashboard-page.evidence-view-active #dashboard-findings-section,
.dashboard-page.evidence-view-active .dashboard-upload-area,
.dashboard-page.evidence-view-active .file-manager-container {
  display: none !important;
}
.dashboard-page.files-view-active #dashboard-findings-section,
.dashboard-page.files-view-active .dashboard-upload-area,
.dashboard-page.files-view-active .evidence-view-section {
  display: none !important;
}

/* Top Stat Cards Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 1400px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  min-height: 140px;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stat-icon {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 36px;
  height: 36px;
  stroke: rgba(255, 255, 255, 0.9);
  fill: none;
}

.stat-icon-findings,
.stat-icon-critical,
.stat-icon-platforms,
.stat-icon-time {
  color: rgba(255, 255, 255, 0.9);
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Dashboard Upload Area */
.dashboard-upload-area {
  margin-bottom: 32px;
}

.dashboard-upload-zone {
  position: relative;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 64px 32px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  margin-top: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.dashboard-upload-zone:hover {
  border-color: rgba(230, 93, 49, 0.5);
  background: rgba(230, 93, 49, 0.05);
  box-shadow: 0 8px 32px rgba(230, 93, 49, 0.1);
}

.dashboard-upload-zone.drag-over {
  border-color: #e55e31;
  background: rgba(230, 93, 49, 0.1);
  transform: scale(1.01);
  box-shadow: 0 12px 40px rgba(230, 93, 49, 0.2);
}

/* Demo: drop zone visible but greyed out and inoperable */
.dashboard-upload-area-demo-disabled .dashboard-upload-zone-disabled {
  opacity: 0.65;
  filter: saturate(0.6);
  cursor: not-allowed;
  pointer-events: none;
}
.dashboard-upload-area-demo-disabled .dashboard-upload-zone-disabled:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transform: none;
}
.dashboard-upload-area-demo-disabled .dashboard-upload-zone-disabled:hover .upload-icon {
  color: rgba(230, 93, 49, 0.7);
  transform: none;
}

.upload-zone-content {
  pointer-events: none;
}

/* Add Files to Scan: light theme, dark grey text */
.dashboard-upload-area .dashboard-upload-zone {
  background: #ffffff !important;
  border-color: #e8e8e8 !important;
}
.dashboard-upload-area .dashboard-upload-zone:hover {
  border-color: rgba(230, 93, 49, 0.5) !important;
  background: rgba(230, 93, 49, 0.04) !important;
}
.dashboard-upload-area .dashboard-upload-zone.drag-over {
  border-color: #e65d31 !important;
  background: rgba(230, 93, 49, 0.08) !important;
}
.dashboard-upload-area .upload-zone-title {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
  color: #4a4a4a !important;
}
.dashboard-upload-area .upload-zone-subtext {
  margin-bottom: 24px;
  font-size: 14px;
  color: #666 !important;
}
.dashboard-upload-area .upload-zone-formats {
  font-size: 12px;
  color: #666 !important;
}
.dashboard-upload-area .upload-area-header .main-title,
.dashboard-upload-area .dashboard-empty-heading,
.dashboard-upload-area .dashboard-empty-subtext {
  color: #1a1a1a !important;
}
.dashboard-upload-area .upload-area-header .close-upload-btn {
  background: rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #4a4a4a !important;
}
.dashboard-upload-area .upload-area-header .close-upload-btn:hover {
  background: rgba(0, 0, 0, 0.1) !important;
  color: #1a1a1a !important;
}
.dashboard-upload-area .sidebar-data-export-help-btn {
  color: #e65d31 !important;
}

.upload-icon {
  width: 64px;
  height: 64px;
  color: rgba(230, 93, 49, 0.7);
  margin: 0 auto;
  transition: all 0.3s ease;
}

.dashboard-upload-zone:hover .upload-icon {
  color: #e65d31;
  transform: translateY(-4px);
}

.dashboard-file-list {
  margin-top: 20px;
}

.close-upload-btn {
  transition: all 0.2s;
}

.close-upload-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.dashboard-findings-section {
  display: block;
}

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

.main-header-with-critical {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.main-header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.main-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.view-all-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  padding: 6px 12px;
  border-radius: 6px;
}

.view-all-link:hover {
  color: #e65d31;
  background: rgba(230, 93, 49, 0.1);
}

.back-to-dashboard-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-right: auto;
}

.back-to-dashboard-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.main-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

/* AI Analysis Card */
.ai-analysis-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin-bottom: 32px;
  box-shadow: none;
  position: relative;
  min-height: 180px;
}

.ai-analysis-card.preview-locked {
  min-height: 180px;
  position: relative;
}

.ai-analysis-card.preview-locked .ai-analysis-header,
.ai-analysis-card.preview-locked .ai-analysis-content,
.ai-analysis-card.preview-locked .ai-analysis-footer,
.ai-analysis-card.preview-locked .ai-analysis-loading {
  opacity: 0.3;
  pointer-events: none;
}

.ai-analysis-header {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-analysis-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.ai-analysis-content {
  padding-top: 16px;
  margin-bottom: 24px;
}

.ai-summary-text {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  min-height: 24px; /* Prevent layout shift during typing */
}

/* Typing indicator in summary area */
.ai-summary-text .chat-typing-indicator {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 8px 0;
}

.ai-critical-finding {
  padding: 20px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  margin-bottom: 24px;
}

.ai-critical-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #b91c1c;
  margin-bottom: 8px;
}

.ai-critical-text {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.ai-critical-description {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
}

/* Most Critical Finding Card in Findings Section */
.most-critical-finding-card {
  margin: 24px 0;
  padding: 24px;
  border: 2px solid;
  border-left: 4px solid;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* High risk level (softer red) */
.most-critical-finding-card.critical {
  background: rgba(185, 28, 28, 0.12);
  border-color: rgba(185, 28, 28, 0.3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 20px rgba(185, 28, 28, 0.15);
}

.most-critical-finding-card.critical:hover {
  background: rgba(185, 28, 28, 0.15);
  border-color: rgba(185, 28, 28, 0.4);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3), 0 0 30px rgba(185, 28, 28, 0.2);
  transform: translateY(-2px);
}

/* High level (orange) */
.most-critical-finding-card.high {
  background: rgba(230, 93, 49, 0.12);
  border-color: rgba(230, 93, 49, 0.3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 20px rgba(230, 93, 49, 0.15);
}

.most-critical-finding-card.high:hover {
  background: rgba(230, 93, 49, 0.15);
  border-color: rgba(230, 93, 49, 0.4);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3), 0 0 30px rgba(230, 93, 49, 0.2);
  transform: translateY(-2px);
}

.most-critical-finding-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.most-critical-finding-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.most-critical-finding-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.most-critical-finding-content {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 8px;
}

.most-critical-finding-description {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.most-critical-finding-card.critical .most-critical-finding-description {
  border-top-color: rgba(239, 68, 68, 0.2);
}

.most-critical-finding-card.high .most-critical-finding-description {
  border-top-color: rgba(230, 93, 49, 0.2);
}

.ai-analysis-actions {
  margin-bottom: 24px;
}

.ai-analysis-actions-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
}

.ai-analysis-actions-list {
  margin: 0;
  padding-left: 20px;
  list-style: decimal;
}

.ai-analysis-actions-list li {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.ai-analysis-actions-list li:last-child {
  margin-bottom: 0;
}

.ai-analysis-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-analysis-chat-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 17px;
  font-weight: 600;
  color: #e65d31;
  text-decoration: none;
  transition: all 0.2s;
}

.ai-analysis-chat-link:hover {
  color: #e65d31;
  gap: 8px;
}

.ai-analysis-chat-link::after {
  content: '→';
  transition: transform 0.2s;
}

.ai-analysis-chat-link:hover::after {
  transform: translateX(4px);
}

/* AI Analysis Loading State */
.ai-analysis-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  text-align: center;
}

.ai-analysis-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(230, 93, 49, 0.2);
  border-top-color: #e65d31;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

.ai-analysis-loading-text {
  font-size: 15px;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

/* AI Analysis Locked State */
.ai-analysis-locked {
  position: relative;
}

.ai-analysis-locked-blurred {
  filter: blur(8px);
  opacity: 0.3;
  pointer-events: none;
  user-select: none;
  position: relative;
  z-index: 0;
}

.ai-analysis-teaser {
  padding: 40px 32px;
  text-align: center;
}

.ai-analysis-teaser-text {
  font-size: 16px;
  color: #374151;
  margin: 0 0 20px 0;
  font-weight: 500;
}

.ai-analysis-unlock-btn {
  padding: 12px 24px;
  background: #e65d31;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(230, 93, 49, 0.3);
}

.ai-analysis-unlock-btn:hover {
  background: #e65d31;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230, 93, 49, 0.4);
}

.ai-analysis-unlock-btn:active {
  transform: translateY(0);
}

.main-controls {
  display: flex;
  gap: 8px;
}

.critical-count-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.critical-count-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(185, 28, 28, 0.15);
  border-radius: 8px;
  color: #b91c1c;
  flex-shrink: 0;
}

.critical-count-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.critical-count-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(185, 28, 28, 0.8);
}

.critical-count-value {
  font-size: 20px;
  font-weight: 700;
  color: #b91c1c;
  font-variant-numeric: tabular-nums;
}

.control-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Findings List */
.findings-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Finding Card */
.finding-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.finding-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(230, 93, 49, 0.2);
  border-color: rgba(255, 255, 255, 0.12);
}

.finding-card.finding-highlighted {
  border-left: 4px solid #e65d31;
  background: rgba(230, 93, 49, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 20px rgba(230, 93, 49, 0.3);
  animation: findingHighlightPulse 0.5s ease-out;
}

@keyframes findingHighlightPulse {
  0% {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 0 rgba(230, 93, 49, 0);
  }
  50% {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 30px rgba(230, 93, 49, 0.5);
  }
  100% {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 20px rgba(230, 93, 49, 0.3);
  }
}

.finding-card.finding-highlighted-fade {
  border-left: 4px solid #e65d31;
  background: rgba(230, 93, 49, 0.05);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 10px rgba(230, 93, 49, 0.2);
  transition: all 0.3s ease-out;
}

.finding-card-header {
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
}

.finding-severity-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
  transition: all 0.2s;
  position: relative;
}

.finding-lock-overlay {
  display: none;
}

.finding-lock-overlay svg {
  display: none;
}

.finding-severity-icon.severity-low {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.finding-severity-icon.severity-medium {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

.finding-severity-icon.severity-high {
  background: rgba(249, 115, 22, 0.15);
  color: #e55e31;
}

.finding-severity-icon.severity-critical {
  background: rgba(185, 28, 28, 0.15);
  color: #b91c1c;
}

.finding-content-main {
  flex: 1;
  min-width: 0;
}

.finding-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.finding-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

.finding-date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
  margin-bottom: 8px;
}

.finding-category-badge {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
}

.finding-platform-badge {
  padding: 4px 10px;
  background: rgba(230, 93, 49, 0.15);
  border: 1px solid rgba(230, 93, 49, 0.3);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #e65d31;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mobile: Stack finding badges below title (landing mockup) */
@media (max-width: 768px) {
  .forensai-mockup-findings .finding-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .forensai-mockup-findings .finding-title {
    flex: none;
    width: 100%;
  }
  
  .forensai-mockup-findings .finding-badges-group {
    width: 100%;
    flex-wrap: wrap;
  }
}

/* Mobile paid dashboard: right-align down arrow, Security, Apple stacked */
@media (max-width: 768px) {
  .finding-card .finding-header-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
}

.finding-natural-description {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.finding-details-extra {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.finding-actionable-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.finding-actionable-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: rgba(230, 93, 49, 0.1);
  border: 1px solid rgba(230, 93, 49, 0.2);
  border-radius: 8px;
  color: #e65d31;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.finding-actionable-toggle:hover {
  background: rgba(230, 93, 49, 0.15);
  border-color: rgba(230, 93, 49, 0.3);
}

.finding-actionable-toggle .toggle-icon {
  transition: transform 0.2s;
  width: 16px;
  height: 16px;
}

.finding-actionable-steps {
  margin-top: 12px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.action-step {
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.action-step.primary {
  background: rgba(230, 93, 49, 0.1);
  border-color: rgba(230, 93, 49, 0.2);
}

.action-step.important {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.3);
}

.action-step.critical {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

.action-step.warning {
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.3);
}

.action-step-btn {
  width: auto;
  text-align: left;
  background: none;
  border: none;
  color: #e65d31;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}

.action-step-btn:hover {
  text-decoration: underline;
}

.action-step-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  white-space: nowrap;
}

/* Stack vertically on mobile */
@media (max-width: 768px) {
  .finding-actionable-steps {
    flex-direction: column;
  }
  
  .action-step {
    width: 100%;
  }
  
  .action-step-btn {
    width: 100%;
    white-space: normal;
  }
  
  .action-step-text {
    white-space: normal;
  }
}

/* Timeline Visualization */
.timeline-section {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.timeline-header-content {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
}

.timeline-title {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.timeline-header-summary {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 400;
  display: none;
}

.timeline-toggle-icon {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.2s;
}

.timeline-container {
  margin-top: 20px;
}

.timeline-empty {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* Heatmap Range Selector */
.heatmap-range-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.heatmap-range-btn {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.heatmap-range-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

.heatmap-range-btn.active {
  background: rgba(230, 93, 49, 0.15);
  border-color: rgba(230, 93, 49, 0.3);
  color: #e65d31;
  font-weight: 600;
}

#heatmap-calendar-wrapper {
  margin-top: 0;
}

/* Heatmap Calendar */
.heatmap-calendar-container {
  margin-top: 16px;
}

.heatmap-calendar-scroll {
  overflow-x: auto;
  padding: 8px 0;
}

.heatmap-calendar {
  display: flex;
  gap: 4px;
  min-width: fit-content;
}

.heatmap-day-labels {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-right: 8px;
}

.heatmap-label-spacer {
  height: 20px;
}

.heatmap-day-label {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}

.heatmap-day-label-empty {
  opacity: 0;
}

.heatmap-month-label {
  width: 40px;
  height: 14px;
  display: flex;
  align-items: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  margin-right: 4px;
}

.heatmap-week {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.heatmap-cell {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.heatmap-cell:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.2);
  z-index: 1;
}

.heatmap-cell-empty {
  background: transparent !important;
  cursor: default;
  border: none;
}

.heatmap-cell-empty:hover {
  transform: none;
}

/* Monthly view styles */
.heatmap-monthly-view {
  padding: 20px 0;
}

.heatmap-monthly-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.heatmap-monthly-header {
  display: grid;
  grid-template-columns: 80px repeat(auto-fit, minmax(60px, 1fr));
  gap: 4px;
  margin-bottom: 8px;
}

.heatmap-year-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 4px;
}

.heatmap-monthly-row {
  display: grid;
  grid-template-columns: 80px repeat(auto-fit, minmax(60px, 1fr));
  gap: 4px;
  align-items: center;
}

.heatmap-month-cell {
  width: 100%;
  aspect-ratio: 1;
  min-width: 40px;
  min-height: 40px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.heatmap-month-cell:hover {
  border-color: rgba(230, 93, 49, 0.5);
  transform: scale(1.1);
  z-index: 10;
  position: relative;
}

.timeline-cell-clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}

.timeline-cell-clickable:hover {
  border: 2px solid rgba(230, 93, 49, 0.6) !important;
  transform: scale(1.1);
  z-index: 10;
  position: relative;
}

.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.heatmap-legend-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.heatmap-legend-cells {
  display: flex;
  gap: 3px;
}

.heatmap-legend-cell {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* Timeline Activity Log Styles */
.timeline-activity-log {
  width: 100%;
  padding: 0;
}

.timeline-activity-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background-color 0.2s ease;
  align-items: start;
}

.timeline-activity-row:last-child {
  border-bottom: none;
}

.timeline-activity-row:hover {
  background-color: rgba(255, 255, 255, 0.03);
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}

.timeline-activity-date {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  grid-row: 1;
  grid-column: 1;
}

.timeline-activity-dots {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  grid-row: 1;
  grid-column: 2;
  min-width: 60px;
}

.timeline-severity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.timeline-activity-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  grid-row: 2;
  grid-column: 1 / -1;
  margin-top: 2px;
}

.timeline-row-hidden {
  display: none;
}

.timeline-show-more {
  text-align: center;
  padding: 16px 0;
  margin-top: 8px;
}

.timeline-show-more-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.timeline-show-more-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
}

.timeline-empty {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* Horizontal Timeline Styles (legacy - can be removed if not used) */
.horizontal-timeline-container {
  width: 100%;
  padding: 20px 0;
  position: relative;
}

.horizontal-timeline-wrapper {
  position: relative;
  width: 100%;
  height: 80px;
  margin-bottom: 40px;
}

.horizontal-timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #444;
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-today-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(230, 93, 49, 0.6);
  z-index: 2;
  pointer-events: none;
}

.timeline-today-indicator::before {
  content: 'Today';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: rgba(230, 93, 49, 0.8);
  white-space: nowrap;
}

.timeline-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  transition: all 0.2s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 0 rgba(230, 93, 49, 0);
}

.timeline-marker-small {
  width: 6px;
  height: 6px;
}

.timeline-marker-medium {
  width: 8px;
  height: 8px;
}

.timeline-marker-large {
  width: 12px;
  height: 12px;
}

.timeline-marker:hover {
  transform: translate(-50%, -50%) scale(1.5);
  box-shadow: 0 0 8px rgba(230, 93, 49, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
  z-index: 10;
}

.timeline-marker-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-axis {
  position: relative;
  width: 100%;
  height: 30px;
  margin-top: 10px;
}

.timeline-axis-label {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  pointer-events: none;
}

/* Geographic Section */
.geographic-section {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.geographic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.geographic-header-content {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
}

.geographic-title {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.geographic-header-summary {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 400;
  display: none;
}

.geographic-toggle-icon {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.2s;
}

.geographic-container {
  margin-top: 20px;
}

.geographic-summary {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
  font-weight: 500;
}

.geographic-map-container {
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.geographic-map {
  width: 100%;
  height: 400px;
  background: #1e293b;
}

/* Override Leaflet default styles for dark theme */
.geographic-map .leaflet-container {
  background: #1e293b;
}

/* CARTO dark tiles — no filter needed */

/* Leaflet popups: dark UI to match forensai cards (geographic + finding maps) */
.geographic-map .leaflet-popup-content-wrapper,
.finding-map-leaflet .leaflet-popup-content-wrapper {
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.geographic-map .leaflet-popup-content,
.finding-map-leaflet .leaflet-popup-content {
  color: rgba(255, 255, 255, 0.95);
  margin: 10px 14px;
}

.geographic-map .leaflet-popup-tip,
.finding-map-leaflet .leaflet-popup-tip {
  background: #1a1a1a;
}

.geographic-map .leaflet-popup-content-wrapper a,
.finding-map-leaflet .leaflet-popup-content-wrapper a {
  color: rgba(255, 255, 255, 0.9);
}

.geographic-location-item.geographic-highlighted {
  background: rgba(230, 93, 49, 0.15);
  border-color: rgba(230, 93, 49, 0.4);
}

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

.geographic-locations-header {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.geographic-location-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.geographic-location-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.geographic-location-icon {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.geographic-location-name {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.geographic-location-vpn-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  color: #b45309;
  background: rgba(180, 83, 9, 0.2);
  border-radius: 9999px;
  margin-left: 8px;
  white-space: nowrap;
}

.geographic-location-vpn-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 6px;
  margin-bottom: 4px;
  line-height: 1.4;
}

.geographic-location-vpn-mode-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  background: rgba(107, 114, 128, 0.25);
  border-radius: 9999px;
  margin-left: 8px;
  white-space: nowrap;
}

.geographic-location-vpn-mode-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 6px;
  margin-bottom: 4px;
  line-height: 1.4;
}

.geographic-location-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.geographic-login-count {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.geographic-location-separator {
  color: rgba(255, 255, 255, 0.3);
}

.geographic-location-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.geographic-location-status.status-safe {
  color: #22c55e;
}

.geographic-location-status.status-suspect {
  color: #b45309;
}

.geographic-location-status.status-unfamiliar {
  color: #eab308;
}

.status-icon {
  font-size: 14px;
}

.status-icon-flag {
  font-size: 14px;
}

.geographic-location-platform-summary {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
  line-height: 1.4;
}

.geographic-location-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.geographic-action-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.geographic-safe-btn:hover {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #22c55e;
}

.geographic-suspect-btn:hover {
  background: rgba(180, 83, 9, 0.12);
  border-color: rgba(180, 83, 9, 0.35);
  color: #b45309;
}

.geographic-empty {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* Known Locations Sidebar Card */
.sidebar-professional-help-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  margin-bottom: -4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.professional-help-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.professional-help-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e65d31;
  font-size: 24px;
  font-weight: bold;
}

.sidebar-professional-help-card.consultation-requested .professional-help-icon {
  color: #10b981;
}

.professional-help-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.professional-help-headline {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: -0.02px;
}

.professional-help-subtext {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
}

.professional-help-btn {
  margin-top: 8px;
  padding: 10px 16px;
  background: #e65d31;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.professional-help-btn:hover {
  background: #d14d26;
  transform: translateY(-1px);
}

.professional-help-btn:active {
  transform: translateY(0);
}

/* Consultation Modal */
.consultation-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.consultation-modal {
  background: #1a1a1a;
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Demo: Request Professional Consultation form visible but greyed out and inoperable */
.consultation-modal-overlay-demo-disabled .consultation-modal {
  opacity: 0.65;
  filter: saturate(0.6);
  pointer-events: none;
  cursor: not-allowed;
}
.consultation-modal-overlay-demo-disabled .consultation-modal-close {
  pointer-events: auto;
  cursor: pointer;
}

.consultation-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.consultation-modal-title {
  font-family: 'Geist Mono Pixel', monospace !important;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin: 0;
  text-transform: none;
}

.consultation-modal-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.consultation-modal-close:hover {
  color: #ffffff;
}

.consultation-form {
  padding: 24px;
}

.consultation-form-group {
  margin-bottom: 24px;
}

.consultation-form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.consultation-form-label .required {
  color: #ef4444;
}

.consultation-form-label .optional {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.consultation-radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.consultation-radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.consultation-radio-label:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.consultation-radio-label input[type="radio"] {
  margin: 0;
  cursor: pointer;
}

.consultation-radio-label span {
  color: #ffffff;
  font-size: 14px;
}

.consultation-input,
.consultation-textarea {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.consultation-input:focus,
.consultation-textarea:focus {
  outline: none;
  border-color: #e55e31;
  background: rgba(255, 255, 255, 0.08);
}

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

.consultation-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.consultation-checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  cursor: pointer;
}

.consultation-checkbox-label span {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.5;
}

.consultation-helper-text {
  margin-top: 8px;
  margin-left: 26px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

.consultation-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.consultation-submit-btn {
  flex: 1;
  padding: 14px 24px;
  background: #e55e31;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.consultation-submit-btn:hover {
  background: #ea580c;
  transform: translateY(-1px);
}

.consultation-submit-btn:active {
  transform: translateY(0);
}

.consultation-cancel-btn {
  padding: 14px 24px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.consultation-cancel-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* Sign In Modal Styles */
.sign-in-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.sign-in-modal {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 0;
  max-width: 440px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sign-in-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sign-in-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.sign-in-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.sign-in-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.sign-in-modal-content {
  padding: 24px;
}

.sign-in-modal-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  line-height: 1.6;
}

.sign-in-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sign-in-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sign-in-form-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.sign-in-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  font-size: 16px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  transition: all 0.2s;
  box-sizing: border-box;
}

.sign-in-input:focus {
  outline: none;
  border-color: #e55e31;
  background: rgba(255, 255, 255, 0.15);
}

.sign-in-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.sign-in-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #ef4444;
  font-size: 14px;
}

.sign-in-error.has-action {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.sign-in-start-scan-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #e65d31 0%, #d14d26 100%);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  width: 100%;
}

.sign-in-start-scan-btn:hover {
  background: linear-gradient(135deg, #e55e31 0%, #d14f26 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(229, 94, 49, 0.3);
}

.sign-in-start-scan-btn:active {
  transform: translateY(0);
}

.sign-in-success {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  color: #22c55e;
  font-size: 14px;
}

.sign-in-success svg {
  flex-shrink: 0;
}

.sign-in-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.sign-in-submit-btn {
  flex: 1;
  padding: 14px 24px;
  background: linear-gradient(135deg, #e65d31 0%, #d14d26 100%);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.sign-in-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #e55e31 0%, #d14f26 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(229, 94, 49, 0.3);
}

.sign-in-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.sign-in-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sidebar-known-locations-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
  transition: opacity 0.3s ease;
}

.sidebar-known-locations-card.locked {
  opacity: 0.4;
  pointer-events: none;
}

.user-vpn-toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-vpn-toggle-label-block {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.user-vpn-toggle-label-block .user-vpn-toggle-text {
  flex: 1;
  min-width: 0;
}

.user-vpn-toggle-icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.user-vpn-toggle-label {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  display: block;
}

.user-vpn-toggle-descriptor {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 4px 0 0 0;
  line-height: 1.4;
  max-width: 100%;
}

.dashboard-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}

.dashboard-toggle-switch .user-vpn-toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.dashboard-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 26px;
  transition: 0.25s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard-toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background: #ffffff;
  border-radius: 50%;
  transition: 0.25s;
}

.user-vpn-toggle-input:checked + .dashboard-toggle-slider {
  background: rgba(34, 197, 94, 0.5);
  border-color: rgba(34, 197, 94, 0.6);
}

.user-vpn-toggle-input:checked + .dashboard-toggle-slider:before {
  transform: translateX(18px);
}

.user-vpn-toggle-input:disabled + .dashboard-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Known Locations title: same as Need Help headline, sans icon */
.sidebar-known-locations-card .breakdown-header {
  margin-bottom: 8px;
}

.sidebar-known-locations-card .breakdown-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: -0.02px;
  text-transform: none;
}

.known-locations-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.known-locations-summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.known-locations-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.known-locations-icon.safe {
  color: #22c55e;
}

.known-locations-icon.suspect {
  color: #ef4444;
}

.known-locations-count {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.known-locations-empty-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.sidebar-manage-locations-btn {
  width: 100%;
  padding: 10px 16px;
  background: rgba(230, 93, 49, 0.1);
  border: 1px solid rgba(230, 93, 49, 0.3);
  border-radius: 8px;
  color: #e65d31;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-manage-locations-btn:hover {
  background: rgba(230, 93, 49, 0.15);
  border-color: rgba(230, 93, 49, 0.4);
  color: #e65d31;
}

/* Case File page - sidebar text links (same palette as dashboard) */
.case-file-page .case-file-sidebar-link {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}
.case-file-page .case-file-sidebar-link:hover {
  color: #e65d31;
}

/* Case File sidebar: Quick actions heading — larger, brand orange, Instrument Sans */
.case-file-page .sidebar-summary-card .breakdown-title {
  font-family: 'Geist Mono Pixel', monospace !important;
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  text-transform: none;
  letter-spacing: 0;
}
.case-file-page .sidebar-summary-card .breakdown-header {
  text-align: center;
}

/* Case File sidebar: center privacy/sync copy on all sizes */
.case-file-page .case-file-sidebar-desc,
.case-file-page .case-file-sync-notice {
  text-align: center;
}

/* Case File – Quick Log (sidebar): label + compact ghost buttons */
.case-file-quick-log-card .case-file-quick-log-label {
  font-family: 'Geist Mono Pixel', monospace !important;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0 0 10px 0;
  text-align: center;
}
.case-file-quick-log-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.case-file-quick-log-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.case-file-quick-log-btn .case-file-quick-log-icon {
  flex-shrink: 0;
  color: #e65d31;
  stroke: #e65d31;
}
.case-file-quick-log-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
}
.case-file-quick-log-btn:hover .case-file-quick-log-icon {
  color: #e65d31;
  stroke: #e65d31;
}

/* Case File – AI chat in right column: match findings chat structure, warm tint on messages only */
.case-file-page .dashboard-chat {
  padding: 0;
  background: rgba(20, 20, 20, 0.6);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.case-file-page .dashboard-chat .chat-content.case-file-chat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.case-file-page .dashboard-chat .case-file-chat-messages {
  background: rgba(255, 248, 240, 0.04);
  flex: 1;
  min-height: 0;
}

/* Case File – main header and Log Incident button */
.case-file-main .case-file-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.case-file-main .case-file-header .main-title {
  margin: 0;
}
.case-file-log-incident-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.case-file-main .topbar-new-scan-btn.case-file-log-locked {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}
.case-file-add-incident-gate-prompt {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.case-file-add-incident-gate-prompt a {
  color: #e55e31;
  font-weight: 600;
  text-decoration: none;
}

/* Inline form (slides down) */
.case-file-form-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  margin-bottom: 0;
}
.case-file-form-wrap.case-file-form-open {
  max-height: 800px;
  margin-bottom: 24px;
}
.case-file-form {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
.case-file-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.case-file-form-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.case-file-form-input {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.case-file-form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.case-file-form-input:focus {
  outline: none;
  border-color: rgba(230, 93, 49, 0.5);
  background: rgba(255, 255, 255, 0.06);
}
.case-file-form-textarea {
  resize: vertical;
  min-height: 72px;
}
.case-file-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* Filter bar */
.case-file-filter-bar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.case-file-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.case-file-filter-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.case-file-filter-select,
.case-file-filter-date {
  min-width: 140px;
}
/* From + To on same row (desktop and mobile) */
.case-file-filter-date-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.case-file-filter-date-row .case-file-filter-group {
  flex: 0 1 auto;
}
@media (max-width: 768px) {
  .case-file-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .case-file-filter-group-type {
    width: 100%;
  }
  .case-file-filter-date-row {
    width: 100%;
    flex: 1 1 auto;
  }
  .case-file-filter-date-row .case-file-filter-group {
    flex: 1 1 0;
    min-width: 0;
  }
  .case-file-filter-date-row .case-file-filter-date {
    min-width: 0;
    width: 100%;
  }
}
.case-file-entry-count {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin-left: auto;
}

/* Timeline */
.case-file-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.case-file-timeline-empty {
  padding: 32px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

/* Timeline card */
.case-file-timeline-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
.case-file-card-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.case-file-type-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.case-file-type-badge.type-network {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}
.case-file-type-badge.type-account {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.case-file-type-badge.type-device {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.case-file-type-badge.type-physical {
  background: rgba(168, 85, 247, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(168, 85, 247, 0.35);
}
.case-file-source-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.case-file-card-body {
  flex: 1;
  min-width: 0;
}
.case-file-card-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
  white-space: nowrap;
}
.case-file-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 8px;
  line-height: 1.3;
}
.case-file-card-desc,
.case-file-card-desc-intro {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin: 0 0 6px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.case-file-card-findings-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin: 8px 0 4px 0;
}
.case-file-card-findings {
  margin: 0 0 6px 0;
  padding-left: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}
.case-file-card-findings li {
  margin-bottom: 2px;
}
.case-file-card-evidence {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}
.case-file-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.case-file-status-select {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.case-file-delete-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #fca5a5;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.case-file-delete-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
}

/* Status tooltip (form + timeline cards) — CSS-only hover */
.case-file-status-tooltip-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 4px;
}
.case-file-status-tooltip-icon {
  font-size: 14px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.5);
  cursor: help;
}
.case-file-status-tooltip {
  position: absolute;
  top: 100%;
  margin-top: 8px;
  right: 0;
  min-width: 280px;
  max-width: min(320px, calc(100vw - 24px));
  padding: 12px;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 1000;
  white-space: normal;
  text-align: left;
}
.case-file-status-tooltip-trigger:hover .case-file-status-tooltip {
  opacity: 1;
  pointer-events: auto;
}
.case-file-status-tooltip dl {
  margin: 0;
  padding: 0;
}
.case-file-status-tooltip dt {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 2px 0;
}
.case-file-status-tooltip dt:not(:first-child) {
  margin-top: 10px;
}
.case-file-status-tooltip dd {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 0 0;
  line-height: 1.4;
}
.case-file-status-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.case-file-status-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Case file card: mobile layout */
@media (max-width: 768px) {
  .case-file-timeline-card {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
  }
  .case-file-card-left {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }
  .case-file-card-body {
    order: 2;
    min-width: 0;
  }
  .case-file-card-actions {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .case-file-card-actions .case-file-status-label-wrap {
    width: 100%;
  }
  .case-file-card-actions .case-file-status-select {
    flex: 1;
    min-width: 0;
  }
  .case-file-card-meta {
    font-size: 12px;
  }
  .case-file-card-title {
    font-size: 15px;
  }
  .case-file-card-desc,
  .case-file-card-desc-intro,
  .case-file-card-findings {
    font-size: 13px;
  }
}

/* Data Export Help in Sidebar */
.sidebar-data-export-help {
  margin-top: 16px;
}

.sidebar-data-export-help-btn {
  width: 100%;
  padding: 12px 14px;
  background: rgba(230, 93, 49, 0.1);
  border: 1px solid rgba(230, 93, 49, 0.3);
  border-radius: 12px;
  color: #e65d31;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.03px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.sidebar-data-export-help-btn:hover {
  background: rgba(230, 93, 49, 0.15);
  border-color: rgba(230, 93, 49, 0.5);
  color: #ff7a4d;
  transform: translateY(-1px);
}

.sidebar-data-export-help-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Scan History card (glassmorphism, collapsible) */
.sidebar-scan-history-card {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.scan-history-card-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.scan-history-card-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.scan-history-card-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.scan-history-card-icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.6);
}

.scan-history-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  flex: 1;
}

.scan-history-card-chevron {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.2s;
}

.scan-history-card-summary {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scan-history-card-header[aria-expanded="true"] .scan-history-card-chevron {
  transform: rotate(180deg);
}

.scan-history-card-body {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px 16px;
  max-height: 360px;
  overflow-y: auto;
}

.scan-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scan-history-empty {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 20px 12px;
  line-height: 1.5;
}

.scan-history-load-more {
  width: 100%;
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.scan-history-load-more:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.scan-history-row {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  transition: background 0.2s;
}

.scan-history-row-expandable .scan-history-row-header {
  cursor: pointer;
}

.scan-history-row-expandable:hover .scan-history-row-header {
  background: transparent;
}

.scan-history-row-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scan-history-row-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.scan-history-row-meta .scan-history-row-chevron {
  margin-left: auto;
}

.scan-history-row-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.scan-history-risk-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
}

.scan-history-risk-badge.risk-low {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.scan-history-risk-badge.risk-medium {
  background: rgba(234, 179, 8, 0.2);
  color: #eab308;
}

.scan-history-risk-badge.risk-high {
  background: rgba(185, 28, 28, 0.2);
  color: #b91c1c;
}

.scan-history-row-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.scan-history-platform-pill {
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.7);
}

.scan-history-row-findings {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.scan-history-row-chevron {
  align-self: center;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.2s;
}

.scan-history-row-details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid rgba(230, 93, 49, 0.4);
  padding-left: 10px;
  margin-left: 2px;
}

.scan-history-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.scan-history-confirmed-tag {
  font-size: 11px;
  color: #22c55e;
}

.scan-history-flagged-tag {
  font-size: 11px;
  color: #ef4444;
}

.scan-history-detections {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scan-history-detections-group {
  margin-bottom: 8px;
}

.scan-history-detections-severity-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.7);
}

.scan-history-detections-severity-label.risk-critical { color: #fca5a5; }
.scan-history-detections-severity-label.risk-high { color: #ef4444; }
.scan-history-detections-severity-label.risk-medium { color: #eab308; }
.scan-history-detections-severity-label.risk-low { color: #22c55e; }

.scan-history-detection-item {
  margin-bottom: 6px;
}

.scan-history-detection-item.finding-card {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.scan-history-detection-item .finding-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.scan-history-detection-item .finding-card-severity {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
}

.scan-history-detection-item .finding-card-title {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.scan-history-detection-item .finding-card-platform {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}

.scan-history-detection-item .finding-card-body {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.severity-critical { color: #fca5a5; }
.severity-high { color: #ef4444; }
.severity-medium { color: #eab308; }
.severity-low { color: #22c55e; }

@media (max-width: 768px) {
  .sidebar-data-export-help {
    margin-bottom: 20px;
  }
  
  .sidebar-data-export-help-btn {
    font-size: 17px;
  }
  
  .professional-help-btn {
    font-size: 16px;
  }
  
  .sidebar-manage-locations-btn {
    font-size: 15px;
  }
}

/* Known Locations Prompt */
.known-locations-prompt {
  background: rgba(230, 93, 49, 0.1);
  border: 1px solid rgba(230, 93, 49, 0.3);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  transition: opacity 0.3s ease;
}

.known-locations-prompt.locked {
  opacity: 0.4;
  pointer-events: none;
}

.known-locations-prompt-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.known-locations-prompt-content > .known-locations-prompt-actions {
  flex-basis: auto;
  flex-shrink: 0;
}

.known-locations-prompt-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.known-locations-prompt-icon svg {
  width: 100%;
  height: 100%;
}

.known-locations-prompt-text {
  flex: 1;
  min-width: 200px;
}

.known-locations-prompt-text h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.known-locations-prompt-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.known-locations-prompt-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
  width: auto;
}

@media (max-width: 768px) {
  .known-locations-prompt-content {
    flex-wrap: wrap;
  }
  
  .known-locations-prompt-content > .known-locations-prompt-actions {
    flex-basis: 100%;
    width: 100%;
    justify-content: stretch;
  }
  
  .known-locations-prompt-actions {
    flex-direction: column;
  }
  
  .known-locations-prompt-btn {
    width: 100%;
  }
}

.known-locations-prompt-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.known-locations-prompt-btn.primary {
  background: #e65d31;
  color: #ffffff;
}

.known-locations-prompt-btn.primary:hover {
  background: #e65d31;
}

.known-locations-prompt-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.known-locations-prompt-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.finding-category-badge {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.finding-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.finding-timestamp {
  color: rgba(255, 255, 255, 0.5);
}

.finding-details-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.finding-details-text svg {
  color: rgba(255, 255, 255, 0.5);
}

.finding-suspect-location-badge {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(180, 83, 9, 0.2);
  border: 1px solid rgba(180, 83, 9, 0.4);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #b45309;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 4px;
}

.finding-device-details {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.finding-device-details-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.finding-device-detail-item {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
  line-height: 1.5;
}

.finding-device-detail-item:last-child {
  margin-bottom: 0;
}

.device-detail-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-right: 8px;
}

.device-detail-value {
  color: rgba(255, 255, 255, 0.7);
}

.finding-location-map {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.finding-location-map-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
}

.finding-map-coordinates-inline {
  font-size: 11px;
  color: #9ca3af;
  font-family: monospace;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 8px;
}

.finding-map-wrapper {
  position: relative;
  width: 100%;
  min-height: 200px;
  border-radius: 8px;
  overflow: hidden;
}

.finding-map-thumbnail {
  width: 100%;
  height: auto;
  display: block;
}

.finding-map-coordinates {
  width: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.finding-map-thumbnail {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.finding-map-leaflet {
  width: 100%;
  height: 200px;
  min-height: 200px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

/* Dark theme adjustments for Leaflet maps in finding cards */
.finding-map-leaflet .leaflet-container {
  background: rgba(255, 255, 255, 0.02);
}

.finding-map-leaflet .leaflet-tile {
  filter: brightness(0.8) contrast(1.1);
}

/* Zoom control: dark/inverted colors on all maps (light buttons → dark bg + light text) */
.leaflet-control-zoom {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background: #1a1a1a !important;
}
.leaflet-control-zoom a {
  background: #1a1a1a !important;
  color: #e65d31 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.leaflet-control-zoom a:hover {
  background: rgba(230, 93, 49, 0.15) !important;
  color: #e65d31 !important;
}
.leaflet-control-zoom a:last-child {
  border-bottom: none !important;
}

.finding-map-leaflet .leaflet-control-zoom {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.7);
}

.finding-map-leaflet .leaflet-control-zoom a {
  background: rgba(0, 0, 0, 0.7);
  color: #e65d31;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.finding-map-leaflet .leaflet-control-zoom a:hover {
  background: rgba(230, 93, 49, 0.2);
  color: #e65d31;
}

/* Custom map marker style - outlined orange pin */
.finding-map-leaflet .custom-map-marker {
  background: transparent;
  border: none;
}

.finding-map-leaflet .custom-map-marker svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.finding-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.finding-expand-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s;
}

.finding-expand-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.finding-expand-btn svg {
  transition: transform 0.3s ease;
}

.finding-card.expanded .finding-expand-btn svg {
  transform: rotate(180deg);
}

.finding-card-details {
  padding: 0 24px 24px 24px;
  margin-left: 24px;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

.finding-card.expanded .finding-card-details {
  max-height: 1000px;
  padding-top: 20px;
  margin-top: 0;
}

.finding-description {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.finding-data {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.finding-data-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.finding-data-content {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  color: rgba(255, 255, 255, 0.8);
  overflow-x: auto;
  margin: 0;
}

/* Empty State */
.findings-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 32px;
  text-align: center;
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  color: #22c55e;
}

.empty-title {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.empty-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 400px;
  text-align: center;
}

/* Upload prompt: dark grey text */
.findings-empty-upload .empty-title,
.findings-empty-upload .empty-description,
.findings-empty-upload .upload-zone-text {
  color: #666;
}

/* Upload prompt: brand orange icon, intentional drop zone */
.findings-empty-upload .empty-icon {
  color: #e65d31;
}
.findings-empty-upload .free-tier-upload-zone,
.findings-empty-upload #findings-empty-upload-zone {
  border: 2px dashed #ccc !important;
  padding: 36px 32px !important;
  border-radius: 12px;
}
.findings-empty-upload .free-tier-upload-zone:hover,
.findings-empty-upload #findings-empty-upload-zone:hover {
  border-color: #e65d31 !important;
  background: rgba(230, 93, 49, 0.04);
}

.empty-action-btn {
  margin-top: 20px;
  padding: 12px 24px;
  background: #e65d31;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.empty-action-btn:hover {
  background: #e65d31;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230, 93, 49, 0.3);
}

/* Right Panel - AI Chat */
.dashboard-chat {
  width: 300px;
  max-width: 300px;
  flex-shrink: 0;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(6px) saturate(140%);
  -webkit-backdrop-filter: blur(6px) saturate(140%);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  position: fixed;
  right: 0;
  top: 64px;
  bottom: 0;
  transition: transform 0.3s ease;
  z-index: 1;
  box-sizing: border-box;
}

.dashboard-chat.collapsed {
  transform: translateX(100%);
}

.dashboard-chat.expanded {
  width: calc(100% - 260px);
  left: 260px;
  right: auto;
}

.dashboard-chat.hidden-for-findings {
  display: none;
}

/* Mobile: Hide chat panel in preview mode */
@media (max-width: 768px) {
  .dashboard-page[data-preview-mode="true"] .dashboard-chat {
    display: none !important;
  }
  
  .dashboard-page[data-preview-mode="true"] .dashboard-layout {
    grid-template-columns: 1fr !important; /* Just main content, no chat column */
  }
}

.dashboard-page.chat-expanded .dashboard-main {
  margin-right: 0;
}

.dashboard-page.findings-expanded .dashboard-chat {
  display: none;
}

.dashboard-page.findings-expanded .dashboard-main {
  margin-right: 0;
}

.chat-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.chat-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-actions {
  display: flex;
  gap: 8px;
}

.chat-expand-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s;
}

.chat-expand-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Hide expand-to-full-width button on desktop (dashboard and case-file); show only on mobile */
@media (min-width: 769px) {
  .dashboard-chat .chat-expand-btn {
    display: none !important;
  }
}

.chat-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
}

.ai-icon-pulsate {
  animation: pulsate 2s ease-in-out infinite;
}

@keyframes pulsate {
  0%, 100% {
    opacity: 1;
    transform: translateY(-2px) scale(1);
  }
  50% {
    opacity: 0.7;
    transform: translateY(-2px) scale(1.1);
  }
}

.chat-collapse-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s;
}

.chat-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Mobile minimized bar (hidden on desktop) */
.chat-minimized-bar {
  display: none;
}

.chat-toggle-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chat-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.chat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-welcome {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.welcome-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.chat-prompts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-prompt-btn {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-prompt-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.chat-message {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-message-user {
  align-items: flex-end;
}

.chat-message-ai {
  align-items: flex-start;
  width: 100%;
}

.chat-typing-indicator {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 8px 0;
}

.chat-typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: chat-typing-bounce 1.4s infinite ease-in-out;
}

.chat-typing-indicator span:nth-child(1) {
  animation-delay: -0.32s;
}

.chat-typing-indicator span:nth-child(2) {
  animation-delay: -0.16s;
}

.chat-typing-indicator span:nth-child(3) {
  animation-delay: 0;
}

@keyframes chat-typing-bounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.chat-message-content {
  font-size: 14px;
  line-height: 1.5;
}

.chat-message-user .chat-message-content {
  max-width: 70%;
  margin-left: auto;
  padding: 12px 16px;
  background: #FF6B35;
  color: white;
  border-radius: 18px;
  border-bottom-right-radius: 18px;
  box-shadow: 0 2px 8px rgba(230, 93, 49, 0.2);
}

.chat-message-ai .chat-message-content {
  width: 100%;
  padding: 16px 8px;
  background: none;
  border: none;
  margin: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.6;
  max-width: 100%;
}

.chat-message-error .chat-message-content {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.chat-input-area {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
  box-sizing: border-box;
}

.chat-input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}

.chat-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.chat-input:focus {
  outline: none;
  border-color: rgba(230, 93, 49, 0.4);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(230, 93, 49, 0.1);
}

.chat-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.02);
}

.chat-input:disabled::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e65d31 0%, #e65d31 100%);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(230, 93, 49, 0.3);
}

.chat-send-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #e65d31 0%, #d14d20 100%);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(230, 93, 49, 0.4);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(230, 93, 49, 0.3);
}

.chat-send-btn:active {
  transform: scale(0.95);
}

/* Responsive Design */
/* Evidence Export Modal */
.export-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.export-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.export-modal-content {
  position: relative;
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.export-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.export-modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.export-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s;
}

.export-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.export-modal-body {
  padding: 24px;
}

.export-modal-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.export-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.export-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  padding-right: 140px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
  position: relative;
}

.export-option:focus {
  outline: 2px solid rgba(230, 93, 49, 0.5);
  outline-offset: -2px;
}

.export-option:focus:not(:focus-visible) {
  outline: none;
}

.export-option:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(230, 93, 49, 0.3);
  transform: translateY(-2px);
}

.export-option-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 93, 49, 0.1);
  border-radius: 10px;
  color: #e65d31;
  flex-shrink: 0;
}

.export-option-content {
  flex: 1;
  min-width: 0;
}

.export-option-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.export-option-description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

.export-option-generate {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 20px;
  background: #e65d31;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(230, 93, 49, 0.2);
}

.export-option-generate:hover {
  background: #e65d31;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 16px rgba(230, 93, 49, 0.4);
}

.export-option-generate:active {
  transform: translateY(-50%) scale(0.98);
}

.export-option-generate:focus {
  outline: 2px solid rgba(230, 93, 49, 0.5);
  outline-offset: 2px;
}

@media (max-width: 1200px) {
  .dashboard-chat {
    position: fixed;
    right: -300px;
    z-index: 2000;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    width: 300px;
    max-width: 300px;
  }
  
  .dashboard-chat.expanded {
    width: 100%;
    left: 0;
    max-width: 100%;
    right: auto;
  }
  
  .dashboard-chat:not(.collapsed):not(.hidden-for-findings) {
    right: 0;
  }
  
  .dashboard-main {
    margin-right: 0;
  }
}

/* Mobile-only: dashboard chat fixed to bottom (same as Case File). Must not affect desktop expand/collapse. */
@media (max-width: 768px) {
  /* Free tier: hide AI chat on mobile */
  .dashboard-page[data-free-tier="true"] .dashboard-chat {
    display: none !important;
  }

  /* Dashboard chat: same mobile pattern as Case File (.case-file-page .dashboard-chat) — fixed to bottom, input accessible */
  .dashboard-chat,
  .dashboard-page .dashboard-chat,
  .case-file-page .dashboard-chat {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 60px;
    min-height: 60px;
    z-index: 2000;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    order: 3;
    transform: translateY(0);
    transition: max-height 0.3s ease, transform 0.3s ease;
    overflow: hidden;
  }
  
  /* On mobile keep chat visible even when findings are expanded (match Case File behavior) */
  .dashboard-page.findings-expanded .dashboard-chat {
    display: flex !important;
  }
  
  .dashboard-chat.expanded,
  .dashboard-page .dashboard-chat.expanded {
    top: calc(64px + env(safe-area-inset-top));
    bottom: 0;
    height: calc(100vh - 64px - env(safe-area-inset-top));
    height: calc(100dvh - 64px - env(safe-area-inset-top));
    max-height: none;
    min-height: 0;
  }
  
  .dashboard-chat.collapsed {
    max-height: 60px;
  }
  
  .dashboard-chat.collapsed .chat-content,
  .dashboard-chat.collapsed .chat-header {
    display: none !important;
  }
  
  .dashboard-chat.collapsed .chat-minimized-bar {
    display: flex;
    flex: 1;
    min-height: 60px;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(6px) saturate(140%);
    -webkit-backdrop-filter: blur(6px) saturate(140%);
    cursor: pointer;
  }
  
  .dashboard-chat.expanded .chat-minimized-bar {
    display: none !important;
  }
  
  .dashboard-chat.expanded .chat-header,
  .dashboard-chat.expanded .chat-content {
    display: flex;
  }
  
  .dashboard-chat .chat-minimized-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
  }
  
  .dashboard-chat .chat-minimized-prompt .ai-icon-pulsate {
    flex-shrink: 0;
  }
  
  .dashboard-chat .chat-minimized-prompt-text {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
    min-width: 0;
    text-align: left;
  }
  
  .dashboard-chat .chat-minimized-input-wrap {
    display: none;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
  }
  
  .dashboard-chat.collapsed .chat-minimized-bar.state-input .chat-minimized-prompt {
    display: none;
  }
  
  .dashboard-chat.collapsed .chat-minimized-bar.state-input .chat-minimized-input-wrap {
    display: flex;
    flex: 1;
    min-width: 0;
    cursor: default;
  }
  
  .dashboard-chat .chat-minimized-bar.state-input {
    cursor: default;
  }
  
  .dashboard-chat .chat-minimized-input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
  }
  
  .dashboard-chat .chat-minimized-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
  }
  
  .dashboard-chat .chat-minimized-input:focus {
    outline: none;
    border-color: rgba(230, 93, 49, 0.4);
  }
  
  .dashboard-chat .chat-minimized-send-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e65d31 0%, #e65d31 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
  }
  
  .dashboard-chat .chat-minimized-send-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #e65d31 0%, #d14d20 100%);
  }
  
  .dashboard-chat .chat-header {
    flex-shrink: 0;
    padding: 16px;
  }
  
  .dashboard-chat .chat-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  
  .dashboard-chat .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
  }
  
  .dashboard-chat .chat-input-area {
    flex-shrink: 0;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .dashboard-chat.mobile-chat .chat-collapse-btn {
    display: none !important;
  }
  
  .dashboard-chat.mobile-chat.expanded .chat-expand-btn {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .dashboard-layout {
    flex-direction: column;
    margin-top: calc(64px + env(safe-area-inset-top));
  }
  
  .dashboard-sidebar {
    width: 100%;
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    order: 1;
    margin-top: calc(-64px - env(safe-area-inset-top));
    padding-top: 16px;
    padding: 16px 16px 20px 16px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 20px;
  }
  
  /* Add more padding above sidebar on mobile for paid dashboard (not preview) */
  .dashboard-page:not([data-preview-mode="true"]) .dashboard-sidebar {
    padding-top: calc(80px + env(safe-area-inset-top));
  }
  
  .dashboard-sidebar > *:first-child {
    margin-top: 0;
    padding-top: 0;
  }
  
  .sidebar-summary-card {
    display: flex;
    flex-direction: column;
    margin-top: 0;
  }
  
  /* Risk Score - larger, centered on mobile */
  .sidebar-summary-card .summary-label {
    margin-bottom: 20px;
    padding-top: 24px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  
  .sidebar-summary-card .risk-gauge-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
  }
  
  .sidebar-summary-card .risk-gauge-container {
    width: 140px;
    height: 140px;
    margin: 0;
    flex-shrink: 0;
  }
  
  .sidebar-summary-card .risk-gauge-value {
    font-size: 44px;
  }
  
  .sidebar-summary-card .risk-severity-label {
    margin: 0;
    text-align: center;
    flex: none;
    font-size: 15px;
    padding: 10px 18px;
  }
  
  /* Total Findings section styling */
  .sidebar-summary-card .breakdown-header {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
  }
  
  .sidebar-summary-card .breakdown-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    text-align: left;
  }
  
  .sidebar-summary-card .total-findings-value {
    font-size: 32px;
    font-weight: 700;
    color: #e55e31;
    text-align: left;
    margin-top: 4px;
    margin-bottom: 0;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
  }
  
  /* Need Help section - larger on mobile */
  .professional-help-headline {
    font-size: 18px;
  }
  
  .professional-help-subtext {
    font-size: 16px;
  }
  
  /* Known Locations - match Need Help sizes */
  .sidebar-known-locations-card .breakdown-title {
    font-size: 18px;
  }
  
  .sidebar-known-locations-card .known-locations-summary-item {
    font-size: 16px;
  }
  
  .sidebar-known-locations-card .known-locations-empty-text,
  .sidebar-known-locations-card .known-locations-count {
    font-size: 16px;
  }
  
  /* Findings Breakdown styling */
  .sidebar-summary-card .breakdown-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
  }
  
  .sidebar-summary-card .breakdown-bar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .sidebar-summary-card .breakdown-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .sidebar-summary-card .bar-category {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: capitalize;
  }
  
  .sidebar-summary-card .bar-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
  }
  
  .sidebar-summary-card .breakdown-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
  }
  
  .sidebar-summary-card .breakdown-bar-fill {
    height: 100%;
    background: #e55e31;
    border-radius: 4px;
    transition: width 0.6s ease;
  }
  
  .sidebar-new-scan-btn span {
    display: inline;
  }
  
  .dashboard-main {
    margin-left: 0;
    margin-right: 0;
    order: 2;
    padding: 24px 16px;
    padding-bottom: calc(200px + env(safe-area-inset-bottom)); /* Space for fixed AI Analyst + home indicator */
  }
  
  .ai-analysis-chat-link {
    font-size: 20px;
  }
  
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .stat-card {
    padding: 16px;
  }
  
  .stat-value {
    font-size: 20px;
  }
  
  .main-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .main-title {
    font-size: 24px;
  }
  
  .topbar-nav {
    display: none;
  }
  
  .topbar-content {
    padding: 0 16px;
  }
  
  .topbar-logo {
    align-items: center;
  }
  
  .topbar-logo .logo-icon {
    width: 30px;
    height: 30px;
    transform: none;
  }
  
  .topbar-logo .logo-text {
    font-size: 24px;
  }
  
  .topbar-right {
    gap: 8px;
  }
  
  .topbar-menu-wrapper .topbar-menu-btn {
    padding-left: 6px;
  }
  
  /* Ensure menu dropdown works on mobile */
  .topbar-menu-wrapper {
    position: relative;
  }
  
  .topbar-menu-dropdown {
    right: 0;
    left: auto;
    min-width: 280px;
    max-width: calc(100vw - 32px);
    z-index: 10000;
  }
  
  /* Full-page views on mobile (menu content, export, manage files, upload) */
  .dashboard-page.menu-content-open {
    overflow: hidden;
  }
  
  /* Keep topbar visible, hide sidebar and chat */
  .dashboard-page.menu-content-open .dashboard-topbar {
    display: flex !important;
    z-index: 1001;
  }
  
  .dashboard-page.menu-content-open .dashboard-sidebar,
  .dashboard-page.menu-content-open .dashboard-chat {
    display: none !important;
  }
  
  .dashboard-page.menu-content-open .dashboard-layout {
    margin-top: 0;
  }
  
  .dashboard-page.menu-content-open .dashboard-main {
    position: fixed;
    top: calc(64px + env(safe-area-inset-top));
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 64px - env(safe-area-inset-top));
    height: calc(100dvh - 64px - env(safe-area-inset-top));
    margin: 0;
    padding: 24px 16px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
    overflow-y: auto;
    z-index: 1000;
    background: #141414;
  }
  
  /* Menu content: back button on separate row above title */
  .menu-content-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .menu-content-back {
    margin-bottom: 0;
  }
  
  .menu-content-title {
    width: 100%;
  }
  
  /* Export Evidence: match width of other full-page views (reduce extra padding) */
  .dashboard-page.menu-content-open .evidence-view-section {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.filter-dropdown-wrapper {
  position: relative;
  position: relative;
}

.filter-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  pointer-events: auto;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.filter-dropdown-btn svg {
  transition: transform 0.2s;
}

.filter-dropdown-wrapper.open .filter-dropdown-btn svg {
  transform: rotate(180deg);
}

.filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 180px;
  background: rgba(30, 30, 30, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  margin-top: 4px;
}

.filter-dropdown-menu-multi {
  min-width: 200px;
}

.filter-dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.filter-checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-checkbox-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.filter-checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #e65d31;
}

.filter-checkbox-item span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.known-locations-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.known-locations-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.known-locations-btn svg {
  width: 16px;
  height: 16px;
}

/* Custom Date Picker */
.custom-date-picker {
  margin-top: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.custom-date-picker-content {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.date-picker-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 150px;
}

.date-picker-group label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.date-input {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.2s;
}

.date-input:focus {
  outline: none;
  border-color: rgba(230, 93, 49, 0.4);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(230, 93, 49, 0.1);
}

.date-picker-actions {
  display: flex;
  gap: 8px;
}

.date-picker-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.date-picker-btn-apply {
  background: #e65d31;
  color: #ffffff;
}

.date-picker-btn-apply:hover {
  background: #e65d31;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230, 93, 49, 0.3);
}

.date-picker-btn-cancel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.date-picker-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Known Locations Modal */
.known-locations-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.known-locations-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.known-locations-modal-content {
  position: relative;
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

/* Demo: Known Locations modal visible but greyed out and inoperable */
.known-locations-modal-demo-disabled .known-locations-modal-content {
  opacity: 0.65;
  filter: saturate(0.6);
  pointer-events: none;
  cursor: not-allowed;
}
.known-locations-modal-demo-disabled .known-locations-modal-close {
  pointer-events: auto;
  cursor: pointer;
}

.known-locations-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.known-locations-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.known-locations-modal-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.5;
}

.known-locations-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.known-locations-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Location review one-time modal (bottom sheet) */
.location-review-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10002;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.location-review-modal-backdrop.location-review-modal-visible {
  opacity: 1;
}
.location-review-modal-sheet {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(28, 28, 30, 0.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px 24px 0 0;
  padding: 24px 24px 32px;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  text-align: center;
}
.location-review-modal-visible .location-review-modal-sheet {
  transform: translateY(0);
}
.location-review-modal-drag-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  margin: 0 auto 20px;
}
.location-review-modal-icon {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}
.location-review-modal-logo {
  width: 40px;
  height: 40px;
  display: block;
}
.location-review-modal-heading {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
  line-height: 1.3;
  text-align: center;
}
.location-review-modal-body {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 0 0 20px 0;
  text-align: center;
}
.location-review-modal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  justify-content: center;
}
.location-review-pill {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 9999px;
  pointer-events: none;
}
.location-review-pill-safe {
  background: rgba(34, 197, 94, 0.25);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.location-review-pill-flag {
  background: rgba(180, 83, 9, 0.25);
  color: #eab308;
  border: 1px solid rgba(180, 83, 9, 0.4);
}
.location-review-modal-cta {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: #e65d31;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 12px;
}
.location-review-modal-cta:hover {
  background: #d44d2a;
}
.location-review-modal-dismiss {
  display: block;
  width: 100%;
  padding: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.location-review-modal-dismiss:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Shared device safety prompt (inactivity + beforeunload) */
.shared-device-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10003;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.shared-device-modal-backdrop.shared-device-modal-visible {
  opacity: 1;
}
.shared-device-modal-sheet {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(28, 28, 30, 0.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px 24px 0 0;
  padding: 24px 24px 32px;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  text-align: center;
}
.shared-device-modal-visible .shared-device-modal-sheet {
  transform: translateY(0);
}
.shared-device-modal-drag-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  margin: 0 auto 20px;
}
.shared-device-modal-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.shared-device-modal-logo {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  color: #e55e31;
}
.shared-device-modal-heading {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
  line-height: 1.3;
}
.shared-device-modal-body {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 0 0 24px 0;
}
.shared-device-modal-cta {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: #e65d31;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 12px;
}
.shared-device-modal-cta:hover {
  background: #d44d2a;
}
.shared-device-modal-dismiss {
  display: block;
  width: 100%;
  padding: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.shared-device-modal-dismiss:hover {
  color: rgba(255, 255, 255, 0.9);
}

.known-locations-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.known-locations-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.known-locations-section-safe {
  padding: 20px;
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 12px;
}

.known-locations-section-suspect {
  padding: 20px;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
}

.known-locations-section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.known-locations-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.known-locations-section-safe .known-locations-section-title {
  color: #22c55e;
}

.known-locations-section-suspect .known-locations-section-title {
  color: #b45309;
}

.known-locations-section-description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.known-locations-add-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.known-locations-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.2s;
}

.known-locations-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.known-locations-input:focus {
  outline: none;
  border-color: rgba(230, 93, 49, 0.4);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(230, 93, 49, 0.1);
}

.known-locations-input-label {
  flex: 0 0 150px;
  min-width: 120px;
}

.known-locations-add-btn {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.known-locations-add-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.known-locations-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.known-locations-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  transition: all 0.2s;
}

.known-locations-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.known-locations-item-content {
  flex: 1;
  min-width: 0;
}

.known-locations-item-main {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 4px;
}

.known-locations-item-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.known-locations-item-delete {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-left: 12px;
}

.known-locations-item-delete:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.known-locations-empty {
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

.known-locations-modal-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
}

.known-locations-save-btn {
  padding: 12px 32px;
  background: linear-gradient(135deg, #e65d31 0%, #e65d31 100%);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(230, 93, 49, 0.3);
}

.known-locations-save-btn:hover {
  background: linear-gradient(135deg, #e65d31 0%, #d14d20 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230, 93, 49, 0.4);
}

.known-locations-save-btn:active {
  transform: translateY(0);
}

/* Responsive Filter Bar */
@media (max-width: 768px) {
  .filter-bar {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .filter-group {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
  }
  
  .filter-label {
    font-size: 14px;
    white-space: nowrap;
  }
  
  .filter-dropdown-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .filter-dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
  }
  
  .custom-date-picker-content {
    flex-direction: column;
  }
  
  .date-picker-group {
    width: 100%;
  }
  
  .date-picker-actions {
    width: 100%;
    justify-content: stretch;
  }
  
  .date-picker-btn {
    flex: 1;
  }
  
  .known-locations-add-form {
    flex-direction: column;
  }
  
  .known-locations-input {
    width: 100%;
  }
  
  .known-locations-input-label {
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    line-height: 1.2;
    box-sizing: border-box;
  }
  
  .known-locations-modal-content {
    max-height: 95vh;
  }
}

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

/* Paywall Restore Access Styles */
.paywall-restore-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.restore-divider {
  text-align: center;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
}

.restore-title {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.restore-form {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.restore-email-input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.restore-email-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.restore-email-input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

.restore-help-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin-top: 8px;
}

.restore-message {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

.restore-message-success {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.restore-message-error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

@media (max-width: 768px) {
  .restore-form {
    flex-direction: column;
  }
  
  .restore-email-input {
    width: 100%;
  }
}

/* Evidence View Styles - base layout */
.evidence-view-section {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 32px;
}

/* Free tier only: Evidence view center column - light theme, dark grey text */
.dashboard-page[data-free-tier="true"] .evidence-view-section {
  background: #f9f9f9;
  border-radius: 12px;
}
.dashboard-page[data-free-tier="true"] .evidence-view-section .evidence-view-header {
  margin-bottom: 32px;
}
.dashboard-page[data-free-tier="true"] .evidence-view-section .evidence-back-btn {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
  color: #1a1a1a;
}
.dashboard-page[data-free-tier="true"] .evidence-view-section .evidence-back-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
  color: #000;
}
.dashboard-page[data-free-tier="true"] .evidence-view-section .evidence-title,
.dashboard-page[data-free-tier="true"] .evidence-view-section .evidence-description {
  color: #4a4a4a !important;
}
.dashboard-page[data-free-tier="true"] .evidence-view-section .evidence-export-card {
  background: #ffffff !important;
  border-color: #e8e8e8 !important;
}
.dashboard-page[data-free-tier="true"] .evidence-view-section .evidence-export-card:hover {
  border-color: #d0d0d0 !important;
}
.dashboard-page[data-free-tier="true"] .evidence-view-section .evidence-export-card .evidence-export-title,
.dashboard-page[data-free-tier="true"] .evidence-view-section .evidence-export-card .evidence-export-description {
  color: #4a4a4a !important;
}
.dashboard-page[data-free-tier="true"] .evidence-view-section .evidence-export-card.locked .evidence-export-title,
.dashboard-page[data-free-tier="true"] .evidence-view-section .evidence-export-card.locked .evidence-export-description {
  color: #666 !important;
}
.dashboard-page[data-free-tier="true"] .evidence-view-section .evidence-export-card .evidence-export-icon {
  background: rgba(230, 93, 49, 0.1);
  border-color: rgba(230, 93, 49, 0.2);
  color: #e65d31;
}
.dashboard-page[data-free-tier="true"] .evidence-view-section .evidence-export-generate-btn {
  color: #ffffff !important;
}
.dashboard-page[data-free-tier="true"] .evidence-view-section .evidence-export-generate-btn:disabled {
  color: #666 !important;
}
.dashboard-page[data-free-tier="true"] .evidence-view-section .evidence-export-badge {
  color: inherit;
}

.evidence-view-header {
  margin-bottom: 32px;
}

.evidence-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: -24px;
  margin-bottom: 24px;
}

.evidence-back-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.evidence-header-content {
  margin-top: 8px;
}

.evidence-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.evidence-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.5;
}

/* Export Options */
.evidence-export-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.evidence-export-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.2s;
}

.evidence-export-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.evidence-export-card.generating {
  opacity: 0.6;
  pointer-events: none;
}

.evidence-export-card.locked {
  opacity: 0.5;
  pointer-events: auto;
}

.evidence-export-card.locked .evidence-export-icon {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
}

.evidence-export-card.locked .evidence-export-title,
.evidence-export-card.locked .evidence-export-description {
  color: rgba(255, 255, 255, 0.5);
}

.evidence-export-card.locked:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  transform: none;
  box-shadow: none;
}

.evidence-export-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 107, 42, 0.1);
  border: 1px solid rgba(242, 107, 42, 0.2);
  border-radius: 12px;
  color: #F26B2A;
  flex-shrink: 0;
}

.evidence-export-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.evidence-export-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.evidence-export-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.evidence-export-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-pdf {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-zip {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-csv {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-json {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.evidence-export-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin: 0;
}

.evidence-export-generate-btn {
  padding: 10px 20px;
  background: #F26B2A;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-start;
}

.evidence-export-generate-btn:hover:not(:disabled) {
  background: #e55e31;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(242, 107, 42, 0.4);
}

.evidence-export-generate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Generated Reports Section */
.evidence-generated-section {
  margin-top: 48px;
}

.evidence-generated-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 24px 0;
  letter-spacing: -0.02em;
}

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

.evidence-no-reports {
  padding: 48px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
}

.evidence-report-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 20px;
  transition: all 0.2s;
}

.evidence-report-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.evidence-report-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 107, 42, 0.1);
  border: 1px solid rgba(242, 107, 42, 0.2);
  border-radius: 12px;
  color: #F26B2A;
  flex-shrink: 0;
}

.evidence-report-content {
  flex: 1;
  min-width: 0;
}

.evidence-report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.evidence-report-title {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.evidence-report-date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

.evidence-report-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .evidence-report-meta {
    grid-template-columns: 1fr;
  }
}

.evidence-report-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.evidence-report-meta-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
}

.evidence-report-meta-value {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.evidence-report-severity-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.severity-critical {
  background: rgba(185, 28, 28, 0.15);
  color: #b91c1c;
  border: 1px solid rgba(185, 28, 28, 0.2);
}

.severity-high {
  background: rgba(249, 115, 22, 0.15);
  color: #e55e31;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.severity-medium {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.2);
}

.severity-low {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.evidence-report-size {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
}

.evidence-report-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
}

.evidence-report-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
}

.btn-view:hover,
.btn-download:hover {
  background: rgba(242, 107, 42, 0.15);
  border-color: rgba(242, 107, 42, 0.3);
  color: #F26B2A;
}

.btn-view {
  color: rgba(255, 255, 255, 0.9);
}

.btn-download {
  color: rgba(255, 255, 255, 0.9);
}

.btn-delete {
  padding: 8px;
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.15);
}

.btn-delete:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.evidence-report-action-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Active state for export button in topbar */
.topbar-export-btn.active {
  background: rgba(242, 107, 42, 0.15);
  border-color: rgba(242, 107, 42, 0.3);
  color: #F26B2A;
}

/* Scan Complete Layout */
.scan-complete-screen {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 769px) {
  .scan-complete-screen {
    padding: 24px 20px !important;
    overflow-y: auto !important;
  }
}

/* Mobile: Fix scrolling to show top content */
@media (max-width: 768px) {
  .scan-complete-screen {
    align-items: flex-start !important;
    padding-top: 20px !important;
    padding-bottom: 40px !important;
  }
  
  .scan-complete-content {
    padding-top: 0;
  }
  
  .scan-complete-header {
    margin-top: 0;
  }
}

.scan-complete-content {
  max-width: 1100px;
  width: 100%;
  text-align: center;
}

.scan-complete-header {
  font-size: 44px;
  font-weight: 800;
  color: #e55e31;
  margin: 0 0 24px 0;
  letter-spacing: -0.02em;
  text-align: center;
}

.scan-complete-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
}

.scan-complete-left {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scan-complete-right {
  text-align: center;
}

.scan-complete-divider {
  display: none;
}

/* Risk Score Section */
.scan-complete-left .summary-label {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
}

.scan-complete-left .summary-label-centered {
  text-align: center;
}

.scan-complete-left .risk-gauge-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-complete-left .risk-gauge-centered {
  margin-left: auto;
  margin-right: auto;
}

.scan-complete-left .risk-gauge {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.scan-complete-left .risk-gauge-value {
  position: absolute;
  font-size: 36px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.scan-complete-left .risk-severity-label {
  text-align: center;
  margin: 0 auto 24px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 6px;
  display: inline-block;
  width: auto;
}

.scan-complete-left .risk-severity-centered {
  margin-left: auto;
  margin-right: auto;
}

.scan-complete-left .findings-count {
  font-size: 24px;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 24px 0;
  font-weight: 600;
  text-align: center;
}

.scan-complete-left .findings-count-centered {
  text-align: center;
}

/* Choose a Plan Title */
.choose-plan-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 12px 0;
  text-align: left;
  min-height: 28px;
}

.scan-complete-left .choose-plan-title {
  text-align: center;
  margin: 0 0 12px 0;
}

.scan-complete-left .summary-box {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 14px;
  margin: 0 auto 28px;
  text-align: left;
  max-width: 320px;
  width: 100%;
}

.scan-complete-left .summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.scan-complete-left .summary-item.has-border {
  border-bottom: 1px solid #2a2a2a;
}

.scan-complete-left .summary-label-text {
  color: #ffffff;
  font-size: 17px;
  font-weight: 500;
}

.scan-complete-left .summary-item:first-child .summary-label-text {
  font-weight: 700;
}

.scan-complete-left .summary-value {
  color: #e55e31;
  font-size: 17px;
  font-weight: 700;
}

.scan-complete-left .summary-value.critical {
  color: #b91c1c;
}

.scan-complete-left .unlock-message {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  margin: 0 0 24px 0;
  line-height: 1.5;
  text-align: center;
}

.unlock-message {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.preview-dashboard-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 16px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.preview-dashboard-link:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.preview-dashboard-link svg {
  transition: transform 0.2s ease;
}

.preview-dashboard-link:hover svg {
  transform: translateX(2px);
}

.preview-results-button {
  display: block;
  width: 100%;
  max-width: 500px;
  padding: 18px 32px;
  font-size: 22px;
  font-weight: 600;
  margin: 6px 0 40px 0;
  background: #FF6B35;
  border: 2px solid #FF6B35;
  color: #FFFFFF;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
}

.preview-results-button:hover {
  background: #E85A28;
  border-color: #E85A28;
  transform: translateY(-2px);
}

/* Desktop: Two-column layout - fit without scrolling */
@media (min-width: 769px) {
  .scan-complete-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
  }
  
  .scan-complete-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  
  .scan-complete-right .choose-plan-title {
    text-align: center;
    margin-bottom: 12px;
  }
  
  .scan-complete-right .unlock-message {
    text-align: center;
    margin-bottom: 16px;
  }
  
  .scan-complete-pricing-cards {
    margin-top: 0;
    width: 100%;
    max-width: 480px;
    min-width: 380px;
  }
  
  .scan-complete-pricing-cards .pricing-card {
    padding: 10px 14px;
  }
  
  .scan-complete-divider {
    display: block;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    height: 100%;
    min-height: 320px;
    align-self: stretch;
  }
  
  .scan-complete-left {
    text-align: center;
    align-items: center;
  }
  
  .scan-complete-left .preview-results-button {
    margin-left: auto;
    margin-right: auto;
  }
  
  .scan-complete-left .summary-label-centered {
    text-align: center;
    width: 100%;
  }
  
  .scan-complete-left .risk-gauge-centered {
    margin-left: auto;
    margin-right: auto;
  }
  
  .scan-complete-left .risk-severity-centered {
    margin-left: auto;
    margin-right: auto;
  }
  
  .scan-complete-left .findings-count-centered {
    text-align: center;
    width: 100%;
  }
  
  .scan-complete-left .summary-box {
    margin: 0 0 28px 0;
    max-width: 100%;
    align-self: flex-start;
  }
  
  .scan-complete-right {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: start;
  }
  
  .scan-complete-pricing-cards {
    margin: 0 auto 12px auto;
    align-self: flex-start;
    gap: 10px;
  }
  
  .preview-dashboard-link {
    text-align: center;
    margin-top: 16px;
  }
  
  .scan-complete-left .preview-results-button {
    max-width: 100%;
    padding: 16px 24px;
    font-size: 18px;
  }
}

/* Mobile: Responsive adjustments */
@media (max-width: 768px) {
  .scan-complete-header {
    font-size: 40px;
    padding-top: 24px;
    margin-bottom: 20px;
  }
  
  .scan-complete-left .summary-box {
    margin-left: auto;
    margin-right: auto;
    max-width: 320px;
  }
  
  .scan-complete-left .preview-results-button {
    max-width: 320px;
    padding: 14px 20px;
    font-size: 18px;
    margin: 6px 0 32px 0;
  }
  
  .scan-complete-right .choose-plan-title {
    text-align: center;
  }
}

/* Scan Complete Pricing Toggle & Views - smaller toggle, wider cards */
.scan-complete-pricing-toggle-wrap {
  margin-bottom: 16px;
  margin-top: 0;
}

.scan-complete-pricing-toggle-wrap .forensai-pricing-toggle {
  min-width: 200px;
  padding: 3px;
}

.scan-complete-pricing-toggle-wrap .forensai-pricing-toggle-option {
  padding: 10px 20px;
  min-height: 36px;
  font-size: 0.9rem;
}

.scan-complete-pricing-toggle-wrap .forensai-pricing-toggle-slider {
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
}

.scan-complete-pricing-view {
  margin-top: 0;
}

.scan-complete-pricing-view[hidden] {
  display: none !important;
}

.scan-complete-pricing-view .scan-complete-pricing-cards {
  margin-top: 0;
}

/* Scan Complete Pricing Cards - wider on desktop */
.scan-complete-pricing-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 auto 20px auto;
  max-width: 420px;
  width: 100%;
}

.scan-complete-pricing-cards .pricing-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.scan-complete-pricing-cards .pricing-card-featured {
  background: rgba(229, 94, 49, 0.12);
  border: 1px solid rgba(229, 94, 49, 0.3);
  box-shadow: 0 4px 16px rgba(229, 94, 49, 0.15);
}

.scan-complete-pricing-cards .pricing-card:hover {
  transform: translateY(-2px);
}

.scan-complete-pricing-cards .pricing-card.selected {
  border-color: rgba(229, 94, 49, 0.6) !important;
  box-shadow: 0 6px 24px rgba(229, 94, 49, 0.3) !important;
}

.scan-complete-pricing-cards .pricing-card-featured.selected {
  border-width: 2px;
  box-shadow: 0 8px 32px rgba(229, 94, 49, 0.4) !important;
}

.scan-complete-pricing-cards .pricing-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.scan-complete-pricing-cards .pricing-card-featured .pricing-badge {
  background: linear-gradient(135deg, #e55e31 0%, #ff6b3d 100%);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.scan-complete-pricing-cards .pricing-card[data-plan="two_week"] .pricing-badge,
.scan-complete-pricing-cards .pricing-card[data-plan="annual"] .pricing-badge {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.scan-complete-pricing-cards .pricing-card-content {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
  align-items: center;
}

.scan-complete-pricing-cards .pricing-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.2;
  text-align: center;
}

.scan-complete-pricing-cards .pricing-card-price {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 10px;
  margin-bottom: 2px;
  line-height: 1;
  text-align: center;
}

.scan-complete-pricing-cards .pricing-card[data-plan="monthly"] .pricing-card-price {
  margin-bottom: 10px;
}

.scan-complete-pricing-cards .pricing-card-period {
  font-size: 16px;
  font-weight: 600;
  opacity: 0.8;
}

.scan-complete-pricing-cards .pricing-card-scans {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.2;
}

.scan-complete-pricing-cards .pricing-card-subtext {
  font-size: 13px;
  color: #22c55e;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.2;
  text-align: center;
}

.scan-complete-pricing-cards .pricing-card-btn {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: auto;
  border: none;
  text-align: center;
}

.scan-complete-pricing-cards .pricing-card-btn-primary {
  background: linear-gradient(135deg, #e55e31 0%, #ff6b3d 100%);
  color: #ffffff;
}

.scan-complete-pricing-cards .pricing-card-btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid #e55e31;
}

.scan-complete-pricing-cards .pricing-card-btn:active {
  transform: translateY(1px);
}

/* Desktop: Pricing cards stack vertically in right column; center value pills */
@media (min-width: 769px) {
  .scan-complete-pricing-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .scan-complete-pricing-cards .pricing-card {
    min-height: 120px;
  }
  
  .scan-complete-pricing-cards .pricing-badge {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Preview Mode Banner */
.preview-mode-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #e55e31 0%, #ff6b3d 100%);
  color: #ffffff;
  padding: 12px 20px;
  z-index: 10001;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.preview-mode-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.preview-mode-banner-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.preview-mode-text-mobile {
  display: none;
}

@media (max-width: 768px) {
  .preview-mode-text-desktop {
    display: none;
  }
  
  .preview-mode-text-mobile {
    display: inline;
  }
}

.preview-mode-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  flex-shrink: 0;
}

.preview-mode-icon svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
}

.preview-mode-cta-btn {
  padding: 8px 16px;
  background: #ffffff;
  color: #e55e31;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.preview-mode-cta-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

/* Demo Dashboard Banner (sample analysis, no auth) */
.demo-dashboard-wrapper {
  padding-top: 0;
}
.demo-dashboard-wrapper .dashboard-topbar {
  top: 40px;
}
/* Demo only: extra top padding so content isn’t cramped under top bar */
.demo-dashboard-wrapper .dashboard-layout {
  padding-top: 16px;
}
.demo-dashboard-wrapper .dashboard-sidebar {
  padding-top: 60px;
}

/* Embed mode (iframe on landing): no banner, so topbar flush to top */
.demo-dashboard-wrapper[data-embed="1"] .dashboard-topbar {
  top: 0;
}
.demo-dashboard-wrapper[data-embed="1"] .dashboard-sidebar {
  padding-top: 24px;
}

.demo-dashboard-wrapper .dashboard-chat {
  padding-top: 32px;
}
/* Demo: ensure menu burger (and dropdown) remain clickable */
.demo-dashboard-wrapper .topbar-menu-wrapper,
.demo-dashboard-wrapper .topbar-menu-btn,
.demo-dashboard-wrapper .topbar-menu-dropdown,
.demo-dashboard-wrapper .topbar-menu-dropdown .menu-dropdown-item {
  pointer-events: auto;
  cursor: pointer;
}
.demo-dashboard-wrapper .topbar-menu-btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}
@media (max-width: 423px) {
  .demo-dashboard-wrapper .dashboard-topbar {
    top: 72px;
  }
  .demo-dashboard-wrapper .dashboard-layout {
    margin-top: calc(72px + 64px + env(safe-area-inset-top));
  }
  .demo-dashboard-wrapper[data-embed="1"] .dashboard-topbar {
    top: 0;
  }
  .demo-dashboard-wrapper[data-embed="1"] .dashboard-layout {
    margin-top: calc(64px + env(safe-area-inset-top));
  }
}
.demo-dashboard-banner {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a5f7a 0%, #159895 100%);
  color: #ffffff;
  padding: 6px 16px;
  z-index: 10000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.demo-dashboard-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}
.demo-dashboard-banner-text {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
}
/* Hide line break on desktop */
.demo-banner-mobile-br {
  display: none;
}
@media (max-width: 768px) {
  .demo-banner-mobile-br {
    display: block;
  }
}
.demo-dashboard-cta-btn {
  padding: 5px 12px;
  background: #ffffff;
  color: #1a5f7a;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-block;
}
.demo-dashboard-cta-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
  color: #0d3d4d;
}

/* Preview Lock Overlay */
.preview-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.ai-analysis-card .preview-lock-overlay {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-lock-content {
  text-align: center;
  color: #ffffff;
}

.preview-lock-content.preview-lock-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.preview-lock-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-lock-icon.preview-lock-icon-inline {
  margin-bottom: 0;
}

.preview-lock-icon svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.preview-lock-text {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* Preview Blur Effects */
.geographic-preview-blur {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  z-index: 5;
  pointer-events: none;
}

.finding-preview {
  position: relative;
}

.finding-preview-lock-badge {
  width: 100%;
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(255, 107, 53, 0.15);
  border-top: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 0 0 12px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #FF6B35;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.finding-preview-lock-badge svg {
  color: #FF6B35;
}

.finding-preview-lock-badge:hover {
  background: rgba(255, 107, 53, 0.25);
}

.finding-preview-blur {
  filter: blur(3px);
  opacity: 0.6;
  user-select: none;
  pointer-events: none;
}

.finding-preview-blur-container {
  position: relative;
}

.finding-preview-blur-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 8px;
  z-index: 1;
  pointer-events: none;
}

.preview-locked {
  position: relative;
  overflow: hidden;
}

.preview-disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
}

/* Adjust topbar position when banner is present */
.dashboard-topbar[style*="top: 60px"] {
  top: 60px !important;
}

/* Adjust sidebar and layout when preview banner is present */
.dashboard-page[data-preview-mode="true"] .dashboard-sidebar {
  top: 124px !important; /* 60px banner + 64px topbar */
  height: calc(100vh - 124px) !important;
}

.dashboard-page[data-preview-mode="true"] .dashboard-layout {
  margin-top: 124px !important; /* 60px banner + 64px topbar */
  min-height: calc(100vh - 124px) !important;
}

.dashboard-page[data-preview-mode="true"] .dashboard-main {
  min-height: calc(100vh - 124px) !important; /* Account for banner + topbar */
  padding-top: 32px;
}

.dashboard-page[data-preview-mode="true"] .dashboard-chat {
  top: 124px !important; /* 60px banner + 64px topbar */
  height: calc(100vh - 124px) !important;
  bottom: 0 !important;
}

@media (max-width: 768px) {
  .preview-mode-banner-content {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .preview-mode-cta-btn {
    width: 100%;
  }
  
  .dashboard-topbar[style*="top: 60px"] {
    top: 100px !important;
  }
  
  /* Adjust for mobile when banner is taller */
  .dashboard-page[data-preview-mode="true"] .dashboard-sidebar {
    top: 164px !important; /* 100px banner + 64px topbar */
    height: calc(100vh - 164px) !important;
  }
  
  .dashboard-page[data-preview-mode="true"] .dashboard-layout {
    margin-top: 164px !important;
    min-height: calc(100vh - 164px) !important;
  }
  
  .dashboard-page[data-preview-mode="true"] .dashboard-sidebar {
    margin-top: -164px !important;
    padding-top: 16px !important;
  }
  
  .dashboard-page[data-preview-mode="true"] .dashboard-main {
    min-height: calc(100vh - 164px) !important;
  }
}

