/* Flowrix Exact Clone - ForensAI Styles */

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

html {
  scroll-behavior: smooth;
}

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;
}

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

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

/* Flowrix Container */
.flowrix-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header - Flowrix Exact */
.flowrix-header {
  background: transparent;
  border-bottom: none;
  z-index: 1000;
  padding: 20px 0;
}

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

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

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

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

.flowrix-logo-text {
  font-size: 1.75rem;
}

.flowrix-logo-forens {
  font-weight: 500;
}

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

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

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

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

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

.flowrix-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;
}

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

.flowrix-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;
}

.flowrix-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;
}

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

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

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

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

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

/* Buttons - Flowrix Style */
.flowrix-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: 50px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.01em;
  position: relative;
}

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

.flowrix-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;
}

.flowrix-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);
}

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

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

/* 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;
  }
  
  .flowrix-header-actions {
    gap: 8px;
    flex-shrink: 0;
  }
  
  .flowrix-header-inner {
    gap: 12px;
  }
}

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

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

.flowrix-hero {
  padding: 120px 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.png');
  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 */
.flowrix-hero.flowrix-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.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
}


.flowrix-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero Left */
.flowrix-hero-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.flowrix-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) {
  .flowrix-status {
    padding-top: 70px;
  }
}

.flowrix-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); }
}

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

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

.hero-testimonial {
  max-width: 600px;
  margin: 32px 0 40px 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 12px 0;
}

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

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

.flowrix-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 */
.flowrix-hero-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

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

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

/* Upload Zone Card - White Background */
.flowrix-upload-zone {
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  padding: 64px 32px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  border: 2px dashed rgba(0, 0, 0, 0.1);
}

.flowrix-upload-zone:hover {
  border-color: #e55e31;
  background: #fefefe;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.flowrix-upload-zone.drag-over {
  border-color: #e55e31;
  background: #fffbf0;
  box-shadow: 0 12px 32px rgba(230, 93, 49, 0.2);
}

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

.flowrix-upload-icon svg {
  width: 64px;
  height: 64px;
}

.flowrix-upload-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.upload-title-mobile {
  display: none;
}

.upload-title-desktop {
  display: inline;
}

.upload-privacy-mobile {
  display: none;
}

.upload-privacy-desktop {
  display: inline;
}

@media (max-width: 768px) {
  .upload-title-mobile {
    display: inline;
  }
  
  .upload-title-desktop {
    display: none;
  }
  
  .upload-privacy-mobile {
    display: inline;
  }
  
  .upload-privacy-desktop {
    display: none;
  }
  
  .flowrix-upload-privacy {
    margin-top: 32px;
  }
}

@media (max-width: 410px) {
  .flowrix-upload-privacy {
    padding-top: 24px;
  }
}

.flowrix-upload-subtitle {
  font-size: 1rem;
  color: #71717a;
  margin: 0 0 24px 0;
  font-weight: 400;
}

.flowrix-upload-formats {
  font-size: 0.8125rem;
  color: #71717a;
  margin: 0;
  font-weight: 400;
  font-style: italic;
}

.flowrix-upload-privacy {
  font-size: 15px;
  color: #71717a;
  margin: 24px 0 0 0;
  font-weight: 400;
  line-height: 1.5;
}

/* Sections */
.flowrix-section {
  padding: 120px 0;
  position: relative;
}

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

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

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

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

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

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

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

/* Headlines - Instrument Sans */
.flowrix-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;
}

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

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

.flowrix-subheadline {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #71717a;
  max-width: 800px;
  margin-bottom: 48px;
}

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

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

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

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

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

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

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

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

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

/* Platform Logos */
.flowrix-platforms {
  text-align: center;
  margin-top: 48px;
}

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

/* 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: 22px;
  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: 15px;
  }
}

/* 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-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: flex;
  flex-wrap: wrap;
  gap: 12px;
  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: 12px 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.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.15);
  border-color: #e55e31;
  color: #e65d31;
}

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

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

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

.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-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 {
    gap: 8px;
  }
  
  .data-export-guide-platform-btn {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .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;
  }
}

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

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

.flowrix-platform-logo:hover svg {
  fill: #000000;
}

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

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

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

.flowrix-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;
}

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

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

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

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

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

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

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

.flowrix-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Pricing Cards */
.flowrix-pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
  margin-bottom: 48px;
}

