/* Shared sitewide styles for header, navigation, and buttons */
body {
  background: #fff !important;
  color: #232735;
  font-family: 'Montserrat', sans-serif !important;
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Mobile Optimization CSS for Property Defect Detection Website */

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
  /* General mobile improvements */
  body {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  
  /* Header mobile optimization */
  .header-container {
    padding: 0 1rem !important;
    min-height: 60px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10000 !important;
    background: #181a2a !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
  }
  
  .logo-text {
    font-size: 1.2rem !important;
  }
  
  .nav-center {
    display: none !important;
    opacity: 0 !important;
    transform: translateY(-100%) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
  }
  
  .nav-center.active {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  
  /* Mobile navigation now uses overlay approach - remove old nav-center rules */
  

  
  .mobile-action-btn {
    background: linear-gradient(90deg, #7b5cff 0%, #4f8cff 100%);
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    margin: 0.5rem 0;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    display: block;
  }
  
  .mobile-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(123,92,255,0.4);
    color: #fff;
  }
  
  .mobile-signup-btn {
    background: linear-gradient(90deg, #7b5cff 0%, #4f8cff 100%);
  }
  
  .mobile-pricing-btn {
    background: linear-gradient(90deg, #4f8cff 0%, #7b5cff 100%);
  }
  
  .mobile-account-btn {
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
    display: none !important; /* Hidden by default, shown only when authenticated */
  }
  
  /* Override the general mobile-action-btn display for account button */
  .mobile-action-btn.mobile-account-btn {
    display: none !important;
  }
  
  /* When authenticated, show the account button */
  .mobile-action-btn.mobile-account-btn.authenticated {
    display: block !important;
  }
  

  

  
  /* Mobile-specific responsive styles */
  @media (max-width: 768px) {
    .nav-center {
      display: none !important;
    }
    
    .nav-btn-group {
      display: none !important;
    }
    
    .header-container {
      padding: 0 1rem !important;
      min-height: 60px !important;
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      right: 0 !important;
      z-index: 10000 !important;
      background: #181a2a !important;
      box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
    }
    
    .header-right {
      display: flex !important;
      align-items: center !important;
      gap: 1rem !important;
    }
    
    .logo-text {
      font-size: 1.2rem !important;
    }
    
    /* Ensure main content doesn't overlap with fixed header */
    .account-main {
      margin-top: -70px !important;
      padding-top: 20px !important;
    }
    
    .hero-section {
      margin-top: -70px !important;
    }
  }
  
  /* Mobile upload hints */
  .mobile-upload-hint {
    color: #bcb8d3;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
  }
  
  /* Mobile validation error styles */
  .mobile-error {
    border-color: #ff4d4d !important;
    box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.2) !important;
  }
  
  .mobile-validation-error {
    background: #ff4d4d;
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
  }
  
  /* Mobile loading states */
  .mobile-loading {
    width: 20px !important;
    height: 20px !important;
    border-width: 2px !important;
  }
  
  /* Mobile touch feedback */
  @media (hover: none) and (pointer: coarse) {
    .mobile-action-btn:active {
      transform: scale(0.95) !important;
    }
    

  }
  

  
  /* Hero section mobile */
  .hero-section {
    padding: 2rem 1rem !important;
    margin-top: -70px !important;
  }
  
  /* Main content spacing for mobile */
  .account-main {
    margin-top: -70px !important;
    padding-top: 20px !important;
  }
  
  .account-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  
  .hero-title-text {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.5 !important;
  }
  
  .hero-btn-row {
    flex-direction: column !important;
    gap: 1rem !important;
    margin-top: 1.5rem !important;
  }
  
  .hero-btn-row .btn {
    width: 100% !important;
    max-width: 280px !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  /* Improve hero card layout for mobile */
  .hero-card {
    flex-direction: column !important;
    gap: 2rem !important;
    padding: 1.5rem !important;
  }
  
  .hero-content {
    text-align: center !important;
    order: 1 !important;
  }
  
  .hero-image-container {
    order: 2 !important;
    margin-top: 1rem !important;
  }
  
  /* Upload area mobile optimization */
  .upload-area {
    padding: 2rem 1rem !important;
    margin: 1rem !important;
  }
  
  .upload-label {
    font-size: 1.1rem !important;
  }
  
  .file-input-wrapper {
    width: 100% !important;
  }
  
  .file-input {
    width: 100% !important;
    height: 120px !important;
  }
  
  /* Results display mobile */
  .results-container {
    padding: 1rem !important;
  }
  
  .defect-card {
    margin: 0.5rem 0 !important;
    padding: 1rem !important;
  }
  
  .defect-title {
    font-size: 1rem !important;
  }
  
  .defect-confidence {
    font-size: 0.9rem !important;
  }
  
  /* Account pages mobile */
  .account-container {
    padding: 1rem !important;
  }
  
  .account-card {
    margin: 0.5rem 0 !important;
    padding: 1.5rem !important;
  }
  
  /* Pricing cards mobile */
  .pricing-card {
    margin: 1rem 0 !important;
    padding: 1.5rem !important;
  }
  
  .plan-title {
    font-size: 1.3rem !important;
  }
  
  .plan-price {
    font-size: 2rem !important;
  }
  
  /* Footer mobile */
  .footer-container {
    padding: 2rem 1rem !important;
  }
  
  .footer-main {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  /* Modal mobile */
  .modal {
    margin: 1rem !important;
    max-width: calc(100% - 2rem) !important;
  }
  
  .modal-content {
    padding: 1.5rem !important;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .hero-title-text {
    font-size: 1.5rem !important;
  }
  
  .hero-subtitle {
    font-size: 0.9rem !important;
  }
  
  .upload-area {
    padding: 1.5rem 0.5rem !important;
  }
  
  .file-input {
    height: 100px !important;
  }
  
  .account-card {
    padding: 1rem !important;
  }
  
  .pricing-card {
    padding: 1rem !important;
  }
  
  .modal-content {
    padding: 1rem !important;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn, .nav-link, .upload-area {
    min-height: 44px !important;
    min-width: 44px !important;
  }
  
  /* Better touch feedback */
  .btn:active, .nav-link:active {
    transform: scale(0.95) !important;
  }
  
  /* Improved scrolling */
  .scroll-container {
    -webkit-overflow-scrolling: touch !important;
  }
}

/* Desktop containers: center and constrain key page sections */
@media (min-width: 901px) {
  .ai-service-section,
  .ai-showcase-container,
  .pricing-section,
  .testimonials-section,
  .contact-sections,
  .account-container,
  .main-section-container {
    max-width: 1100px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  /* Hide mobile navigation UI on desktop globally */
  .mobile-menu-toggle,
  #mobile-menu-toggle,
  .mobile-nav,
  .mobile-nav-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  /* Ensure testimonials sit below the fixed header */
  .testimonials-section { margin-top: 88px !important; }
  /* Testimonials hero band should not span full viewport width */
  .testimonials-hero {
    width: 100% !important;
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 22px !important;
  }
  /* Contact page two-column layout */
  .contact-sections {
    display: grid !important;
    grid-template-columns: 1.6fr 1fr !important;
    gap: 2rem !important;
    align-items: start !important;
  }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    padding: 1rem !important;
  }
  
  .hero-title-text {
    font-size: 1.4rem !important;
  }
  
  .upload-area {
    padding: 1rem !important;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo, .logo-hex {
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
  }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
  /* Better focus indicators */
  .btn:focus, .nav-link:focus, .upload-area:focus {
    outline: 2px solid #7b5cff !important;
    outline-offset: 2px !important;
  }
  
  /* Improved contrast for small text */
  .defect-confidence, .plan-sub {
    color: #8a8a8a !important;
  }
  
  /* Better spacing for touch */
  .defect-card, .pricing-card, .account-card {
    margin-bottom: 1rem !important;
  }
}

/* Loading states for mobile */
.mobile-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  color: #7b5cff;
}

.mobile-loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid #7b5cff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
}

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

/* Mobile-specific utility classes */
.mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block !important;
  }
  
  .desktop-only {
    display: none !important;
  }
}



/* Mobile-friendly image upload */
.mobile-upload-hint {
  display: none;
  text-align: center;
  color: #bcb8d3;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .mobile-upload-hint {
    display: block;
  }
}

/* Mobile-optimized buttons */
.mobile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 44px;
  border: none;
  cursor: pointer;
}

.mobile-btn.primary {
  background: linear-gradient(135deg, #7b5cff 0%, #4f8cff 100%);
  color: #fff;
}

.mobile-btn.secondary {
  background: transparent;
  color: #7b5cff;
  border: 2px solid #7b5cff;
}

.mobile-btn:active {
  transform: scale(0.95);
}

/* Mobile-friendly forms */
.mobile-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-form input,
.mobile-form textarea,
.mobile-form select {
  padding: 0.75rem;
  border: 1px solid #2a2d3a;
  border-radius: 8px;
  background: #181a2a;
  color: #fff;
  font-size: 16px; /* Prevents zoom on iOS */
}

.mobile-form input:focus,
.mobile-form textarea:focus,
.mobile-form select:focus {
  outline: none;
  border-color: #7b5cff;
  box-shadow: 0 0 0 2px rgba(123, 92, 255, 0.2);
}

.main-header {
  width: 100% !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 100 !important;
  background: #181a2a !important;
  box-shadow: 0 4px 32px 0 #181a2a44, 0 1.5px 8px #4f8cff22 !important;
  padding: 0 !important;
  border-radius: 0 0 18px 18px !important;
}

.header-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 0 2.5em !important;
  min-height: 78px !important;
  box-sizing: border-box !important;
}

.header-left, .header-right {
  flex: 0 0 220px !important; /* Fixed width for symmetry, adjust as needed */
  display: flex !important;
  align-items: center !important;
  min-width: 180px !important;
  justify-content: flex-start !important;
}

.header-right {
  justify-content: flex-end !important;
}

.header-center {
  flex: 1 1 0% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.logo-link {
  margin-right: 0 !important;
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
}

.logo {
  width: 38px;
  height: 38px;
  margin-right: 0.5em;
}

.logo-hex {
  width: 38px;
  height: 38px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5em;
  background: none;
  position: relative;
}

.logo-hex::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #7b5cff 0%, #4f8cff 100%);
  clip-path: polygon(
    50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%
  );
  box-shadow: 0 0 14px 2px #7b5cff44, 0 0 8px 0 #4f8cff33;
}

.logo-text {
  color: #fff;
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  margin-left: 0.18em;
}

.logo-ai, .ai-gradient {
  background: linear-gradient(90deg, #7b5cff 0%, #4f8cff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.nav-center {
  display: flex !important;
  justify-content: center !important;
  gap: 2.5em !important;
  margin-left: 0 !important;
  flex: 1 1 auto !important;
}

.nav-link {
  color: #e0e3f5 !important;
  text-decoration: none !important;
  font-size: 1.22rem !important;
  font-weight: 400 !important;
  transition: color 0.18s !important;
  position: relative !important;
}

.nav-link:hover {
  color: #7b5cff !important;
}

.nav-btn-group {
  margin-left: 0 !important;
  display: flex !important;
  gap: 1em !important;
  align-items: center !important;
}

.user-email {
  color: #bcb8d3;
  font-size: 0.9rem;
  font-weight: 500;
}

.logout-btn {
  background: linear-gradient(90deg, #7b5cff 0%, #4f8cff 100%);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 0.7em 2em;
  font-size: 1.05em;
  box-shadow: 0 2px 16px #7b5cff33;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}
.logout-btn:hover {
  background: linear-gradient(90deg, #4f8cff 0%, #7b5cff 100%);
  transform: translateY(-2px) scale(1.04);
}

.signup-btn-nav {
  background: linear-gradient(90deg, #a259ff 0%, #ff6ec4 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 0.55em 1.5em !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 16px #a259ff55, 0 1.5px 8px #ff6ec433 !important;
  text-decoration: none !important;
  transition: background 0.18s, box-shadow 0.18s !important;
  border: none !important;
  outline: none !important;
  margin-left: 1em !important;
  margin-right: 0 !important;
  display: inline-block;
  white-space: nowrap !important;
}

.signup-btn-nav:hover {
  background: linear-gradient(90deg, #ff6ec4 0%, #a259ff 100%);
  box-shadow: 0 4px 24px #a259ff88, 0 2px 12px #ff6ec455;
}

.get-started-btn {
  background: linear-gradient(90deg, #4f8cff 0%, #7b5cff 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 0.55em 1.5em !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 16px #4f8cff55, 0 1.5px 8px #7b5cff33 !important;
  text-decoration: none !important;
  transition: background 0.18s, box-shadow 0.18s !important;
  border: none !important;
  outline: none !important;
  margin-left: 2em !important;
  margin-right: 0 !important;
  display: inline-block !important;
}
.get-started-btn:hover {
  background: linear-gradient(90deg, #7b5cff 0%, #4f8cff 100%) !important;
  box-shadow: 0 4px 24px #4f8cff88, 0 2px 12px #7b5cff55;
}

.my-account-btn-nav {
  background: linear-gradient(90deg, #ff4d4d 0%, #ff6b6b 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 0.55em 1.5em !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 16px #ff4d4d55, 0 1.5px 8px #ff6b6b33 !important;
  text-decoration: none !important;
  transition: background 0.18s, box-shadow 0.18s !important;
  border: none !important;
  outline: none !important;
  margin-left: 1em !important;
  margin-right: 0 !important;
  display: inline-block !important;
  white-space: nowrap !important;
}
.my-account-btn-nav:hover {
  background: linear-gradient(90deg, #ff6b6b 0%, #ff4d4d 100%) !important;
  box-shadow: 0 4px 24px #ff4d4d88, 0 2px 12px #ff6b6b55;
}

.header-divider {
  height: 78px;
  width: 100%;
  background: transparent;
}

.star-overlay {
  display: block;
}

/* Section backgrounds for more contrast */
.hero-section, .features-section, .pricing-section, .testimonials-section, .contact-section {
  background: #181a2a !important;
  color: #fff;
  border-radius: 18px !important;
  padding-top: 64px !important;
  padding-bottom: 64px !important;
  max-width: 1200px;
  margin: 40px auto 3.5em auto;
}

/* Card backgrounds */
.feature-card, .pricing-card, .testimonial-card {
  background: #181a2a;
  color: #fff;
  box-shadow: 0 4px 24px rgba(60,60,120,0.13);
  border-radius: 16px;
}

/* Headings */
h1, h2, h3, h4, h5, h6, .hero-title-text, .section-title, .cta-title, .ai-showcase-title, .how-title-animated {
  color: #fff !important;
  background: linear-gradient(90deg, #fff 0%, #7b5cff 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-fill-color: transparent !important;
  text-shadow: none !important;
}

/* Buttons and CTAs: use muted/pastel accent colors */
.btn, .cta-button, .get-started-btn, .signup-btn-nav {
  background: linear-gradient(90deg, #7b5cff 0%, #4f8cff 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 20px #7b5cff22;
}
.btn:hover, .cta-button:hover, .get-started-btn:hover, .signup-btn-nav:hover {
  background: linear-gradient(90deg, #4f8cff 0%, #7b5cff 100%) !important;
  color: #fff !important;
}

.main-footer {
  width: 100%;
  background: linear-gradient(135deg, #0a0c1a 0%, #181a2a 100%);
  color: #bcb8d3;
  border-top: 1px solid #23244a;
  padding: 0;
  margin-top: 2rem;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  padding: 2.5rem 0 1.5rem 0;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  position: relative;
}
.footer-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #7b5cff 0%, #4f8cff 100%);
  border-radius: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.8rem;
}
.footer-links a {
  color: #bcb8d3;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}
.footer-links a:hover {
  color: #7b5cff;
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
@media (max-width: 600px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0 1.5rem 0;
  }
}

.plan-btn {
  background: linear-gradient(90deg, #7b5cff 0%, #4f8cff 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.55em 1.5em;
  border-radius: 10px;
  box-shadow: 0 2px 16px #7b5cff55, 0 1.5px 8px #4f8cff33;
  text-decoration: none;
  transition: background 0.18s, box-shadow 0.18s;
  border: none;
  outline: none;
  display: inline-block;
  margin-top: 1.2em;
  cursor: pointer;
}
.plan-btn:hover {
  background: linear-gradient(90deg, #4f8cff 0%, #7b5cff 100%);
  box-shadow: 0 4px 24px #7b5cff88, 0 2px 12px #4f8cff55;
}

.modal-overlay {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30, 32, 40, 0.85) !important;
  z-index: 200000 !important; /* above mobile nav toggle */
  /* display: flex !important; */
  align-items: center !important;
  justify-content: center !important;
}

.modal {
  position: relative;
  z-index: 200001; /* above overlay */
  min-width: 220px;
  min-height: 120px;
  background: #181a20;
  color: #fff;
  display: block;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  padding: 1.2rem 1.2rem 1rem 1.2rem;
  max-width: 480px;
  width: 98vw;
  animation: modalFadeIn 0.25s;
  box-sizing: border-box;
}
.modal-content {
  background: #181a2a;
  margin: 10% auto;
  padding: 1.2em 1em 1em 1em;
  border-radius: 18px;
  width: 98%;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 4px 32px #7b5cff33, 0 1.5px 8px #4f8cff22;
  border: 2px solid #7b5cff;
  position: relative;
}
.modal-content h2 {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 1em;
  background: linear-gradient(90deg, #fff 0%, #7b5cff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}
.modal-content .plan-btn {
  margin: 0 0.5em 0 0.5em;
  min-width: 160px;
  font-size: 1.08rem;
  padding: 0.7em 1.5em;
  border-radius: 12px;
  margin-bottom: 0.5em;
  margin-top: 0;
  box-shadow: 0 2px 16px #7b5cff55, 0 1.5px 8px #4f8cff33;
}
.close {
  color: #aaa; float: right; font-size: 2em; font-weight: bold; cursor: pointer;
}
.close:hover { color: #fff; }

@media (max-width: 600px) {
  .modal-content {
    padding: 1.2em 0.5em 1.5em 0.5em;
  }
  .modal-content .plan-btn {
    min-width: 100px;
    font-size: 0.98rem;
    padding: 0.6em 0.7em;
  }
}

/* Add more padding for whitespace */
.container, .section-block, .features-section, .pricing-section, .testimonials-section, .contact-section {
  padding: 2.5em 2em 2.2em 2em !important;
}

.hero-content {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-btn-row {
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
  align-items: center;
  justify-content: flex-start;
  margin-top: 2.2rem;
}
@media (max-width: 900px) {
  .hero-btn-row {
    justify-content: center !important;
  }
  .hero-content {
    text-align: center !important;
    align-items: center !important;
    max-width: 100% !important;
  }
}

.hero-card {
  background: #202133;
  border-radius: 24px;
  box-shadow: 0 8px 32px #7b5cff22;
  padding: 2.5em 2em;
  width: 100%;
  max-width: 800px;
  display: flex;
  align-items: center;
  gap: 2em;
  justify-content: space-between;
}
.hero-content {
  flex: 1.1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero-title-text {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.5em;
  line-height: 1.1;
}
.hero-btn-row {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  margin-top: 2em;
  justify-content: flex-start;
}
.hero-image-container {
  flex: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 180px;
}
.hero-image {
  max-width: 270px;
  border-radius: 16px;
  box-shadow: 0 4px 24px #7b5cff22;
  width: 100%;
}
@media (max-width: 900px) {
  .hero-card {
    flex-direction: column;
    gap: 1.5em;
    padding: 1.5em 0.7em;
    text-align: center;
    max-width: 98vw;
  }
  .hero-content {
    align-items: center;
    min-width: 0;
  }
  .hero-btn-row {
    justify-content: center;
  }
  .hero-image-container {
    margin-top: 1em;
    min-width: 0;
  }
  .hero-image {
    max-width: 90vw;
  }
}

.pricing-section {
  background: #181a2a !important;
  color: #fff;
  border-radius: 18px !important;
  padding-top: 64px !important;
  padding-bottom: 64px !important;
  max-width: 1200px;
  margin: 40px auto 3.5em auto;
}

.testimonials-section {
  margin-top: initial !important;
}

.features-glance-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2em;
  margin: 2.5em auto 2em auto;
  width: 100%;
  max-width: 1200px;
}

.hero-flex {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  position: relative;
  z-index: 2;
  min-height: 420px;
}

.how-it-works-homepage, .homepage-testimonials-preview {
  max-width: 1200px;
  width: 100%;
  margin: 2em auto 2em auto;
  background: #181a2a;
  border-radius: 22px;
  box-shadow: 0 4px 32px #7b5cff11;
  padding: 1.2em 1em 1.2em 1em;
  text-align: center;
}
.how-it-works-homepage h2, .homepage-testimonials-preview h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.7em;
  background: linear-gradient(90deg, #fff 0%, #7b5cff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}
.how-it-works-homepage .how-it-works-step {
  background: #23244a;
  border-radius: 16px;
  padding: 1.1em 0.7em;
  margin-bottom: 0.5em;
  box-shadow: 0 2px 12px #7b5cff22;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.testimonial-preview-card {
  background: #23244a;
  border-radius: 16px;
  box-shadow: 0 2px 12px #7b5cff22;
  padding: 1.5em 1.2em 1.2em 1.2em;
  min-width: 220px;
  max-width: 320px;
  width: 100%;
  text-align: left;
  color: #e0e3f5;
  font-size: 1.08rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
}

/* --- FAQ SECTION: SCOPE ALL FAQ STYLES --- */
.faq-section {
  max-width: 800px;
  width: 100%;
  margin: 4rem auto;
  background: #191b2a;
  border-radius: 18px;
  box-shadow: 0 8px 32px #7b5cff22, 0 2px 8px #4f8cff11;
  border: 1.5px solid #23244a;
  padding: 2.5em 2em 2em 2em;
}
.faq-section > h2, .faq-section .section-title {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(90deg, #fff 0%, #7b5cff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  text-align: center;
  margin-bottom: 2rem;
}
.faq-section .faq-item {
  background: #181a2a;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(60,60,120,0.1);
  display: flex;
  flex-direction: column;
  border-left: 5px solid #7b5cff;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.faq-section .faq-item:hover {
  box-shadow: 0 8px 32px #7b5cff22;
  border-left: 5px solid #43e97b;
}
.faq-section .faq-question {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-section .faq-question:hover {
  background: rgba(123, 92, 255, 0.1);
}
.faq-section .faq-question::after {
  content: '\25BC';
  font-size: 1.2em;
  margin-left: 1em;
  transition: transform 0.3s;
}
.faq-section .faq-question[aria-expanded="true"]::after {
  transform: rotate(-180deg);
}
.faq-section .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(10, 12, 26, 0.5);
}
.faq-section .faq-answer.active {
  max-height: 200px;
}
.faq-section .faq-answer p {
  padding: 1.5rem;
  color: #bcb8d3;
  line-height: 1.6;
  margin: 0;
}

#particles-js {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Processing overlay reliability on mobile */
#processing-overlay {
  display: none !important;
  z-index: 999999 !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100dvw !important;
  height: 100dvh !important;
  margin: 0 !important;
}
#processing-overlay.open {
  display: grid !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100dvw !important;
  height: 100dvh !important;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  /* Cover iOS safe-area gutters on devices with dynamic viewports */
  left: calc(0px - env(safe-area-inset-left)) !important;
  right: calc(0px - env(safe-area-inset-right)) !important;
  left: calc(0px - constant(safe-area-inset-left)) !important;
  right: calc(0px - constant(safe-area-inset-right)) !important;
}

/* Lock viewport when processing to avoid scrollbar gutter */
html.processing-open, body.processing-open {
  overflow: hidden !important;
  height: 100% !important;
  background: rgba(10,12,26,0.92) !important; /* match overlay background to mask any gutter */
}

/* Fallback gutter cover for iOS right-edge scrollbar/safe-area */
body.processing-open::after {
  content: '';
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 16px; /* base width */
  width: calc(env(safe-area-inset-right, 0px) + 12px);
  background: rgba(10,12,26,0.92);
  pointer-events: none !important;
  z-index: 999998 !important;
}

/* Mobile-only: center overlay content and slightly reduce text size */
@media (max-width: 600px) {
  #processing-overlay { place-items: center !important; }
  #processing-overlay > div {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 92vw !important;
    max-width: 360px !important;
    padding: 0 12px !important;
    text-align: center !important;
  }
  #processing-message { font-size: 1.2rem !important; line-height: 1.25 !important; }
  #processing-overlay .progress-bar-outer { width: 84vw !important; max-width: 280px !important; height: 10px !important; }
  #processing-overlay > div > div:last-child { font-size: 0.95rem !important; }

  /* AI Defect Scanner: ensure results details match desktop design on mobile */
  .demo-result,
  #demo-result {
    display: block !important;
    padding: 0 12px !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  
  /* Ensure all defect cards are properly constrained on mobile - removed conflicting rules */
  
  /* Ensure consent box and other content doesn't overflow */
  .consent-box,
  .privacy-consent,
  .upload-consent {
    width: calc(100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  #demo-result .defect-card {
    /* Removed conflicting width rules - using mobile-specific rules instead */
    border-radius: 16px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  /* Ensure result container isn't hidden by accidental inline style */
  #demo-result { display: block !important; visibility: visible !important; opacity: 1 !important; }
  #demo-result .defect-card .defect-details { font-size: 0.96rem !important; }
  #demo-result .defect-title { font-size: 1.02rem !important; }
  #download-report-btn,
  #request-review-btn,
  #retry-btn {
    width: calc(100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-certifications {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-end;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.9rem;
  background: #23244a;
  border-radius: 16px;
  font-size: 0.88rem;
  color: #bcb8d3;
  border: 1.5px solid #3a3b5a;
  font-weight: 600;
  box-shadow: 0 2px 8px #181a2a22;
  transition: all 0.3s ease;
  margin-left: 0;
  margin-right: 0;
}
.cert-badge:hover {
  background: #3a3b5a;
  border-color: #7b5cff;
  color: #fff;
  transform: translateY(-1px) scale(1.05);
}

@media (max-width: 900px) {
  .footer-bottom-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
  .footer-certifications {
    justify-content: flex-start;
    gap: 0.7rem;
  }
}
@media (max-width: 600px) {
  .footer-bottom-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .footer-certifications {
    justify-content: flex-start;
    gap: 0.5rem;
  }
  .cert-badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
  }
}

/* --- Modern Account Page Styles (matches feature/pricing/testimonial cards) --- */
.account-container {
  margin-top: 88px; /* Add space below fixed header, adjust as needed */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2em;
}
.account-card, .membership-card, .security-card {
  max-width: 900px;
  background: #181a2a;
  color: #e0e3f5;
  border-radius: 18px;
  box-shadow: 0 2px 16px #7b5cff11;
  padding: 3em 2.5em !important;
  margin: 0 0 2.2em 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, transform 0.18s;
}
.account-card:hover, .membership-card:hover, .security-card:hover {
  box-shadow: 0 8px 40px #7b5cff33;
  transform: scale(1.03);
}
.section-header {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 1.2em;
}
.section-icon {
  font-size: 2.1em;
  color: #7b5cff;
}
.section-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, #fff 0%, #7b5cff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.2em;
  margin-bottom: 1.2em;
}
.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7b5cff 0%, #4f8cff 100%);
  color: #fff;
  font-size: 2.1em;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px #7b5cff33;
}
.profile-title {
  font-size: 1.3em;
  font-weight: 700;
  color: #fff;
}
.profile-details {
  margin-bottom: 0.7em;
  padding-left: 2.5em;
}
.profile-row {
  margin-bottom: 0.9em;
  font-size: 1.08em;
  display: flex;
  gap: 2.2em;
  align-items: flex-start;
}
.profile-row b {
  min-width: 90px;
  display: inline-block;
  text-align: right;
  margin-right: 0.5em;
}
.profile-actions {
  display: flex;
  gap: 1em;
  margin-top: 2em;
  margin-bottom: 1.2em;
  align-items: center;
}
.verified-badge {
  display: inline-block;
  background: #2ecc71;
  color: #fff;
  font-size: 0.95em;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.2em 0.9em;
  margin-bottom: 0.7em;
}
.membership-details, .security-details, .analysis-actions, .notification-actions, .account-actions-row {
  display: flex;
  align-items: center;
  gap: 1.2em;
  margin-bottom: 1.2em;
  flex-wrap: wrap;
}
.plan-badge, .badge-enabled {
  background: linear-gradient(90deg, #7b5cff 0%, #4f8cff 100%);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.3em 1.1em;
  font-size: 1em;
  margin-right: 0.7em;
}
.upgrade-btn {
  display: block;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%) !important;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 0.55em 1.5em;
  font-size: 1rem;
  box-shadow: 0 2px 16px #43e97b55, 0 1.5px 8px #38f9d733;
  text-decoration: none;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  outline: none;
  cursor: pointer;
}
.upgrade-btn:hover {
  background: linear-gradient(90deg, #38f9d7 0%, #43e97b 100%) !important;
  box-shadow: 0 4px 24px #43e97b88, 0 2px 12px #38f9d755;
  transform: translateY(-2px) scale(1.04);
}
.delete-btn {
  background: linear-gradient(90deg, #ff4d4d 0%, #ff6b6b 100%);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 0.7em 2em;
  font-size: 1.05em;
  box-shadow: 0 2px 16px #ff4d4d33;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}
.delete-btn:hover {
  background: linear-gradient(90deg, #ff6b6b 0%, #ff4d4d 100%);
  transform: translateY(-2px) scale(1.04);
}
.analysis-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
.analysis-list li {
  padding: 0.7em 0;
  border-bottom: 1px solid #2e2f5a;
  color: #e0e3f5;
  font-size: 1.08em;
}
.analysis-list li:last-child {
  border-bottom: none;
}
.account-actions-card {
  text-align: center;
  align-items: center;
}
.account-actions-row {
  display: flex;
  gap: 1.2em;
  justify-content: center;
  margin-top: 1.5em;
}
@media (max-width: 700px) {
  .account-container {
    padding: 1em;
  }
  .account-card, .membership-card, .security-card {
    padding: 1.2em 0.7em 1em 0.7em;
    max-width: 100%;
  }
  .profile-header {
    gap: 0.7em;
  }
  .profile-avatar {
    width: 40px;
    height: 40px;
    font-size: 1.3em;
  }
  .section-header {
    gap: 0.4em;
  }
}

/* Membership Card Styles */
.membership-card {
  background: #181a2a;
  border-radius: 18px;
  box-shadow: 0 2px 16px #7b61ff22;
  padding: 1.2rem 2.5rem 1rem 2.5rem;
  margin-bottom: 1.2rem;
  border: 1.5px solid #7b61ff44;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.membership-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}
.membership-icon {
  font-size: 2rem;
  color: #7b61ff;
}
.membership-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}
.membership-details {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}
.plan-badge {
  background: linear-gradient(90deg, #7b61ff 0%, #5e4fff 100%);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.4em 1.2em;
  font-size: 1rem;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px #7b61ff33;
}
.uploads-info {
  color: #b0b3c6;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.3em;
}
.uploads-icon {
  font-size: 1.1em;
  color: #7b61ff;
}
.renewal-info {
  color: #b0b3c6;
  font-size: 1rem;
}
.upgrade-btn {
  background: linear-gradient(90deg, #4f8cff 0%, #7b61ff 100%);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 0.5em 1.5em;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px #4f8cff33;
  transition: background 0.18s, box-shadow 0.18s;
}
.upgrade-btn:hover {
  background: linear-gradient(90deg, #7b61ff 0%, #4f8cff 100%);
}
.membership-progress {
  margin-top: 1.2rem;
}
.progress-bar-bg {
  background: #23243a;
  border-radius: 8px;
  height: 10px;
  width: 100%;
  box-shadow: 0 1px 4px #7b61ff22;
}
.progress-bar-fill {
  background: linear-gradient(90deg, #7b61ff 0%, #4f8cff 100%);
  height: 100%;
  border-radius: 8px;
  width: 40%; /* JS will update this dynamically */
  transition: width 0.4s cubic-bezier(.4,2,.6,1);
}
@media (max-width: 700px) {
  .membership-card {
    padding: 1.2rem 0.7rem 1rem 0.7rem;
  }
  .membership-header {
    font-size: 1.1rem;
  }
  .membership-details {
    gap: 0.6rem;
    font-size: 0.98rem;
  }
  .upgrade-btn {
    padding: 0.4em 1em;
    font-size: 0.98rem;
  }
}

/* Upgrade Modal - Enhanced Clarity and Engagement */
#upgrade-modal {
  background: rgba(10,12,26,0.96);
}
.upgrade-cards-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto 1.5em auto;
  align-items: stretch;
}
.upgrade-cards-row .pricing-card {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2.5px solid transparent;
  box-shadow: 0 4px 32px transparent, 0 1.5px 8px transparent;
  background: #191a23;
  margin-bottom: 0;
  position: relative;
}
.upgrade-cards-row .pricing-card-inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: space-between;
  height: 100%;
}
.upgrade-cards-row .features-top {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}
.upgrade-cards-row .pricing-card:hover,
.upgrade-cards-row .pricing-card.premium {
  border-color: #7b5cff;
  box-shadow: 0 4px 32px #7b5cff33, 0 1.5px 8px #4f8cff22;
}
.upgrade-cards-row .pricing-card.premium {
  border-color: #4be584;
  box-shadow: 0 4px 32px #4be58433, 0 1.5px 8px #4be58422;
}
.upgrade-cards-row .plan-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #7b5cff;
  margin-bottom: 0.5em;
  letter-spacing: 0.01em;
  text-align: center;
}
.upgrade-cards-row .plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.3em;
  text-align: center;
}
.upgrade-cards-row .plan-features {
  margin-top: 1.1em;
  margin-bottom: 1.5em;
}
.upgrade-cards-row .plan-btn {
  background: linear-gradient(90deg, #7b5cff 0%, #4f8cff 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.01rem;
  padding: 0.48em 1.5em;
  border-radius: 10px;
  box-shadow: 0 2px 16px #7b5cff55, 0 1.5px 8px #4f8cff33;
  text-decoration: none;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  border: none;
  outline: none;
  display: block;
  margin: 1.2em auto 0 auto;
  cursor: pointer;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.upgrade-cards-row .plan-btn:hover {
  background: linear-gradient(90deg, #43e97b 0%, #7b5cff 100%);
  box-shadow: 0 6px 36px #43e97b33, 0 2px 12px #7b5cff44;
  transform: scale(1.06);
}
/* Highlight recommended plan */
.upgrade-cards-row .pricing-card.recommended {
  border: 2.5px solid #43e97b;
  box-shadow: 0 6px 36px #43e97b55, 0 2px 12px #7b5cff44;
}
.upgrade-cards-row .recommended-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #43e97b 0%, #7b5cff 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.01rem;
  padding: 0.3em 1.2em;
  border-radius: 8px;
  box-shadow: 0 2px 8px #43e97b33;
  letter-spacing: 0.01em;
  z-index: 3;
}

/* Upgrade Modal - Card Row Layout */
.upgrade-modal-content {
  max-width: 1100px !important;
  min-width: 320px;
  width: 95vw;
}
@media (max-width: 1100px) {
  .upgrade-modal-content {
    max-width: 98vw !important;
    padding: 1.2em 0.2em 1.2em 0.2em;
  }
  .upgrade-cards-row {
    gap: 1.2rem;
  }
}
@media (max-width: 900px) {
  .upgrade-cards-row {
    flex-direction: column;
    gap: 1.5em;
    align-items: center;
  }
  .upgrade-modal-content {
    max-width: 99vw !important;
    padding: 0.5em 0.1em 0.5em 0.1em;
  }
}

.upgrade-cards-row .pricing-card.premium {
  position: relative;
  z-index: 1;
}
.most-popular-tag {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  border-radius: 12px 12px 16px 16px;
  padding: 6px 28px 7px 28px;
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(90deg, #4be584 0%, #7b5cff 100%);
  color: #fff;
  box-shadow: 0 2px 12px #7b5cff33;
  border: none;
  pointer-events: none;
}

/* --- Upgrade Modal Glassy Effect --- */
.upgrade-modal-glass {
  background: rgba(10,12,26,0.92) !important;
  backdrop-filter: blur(8px) !important;
}
.upgrade-modal-content {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  max-width: 900px !important;
  width: 98vw;
  padding: 0;
}
.upgrade-title {
  text-align: center;
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  margin: 1.5em 0 0.5em 0;
  letter-spacing: 0.01em;
}
.upgrade-title .highlight {
  color: #7b5cff;
}
.upgrade-cards-row {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  align-items: stretch;
  margin: 2.5em 0 1.5em 0;
  flex-wrap: wrap;
}
.upgrade-card {
  background: #181a2a;
  border-radius: 22px;
  box-shadow: 0 4px 32px #7b5cff22, 0 1.5px 8px #4f8cff11;
  border: 2.5px solid #23244a;
  min-width: 320px;
  max-width: 370px;
  width: 100%;
  padding: 2.2em 2.1em 2.5em 2.1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-bottom: 1em;
  transition: box-shadow 0.2s, border 0.2s;
}
.premiumplus-card.recommended-card {
  border: 2.5px solid #43e97b;
  box-shadow: 0 0 24px 4px #43e97b55, 0 4px 32px #7b5cff33;
}
.recommended-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #43e97b 0%, #7b5cff 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.01rem;
  padding: 0.3em 1.2em;
  border-radius: 8px;
  box-shadow: 0 2px 8px #43e97b33;
  letter-spacing: 0.01em;
  z-index: 3;
}
.plan-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #7b5cff;
  margin-bottom: 0.5em;
  letter-spacing: 0.01em;
  text-align: center;
}
.premiumplus-card .plan-title {
  color: #43e97b;
}
.plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.3em;
  text-align: center;
}
.plan-sub {
  color: #43e97b;
  font-size: 1.08rem;
  font-style: italic;
  font-weight: 600;
  margin-bottom: 1.2em;
  text-align: center;
}
.plan-features {
  margin: 0 0 1.5em 0;
  color: #e0e3f5;
  font-size: 1.05rem;
  list-style: none;
  padding: 0;
  text-align: left;
  width: 100%;
}
.plan-features li {
  margin-bottom: 0.5em;
  padding-left: 1.7em;
  position: relative;
  font-size: 1.08rem;
}
.checkmark {
  color: #4f8cff;
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.1em;
}
.premiumplus-card .checkmark {
  color: #43e97b;
}
.gradient-btn.plan-btn {
  background: linear-gradient(90deg, #7b5cff 0%, #4f8cff 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.01rem;
  padding: 0.7em 1.5em;
  border-radius: 10px;
  box-shadow: 0 2px 16px #7b5cff55, 0 1.5px 8px #4f8cff33;
  text-decoration: none;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  border: none;
  outline: none;
  display: block;
  margin: 1.2em auto 0 auto;
  cursor: pointer;
  letter-spacing: 0.01em;
  margin-bottom: 0;
  width: 100%;
  font-size: 1.1rem;
}
.gradient-btn.plan-btn:hover {
  background: linear-gradient(90deg, #43e97b 0%, #7b5cff 100%);
  box-shadow: 0 6px 36px #43e97b33, 0 2px 12px #7b5cff44;
  transform: scale(1.04);
}
.upgrade-cancel-row {
  text-align: center;
  margin-top: 2.5em;
}
.cancel-btn.outline-btn {
  background: transparent;
  color: #fff;
  border: 2px solid #7b5cff;
  border-radius: 8px;
  padding: 0.7em 2em;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.08rem;
  transition: background 0.18s, color 0.18s, border 0.18s;
}
.cancel-btn.outline-btn:hover {
  background: #7b5cff;
  color: #fff;
  border: 2px solid #fff;
}
@media (max-width: 900px) {
  .upgrade-cards-row {
    flex-direction: column;
    gap: 1.5em;
    align-items: center;
  }
  .upgrade-card {
    min-width: 0;
    max-width: 99vw;
    width: 100%;
  }
}

/* Modal overlay */
.modal-overlay {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30, 32, 40, 0.85) !important;
  z-index: 2000 !important;
  /* display: flex !important; */
  align-items: center !important;
  justify-content: center !important;
}

/* Modal box */
.modal {
  position: relative;
  z-index: 2001;
  min-width: 220px;
  min-height: 120px;
  background: #181a20;
  color: #fff;
  display: block;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  padding: 1.2rem 1.2rem 1rem 1.2rem;
  max-width: 480px;
  width: 98vw;
  animation: modalFadeIn 0.25s;
  box-sizing: border-box;
}
@keyframes modalFadeIn {
  from { transform: scale(0.98) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

/* Helper class used by JS to ensure modal shows/hides on iOS Safari */
.modal-overlay.open {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Modal title */
.modal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #a99cff;
  margin-bottom: 1.2rem;
  text-align: center;
}

/* Modal close button */
.modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 1.5rem;
  color: #a99cff;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1;
}
.modal-close:hover {
  color: #fff;
}

/* Modal form fields */
.modal label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1rem;
  color: #bdbdbd;
}
.modal input[type="text"],
.modal input[type="email"],
.modal input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1.1rem;
  border: 1.5px solid #2d2e36;
  border-radius: 8px;
  background: #23243a;
  color: #fff;
  font-size: 1rem;
  transition: border 0.2s;
  box-sizing: border-box;
}
.modal input:focus {
  border-color: #a99cff;
  outline: none;
}

/* Modal buttons */
.modal .modal-btn-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
}
.modal button,
.modal input[type="submit"] {
  background: #a99cff;
  color: #181a20;
  border: none;
  border-radius: 7px;
  padding: 0.55rem 1.3rem;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.modal button.cancel-btn {
  background: #23243a;
  color: #bdbdbd;
}
.modal button:hover,
.modal input[type="submit"]:hover {
  background: #fff;
  color: #a99cff;
}
.modal button.cancel-btn:hover {
  background: #2d2e36;
  color: #fff;
}

/* Responsive modal */
@media (max-width: 500px) {
  .modal {
    width: 95vw;
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
  .modal-title {
    font-size: 1.1rem;
  }
}

/* Analysis History Card Styles */
.analysis-card {
  background: inherit;
  border-radius: inherit;
  box-shadow: inherit;
  padding: inherit;
  max-width: none;
  margin: 0 0 2em 0;
  border: inherit;
}
.analysis-header {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 1.2em;
}
.history-icon {
  font-size: 1.5em;
  color: #a259ff;
}
.analysis-title {
  font-size: 1.35em;
  font-weight: 800;
  color: #c7bfff;
  letter-spacing: 0.01em;
}
.analysis-actions {
  display: flex;
  gap: 1em;
  margin-bottom: 1.2em;
}
.analysis-btn {
  background: #4f8cff;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 0.5em 1.3em;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 12px #7b5cff33;
}
.analysis-btn:hover {
  background: #7b5cff;
}
.analysis-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.analysis-list li {
  padding: 0.7em 0;
  border-bottom: 1px solid #23244a;
  color: #e0e0ff;
  font-size: 1.08em;
}
.analysis-list li:last-child {
  border-bottom: none;
}

.manage-btn {
  background: linear-gradient(90deg, #ff4d4d 0%, #ff6b6b 100%) !important;
  color: #fff !important;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 0.55em 1.5em;
  font-size: 1rem;
  box-shadow: 0 2px 16px #ff4d4d55, 0 1.5px 8px #ff6b6b33;
  text-decoration: none;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  outline: none;
  display: inline-block;
  cursor: pointer;
  margin-left: 0.7em;
}
.manage-btn:hover {
  background: linear-gradient(90deg, #ff6b6b 0%, #ff4d4d 100%) !important;
  box-shadow: 0 4px 24px #ff4d4d88, 0 2px 12px #ff6b6b55;
  transform: translateY(-2px) scale(1.04);
}

.twofa-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30, 32, 40, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
  padding: 16px;
  box-sizing: border-box;
}

.twofa-modal-overlay.open {
  display: flex !important;
}

/* Mobile optimizations for 2FA modal */
@media (max-width: 768px) {
  .twofa-modal-overlay {
    padding: 8px;
    align-items: flex-start;
    padding-top: 20px;
  }
  
  .twofa-modal-box {
    min-width: unset;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1.5em 1.2em 1.2em 1.2em;
    border-radius: 12px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
  }
  
  .twofa-modal-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    font-size: 24px !important;
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 10 !important;
  }
  
  .twofa-modal-label {
    font-size: 1.1rem;
    margin-bottom: 1em;
  }
  
  .twofa-modal-input {
    width: 100%;
    padding: 0.9em 1em;
    font-size: 16px; /* Prevents zoom on iOS */
    margin-bottom: 1.2em;
  }
  
  .twofa-modal-btn {
    padding: 0.8em 1.5em;
    font-size: 0.95rem;
    min-width: 120px;
  }
  
  .twofa-modal-btn-row {
    flex-direction: column;
    gap: 0.8em;
  }
  
  .twofa-modal-btn-row .twofa-modal-btn {
    width: 100%;
  }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.twofa-modal-box {
  background: #23244a;
  border-radius: 18px;
  box-shadow: 0 8px 32px #7b5cff33;
  padding: 2.5em 2em 2em 2em;
  min-width: 340px;
  max-width: 95vw;
  text-align: center;
  position: relative;
  animation: modalPop 0.22s;
}

.twofa-modal-box .twofa-modal-close {
  text-align: left !important;
  position: absolute !important;
  top: 15px !important;
  right: 15px !important;
  left: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: none !important;
  float: none !important;
}
@keyframes modalPop {
  from { transform: scale(0.97) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.twofa-modal-close {
  position: absolute !important;
  top: 15px !important;
  right: 15px !important;
  font-size: 24px !important;
  color: #bcb8d3 !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  width: 30px !important;
  height: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
  z-index: 10 !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}
.twofa-modal-close:hover {
  background-color: rgba(255,255,255,0.1);
  color: #fff;
}
.twofa-modal-label {
  color: #fff;
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 1.2em;
  display: block;
}
.twofa-modal-input {
  width: 80%;
  padding: 0.8em 1.1em;
  border-radius: 10px;
  border: 2px solid #7b5cff44;
  background: #191a2a;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.5em;
  outline: none;
  transition: border 0.2s;
  box-sizing: border-box;
}
.twofa-modal-input:focus {
  border: 2px solid #7b5cff;
}
.twofa-modal-btn-row {
  display: flex;
  justify-content: center;
  gap: 1em;
}
.twofa-modal-btn {
  background: linear-gradient(90deg, #7b5cff 0%, #4f8cff 100%);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 0.7em 2em;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 16px #7b5cff55;
  transition: background 0.18s, box-shadow 0.18s;
}
.twofa-modal-btn:hover {
  background: linear-gradient(90deg, #4f8cff 0%, #7b5cff 100%);
}
.twofa-modal-btn.cancel {
  background: #23243a;
  color: #bdbdbd;
  border: 2px solid #7b5cff44;
}
.twofa-modal-btn.cancel:hover {
  background: #2d2e36;
  color: #fff;
}

.analysis-history-item {
  background: #23244a;
  border-radius: 12px;
  box-shadow: 0 2px 12px #7b5cff22;
  padding: 1.2em 1em;
  margin-bottom: 1.2em;
  color: #e0e3f5;
  list-style: none;
}
.analysis-history-item button.analysis-btn {
  margin-top: 0.7em;
}

.analysis-btn-row {
  display: flex;
  gap: 0.7em;
  margin-top: 1em;
}
.analysis-btn.view { background: #4f8cff; }
.analysis-btn.download { background: #43e97b; }
.analysis-btn.review { background: #a259ff; }
.analysis-btn.delete { background: #ff4d4d; }
.analysis-btn.view:hover { background: #7b5cff; }
.analysis-btn.download:hover { background: #38f9d7; }
.analysis-btn.review:hover { background: #7b5cff; }
.analysis-btn.delete:hover { background: #ff6b6b; }

.stylish-refresh-btn {
  background: linear-gradient(90deg, #7b5cff 0%, #4f8cff 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.55em 1.5em;
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 16px #7b5cff55, 0 1.5px 8px #4f8cff33;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.stylish-refresh-btn:hover {
  background: linear-gradient(90deg, #4f8cff 0%, #7b5cff 100%);
  box-shadow: 0 4px 24px #7b5cff88, 0 2px 12px #4f8cff55;
  transform: translateY(-2px) scale(1.04);
}

.notifications-details {
  margin-top: 1.2em;
  padding: 0.5em 0.5em 0.5em 0.5em;
}

.notification-actions {
  display: flex;
  gap: 0.7em;
  margin-bottom: 1.2em;
}

.stylish-refresh-btn, .stylish-clear-btn {
  background: linear-gradient(90deg, #7b5cff 0%, #4f8cff 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.48em 1.2em;
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 16px #7b5cff33;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}
.stylish-clear-btn {
  background: linear-gradient(90deg, #ff4d4d 0%, #ff6b6b 100%);
}
.stylish-refresh-btn:hover {
  background: linear-gradient(90deg, #4f8cff 0%, #7b5cff 100%);
}
.stylish-clear-btn:hover {
  background: linear-gradient(90deg, #ff6b6b 0%, #ff4d4d 100%);
}

#notifications-container {
  display: flex;
  flex-direction: column;
  gap: 1.1em;
}

.notification-card {
  background: #23244a;
  border-radius: 14px;
  box-shadow: 0 2px 12px #7b5cff22;
  padding: 1.2em 1em 1em 1em;
  color: #e0e3f5;
  margin-bottom: 0.5em;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

.notification-title {
  font-size: 1.15em;
  font-weight: 800;
  color: #a259ff;
  margin-bottom: 0.3em;
}

.notification-body {
  color: #bcb8d3;
  font-size: 1em;
  margin-bottom: 0.7em;
}

.notification-btn-row {
  display: flex;
  gap: 0.7em;
}

.notification-btn {
  background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 0.4em 1.1em;
  font-size: 0.98em;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
}
.notification-btn.dismiss-btn {
  background: linear-gradient(90deg, #ff4d4d 0%, #ff6b6b 100%);
}
.notification-btn:hover {
  filter: brightness(1.1);
}

/* Mobile optimizations for notifications */
@media (max-width: 768px) {
  .notification-card {
    padding: 1em 0.8em 0.8em 0.8em;
    margin-bottom: 0.8em;
  }
  
  .notification-title {
    font-size: 1.1em;
    margin-bottom: 0.4em;
  }
  
  .notification-body {
    font-size: 0.95em;
    line-height: 1.4;
    margin-bottom: 0.8em;
  }
  
  .notification-btn-row {
    flex-direction: column;
    gap: 0.5em;
  }
  
  .notification-btn {
    width: 100%;
    padding: 0.6em 1em;
    font-size: 0.95em;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  
  .notifications-details {
    padding: 0.3em;
  }
  
  .notification-actions {
    flex-direction: column;
    gap: 0.5em;
    margin-bottom: 1em;
  }
  
  .notification-actions .stylish-refresh-btn,
  .notification-actions .stylish-clear-btn {
    width: 100%;
    min-height: 44px;
    touch-action: manipulation;
  }
}

.profile-action-btn {
  border-radius: 10px;
  font-weight: 700;
  padding: 0.55em 1.5em;
  font-size: 1rem;
  box-shadow: 0 2px 16px #7b5cff33;
  margin: 0;
}

/* Footer Styles */
.main-footer {
    background: linear-gradient(135deg, #0a0c1a 0%, #181a2a 100%);
    color: #bcb8d3;
    margin-top: auto;
    border-top: 1px solid #23244a;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding: 3rem 0 2rem 0;
    border-bottom: 1px solid #23244a;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.footer-logo .logo-hex {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #7b5cff 0%, #4f8cff 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: inline-block;
}

.footer-logo .logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.footer-logo .logo-ai {
    background: linear-gradient(135deg, #7b5cff 0%, #4f8cff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: #bcb8d3;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #23244a;
    border-radius: 8px;
    color: #bcb8d3;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #7b5cff;
    color: #fff;
    transform: translateY(-2px);
}

.footer-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #7b5cff 0%, #4f8cff 100%);
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #bcb8d3;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #7b5cff;
}

.footer-bottom {
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: #bcb8d3;
    font-size: 0.9rem;
}

.footer-copyright a {
    color: #7b5cff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: #4f8cff;
}

.footer-certifications {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    background: #23244a;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #bcb8d3;
    border: 1px solid #3a3b5a;
    transition: all 0.3s ease;
}

.cert-badge:hover {
    background: #3a3b5a;
    border-color: #7b5cff;
    transform: translateY(-1px);
}

/* Modal Styles */
.footer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 26, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: #181a2a;
    border-radius: 18px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(60, 60, 120, 0.3);
    border: 1px solid #23244a;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #23244a;
}

.modal-header h2 {
    color: #fff;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: #bcb8d3;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #23244a;
    color: #fff;
}

.modal-body {
    padding: 2rem;
    color: #bcb8d3;
    line-height: 1.6;
}

.modal-body h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.modal-body h4 {
    color: #7b5cff;
    margin: 1.5rem 0 0.8rem 0;
    font-size: 1.1rem;
}

.modal-body ul {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.modal-body p {
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0 1.5rem 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-certifications {
        justify-content: center;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: 90vh;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-main {
        gap: 1.5rem;
        padding: 1.5rem 0 1rem 0;
    }
    
    .footer-certifications {
        gap: 0.5rem;
    }
    
    .cert-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
} 

.social-link svg {
  width: 22px;
  height: 22px;
  display: block;
  color: inherit;
  fill: currentColor;
  transition: color 0.3s, fill 0.3s;
}

.social-link:visited svg {
  color: inherit;
  fill: currentColor;
}

.social-link:hover svg {
  color: #fff;
  fill: #fff;
} 

#onboardingModal .modal {
  max-width: 520px;
  width: 96vw;
  background: linear-gradient(135deg, #191b2a 80%, #23244a 100%);
  color: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 40px #000a 0.5;
  padding: 2.2em 2em 2em 2em;
  border: 2.5px solid #7b5cff;
  animation: fadeInModal 0.4s;
  position: relative;
}

#onboardingModal .modal-title {
  color: #a993ff;
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 1.2em;
  letter-spacing: 0.5px;
}

#onboardingModal ul {
  margin-bottom: 1.2em;
  padding-left: 1.2em;
  font-size: 1.08em;
  line-height: 1.6;
}

#onboardingModal li {
  margin-bottom: 0.7em;
}

#onboardingModal a {
  color: #a993ff;
  text-decoration: underline;
  transition: color 0.2s;
}
#onboardingModal a:hover {
  color: #4f8cff;
}

#onboardingModal .btn {
  width: 100%;
  font-size: 1.15em;
  font-weight: 800;
  padding: 0.9em 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #7b5cff 0%, #4f8cff 100%);
  color: #fff;
  border: none;
  margin-top: 1.2em;
  box-shadow: 0 2px 12px #7b5cff33;
  transition: background 0.2s, color 0.2s;
}

#onboardingModal .btn:hover {
  background: linear-gradient(90deg, #4f8cff 0%, #7b5cff 100%);
  color: #fff;
}

#onboardingModal .modal-close {
  position: absolute;
  top: 1.1em;
  right: 1.1em;
  background: #a993ff;
  color: #23244a;
  border: none;
  border-radius: 10px;
  font-size: 1.3em;
  font-weight: 900;
  width: 2.2em;
  height: 2.2em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px #7b5cff22;
}
#onboardingModal .modal-close:hover {
  background: #7b5cff;
  color: #fff;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(30px);}
  to { opacity: 1; transform: translateY(0);}
}

.forgot-password-btn.profile-action-btn {
  background: linear-gradient(90deg, #ff4d4d 0%, #ff7b5c 100%) !important;
  color: #fff !important;
  font-weight: 700;
  margin-left: 0.7em;
  margin-top: 0;
  min-width: 160px;
  border-radius: 10px;
  font-size: 1rem;
  box-shadow: 0 2px 16px #ff4d4d33;
  padding: 0.55em 1.5em;
  transition: background 0.18s, color 0.18s;
  display: inline-block;
  text-align: center;
}
.forgot-password-btn.profile-action-btn:hover {
  background: linear-gradient(90deg, #ff7b5c 0%, #ff4d4d 100%) !important;
  color: #fff !important;
}

/* --- Features section: single row on desktop, wrap on mobile --- */
.features-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.5em;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
@media (max-width: 900px) {
  .features-section {
    flex-wrap: wrap !important;
  }
}

/* --- HERO SECTION RESTORED PROFESSIONAL LOOK --- */
.hero-section {
  width: 100%;
  max-width: 1000px;
  margin: 0.2em auto 0.15em auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card {
  background: #202133;
  border-radius: 24px;
  box-shadow: 0 8px 32px #7b5cff22;
  padding: 3em 2.5em;
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  gap: 2.5em;
  justify-content: space-between;
}
.hero-content {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero-title-text {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.5em;
  line-height: 1.1;
  text-align: left;
}
.hero-subtitle {
  color: #bcb8d3;
  font-size: 1.15rem;
  margin-bottom: 2em;
  text-align: left;
}
.hero-btn-row {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  margin-top: 2em;
  justify-content: flex-start;
}
.hero-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 180px;
}
.hero-image {
  max-width: 320px;
  border-radius: 16px;
  box-shadow: 0 4px 24px #7b5cff22;
  width: 100%;
}
.hero-outline-btn {
  background: #fff !important;
  color: #7b5cff !important;
  border: 2px solid #7b5cff !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 0.55em 1.5em !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transition: background 0.18s, color 0.18s, border 0.18s !important;
  margin-left: 1em !important;
  margin-right: 0 !important;
  display: inline-block !important;
  white-space: nowrap !important;
}
.hero-outline-btn:hover {
  background: #7b5cff !important;
  color: #fff !important;
  border: 2px solid #7b5cff !important;
  text-decoration: none !important;
}
@media (max-width: 900px) {
  .hero-card {
    flex-direction: column;
    gap: 2em;
    padding: 2em 1em;
    text-align: center;
    max-width: 98vw;
  }
  .hero-content {
    align-items: center;
    min-width: 0;
    text-align: center;
  }
  .hero-title-text, .hero-subtitle {
    text-align: center;
  }
  .hero-btn-row {
    justify-content: center;
  }
  .hero-image-container {
    margin-top: 1.5em;
    min-width: 0;
  }
  .hero-image {
    max-width: 90vw;
  }
}

/* --- MAIN SECTION CONTAINER & PROFESSIONAL CARDS --- */
.main-section-container {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.features-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2em 1.5em;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .features-list {
    grid-template-columns: 1fr;
    gap: 1.2em;
  }
}
.feature-card {
  background: #202133;
  border-radius: 22px;
  box-shadow: 0 4px 32px #7b5cff22;
  padding: 2.2em 1.5em 1.7em 1.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  border-top: 4px solid #7b5cff;
  transition: box-shadow 0.18s, transform 0.18s;
  min-height: 220px;
}
.feature-card:hover {
  box-shadow: 0 12px 48px #7b5cff44, 0 2px 12px #4f8cff33;
  transform: translateY(-6px) scale(1.035);
  border-top: 4px solid #43e97b;
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.1rem;
}
.feature-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.6rem;
  text-align: center;
}
.feature-desc {
  color: #bcb8d3;
  font-size: 1.05rem;
  text-align: center;
  line-height: 1.6;
}
.how-works-card {
  width: 100%;
  background: #202133;
  border-radius: 18px;
  box-shadow: 0 4px 24px #7b5cff11;
  padding: 2em 1.5em 1.5em 1.5em;
  margin-top: 0.5em;
}
.how-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1.2em;
  text-align: left;
}
.how-steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  width: 100%;
}
.how-step-row-card {
  display: flex;
  align-items: center;
  gap: 1.2em;
  background: #23244a;
  border-radius: 14px;
  box-shadow: 0 2px 12px #7b5cff11;
  padding: 1.1em 1.2em;
  width: 100%;
}
@media (max-width: 900px) {
  .main-section-container {
    max-width: 98vw;
    padding: 0 0.5em;
  }
  .features-list, .how-steps-list {
    gap: 1em;
  }
  .feature-row-card, .how-step-row-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 1em 0.7em;
  }
  .how-works-card {
    padding: 1.2em 0.7em 1em 0.7em;
  }
}

.features-card {
  max-width: 900px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  background: #202133;
  box-shadow: 0 8px 32px #7b5cff22;
  border-radius: 24px;
  padding: 3em 2.5em;
  box-sizing: border-box;
}
.account-card {
  max-width: 900px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  background: #202133;
  box-shadow: 0 8px 32px #7b5cff22;
  border-radius: 24px;
  padding: 3em 2.5em;
  box-sizing: border-box;
}

.features-list {
  width: 100%;
}
.feature-row-card {
  display: flex;
  align-items: center;
  gap: 1.2em;
  background: #23244a;
  border-radius: 18px;
  box-shadow: 0 4px 24px #7b5cff11;
  padding: 1.3em 1.5em;
  box-sizing: border-box;
  margin-bottom: 0.7em;
}
.feature-row-card:last-child {
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .features-card {
    padding: 1.2em 0.7em;
  }
  .feature-row-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 1em 0.7em;
  }
}

.main-card-container {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
.hero-card, .features-card {
  width: 100%;
  margin: 0;
}

@media (max-width: 900px) {
  .main-card-container {
    max-width: 98vw;
  }
  .features-card {
    padding: 1.2em 0.7em;
  }
}

.features-section {
  margin-top: 0 !important;
}
.features-card {
  margin-top: 0 !important;
}

.features-section, .main-section-container {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border-radius: 0;
  box-shadow: none;
}
.features-card, .account-card {
  max-width: 900px !important;
  width: 100% !important;
  margin-left: auto;
  margin-right: auto;
  background: #202133;
  box-shadow: 0 8px 32px #7b5cff22;
  border-radius: 24px;
  padding: 3em 2.5em !important;
  box-sizing: border-box;
}

.features-card,
.main-section-container .account-card {
  max-width: 1000px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.main-section-container {
  max-width: 900px;
  margin: 0.15em auto 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.features-card {
  margin-bottom: 0.15em;
}
.main-section-container .account-card {
  max-width: 900px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.testimonials-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2em 1.5em;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto 2em auto;
}
@media (max-width: 900px) {
  .testimonials-list {
    grid-template-columns: 1fr;
    gap: 1.2em;
  }
}
.testimonial-card {
  background: #23244a;
  border-radius: 22px;
  box-shadow: 0 4px 32px #7b5cff22;
  padding: 2.2em 1.5em 1.7em 1.5em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  min-height: 180px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 12px 48px #7b5cff44, 0 2px 12px #4f8cff33;
  transform: translateY(-6px) scale(1.035);
}
.testimonial-text {
  color: #fff;
  font-style: italic;
  margin-bottom: 0.7em;
  font-size: 1.08rem;
}
.testimonial-name {
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.1em;
  font-size: 1.08rem;
}
.testimonial-role {
  color: #bcb8d3;
  font-weight: 400;
  font-size: 1.02rem;
}
.testimonial-stars {
  color: #ffd700;
  font-size: 1.15em;
  margin-top: 0.5em;
  user-select: none;
  text-shadow: 0 2px 8px #7b5cff33;
}
.testimonials-header {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 1.2em;
  justify-content: flex-start;
}
.testimonials-cta-row {
  text-align: center;
  margin-top: 1.5em;
}
.testimonials-cta-btn {
  font-size: 1.1rem;
  padding: 0.7em 2em;
  border-radius: 12px;
}

.main-section-container {
  background: linear-gradient(135deg, #202133 80%, #23244a 100%);
  border-radius: 28px;
  box-shadow: 0 8px 32px #7b5cff22;
  padding: 3em 2em 2.5em 2em;
  margin-bottom: 2.5em;
}
.testimonials-header {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  margin-bottom: 2.2em;
  color: #bcb8d3;
  background: linear-gradient(90deg, #fff 0%, #7b5cff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}
.testimonials-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2em 1.5em;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto 2em auto;
}
@media (max-width: 900px) {
  .testimonials-list {
    grid-template-columns: 1fr;
    gap: 1.2em;
  }
}
.testimonial-card {
  background: #23244a;
  border-radius: 26px;
  box-shadow: 0 4px 32px #7b5cff22;
  padding: 2.5em 2em 2em 2em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  min-height: 180px;
  border-top: 4px solid #7b5cff;
  transition: box-shadow 0.18s, transform 0.18s, border-top 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 16px 48px #7b5cff44, 0 2px 12px #4f8cff33;
  transform: translateY(-8px) scale(1.04);
  border-top: 4px solid #43e97b;
}
.testimonial-text {
  color: #fff;
  font-style: italic;
  margin-bottom: 1.1em;
  font-size: 1.13rem;
  line-height: 1.6;
}
.testimonial-name {
  color: #fff;
  font-weight: 900;
  font-size: 1.13rem;
  margin-bottom: 0.1em;
  letter-spacing: 0.01em;
}
.testimonial-role {
  color: #bcb8d3;
  font-weight: 400;
  font-size: 1.02rem;
  margin-left: 0.3em;
}
.testimonial-stars {
  color: #ffd700;
  font-size: 1.18em;
  margin-top: 0.7em;
  user-select: none;
  text-shadow: 0 2px 8px #7b5cff33;
}
.testimonials-cta-row {
  text-align: center;
  margin-top: 2.5em;
}
.testimonials-cta-btn {
  font-size: 1.1rem;
  padding: 0.7em 2em;
  border-radius: 12px;
  font-weight: 800;
  background: linear-gradient(90deg, #7b5cff 0%, #4f8cff 100%);
  color: #fff;
  box-shadow: 0 2px 16px #7b5cff55, 0 1.5px 8px #4f8cff33;
  border: none;
  transition: background 0.18s, box-shadow 0.18s;
}
.testimonials-cta-btn:hover {
  background: linear-gradient(90deg, #4f8cff 0%, #7b5cff 100%);
  box-shadow: 0 4px 24px #7b5cff88, 0 2px 12px #4f8cff55;
}

/* Mobile-specific defect card fixes */
@media (max-width: 768px) {
  .defect-card {
    max-width: 280px !important;
    width: 280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    box-shadow: none !important;
    /* Removed border override to allow dynamic border colors from JavaScript */
  }
  
  .defect-card * {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    max-width: 100% !important;
  }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
  .defect-card {
    max-width: 240px !important;
    width: 240px !important;
  }
}

/* Contact Page Mobile Optimization */
@media (max-width: 768px) {
  .contact-sections {
    display: block !important;
    grid-template-columns: none !important;
    gap: 1.5rem !important;
    padding: 0 1rem !important;
    max-width: 100% !important;
  }
  
  .contact-form-section {
    width: 100% !important;
    margin-bottom: 1.5rem !important;
    padding: 1.5rem !important;
    border-radius: 16px !important;
  }
  
  .contact-info-section {
    width: 100% !important;
    display: block !important;
  }
  
  .contact-card {
    margin-bottom: 1rem !important;
    padding: 1.5rem !important;
    border-radius: 16px !important;
  }
  
  .contact-hero {
    padding: 2rem 0 !important;
    margin-top: 0 !important;
  }
  
  .contact-hero-content {
    padding: 1rem !important;
  }
  
  .contact-hero-title {
    font-size: 1.8rem !important;
    margin-bottom: 1rem !important;
  }
  
  .contact-hero-description {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
  }
  
  .form-group {
    margin-bottom: 1.2rem !important;
  }
  
  .form-label {
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    padding: 0.8rem !important;
    font-size: 1rem !important;
    border-radius: 12px !important;
  }
  
  .form-textarea {
    min-height: 120px !important;
    user-select: text !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }
  
  .submit-btn {
    width: 100% !important;
    padding: 1rem !important;
    font-size: 1rem !important;
    border-radius: 12px !important;
  }
  
  .contact-card-title {
    font-size: 1.1rem !important;
    margin-bottom: 0.8rem !important;
  }
  
  .contact-card-description {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }
}

@media (max-width: 480px) {
  .contact-sections {
    padding: 0 0.5rem !important;
    gap: 1rem !important;
  }
  
  .contact-form-section {
    padding: 1rem !important;
    border-radius: 12px !important;
  }
  
  .contact-card {
    padding: 1rem !important;
    border-radius: 12px !important;
  }
  
  .contact-hero {
    padding: 1.5rem 0 !important;
  }
  
  .contact-hero-title {
    font-size: 1.5rem !important;
  }
  
  .contact-hero-description {
    font-size: 0.9rem !important;
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    padding: 0.7rem !important;
    font-size: 0.9rem !important;
    user-select: text !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }
  
  .submit-btn {
    padding: 0.8rem !important;
    font-size: 0.9rem !important;
  }
}

/* Cookie Banner Mobile Fix */
@media (max-width: 768px) {
  #cookie-consent-banner {
    left: 1rem !important;
    right: 1rem !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 1rem !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    bottom: 1rem !important;
    position: fixed !important;
  }
  
  #cookie-consent-banner button {
    display: block !important;
    width: 100% !important;
    margin: 0.5rem 0 0 0 !important;
    padding: 0.8rem !important;
  }
  
  #cookie-consent-banner #accept-cookies-btn {
    margin-left: 0 !important;
  }
  
  #cookie-consent-banner #decline-cookies-btn {
    margin-left: 0 !important;
  }
}

/* More aggressive mobile fix for cookie banner */
@media (max-width: 480px) {
  #cookie-consent-banner {
    left: 0.5rem !important;
    right: 0.5rem !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0.8rem !important;
    font-size: 0.85rem !important;
    text-align: center !important;
    bottom: 0.5rem !important;
    position: fixed !important;
  }
}

/* Defect Card Responsive Styling */
.defect-card {
  max-width: 600px !important;
  width: 100% !important;
  margin: 0 auto 1.2em auto !important;
}

@media (max-width: 768px) {
  .defect-card {
    max-width: calc(100vw - 2rem) !important;
    margin: 0 auto 1.2em auto !important;
  }
}

@media (max-width: 480px) {
  .defect-card {
    max-width: calc(100vw - 1rem) !important;
    margin: 0 auto 1.2em auto !important;
    padding: 0.6em 0.7em 0.5em 0.7em !important;
  }
}

