/**
 * TrustScan Static Frontend Styles
 * Mobile-first responsive design for Hostinger hosting
 */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}

/* Color variables */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-color: #64748b;
  --success-color: #059669;
  --error-color: #dc2626;
  --warning-color: #d97706;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --border-color: #e2e8f0;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --glow: 0 0 20px rgba(102, 126, 234, 0.4);
}

/* Layout components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 2rem 0;
}

.section-lg {
  padding: 4rem 0;
}

/* Header and navigation */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  min-height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  max-width: 180px;
  overflow: hidden;
}

.logo-img {
  width: 180px;
  height: auto;
  object-fit: contain;
  max-width: 180px;
  max-height: 60px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--bg-light);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-color);
}

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Forms */
.form {
  max-width: 400px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-error {
  color: var(--error-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Cards */
.card {
  background: var(--bg-white);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.card-header {
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.card-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Grid layouts */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Credit pack cards */
.credit-pack {
  border: 2px solid var(--border-color);
  transition: all 0.2s;
  position: relative;
}

.credit-pack:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.credit-pack.popular {
  border-color: var(--primary-color);
}

.credit-pack.popular::before {
  content: 'Most Popular';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0 0 0.5rem 0.5rem;
}

.pack-price {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
}

.pack-credits {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Scan form */
.scan-form {
  max-width: 600px;
  margin: 0 auto;
}

.vrm-input {
  font-size: 1.25rem;
  text-align: center;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.1em;
}

/* Results display */
.scan-results {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.results-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.results-title h3 {
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.results-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.scan-timestamp {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
}

.result-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 0.5rem;
  border-left: 4px solid var(--primary-color);
}

.result-section h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.result-item {
  background: var(--bg-light);
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
}

.result-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.result-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Risk assessment styling */
.risk-low {
  border-left: 4px solid var(--success-color);
}

.risk-low .result-value {
  color: var(--success-color);
}

.risk-medium {
  border-left: 4px solid var(--warning-color);
}

.risk-medium .result-value {
  color: var(--warning-color);
}

.risk-high {
  border-left: 4px solid var(--error-color);
}

.risk-high .result-value {
  color: var(--error-color);
}

/* AI Analysis section */
.ai-analysis {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
}

.analysis-recommendations h5 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.analysis-recommendations ul {
  list-style: none;
  padding: 0;
}

.analysis-recommendations li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  padding-left: 1.5rem;
}

.analysis-recommendations li:before {
  content: '🔍';
  position: absolute;
  left: 0;
  top: 0.5rem;
}

.analysis-recommendations li:last-child {
  border-bottom: none;
}

/* Result actions */
.result-actions {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border-color);
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Messages */
.app-message {
  position: fixed;
  top: 100px;
  right: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  color: white;
  font-weight: 500;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  display: none;
}

.app-message.success {
  background: var(--success-color);
}

.app-message.error {
  background: var(--error-color);
}

.app-message.warning {
  background: var(--warning-color);
}

/* Page sections */
.page-section {
  display: none;
  min-height: 60vh;
}

.page-section.active {
  display: block;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 0 0.75rem;
  }

  .nav {
    flex-direction: column;
    gap: 1rem;
    min-height: auto;
    padding: 1rem 0;
  }

  .logo-img {
    width: 140px;
    max-width: 140px;
    max-height: 45px;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .app-message {
    right: 0.5rem;
    left: 0.5rem;
    top: 80px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 1rem 0;
  }

  .section-lg {
    padding: 2rem 0;
  }

  .card {
    padding: 1rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.hidden { display: none; }
.visible { display: block; }

/* ================================
   MODERN LANDING PAGE STYLES
   ================================ */

/* Modern Hero Section */
.hero-modern {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-icon {
  position: absolute;
  font-size: 2rem;
  opacity: 0.1;
  animation: float 20s infinite ease-in-out;
}

.floating-icon:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 20%; right: 10%; animation-delay: 3s; }
.floating-icon:nth-child(3) { top: 60%; left: 5%; animation-delay: 6s; }
.floating-icon:nth-child(4) { bottom: 30%; right: 15%; animation-delay: 9s; }
.floating-icon:nth-child(5) { bottom: 10%; left: 20%; animation-delay: 12s; }
.floating-icon:nth-child(6) { top: 40%; right: 5%; animation-delay: 15s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(5deg); }
  50% { transform: translateY(-40px) rotate(-5deg); }
  75% { transform: translateY(-20px) rotate(3deg); }
}

.hero-content {
  flex: 1;
  z-index: 10;
  padding: 2rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: slideInDown 1s ease-out;
}

.badge-icon {
  margin-right: 0.5rem;
  font-size: 1rem;
}

.hero-title-modern {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: slideInLeft 1s ease-out 0.2s both;
}

.title-line {
  display: block;
}

.gradient-text {
  background: linear-gradient(45deg, #ffd700, #ffed4a, #f093fb, #f5576c);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle-modern {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
  animation: slideInLeft 1s ease-out 0.4s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: slideInUp 1s ease-out 0.6s both;
}

.btn-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.btn-primary-modern {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  box-shadow: 0 10px 25px rgba(238, 90, 36, 0.3);
}

.btn-primary-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(238, 90, 36, 0.4);
}

.btn-secondary-modern {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary-modern:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.btn-subtitle {
  font-size: 0.8rem;
  opacity: 0.8;
  font-weight: 400;
  margin-top: 0.25rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
  animation: slideInUp 1s ease-out 0.8s both;
}

.stat-item {
  text-align: center;
  color: white;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #ffd700, #ffed4a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideInRight 1s ease-out 1s both;
}

.demo-dashboard {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  width: 400px;
  box-shadow: var(--shadow-xl);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  color: white;
}

.dashboard-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.dashboard-status {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  opacity: 0.8;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  margin-right: 0.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.scan-progress {
  margin-bottom: 1.5rem;
}

.progress-bar-demo {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.progress-fill-demo {
  width: 75%;
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 4px;
  animation: progressMove 3s ease-in-out infinite;
}

@keyframes progressMove {
  0% { width: 0%; }
  50% { width: 75%; }
  100% { width: 100%; }
}

.scan-steps {
  display: flex;
  justify-content: space-between;
  color: white;
}

.step {
  font-size: 0.8rem;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.step.active {
  opacity: 1;
  color: #10b981;
}

.risk-indicator {
  text-align: center;
  color: white;
}

.risk-score {
  font-size: 3rem;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 0.5rem;
}

.risk-label {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.risk-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.risk-status.medium {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Interactive Features Section */
.features-interactive {
  padding: 5rem 0;
  background: linear-gradient(to bottom, #f8fafc, #e2e8f0);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.icon-container {
  width: 80px;
  height: 80px;
  background: var(--primary-gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: var(--glow);
}

.feature-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: var(--primary-gradient);
  opacity: 0.3;
  animation: featurePulse 3s ease-in-out infinite;
}

@keyframes featurePulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.1; }
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.feature-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-item {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.detail-icon {
  margin-right: 0.75rem;
  font-size: 1rem;
}

/* Trust Section */
.trust-section {
  padding: 3rem 0;
  background: white;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.trust-item:hover {
  background: white;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.trust-icon {
  font-size: 2.5rem;
  margin-right: 1rem;
  opacity: 0.8;
}

.trust-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.trust-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Animations */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translate3d(-100%, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translate3d(100%, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Mobile Responsive for Modern Landing */
@media (max-width: 768px) {
  .hero-modern {
    min-height: 90vh;
    text-align: center;
  }
  
  .hero-content {
    padding: 1rem 0;
  }
  
  .hero-title-modern {
    font-size: 2.5rem;
  }
  
  .hero-subtitle-modern {
    font-size: 1.1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-modern {
    width: 100%;
    max-width: 300px;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .hero-visual {
    margin-top: 2rem;
  }
  
  .demo-dashboard {
    width: 90%;
    max-width: 350px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-card {
    padding: 2rem;
  }
  
  .trust-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .floating-icon {
    font-size: 1.5rem;
  }
}

/* ================================
   VEHICLE COMPARISON STYLES
   ================================ */

.comparison-form {
  max-width: 1200px;
  margin: 0 auto;
}

.comparison-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: start;
}

.comparison-vehicle {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 2rem;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.comparison-vehicle:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.vehicle-title {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  justify-content: center;
}

.vehicle-icon {
  font-size: 2rem;
  margin-right: 0.75rem;
}

.vehicle-form {
  margin-bottom: 1.5rem;
}

.btn-icon {
  margin-right: 0.5rem;
}

.scan-status {
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
  background: white;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.status-indicator.pending {
  background: #f3f4f6;
  color: var(--text-secondary);
  border: 2px solid #e5e7eb;
}

.status-indicator.scanning {
  background: #dbeafe;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  animation: pulse 2s infinite;
}

.status-indicator.completed {
  background: #d1fae5;
  color: var(--success-color);
  border: 2px solid var(--success-color);
}

.status-indicator.error {
  background: #fee2e2;
  color: var(--error-color);
  border: 2px solid var(--error-color);
}

.status-icon {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.comparison-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.vs-badge {
  background: var(--primary-gradient);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: var(--shadow-lg);
  animation: vsRotate 10s linear infinite;
}

@keyframes vsRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.comparison-actions {
  text-align: center;
  margin-bottom: 2rem;
}

.action-buttons {
  margin-bottom: 2rem;
}

.btn-subtitle {
  display: block;
  font-size: 0.8rem;
  opacity: 0.7;
  font-weight: 400;
  margin-top: 0.25rem;
}

.comparison-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.info-icon {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.comparison-results {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.results-header {
  text-align: center;
  margin-bottom: 2rem;
}

.results-header h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.results-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
}

.comparison-column {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  border: 2px solid var(--border-color);
}

.comparison-column.winner {
  border-color: var(--success-color);
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  position: relative;
}

.comparison-column.winner::before {
  content: '🏆 WINNER';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--success-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.vehicle-summary {
  text-align: center;
  margin-bottom: 2rem;
}

.vehicle-summary h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.vehicle-summary .vrm {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  background: var(--bg-light);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 1rem;
}

.comparison-metrics {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--bg-light);
  border-radius: 8px;
}

.metric-label {
  font-weight: 500;
  color: var(--text-secondary);
}

.metric-value {
  font-weight: 600;
  color: var(--text-primary);
}

.metric-value.better {
  color: var(--success-color);
}

.metric-value.worse {
  color: var(--error-color);
}

.comparison-divider-results {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.comparison-line {
  width: 2px;
  height: 400px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  position: relative;
}

.comparison-line::before {
  content: 'VS';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.recommendation-panel {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.recommendation-panel h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.recommendation-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.recommendation-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Mobile Responsive for Comparison */
@media (max-width: 768px) {
  .comparison-inputs {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .comparison-divider {
    min-height: auto;
    padding: 1rem 0;
  }
  
  .vs-badge {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .comparison-vehicle {
    padding: 1.5rem;
  }
  
  .vehicle-title {
    font-size: 1.3rem;
  }
  
  .comparison-info {
    flex-direction: column;
    gap: 1rem;
  }
  
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .comparison-divider-results {
    display: none;
  }
  
  .recommendation-actions {
    flex-direction: column;
  }
}

/* Enhanced Mobile-First Improvements */
@media (max-width: 640px) {
  /* Enhanced Typography for Small Screens */
  .hero-title-modern {
    font-size: 2rem;
    line-height: 1.1;
  }
  
  .hero-subtitle-modern {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  /* Improved Touch Targets */
  .btn {
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .nav-link {
    padding: 0.75rem 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  
  /* Enhanced Form Controls */
  .form-input {
    min-height: 48px;
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem 1rem;
  }
  
  /* Better Modal Experience */
  .modal-content {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }
  
  /* Improved Grid Layout */
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Enhanced Hero Section */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .btn-modern {
    width: 100%;
    text-align: center;
  }
  
  /* Better Stats Display */
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  /* Enhanced Feature Cards */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  /* Improved Trust Section */
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .trust-item {
    text-align: center;
    padding: 1rem;
  }
  
  /* Better Dashboard Layout */
  .result-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Enhanced Comparison */
  .comparison-vehicle {
    padding: 1rem;
  }
  
  .action-buttons {
    padding: 0 1rem;
  }
  
  /* Improved Loading States */
  .loading-spinner {
    width: 40px;
    height: 40px;
  }
  
  /* Better Error States */
  .error-message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
  }
}

/* Pricing Section Styles */
.pricing-section {
  background: var(--bg-light);
  padding: 4rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.pricing-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 2px solid transparent;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.popular {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.popular-badge {
  background: var(--primary-gradient);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: var(--shadow);
}

.pricing-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pricing-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pricing-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.pricing-price {
  text-align: center;
  margin-bottom: 2rem;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  display: block;
}

.price-period {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 0.25rem;
  display: block;
}

.price-save {
  background: var(--success-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
  display: inline-block;
}

.pricing-features {
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.pricing-action {
  text-align: center;
}

.pricing-guarantee {
  margin-top: 3rem;
  text-align: center;
}

.guarantee-content {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-white);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.guarantee-icon {
  font-size: 2rem;
}

.guarantee-text h4 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.guarantee-text p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.875rem;
}

/* Testimonials Section Styles */
.testimonials-section {
  background: var(--bg-white);
  padding: 4rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.testimonial-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-color);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.testimonial-rating {
  margin-bottom: 1rem;
}

.star {
  color: #fbbf24;
  font-size: 1.2rem;
  margin-right: 0.25rem;
}

.testimonial-content {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0 0 1.5rem 0;
  quotes: """ """ "'" "'";
}

.testimonial-content::before {
  content: open-quote;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.testimonial-content::after {
  content: close-quote;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.author-title {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

.testimonials-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.testimonials-stats .stat-item {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.testimonials-stats .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.testimonials-stats .stat-label {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Mobile Responsive for Pricing and Testimonials */
@media (max-width: 768px) {
  .pricing-section,
  .testimonials-section {
    padding: 2rem 0;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
  }
  
  .pricing-card.popular {
    transform: none;
  }
  
  .pricing-card {
    padding: 1.5rem;
  }
  
  .price-amount {
    font-size: 2.5rem;
  }
  
  .guarantee-content {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .testimonials-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .testimonials-stats .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .testimonials-stats {
    grid-template-columns: 1fr;
  }
  
  .guarantee-content {
    margin: 0 1rem;
  }
}

/* Help & FAQ Section Styles */
.help-header {
  text-align: center;
  margin-bottom: 3rem;
}

.help-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.help-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.quick-help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.help-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.help-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.help-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.help-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.help-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.help-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.help-link:hover {
  color: var(--primary-dark);
}

.faq-section {
  margin: 4rem 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.faq-category {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.faq-category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
}

.faq-answer.active {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.faq-answer p,
.faq-answer ol,
.faq-answer ul {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.faq-answer ol,
.faq-answer ul {
  padding-left: 1.5rem;
}

.faq-answer li {
  margin-bottom: 0.5rem;
}

.faq-answer strong {
  color: var(--text-primary);
  font-weight: 600;
}

.support-section {
  margin-top: 4rem;
  text-align: center;
}

.support-card {
  background: var(--primary-gradient);
  color: white;
  border-radius: 16px;
  padding: 3rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.support-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.support-card > p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.support-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.support-options .btn {
  background: white;
  color: var(--primary-color);
  border: none;
  font-weight: 600;
}

.support-options .btn:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
}

.support-hours {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
}

/* Mobile Responsive for Help Section */
@media (max-width: 768px) {
  .help-title {
    font-size: 2rem;
  }
  
  .help-subtitle {
    font-size: 1rem;
  }
  
  .quick-help-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .help-card {
    padding: 1.5rem;
  }
  
  .faq-category {
    padding: 1.5rem;
  }
  
  .faq-category-title {
    font-size: 1.25rem;
  }
  
  .faq-question {
    font-size: 1rem;
    padding: 1rem 0;
  }
  
  .support-card {
    padding: 2rem 1.5rem;
  }
  
  .support-options {
    flex-direction: column;
    align-items: center;
  }
  
  .support-options .btn {
    width: 100%;
    max-width: 250px;
  }
}

/* Enhanced Dashboard Scan Cards */
.scan-card {
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.scan-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.scan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.scan-title h4 {
  margin: 0 0 0.25rem 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.scan-date {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.scan-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-completed {
  background: #dcfce7;
  color: #166534;
}

.status-processing, .status-queued {
  background: #fef3c7;
  color: #92400e;
}

.status-failed, .status-error {
  background: #fee2e2;
  color: #991b1b;
}

.scan-summary {
  margin-bottom: 1rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.summary-item {
  text-align: center;
}

.summary-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  font-weight: 600;
}

.summary-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.summary-value.risk-low {
  color: #059669;
}

.summary-value.risk-medium {
  color: #d97706;
}

.summary-value.risk-high {
  color: #dc2626;
}

.scan-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.scan-status-message {
  text-align: center;
  padding: 1rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* PDF Modal Styles */
.pdf-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pdf-modal {
  background: var(--bg-white);
  border-radius: 12px;
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

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

.pdf-modal-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.pdf-modal-actions {
  display: flex;
  gap: 0.5rem;
}

.pdf-modal-content {
  flex: 1;
  overflow: hidden;
}

.pdf-iframe {
  width: 100%;
  height: 70vh;
  border: none;
  background: white;
}

/* Details Modal Styles */
.details-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.details-modal {
  background: var(--bg-white);
  border-radius: 12px;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  margin: 2rem 0;
}

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

.details-modal-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.details-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.details-section {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 1.5rem;
}

.details-section.full-width {
  grid-column: 1 / -1;
}

.details-section h4 {
  margin: 0 0 1rem 0;
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px dotted var(--border-color);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-item .label {
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 1rem;
}

.detail-item .value {
  color: var(--text-primary);
  text-align: right;
  font-weight: 500;
}

.detail-item .value.risk-low {
  color: #059669;
  font-weight: 700;
}

.detail-item .value.risk-medium {
  color: #d97706;
  font-weight: 700;
}

.detail-item .value.risk-high {
  color: #dc2626;
  font-weight: 700;
}

.ai-summary {
  background: var(--bg-white);
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-color);
}

.ai-recommendations, .ai-red-flags {
  background: var(--bg-white);
  padding: 1rem;
  border-radius: 6px;
  margin-top: 1rem;
}

.ai-recommendations {
  border-left: 4px solid #059669;
}

.ai-red-flags {
  border-left: 4px solid #dc2626;
}

.ai-recommendations h5, .ai-red-flags h5 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
}

.ai-recommendations ul, .ai-red-flags ul {
  margin: 0;
  padding-left: 1.25rem;
}

.ai-recommendations li, .ai-red-flags li {
  margin-bottom: 0.25rem;
  color: var(--text-secondary);
}

.details-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* Mobile Responsive for Enhanced Dashboard */
@media (max-width: 768px) {
  .scan-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .scan-actions {
    flex-direction: column;
  }
  
  .scan-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .summary-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .pdf-modal, .details-modal {
    margin: 0.5rem;
    max-width: none;
    width: calc(100% - 1rem);
  }
  
  .pdf-modal-header, .details-modal-header {
    padding: 1rem;
  }
  
  .pdf-modal-actions {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  
  .pdf-modal-actions .btn {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }
  
  .pdf-iframe {
    height: 60vh;
  }
  
  .details-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .details-actions {
    flex-direction: column;
  }
  
  .detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .detail-item .value {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .pdf-modal-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .pdf-modal-actions .btn {
    width: 100%;
  }
  
  .summary-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* Enhanced Touch and Accessibility */
@media (hover: none) and (pointer: coarse) {
  /* Touch device optimizations */
  .btn:hover {
    transform: none;
    box-shadow: var(--shadow);
  }
  
  .feature-card:hover {
    transform: none;
  }
  
  .card:hover {
    transform: none;
    box-shadow: var(--shadow);
  }
  
  /* Enhanced tap targets */
  .nav-link {
    min-width: 44px;
    min-height: 44px;
  }
  
  .logout-btn {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-light: #1e293b;
    --bg-white: #0f172a;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  }
  
  body {
    background-color: var(--bg-light);
    color: var(--text-primary);
  }
  
  .header {
    background: var(--bg-white);
    border-bottom-color: var(--border-color);
  }
  
  .card {
    background: var(--bg-white);
    border-color: var(--border-color);
  }
  
  .form-input {
    background: var(--bg-white);
    border-color: var(--border-color);
    color: var(--text-primary);
  }
  
  .form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .floating-elements {
    animation: none;
  }
  
  .progress-fill-demo {
    animation: none;
  }
  
  .feature-pulse {
    animation: none;
  }
}