.flowrix-pricing-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 32px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.flowrix-pricing-card-featured {
  background: linear-gradient(135deg, #ffffff 0%, #fef7f5 100%);
  border: 2px solid #e55e31;
  box-shadow: 0 8px 32px rgba(229, 94, 49, 0.2), 0 0 0 1px rgba(229, 94, 49, 0.1);
  transform: scale(1.05);
  z-index: 1;
}

.flowrix-pricing-card-featured:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 12px 40px rgba(229, 94, 49, 0.3), 0 0 0 1px rgba(229, 94, 49, 0.15);
}

.flowrix-pricing-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  align-self: flex-start;
}

.flowrix-pricing-badge-gradient {
  background: linear-gradient(135deg, #e55e31 0%, #ff6b3d 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(229, 94, 49, 0.3);
}

.flowrix-pricing-price {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: #1a1a1a;
  margin-bottom: 8px;
  letter-spacing: -0.05em;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.flowrix-pricing-period {
  font-size: 1.5rem;
  font-weight: 600;
  color: #71717a;
}

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

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

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

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

.flowrix-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;
}

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

.flowrix-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;
}

/* Mobile: Stack vertically with 6 Months card at top */
@media (max-width: 768px) {
  .flowrix-pricing-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .flowrix-pricing-cards {
    display: flex;
    flex-direction: column;
  }
  
  .flowrix-pricing-card-featured {
    order: -1;
    transform: scale(1);
  }
  
  .flowrix-pricing-card-featured:hover {
    transform: translateY(-4px);
  }
  
  .flowrix-pricing-price {
    font-size: 3rem;
  }
  
  .flowrix-pricing-card {
    padding: 32px 24px;
  }
}

/* Pricing Table */
.flowrix-pricing-table {
  margin-top: 64px;
}

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

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

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

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

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

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

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

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

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

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

/* Summary row styling - orange/amber tint */
.flowrix-table-summary-row {
  background: rgba(251, 191, 36, 0.1);
  border-top: 2px solid rgba(251, 191, 36, 0.3);
}

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

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

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

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

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

/* Mobile: Tighten table rows and fit within width */
@media (max-width: 768px) {
  .flowrix-table {
    width: 100%;
    min-width: auto;
    font-size: 0.8125rem;
  }
  
  .flowrix-table th,
  .flowrix-table td {
    padding: 8px 10px;
    font-size: 0.8125rem;
    word-wrap: break-word;
    line-height: 1.4;
  }
  
  .flowrix-table th {
    font-size: 0.9375rem;
    padding: 10px 10px;
    white-space: nowrap;
    text-align: left !important;
  }
  
  .flowrix-table th:nth-child(2) {
    white-space: normal;
    text-align: center !important;
  }
  
  .flowrix-table-summary-row td {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 0.8125rem;
  }
  
  .flowrix-table-summary-row td div {
    font-size: 0.6875rem;
    margin-top: 2px;
    line-height: 1.3;
  }
  
  .flowrix-table-forensai-row td {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 0.9375rem;
    line-height: 1.4;
  }
  
  .flowrix-table-forensai-row td strong {
    font-size: 0.9375rem;
  }
  
  .flowrix-table-forensai-row svg {
    width: 24px !important;
    height: 24px !important;
  }
  
  .flowrix-pricing-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }
  
  /* Allow price column to wrap on mobile */
  .flowrix-table-price {
    white-space: normal;
    word-break: break-word;
  }
}

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

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

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

.flowrix-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;
}

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

.flowrix-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;
}

.flowrix-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;
}

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

/* Results Preview */
.flowrix-results-preview {
  margin-top: 64px;
  text-align: center;
}

.flowrix-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) */
.flowrix-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;
}

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

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

/* Finding Cards (matching dashboard style) */
.flowrix-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;
}

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

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

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

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

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

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

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

.flowrix-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;
}

.flowrix-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;
}

.flowrix-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;
}

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

.flowrix-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;
}

.flowrix-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;
}

.flowrix-results-caption {
  font-size: 0.875rem;
  color: #a1a1aa;
  font-style: italic;
  margin-top: 16px;
}

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

.flowrix-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 */
.flowrix-locations-map-wrapper {
  flex: 0 0 40%;
  min-height: 400px;
}

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

/* Location List - 40% on desktop */
.flowrix-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) {
  .flowrix-locations-container {
    flex-direction: column;
  }
  
  .flowrix-locations-map-wrapper {
    flex: 1 1 auto;
    width: 100%;
    min-height: 300px;
  }
  
  .flowrix-locations-map {
    min-height: 300px;
  }
  
  .flowrix-locations-mockup {
    flex: 1 1 auto;
    width: 100%;
  }
}

.flowrix-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.flowrix-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;
}

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

.flowrix-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;
}

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

.flowrix-chat-message {
  padding: 16px 20px;
  border-radius: 12px;
  max-width: 85%;
}

.flowrix-chat-message.user {
  background: rgba(59, 130, 246, 0.15);
  align-self: flex-end;
  margin-left: auto;
}

.flowrix-chat-message.ai {
  background: rgba(230, 93, 49, 0.2);
  align-self: flex-start;
  border: 1px solid rgba(230, 93, 49, 0.3);
}

.flowrix-chat-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #1a1a1a;
}

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

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

.flowrix-ai-chat-mockup {
  background: transparent;
  padding: 32px;
}

.flowrix-chat-interface {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flowrix-section-dark .flowrix-chat-message.user {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.flowrix-section-dark .flowrix-chat-message.ai {
  background: rgba(230, 93, 49, 0.2);
  border: 1px solid rgba(230, 93, 49, 0.3);
}

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

/* Evidence Export Section - Light Background */
.flowrix-evidence-export {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 64px;
}

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

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

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

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

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

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

.flowrix-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);
}

.flowrix-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;
}

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

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

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

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

.flowrix-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;
}

.flowrix-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);
}

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

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

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

.flowrix-pdf-metadata-row.flowrix-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);
}

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

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

.flowrix-pdf-risk-level-critical {
  color: #ef4444 !important;
}

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

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

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

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

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

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

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

.flowrix-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;
}

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

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

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

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

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

.flowrix-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Final CTA */
.flowrix-final-cta {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

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

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

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

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

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

.flowrix-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;
}

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

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

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

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

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

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

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

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

/* Footer */
.flowrix-footer {
  background: #0f0f0f;
  color: #ffffff;
  padding: 120px 0 60px;
}

/* Contact Section */
.flowrix-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;
}

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

.flowrix-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;
}

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

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

.flowrix-form input,
.flowrix-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%;
}

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

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

/* Footer Main */
.flowrix-footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.flowrix-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;
}

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

.flowrix-footer-social {
  display: flex;
  gap: 16px;
}

.flowrix-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;
}

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

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

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

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

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

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

/* Crisis Funnel Pages */
.crisis-funnel-page .flowrix-section-dark {
  background: #0b0d10;
}
.crisis-hero {
  padding-top: 140px !important;
  padding-bottom: 64px !important;
  text-align: center;
}
.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;
}
.flowrix-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: 40px;
  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 .flowrix-faq-item {
  margin-bottom: 16px;
}
.crisis-links {
  margin-top: 24px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
}
.crisis-links a {
  color: #e55e31;
  text-decoration: underline;
}
.flowrix-section-light .crisis-links {
  color: #71717a;
}
.flowrix-section-light .crisis-links a {
  color: #e55e31;
}
.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) {
  .crisis-hero { padding-top: 120px !important; padding-bottom: 48px !important; }
  .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; }
}

/* 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: 3rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 2rem;
  letter-spacing: -0.04em;
}

.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 */
.flowrix-insights-hero {
  padding: 120px 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.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 48px;
  margin: 0 24px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}


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

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

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

.flowrix-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;
}

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

/* How Forensics Works Hero Styles */
.flowrix-forensics-hero {
  padding: 120px 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.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 48px;
  margin: 0 24px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}


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

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

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

.flowrix-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;
}

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

/* Post Hero Styles */
.flowrix-post-hero {
  padding: 120px 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.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 48px;
  margin: 0 24px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}


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

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

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

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

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

.flowrix-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;
}

.flowrix-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;
}

.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: 80px 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;
}

/* Social Share Buttons */
.post-share {
  margin-top: 48px;
  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;
}

.flowrix-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;
}

.flowrix-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) {
  .flowrix-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .flowrix-hero-left {
    order: 1;
  }
  
  .flowrix-hero-right {
    order: 2;
  }
  
  .flowrix-ai-callout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .flowrix-ai-analysis {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .flowrix-evidence-export {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .flowrix-evidence-preview {
    order: -1;
  }
  
  .flowrix-nav {
    display: none;
  }
  
  .flowrix-menu-toggle {
    display: flex;
  }
  
  .flowrix-header-inner {
    flex-wrap: wrap;
  }
  
  .flowrix-nav {
    order: 3;
    width: 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);
  }
  
  .flowrix-section-dark .flowrix-header .flowrix-nav {
    border-top-color: rgba(255, 255, 255, 0.15);
  }
  
  .flowrix-header.flowrix-nav-open .flowrix-nav {
    display: flex;
  }
  
  .flowrix-header.flowrix-nav-open .flowrix-nav .flowrix-nav-link {
    font-size: 1.125rem;
    font-weight: 600;
  }
  
  .flowrix-footer-contact {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .flowrix-footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  
  .flowrix-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .flowrix-hero {
    padding: 40px 0 80px;
    margin: 0 16px;
    margin-top: 0;
    border-radius: 32px;
  }
  
  .flowrix-insights-hero {
    padding: 80px 0;
    margin: 0 16px;
    margin-top: 40px;
    border-radius: 32px;
  }
  
  .flowrix-forensics-hero {
    padding: 80px 0;
    margin: 0 16px;
    margin-top: 40px;
    border-radius: 32px;
  }
  
  .flowrix-post-hero {
    padding: 80px 0;
    margin: 0 16px;
    margin-top: 24px;
    border-radius: 32px;
  }
  
  .post-back-link-container {
    margin: 0 16px;
    padding: 24px 0 0;
  }
  
  .flowrix-container {
    padding: 0 24px;
  }
  
  .flowrix-section {
    padding: 80px 0;
  }
  
  .flowrix-ai-chat-mockup {
    padding: 24px;
  }
  
  .flowrix-pdf-mockup {
    transform: rotate(0deg);
    max-width: 100%;
  }
  
  .flowrix-ai-analysis {
    gap: 32px;
  }
  
  .flowrix-evidence-export {
    gap: 32px;
  }
  
  .flowrix-footer-contact {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 60px;
  }
  
  .flowrix-footer-headline {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  
  .flowrix-footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  
  .flowrix-footer-nav {
    flex-wrap: wrap;
    gap: 24px;
  }
  
  .flowrix-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .flowrix-footer-bottom-right {
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .flowrix-hero-grid {
    gap: 32px;
  }
  
  .flowrix-hero-left {
    order: 1;
  }
  
  .flowrix-hero-right {
    order: 2;
  }
  
  .flowrix-status {
    margin-top: -20px;
    margin-bottom: 8px;
  }
  
  .testimonial-quote {
    font-size: 20px;
  }
  
  .testimonial-attribution {
    font-size: 16px;
  }
  
  .flowrix-hero-description {
    margin-top: 0;
  }
  
  .flowrix-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 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 - Flowrix 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 {
  flex-shrink: 0;
}

.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: 26px;
  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-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;
  }
  
  /* Reduce padding for icon-only buttons on mobile */
  .topbar-new-scan-btn,
  .topbar-manage-files-btn,
  .topbar-export-btn {
    padding: 10px 12px;
    gap: 0;
  }
}

/* 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;
}

/* 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-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;
}

/* 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 {
  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;
}

.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;
}

/* 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: #ef4444;
}

.risk-gauge-arc.risk-critical {
  stroke: #ef4444;
}

.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: #ef4444;
}

.risk-gauge-value.risk-critical {
  color: #ef4444;
}

.risk-severity-label {
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  padding: 6px 12px;
  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: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.risk-severity-label.risk-critical {
  color: #ef4444;
  background: rgba(239, 68, 68, 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);
}

.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);
}

.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(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.file-risk-badge.risk-critical {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.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: 350px;
  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;
}

/* 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);
}

.upload-zone-content {
  pointer-events: none;
}

.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: #ef4444;
  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;
}

/* Critical level (red) */
.most-critical-finding-card.critical {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 20px rgba(239, 68, 68, 0.15);
}

.most-critical-finding-card.critical:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3), 0 0 30px rgba(239, 68, 68, 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(239, 68, 68, 0.15);
  border-radius: 8px;
  color: #ef4444;
  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(239, 68, 68, 0.8);
}

.critical-count-value {
  font-size: 20px;
  font-weight: 700;
  color: #ef4444;
  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(239, 68, 68, 0.15);
  color: #ef4444;
}

.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) {
  .flowrix-mockup-findings .finding-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .flowrix-mockup-findings .finding-title {
    flex: none;
    width: 100%;
  }
  
  .flowrix-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;
}

.geographic-map .leaflet-tile {
  filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(1.1);
}

.geographic-map .leaflet-popup-content-wrapper {
  background: #1a1a1a;
  color: #ffffff;
  border-radius: 8px;
}

.geographic-map .leaflet-popup-tip {
  background: #1a1a1a;
}

.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-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: #ef4444;
}

.geographic-location-status.status-unfamiliar {
  color: #eab308;
}

.status-icon {
  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.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.geographic-suspect-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.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: 14px;
  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);
}

.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-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.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;
}

/* 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;
}

/* 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;
}

@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(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.4);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #ef4444;
  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);
}

.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: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.finding-map-leaflet .leaflet-control-zoom a:hover {
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
}

/* 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;
}

.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: 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;
  transition: transform 0.3s ease;
  z-index: 1;
}

.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;
}

.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;
}

.chat-input {
  flex: 1;
  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: -350px;
    z-index: 2000;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
  }
  
  .dashboard-chat.expanded {
    width: 100%;
    left: 0;
    max-width: 100%;
  }
  
  .dashboard-chat:not(.collapsed):not(.hidden-for-findings) {
    right: 0;
  }
  
  .dashboard-main {
    margin-right: 0;
  }
}

@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.02em;
    text-transform: none;
  }
  
  .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: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    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 */
  }
  
  .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;
  }
  
  .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(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    cursor: pointer;
  }
  
  .dashboard-chat.expanded .chat-minimized-bar {
    display: none !important;
  }
  
  .dashboard-chat.expanded .chat-header,
  .dashboard-chat.expanded .chat-content {
    display: flex;
  }
  
  .chat-minimized-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
  }
  
  .chat-minimized-prompt .ai-icon-pulsate {
    flex-shrink: 0;
  }
  
  .chat-minimized-prompt-text {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
    min-width: 0;
    text-align: left;
  }
  
  .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;
  }
  
  .chat-minimized-bar.state-input {
    cursor: default;
  }
  
  .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;
  }
  
  .chat-minimized-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
  }
  
  .chat-minimized-input:focus {
    outline: none;
    border-color: rgba(230, 93, 49, 0.4);
  }
  
  .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;
  }
  
  .chat-minimized-send-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #e65d31 0%, #d14d20 100%);
  }
  
  .chat-header {
    flex-shrink: 0;
    padding: 16px;
  }
  
  .chat-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  
  .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
  }
  
  .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;
  }
  
  .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: 28px;
    height: 28px;
    transform: none;
  }
  
  .topbar-logo .logo-text {
    font-size: 22px;
  }
  
  .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;
}

.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;
}

.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: #ef4444;
}

.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 */
.evidence-view-section {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 32px;
}

.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(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;
  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);
}

.evidence-report-icon {
  width: 56px;
  height: 56px;
  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: 12px;
  color: rgba(255, 255, 255, 0.7);
  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: #ffffff;
  margin: 0;
}

.evidence-report-date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  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.5);
}

.evidence-report-meta-value {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  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(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 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.5);
  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: rgba(255, 255, 255, 0.05);
}

.btn-view {
  color: rgba(255, 255, 255, 0.8);
}

.btn-view:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.btn-download {
  color: #F26B2A;
  border-color: rgba(242, 107, 42, 0.2);
  background: rgba(242, 107, 42, 0.1);
}

.btn-download:hover {
  background: rgba(242, 107, 42, 0.15);
  border-color: rgba(242, 107, 42, 0.3);
  color: #e55e31;
}

.btn-delete {
  padding: 8px;
  color: rgba(239, 68, 68, 0.8);
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.1);
}

.btn-delete:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.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;
}

/* 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: 1000px;
  width: 100%;
  text-align: center;
}

.scan-complete-header {
  font-size: 50px;
  font-weight: 800;
  color: #e55e31;
  margin: 0 0 32px 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: #dc2626;
}

.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 */
@media (min-width: 769px) {
  .scan-complete-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 48px;
    align-items: start;
  }
  
  .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: 24px;
  }
  
  .scan-complete-pricing-cards {
    margin-top: 0;
    width: 100%;
    max-width: 420px;
  }
  
  .scan-complete-divider {
    display: block;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    height: 100%;
    min-height: 400px;
  }
  
  .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 16px auto;
    align-self: flex-start;
  }
  
  .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 Cards */
.scan-complete-pricing-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  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 {
  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;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.scan-complete-pricing-cards .pricing-card-featured .pricing-badge {
  background: linear-gradient(135deg, #e55e31 0%, #ff6b3d 100%);
}

.scan-complete-pricing-cards .pricing-card[data-plan="monthly"] .pricing-badge {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.scan-complete-pricing-cards .pricing-card[data-plan="annual"] .pricing-badge {
  background: #22c55e;
}

.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-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-subtext {
  font-size: 13px;
  color: #22c55e;
  font-weight: 600;
  margin-bottom: 10px;
  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;
  flex: 1;
}

.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);
}

/* 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;
  }
}

