:root {
  /* Modern Color Palette - Refined for Premium Appeal */
  --primary: #8067f9;
  --primary-hover: #6c4ed1;
  --secondary: #ff69b4;
  --accent: #48d1cc;
  --warning: #fabe58;
  --success: #34d399;
  --danger: #ef4444;
  --dark: #1a1e36;
  --darker: #0d122e;
  --light: #ffffff;
  --text-primary: #f0f4f8;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --surface-1: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(0, 0, 0, 0.2);

  /* Enhanced Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary) 0%,
    #a855f7 50%,
    var(--secondary) 100%
  );
  --gradient-secondary: linear-gradient(135deg, var(--accent) 0%, #3b82f6 100%);
  --gradient-accent: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  --gradient-hero: linear-gradient(180deg, #100f2e 0%, #0a081f 100%);

  /* Enhanced Shadows - Softer and More Elegant */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(0, 0, 0, 0.15);
  --shadow-colored: 0 10px 30px rgba(128, 103, 249, 0.25);
  --shadow-colored-hover: 0 15px 40px rgba(128, 103, 249, 0.35);
}

* {
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding-top: 70px;
  background: var(--gradient-hero);
  color: var(--text-primary);
  min-height: 100vh;
  height: 100%;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Subtle background texture for premium feel */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect fill="%23FFFFFF" x="0" y="0" width="1" height="1"/><rect fill="%230a0e1a" x="1" y="0" width="1" height="1"/><rect fill="%23FFFFFF" x="0" y="1" width="1" height="1"/><rect fill="%230a0e1a" x="1" y="1" width="1" height="1"/><rect fill="%23FFFFFF" x="2" y="2" width="1" height="1"/><rect fill="%230a0e1a" x="3" y="2" width="1" height="1"/><rect fill="%23FFFFFF" x="2" y="3" width="1" height="1"/><rect fill="%230a0e1a" x="3" y="3" width="1" height="1"/></svg>');
  background-size: 8px 8px;
  opacity: 0.02;
  pointer-events: none;
  z-index: -2;
}

/* Subtle radial gradient overlay for depth */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 30% 20%,
      rgba(128, 103, 249, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(255, 105, 180, 0.06) 0%,
      transparent 50%
    );
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: block;
}

/* Enhanced Navbar with Credit Display */
.navbar {
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  padding: 0.25rem 1rem 0.5rem 1rem; /* Added bottom padding for glow effects */
  min-height: 56px; /* Fixed minimum height */
}
.navbar-brand img {
  height: 55px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  background: transparent;
  transition: transform 0.2s ease;
}

.navbar-brand img:hover {
  transform: scale(1.05);
}
.nav-link {
  color: var(--text-primary) !important;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 6px 12px !important; /* Reduced padding for compact navbar */
  margin: 0 2px;
  font-weight: 500;
  font-size: 0.9rem; /* Slightly smaller font for better fit */
  white-space: nowrap; /* Prevent text wrapping */
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
  background: var(--glass);
  transform: translateY(-1px);
}

/* Dropdown menu styling */
.dropdown-menu {
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
}
.dropdown-item {
  color: var(--text-primary) !important;
  padding: 8px 16px;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 2px 8px;
}
.dropdown-item:hover,
.dropdown-item.active {
  color: var(--primary) !important;
  background: var(--glass);
  transform: translateX(4px);
}
.dropdown-toggle::after {
  margin-left: 8px;
}

/* Enhanced Credit Display */
.credit-display {
  background: var(--gradient-primary) !important;
  color: white !important;
  border-radius: 20px !important;
  padding: 4px 16px !important; /* More compact padding */
  font-weight: 700;
  font-size: 0.85rem; /* Smaller font for compact navbar */
  cursor: default;
  box-shadow: var(--shadow-colored);
  display: flex;
  align-items: center;
  gap: 6px; /* Reduced gap */
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent wrapping */
}
.credit-display:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}
.credit-display i {
  font-size: 1.1rem;
}

/* Enterprise Badge */
.enterprise-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: white !important;
  border-radius: 20px !important;
  padding: 4px 16px !important; /* More compact padding */
  font-weight: 700;
  font-size: 0.85rem; /* Smaller font for compact navbar */
  cursor: default;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  gap: 6px; /* Reduced gap */
  white-space: nowrap; /* Prevent wrapping */
}
.enterprise-badge:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  transform: none !important;
}

/* Credit Needed Overlay */
.credit-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: all 0.3s ease;
}
.credit-overlay.show {
  opacity: 1;
}

.credit-needed-badge {
  background: var(--gradient-primary);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  margin-bottom: 16px;
  box-shadow: var(--shadow-lg);
}

/* Modern Feature Cards with Credit Info */
.feature-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.3s ease;
  height: 100%;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-colored);
  border-color: var(--primary);
}

.feature-card.locked {
  opacity: 0.7;
  cursor: not-allowed;
}

.feature-card.locked:hover {
  transform: none;
}

.feature-cost {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gradient-primary);
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.feature-cost.enterprise {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Enhanced Sections */
.page-section {
  display: none;
  padding-top: 40px;
  padding-bottom: 80px;
}

.active-section {
  display: block;
}

/* Tab Content Fixes */
.tab-content {
  margin-top: 20px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-pane.show {
  display: block;
}

/* Upload Area Styling */
.upload-drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.upload-drop-zone:hover,
.upload-drop-zone.dragover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.upload-drop-zone p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.upload-preview-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

/* Custom File Upload Styling */
.custom-file-upload {
  position: relative;
  display: inline-block;
  width: 100%;
  cursor: pointer;
}

.custom-file-upload input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-upload-display {
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.custom-file-upload:hover .file-upload-display,
.custom-file-upload.has-file .file-upload-display {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

.file-preview-image {
  max-width: 100%;
  max-height: 200px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

/* Welcome Header for New Users */
.welcome-header {
  padding: 20px 0;
  text-align: center;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
}

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

.welcome-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Credit System Explanation */
.credit-explanation {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
}

.credit-explanation h5 {
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.credit-price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
  align-items: flex-end; /* Align cards at bottom for baseline CTA alignment */
}

/* Pricing Card Container */
.pricing-card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.pricing-card-container.popular .credit-price-card {
  transform: scale(1.05); /* 5% larger */
  z-index: 2;
}

/* Popular Badge Above Card */
.popular-badge-above {
  background: var(--gradient-primary);
  color: white;
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  position: relative;
  z-index: 3;
}

.credit-price-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Ensure button alignment */
.credit-price-card .pricing-features {
  flex-grow: 1;
  margin-bottom: 0;
}

.credit-price-card .btn {
  margin-top: auto;
}

.credit-price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-colored);
  border-color: var(--primary);
}

.pricing-card-container.popular .credit-price-card:hover {
  transform: scale(1.05) translateY(-4px); /* Maintain scale on hover */
}

.credit-price-card.enterprise {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.1) 0%,
    rgba(217, 119, 6, 0.1) 100%
  );
  border-color: rgba(245, 158, 11, 0.3);
}

.credit-price-card.enterprise:hover {
  border-color: #f59e0b;
  box-shadow: 0 25px 50px -12px rgba(245, 158, 11, 0.25);
}

.price-badge {
  background: var(--gradient-primary);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: inline-block;
}

.price-badge.enterprise {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.price-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.price-description {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Improved Upload Panel */
.main-upload-panel {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  padding: 32px;
  margin-bottom: 24px;
  position: relative;
}

/* Feature Access Status */
.feature-access-status {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.access-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.access-icon.unlocked {
  background: var(--gradient-accent);
  color: white;
}

.access-icon.locked {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

.access-text h6 {
  margin: 0;
  color: var(--text-primary);
}

.access-text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.btn-enterprise {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  color: white;
}
.btn-enterprise:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

/* Low Credits Warning */
.low-credits-warning {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  animation: pulse 2s infinite;
}

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

/* Modern Feature Cards */
.feature-card-modern {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}
.feature-card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.03),
    rgba(168, 85, 247, 0.03)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.feature-card-modern:hover::before {
  opacity: 1;
}
.feature-card-modern:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  .welcome-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  .welcome-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .credit-price-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .navbar-nav {
    text-align: center;
  }

  .credit-display,
  .enterprise-badge {
    justify-content: center;
    margin: 8px 0;
  }

  .glass-card {
    padding: 24px;
    border-radius: 20px;
    margin-bottom: 20px;
  }

  .feature-card {
    padding: 24px;
    margin-bottom: 20px;
  }

  .feature-header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .feature-icon-modern {
    width: 56px;
    height: 56px;
    margin: 0 auto;
  }

  .pain-point {
    padding: 24px;
    margin-bottom: 20px;
  }

  .hero-headline {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
  }

  .main-headline {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .btn-primary,
  .btn-info,
  .btn-outline-light {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .btn-xl {
    padding: 16px 28px;
    font-size: 1rem;
  }

  .process-step {
    padding: 24px;
  }

  .step-number-modern {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .upload-drop-zone {
    padding: 40px 20px;
    border-radius: 20px;
    min-height: 200px;
  }

  .upload-icon {
    width: 64px;
    height: 64px;
    font-size: 1.8rem;
    margin-bottom: 16px;
  }

  .upload-primary-text {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .upload-secondary-text {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }

  .upload-format-info {
    flex-direction: column;
    gap: 8px;
  }

  .format-item {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .main-upload-panel {
    padding: 24px;
  }

  .nav-tabs .nav-link {
    padding: 12px 16px;
    font-size: 0.9rem;
    border-radius: 12px;
  }
}

/* Extra small screens */
@media (max-width: 576px) {
  .welcome-title {
    font-size: 1.8rem;
  }

  .hero-headline {
    font-size: 1.8rem;
  }

  .glass-card {
    padding: 20px;
    margin-bottom: 16px;
  }

  .feature-card {
    padding: 20px;
  }

  .pain-point {
    padding: 20px;
  }

  .btn-primary,
  .btn-info,
  .btn-outline-light {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

/* Cost Example Styles */
.cost-example {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.cost-example:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.cost-example h6 {
  color: var(--text-primary);
  margin: 12px 0 8px 0;
}

/* Pricing Features List */
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.pricing-features li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Accordion Styles */
.accordion-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
  border-radius: 12px;
  overflow: hidden;
}

.accordion-button {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: none;
  padding: 16px 20px;
  font-weight: 500;
}

.accordion-button:not(.collapsed) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary);
  box-shadow: none;
}

.accordion-button::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  padding: 16px 20px;
}

/* Existing styles continue below */

* {
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
}

/* Use a flex layout to keep footer at bottom */
html,
body {
  margin: 0;
  padding-top: 70px;
  background: var(--gradient-hero);
  color: var(--text-primary);
  min-height: 100%;
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
}

/* Main content grows/shrinks to fill leftover space so footer stays at bottom */
main {
  flex: 1;
  display: block; /* For sections to appear */
}

/* Navbar responsive improvements */
.navbar-nav {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: visible; /* Allow glow effects to show */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.navbar-nav::-webkit-scrollbar {
  display: none;
}

/* Hamburger menu improvements */
.navbar-toggler {
  border: none;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}
.navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.2);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-toggler:focus {
  box-shadow: none;
}

/* Mobile dropdown improvements */
@media (max-width: 1200px) {
  .nav-link {
    padding: 6px 12px !important;
    font-size: 0.85rem;
    margin: 0 2px;
  }
}

@media (max-width: 992px) {
  .navbar-nav {
    flex-direction: column;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-top: 20px;
  }
  .nav-link {
    padding: 12px 16px !important;
    font-size: 0.95rem;
    margin: 2px 0;
    border-radius: 12px;
    transition: all 0.3s ease;
  }
  .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
  }

  /* Improve dropdown appearance on mobile */
  .dropdown-menu {
    background: rgba(2, 6, 23, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 8px;
    margin-left: 16px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }
  .dropdown-item {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
  }

  /* Credit, enterprise badges, and username on mobile */
  .credit-display,
  .enterprise-badge,
  .username-display {
    justify-content: center;
    margin: 8px 16px;
    padding: 10px 20px;
    font-size: 0.9rem;
    max-width: none; /* Remove width restriction on mobile */
  }
}

/* Username Display - styled to complement credits */
.username-display {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-primary) !important;
  border-radius: 20px !important;
  padding: 4px 16px !important;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: default;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.username-display:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

.username-display i {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Premium Badge */
.premium-badge {
  background: var(--gradient-primary) !important;
  color: white !important;
  border-radius: 20px !important;
  padding: 4px 16px !important; /* More compact padding */
  font-weight: 700;
  font-size: 0.85rem; /* Smaller font for compact navbar */
  cursor: default;
  box-shadow: var(--shadow-colored);
  display: flex;
  align-items: center;
  gap: 6px; /* Reduced gap */
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent wrapping */
}
.premium-badge:hover {
  background: var(--gradient-primary) !important;
  transform: none !important;
}

/* Enhanced Sections */
.page-section {
  display: none;
  padding-top: 40px;
  padding-bottom: 80px;
}

.active-section {
  display: block;
}

/* New Hero Video - Full Featured */
.hero-video-compact {
  max-width: 800px;
  margin: 30px auto;
  text-align: center;
}

.hero-video-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  background: var(--dark);
}

.hero-video-main {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  object-fit: contain;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 15px;
  pointer-events: none;
}

.hero-video-wrapper:hover .hero-video-overlay {
  opacity: 1;
}

.hero-video-wrapper.video-playing .hero-video-overlay {
  opacity: 0;
  pointer-events: none;
}

.hero-video-wrapper.video-paused .hero-video-overlay,
.hero-video-wrapper:hover .hero-video-overlay {
  opacity: 1;
  pointer-events: auto;
}

.hero-video-controls {
  display: flex;
  gap: 15px;
  align-self: flex-start;
  pointer-events: auto;
}

.hero-control-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  color: var(--dark);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.hero-control-btn:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-cta-overlay {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  pointer-events: auto;
}

.hero-action-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.hero-action-buttons .btn {
  min-width: 200px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-action-buttons .btn-primary {
  background: var(--gradient-primary);
  border: none;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.hero-action-buttons .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.5);
}

.hero-action-buttons .btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  backdrop-filter: blur(10px);
}

.hero-action-buttons .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 255, 255, 0.1);
}

.video-engagement-text {
  margin-top: 20px;
}

.video-tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 300;
}

/* How It Works Page Styles */
.how-it-works-title {
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.how-it-works-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

.central-video-section {
  padding: 40px 0;
}

.how-it-works-video-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  background: var(--dark);
}

.how-it-works-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0; /* Remove border-radius to prevent white lines */
}

.video-description h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.how-it-works-feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.how-it-works-feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
}

.feature-icon-container {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon {
  font-size: 2rem;
  color: white;
}

.how-it-works-feature-card h5 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.how-it-works-feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-benefit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 50px;
  color: var(--success);
  font-size: 0.9rem;
  font-weight: 500;
}

.process-step-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(10px);
}

.process-step-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1.2rem;
}

.step-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin: 20px 0;
}

.process-step-card h5 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 15px;
}

.process-step-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.step-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
}

.stat-highlight-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.stat-highlight-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  display: block;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.company-types {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.company-type {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.how-it-works-cta {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1) 0%,
    rgba(168, 85, 247, 0.1) 100%
  );
  border-radius: 20px;
  padding: 50px 30px;
  margin-top: 60px;
}

.cta-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.cta-buttons .btn {
  min-width: 200px;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
}

.cta-features {
  margin-top: 30px;
}

.cta-features .col-md-3 {
  margin-bottom: 10px;
}

/* Customer Intent AI Tab Styles */
.customer-intent-header {
  padding: 20px 0;
}

.customer-intent-form {
  padding: 20px;
}

.intent-features {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
}

.feature-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.feature-highlight:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.feature-highlight i {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.intent-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.intent-result-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  transition: all 0.3s ease;
}

.intent-result-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.intent-result-card h5 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.intent-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
}

.customer-intent-drop-zone {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.customer-intent-drop-zone.dragover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.upload-icon {
  margin-bottom: 15px;
}

#analyze-intent-btn {
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

#analyze-intent-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.5);
}

#analyze-intent-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Mobile responsiveness for intent results */
@media (max-width: 768px) {
  .intent-results-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .intent-result-card {
    padding: 20px;
  }

  .feature-highlight {
    padding: 10px;
  }
}

/* Customer Intent Popup Styles */
.intent-analysis-popup {
  background: var(--dark) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.intent-popup-title {
  color: var(--text-primary) !important;
  font-size: 1.5rem !important;
  margin-bottom: 20px !important;
}

.intent-results-popup {
  text-align: left;
}

.intent-result-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
}

.intent-result-item h5 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.intent-result-item .intent-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
}

#get-customer-intent:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Newsletter Signup Form Styling */
#newsletter-form .input-group {
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#newsletter-email {
  background: transparent !important;
  border: none !important;
  color: var(--text-primary) !important;
  padding: 12px 20px !important;
  font-size: 1rem !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#newsletter-email::placeholder {
  color: var(--text-secondary) !important;
  opacity: 0.8;
}

#newsletter-email:focus {
  background: rgba(255, 255, 255, 0.05) !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

#newsletter-form .btn {
  background: var(--gradient-primary) !important;
  border: none !important;
  color: white !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
  border-radius: 0 !important;
  transition: all 0.3s ease;
  font-size: 1rem !important;
  white-space: nowrap;
}

#newsletter-form .btn:hover {
  background: linear-gradient(135deg, #5b21b6 0%, #4c1d95 100%) !important;
  transform: translateX(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

#newsletter-form .btn:focus {
  box-shadow: none !important;
  outline: none !important;
}

/* Ensure seamless connection between input and button */
#newsletter-form .input-group > .form-control:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

#newsletter-form .input-group > .btn:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Mobile responsiveness for newsletter form */
@media (max-width: 576px) {
  #newsletter-form .input-group {
    flex-direction: column;
    border-radius: 15px;
  }

  #newsletter-email {
    border-radius: 15px 15px 0 0 !important;
    margin-bottom: 0;
  }

  #newsletter-form .btn {
    border-radius: 0 0 15px 15px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

.video-preview-container {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 400px;
  margin-bottom: 24px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  cursor: pointer;
}

.video-preview-container:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.hero-video-small {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.video-compact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: all 0.3s ease;
  border-radius: 16px;
}

.video-preview-container:hover .video-compact-overlay {
  background: rgba(0, 0, 0, 0.1);
}

.play-button-large {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.play-button-large:hover {
  transform: scale(1.1);
  background: white;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.play-button-large i {
  font-size: 1.8rem;
  color: var(--primary);
  margin-left: 4px; /* Optical centering for play icon */
}

.video-compact-controls {
  position: absolute;
  top: 12px;
  right: 12px;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  backdrop-filter: blur(10px);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: translateY(-1px);
}

.video-engagement-cta {
  text-align: center;
}

.video-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-action-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.pulse-effect {
  animation: pulse-glow 2s infinite;
  position: relative;
  overflow: hidden;
}

.pulse-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.pulse-effect:hover::before {
  left: 100%;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 4px 15px rgba(128, 103, 249, 0.3);
  }
  50% {
    box-shadow: 0 8px 25px rgba(128, 103, 249, 0.5);
  }
}

/* Enhanced Full-Screen Video Modal */
.video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Enhanced Upload Zone with Better UX */
.upload-drop-zone.processing {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.2),
    rgba(139, 92, 246, 0.15)
  );
  border-color: var(--primary);
  animation: processing-pulse 2s infinite;
}

@keyframes processing-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
  }
}

/* Success State Animation */
.upload-success {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.2),
    rgba(16, 185, 129, 0.15)
  );
  border-color: var(--success);
  animation: success-bounce 0.6s ease-out;
}

@keyframes success-bounce {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Enhanced Button Interactions */
.btn-primary:not(.pulse-effect) {
  position: relative;
  overflow: hidden;
}

.btn-primary:not(.pulse-effect):hover {
  transform: translateY(-2px);
}

.btn-primary:not(.pulse-effect):active {
  transform: translateY(0);
}

/* Loading State for Buttons */
.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btn-spin 1s linear infinite;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

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

/* Improved Feedback Messages */
.feedback-message {
  position: fixed;
  top: 100px;
  right: 20px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  max-width: 350px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feedback-message.show {
  transform: translateX(0);
}

.feedback-message.success {
  border-left: 4px solid var(--success);
}

.feedback-message.error {
  border-left: 4px solid var(--danger);
}

.feedback-message.info {
  border-left: 4px solid var(--primary);
}

/* Improved Form Validation */
.form-field {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-field input:invalid:not(:focus):not(:placeholder-shown) {
  border-color: var(--danger);
  box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25);
}

.form-field input:valid:not(:placeholder-shown) {
  border-color: var(--success);
  box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.25);
}

/* Progress Indicators */
.progress-steps {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  position: relative;
}

.progress-steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.progress-step {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
  z-index: 2;
  position: relative;
  transition: all 0.3s ease;
}

.progress-step.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: scale(1.1);
}

.progress-step.completed {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

/* Skeleton Loading States */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-text:last-child {
  width: 60%;
}

.skeleton-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

/* Enhanced Tooltips */
.tooltip-custom {
  position: relative;
  cursor: help;
}

.tooltip-custom:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--darker);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.tooltip-custom:hover::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(1px);
  border: 6px solid transparent;
  border-top-color: var(--darker);
  z-index: 1000;
}

.video-modal-overlay.show {
  opacity: 1;
}

.video-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-modal-video {
  width: 100%;
  height: auto;
  display: block;
}

.video-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  color: var(--dark);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.video-modal-close:hover {
  background: white;
  transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-video-compact {
    max-width: 100%;
    padding: 0 20px;
  }

  .hero-video-overlay {
    padding: 10px;
  }

  .hero-video-controls {
    gap: 10px;
  }

  .hero-control-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .hero-action-buttons .btn {
    min-width: auto;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .video-tagline {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }

  .hero-video-wrapper {
    border-radius: 15px;
  }
}

/* Tab Content Fixes */
.tab-content {
  margin-top: 20px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-pane.show {
  display: block;
}

/* Upload Area Styling */
.upload-drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.upload-drop-zone:hover,
.upload-drop-zone.dragover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.upload-drop-zone p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.upload-preview-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

/* Custom File Upload Styling */
.custom-file-upload {
  position: relative;
  display: inline-block;
  width: 100%;
  cursor: pointer;
}

.custom-file-upload input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-upload-display {
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.custom-file-upload:hover .file-upload-display,
.custom-file-upload.has-file .file-upload-display {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

.file-preview-image {
  max-width: 100%;
  max-height: 200px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

/* Welcome Header Styles */
.welcome-header {
  padding: 20px 0;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-highlights {
  margin: 2rem 0;
}

.feature-highlight {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  padding: 12px 20px;
  color: var(--text-primary);
  font-weight: 500;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.feature-highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

/* Main Upload Panel */
.main-upload-panel {
  max-width: none;
  margin: 0;
}

/* Benefit Cards */
.benefit-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.benefit-card h6 {
  color: var(--text-primary);
  margin-bottom: 8px;
}

.benefit-card p {
  color: var(--text-muted);
  margin: 0;
}

/* Value Items */
.value-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px;
  transition: all 0.3s ease;
}

.value-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.value-item span {
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* Legacy user guidance benefits - removed as consolidated into visual-journey-features */

/* Visual Journey Section - Start Your Visual Intelligence Journey */
.visual-journey-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.visual-journey-subheading {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* CTA Buttons Container */
.visual-journey-ctas {
  margin-bottom: 2.5rem;
}

.cta-buttons-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.visual-journey-primary-cta {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  min-height: 44px;
  transition: all 0.3s ease;
}

.visual-journey-secondary-cta {
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  min-height: 44px;
  transition: all 0.3s ease;
}

.visual-journey-secondary-link {
  display: none;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0;
  min-height: 36px;
  line-height: 1.5;
  transition: color 0.3s ease;
}

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

/* Features Grid */
.visual-journey-features {
  max-width: 800px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}

.feature-item {
  display: flex;
  align-items: center;
  background: rgba(34, 197, 94, 0.08);
  color: #22c55e;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(34, 197, 94, 0.2);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  min-height: 44px;
}

.feature-item:hover {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
  transform: translateY(-1px);
}

.feature-item i {
  flex-shrink: 0;
  font-size: 0.875rem;
}

.feature-item span {
  flex: 1;
  line-height: 1.4;
}

/* Tablet Layout (640px - 1023px) */
@media (min-width: 640px) and (max-width: 1023px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
  }

  .visual-journey-heading {
    font-size: 1.75rem;
  }

  .visual-journey-subheading {
    font-size: 1rem;
  }
}

/* Mobile Layout (<640px) */
@media (max-width: 639px) {
  .visual-journey-heading {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .visual-journey-subheading {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .visual-journey-ctas {
    margin-bottom: 2rem;
  }

  .cta-buttons-container {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .visual-journey-primary-cta {
    width: 100%;
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    min-height: 36px;
  }

  .visual-journey-secondary-cta {
    display: none;
  }

  .visual-journey-secondary-link {
    display: block;
    text-align: center;
    width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .feature-item {
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
    min-height: 40px;
  }

  .feature-item i {
    font-size: 0.75rem;
  }
}

/* Very Small Mobile (<380px) */
@media (max-width: 379px) {
  .visual-journey-secondary-link {
    display: none;
  }

  .visual-journey-primary-cta {
    font-size: 0.8rem;
    padding: 0.5rem 0.875rem;
  }

  .visual-journey-heading {
    font-size: 1.375rem;
  }

  .visual-journey-subheading {
    font-size: 0.9rem;
  }

  .feature-item {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    min-height: 36px;
  }
}

/* AI Editor Spotlight Section */
.ai-editor-spotlight {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 48px 32px;
  backdrop-filter: blur(10px);
  /* Add side gutters to prevent full-bleed appearance */
  margin: 0 24px;
}

.highlight-badge {
  background: var(--gradient-primary);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-right: 12px;
  box-shadow: var(--shadow-colored);
  /* Align badge to baseline of title text */
  vertical-align: baseline;
  position: relative;
  top: -2px; /* Fine-tune vertical alignment */
}

/* Ensure title stays on single line on desktop */
.ai-editor-spotlight h3 {
  white-space: nowrap;
  overflow: visible;
}

@media (max-width: 1200px) {
  .ai-editor-spotlight h3 {
    white-space: normal; /* Allow wrapping on smaller screens */
  }
}

/* Align the showcase card with the bottom of the left column */
.editor-visual {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.before-after-showcase {
  margin-top: auto;
}

.editor-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.editor-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.editor-benefit-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.editor-benefit-item i {
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.editor-benefit-item div {
  color: var(--text-primary);
  line-height: 1.5;
}

.editor-benefit-item strong {
  color: var(--primary);
}

/* Before/After Showcase */
.before-after-showcase {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(10px);
}

.showcase-header h5 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.comparison-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0;
}

.comparison-item {
  flex: 1;
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-label {
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.before-label {
  color: var(--danger);
}

.after-label {
  color: var(--success);
}

.comparison-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stat-item.success {
  color: var(--success);
  font-weight: 600;
}

.comparison-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.comparison-arrow i {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.result-badge {
  background: var(--gradient-accent);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: inline-flex;
  align-items: center;
}

/* Responsive Design for AI Editor */
@media (max-width: 768px) {
  .ai-editor-spotlight {
    padding: 32px 20px;
  }

  .comparison-container {
    flex-direction: column;
    gap: 20px;
  }

  .comparison-arrow {
    transform: rotate(90deg);
  }

  .editor-benefit-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .highlight-badge {
    display: block;
    text-align: center;
    margin: 0 0 12px 0;
  }
}

/* Modern Landing Page Styles */
.hero-headline {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.highlight-text {
  color: var(--secondary);
  font-size: 1.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-headline {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-top: 0.5rem;
}

.problem-statement {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Enhanced Pain Points */
.pain-point {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100%;
  backdrop-filter: blur(10px);
}

.pain-point:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.3);
}

.pain-point h6 {
  color: var(--text-primary);
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 1.1rem;
}

.pain-point i {
  margin-bottom: 20px;
  opacity: 0.9;
}

.pain-point p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Solution Section */
.solution-section,
.social-proof-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.solution-badge .badge {
  font-size: 1rem;
  font-weight: 600;
}

.solution-headline {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.solution-headline em {
  color: var(--secondary);
  font-style: normal;
}

/* Stats Cards */
.stat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-colored);
  border-color: var(--primary);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

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

/* Company Logos */
.company-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.company-logo {
  background: rgba(233, 234, 216, 0.1);
  border: 1px solid rgba(233, 234, 216, 0.2);
  border-radius: 25px;
  padding: 8px 16px;
  color: #e9ead8;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  animation: logo-float 3s ease-in-out infinite;
}

.company-logo:nth-child(1) {
  animation-delay: 0s;
}
.company-logo:nth-child(2) {
  animation-delay: 0.5s;
}
.company-logo:nth-child(3) {
  animation-delay: 1s;
}
.company-logo:nth-child(4) {
  animation-delay: 1.5s;
}

.company-logo:hover {
  transform: translateY(-5px) scale(1.05);
  background: rgba(233, 234, 216, 0.2);
  box-shadow: 0 8px 25px rgba(233, 234, 216, 0.3);
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Container for narrower sections */
.container-narrow {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Enhanced Feature Cards */
.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100%;
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  width: 100%;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-colored);
  border-color: rgba(255, 255, 255, 0.3);
}

.feature-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
  min-height: 72px; /* ensure icon + titles align and card gets some width */
}

.feature-icon-modern {
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(128, 103, 249, 0.3);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-modern {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(128, 103, 249, 0.4);
}

.feature-text h5 {
  color: var(--text-primary);
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.3;
  white-space: normal; /* allow headings inside cards to wrap naturally */
}

.feature-description {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
  font-size: 1rem;
}

.feature-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.feature-icon-modern {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
}

.feature-text h5 {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 1.2rem;
}

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

.benefit-highlight {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.benefit-highlight strong {
  color: var(--success);
}

/* Fix: prevent grid conflict in Features & Benefits section on desktop */
.features-benefits-section .features-grid {
  /* Ensure Bootstrap row inside is full-width and not constrained to grid columns */
  display: block;
}

/* Features Section Improvements */
.features-benefits-section {
  padding: 4rem 0;
}

.features-benefits-section .row {
  --bs-gutter-x: 2rem;
  --bs-gutter-y: 2rem;
}

/* Desktop spacing improvements */
@media (min-width: 1280px) {
  .features-benefits-section .container-narrow {
    max-width: 1300px;
    padding: 0 30px;
  }

  /* Make two columns side-by-side with comfortable gutters */
  .features-benefits-section .row {
    /* bootstrap row */
    --bs-gutter-x: 2.5rem;
    --bs-gutter-y: 2.5rem;
  }

  .feature-card {
    padding: 40px;
  }
}

/* Tablet responsive improvements */
@media (min-width: 768px) and (max-width: 1279px) {
  .features-benefits-section .container-narrow {
    max-width: 1000px;
    padding: 0 25px;
  }

  .features-benefits-section .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
  }

  .feature-card {
    padding: 28px;
  }
}

/* Mobile responsive improvements */
@media (max-width: 767px) {
  .features-benefits-section {
    padding: 3rem 0;
  }

  .features-benefits-section .container-narrow {
    padding: 0 20px;
  }

  .features-benefits-section .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }

  .feature-card {
    padding: 24px;
    margin-bottom: 16px;
  }
}

/* Enhanced Process Steps */
.process-step {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px 48px; /* Increase horizontal padding for wider cards */
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100%;
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.process-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

.process-step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 255, 255, 0.25);
}

.step-number-modern {
  width: 72px;
  height: 72px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 24px;
  box-shadow: 0 8px 25px rgba(72, 209, 204, 0.3);
  transition: all 0.3s ease;
}

.process-step:hover .step-number-modern {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(72, 209, 204, 0.4);
}

.process-step h5 {
  color: var(--text-primary);
  margin-bottom: 18px;
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.3;
}

.process-step p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
  font-size: 1rem;
}

.step-result {
  background: var(--surface-1);
  border-radius: 25px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  margin-top: auto; /* Push to bottom of flex container */
}

.step-result:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.step-result i {
  color: white !important;
}

/* Enhanced CTA Section */
.cta-section {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 64px 40px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

.urgency-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 30px;
  padding: 14px 28px;
  color: var(--warning);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  animation: pulse 2s infinite;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2);
}

.cta-headline {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.cta-benefit {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-1);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px 20px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.cta-benefit:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.cta-subtext {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.btn-xl {
  padding: 20px 40px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-colored);
  transition: all 0.3s ease;
}

.btn-xl:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-colored-hover);
}

.btn-xl small {
  font-size: 0.85rem;
  opacity: 0.9;
  font-weight: 400;
  margin-top: 6px;
  display: block;
}

.guarantee {
  margin-top: 32px;
  padding: 25px 20px; /* Equal top and bottom padding */
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.guarantee p {
  margin: 0;
  line-height: 1.6;
}

.guarantee .fas {
  margin-right: 12px; /* Increased spacing between guarantee items */
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Prevent wrapping on desktop */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive title wrapping for smaller screens */
@media (max-width: 1279px) {
  .section-title {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.5rem;
  }

  .main-headline {
    font-size: 2.2rem;
  }

  .solution-headline {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .feature-header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 16px;
  }

  .btn-xl {
    width: 100%;
  }
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

/* Enhanced Glass Cards with Premium Feel */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
  margin-bottom: 32px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  color: var(--text-primary);
}
.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
}
.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Enhanced Button Styles with Premium Feel */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  border-radius: 16px;
  padding: 16px 32px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease-out;
  box-shadow: var(--shadow-colored);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-colored-hover);
  background: var(--gradient-primary);
}

.btn-info {
  background: var(--gradient-secondary);
  border: none;
  border-radius: 16px;
  padding: 16px 32px;
  font-weight: 600;
  transition: all 0.3s ease-out;
  box-shadow: 0 4px 20px rgba(72, 209, 204, 0.3);
}

.btn-info:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(72, 209, 204, 0.4);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 14px 30px;
  font-weight: 600;
  transition: all 0.3s ease-out;
  background: transparent;
  backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Modern Upload Drop Zone - Web Search Style */
.upload-drop-zone {
  border: 3px dashed rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  padding: 50px 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 20px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08),
    rgba(139, 92, 246, 0.05)
  );
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.upload-drop-zone::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(99, 102, 241, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.upload-drop-zone:hover::before {
  opacity: 1;
}

.upload-drop-zone:hover {
  border-color: var(--primary);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.15),
    rgba(139, 92, 246, 0.08)
  );
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.upload-drop-zone.dragover {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.2),
    rgba(139, 92, 246, 0.12)
  );
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 25px 50px rgba(99, 102, 241, 0.3);
}

.upload-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.upload-drop-zone:hover .upload-icon {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.upload-text {
  position: relative;
  z-index: 2;
}

.upload-primary-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.upload-secondary-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.upload-format-info {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}

.format-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 0.85rem;
}

.upload-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: uploadPulse 2s infinite;
}

.upload-drop-zone.dragover .upload-animation {
  opacity: 1;
}

@keyframes uploadPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* Tabs / Tables */
.table-dark {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: var(--light) !important;
}
.table-dark.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.1);
}
.nav-tabs {
  border-bottom: none;
  justify-content: center;
}
.nav-tabs .nav-link {
  color: var(--light);
  background-color: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 1.1em;
  transition: color 0.3s, border-bottom 0.3s;
}
.nav-tabs .nav-link.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

/* Spinner */
.spinner-container {
  display: none;
  margin-top: 20px;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
}
.spinner-container.show {
  display: flex;
}
.spinner-border {
  color: var(--secondary);
  width: 3rem;
  height: 3rem;
}

/* Footer pinned at bottom */
.footer {
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 60px 0 15px; /* Reduced bottom padding from 30px to 15px */
}

.footer h5 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links {
  padding: 0;
}

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

.footer-contact p {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.footer-divider {
  border-color: var(--glass-border);
  margin: 2rem 0 1.5rem;
  opacity: 0.3;
}

.footer-copyright,
.footer-tagline {
  margin: 0;
  font-size: 0.9rem;
}

.footer-tagline {
  color: var(--primary);
  font-weight: 500;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}
.footer a {
  color: var(--primary);
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

/* Scroll to Top */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--primary);
  color: #fff;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 1.5em;
  cursor: pointer;
  display: none;
  z-index: 1000;
  transition: background-color 0.3s, transform 0.3s;
}
.scroll-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
}

/* Contact / Discord */
.discord-invite {
  background-color: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  text-align: center;
  margin-top: 40px;
  padding: 20px;
}
.discord-invite .btn {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}
.discord-invite .btn:hover {
  background-color: #ec4899;
}

/* Code samples */
.code-sample-container {
  position: relative;
  margin-bottom: 20px;
  text-align: left;
}
.code-sample {
  background-color: rgba(255, 255, 255, 0.03);
  color: #f8f8f2;
  padding: 15px;
  border-radius: 5px;
  font-family: monospace;
  overflow-x: auto;
}
.copy-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--secondary);
  border: none;
  color: #fff;
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.copy-btn:hover {
  background-color: #ec4899;
}

/* API Key Box */
.api-key-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  padding: 10px;
  text-align: center;
  word-break: break-all;
  width: 100%;
  color: #fff;
}

/* History Modal fix for close button */
.modal-content {
  background-color: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--light);
}
.modal-header,
.modal-footer {
  border-color: rgba(255, 255, 255, 0.15);
}
.modal-title {
  color: var(--secondary);
}

/* COMPLETELY REDESIGNED History Modal - Modern & Beautiful */
#historyModal .modal-content {
  background: var(--darker);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

#historyModal .modal-header {
  background: linear-gradient(135deg, var(--glass), rgba(255, 255, 255, 0.08));
  border-bottom: 1px solid var(--glass-border);
  border-radius: 20px 20px 0 0;
  padding: 1.5rem 2rem;
}

#historyModal .modal-body {
  background: var(--dark);
  color: var(--text-primary);
  padding: 0;
  border-radius: 0 0 20px 20px;
}

/* Modern Modal Container */
.modern-modal-container {
  padding: 2rem;
}

/* Modal Header Section */
.modal-header-section {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.analysis-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.analysis-badge.image-badge {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.analysis-badge.video-badge {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: white;
}

.analysis-badge.ai-editor-badge {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
}

.modal-item-title {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0;
}

.modal-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 6px;
}

.user-prompt-display {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

.prompt-label {
  display: flex;
  align-items: center;
  color: #8b5cf6;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.prompt-text {
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.5;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 3px solid #8b5cf6;
}

.analysis-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  text-align: center;
  min-width: 120px;
}

.stat-pill.success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.stat-pill.ai-editor {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
}

/* AI Editor Tab Isolation Fix */
#ai-editor-section.active.show ~ .tab-pane:not(#ai-editor-section) {
  display: none !important;
}

/* Force tab isolation */
.tab-pane:not(.active):not(.show) {
  display: none !important;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Media Comparison Section */
.media-comparison-section {
  margin: 2rem 0;
}

.media-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.media-panel:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-title {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.panel-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.original-badge {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.result-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.panel-content {
  padding: 1.5rem;
}

/* Image/Video Containers */
.image-container,
.video-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
}

.media-preview {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  display: block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.image-container:hover .media-preview {
  transform: scale(1.02);
}

.media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-container:hover .media-overlay {
  opacity: 1;
}

.play-button {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
}

.image-zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-container:hover .image-zoom-hint {
  opacity: 1;
}

/* Panel Actions */
.panel-actions {
  margin-top: 1rem;
}

/* Modern Buttons */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  white-space: nowrap;
}

.btn-primary-modern {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.btn-primary-modern:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-success-modern {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.btn-success-modern:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-outline-modern {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.btn-outline-modern:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* Modal Action Bar */
.modal-action-bar {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-group {
  display: flex;
  gap: 1rem;
}

.sharing-options {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-icon:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .modern-modal-container {
    padding: 1rem;
  }

  .modal-header-section {
    padding: 1rem;
  }

  .modal-item-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .analysis-stats {
    margin-top: 1rem;
  }

  .panel-content {
    padding: 1rem;
  }

  .action-group {
    flex-direction: column;
  }

  .sharing-options {
    justify-content: center;
    margin-top: 1rem;
  }
}

/* Bootstrap 5 style close button on dark background */
.btn-close-white {
  filter: invert(1) grayscale(100%);
}

/* Fullscreen image popup styling */
.fullscreen-image-popup {
  background: rgba(0, 0, 0, 0.95) !important;
  border-radius: 20px !important;
  max-width: 95vw !important;
  max-height: 95vh !important;
  padding: 20px !important;
}

.fullscreen-image-popup img {
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Hide "Your Result:" until we have a success */
#result-label {
  display: none;
  margin-top: 30px;
}

.preview-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Success / Cancel messages */
#success-message,
#credits-success-message,
#premium-success-message {
  position: fixed;
  top: 56px;
  width: 100%;
  z-index: 1000;
  border-radius: 0;
}
.alert-success {
  background-color: #166534 !important;
  border-color: #166534 !important;
}
.alert h4,
.alert p {
  color: #fff;
}

/* Premium success message styling */
.premium-success {
  background: linear-gradient(
    135deg,
    #8b5cf6 0%,
    #7c3aed 50%,
    #6d28d9 100%
  ) !important;
  border: 2px solid #a855f7 !important;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3) !important;
  animation: premium-glow 2s ease-in-out infinite alternate;
}

@keyframes premium-glow {
  0% {
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
  }
  100% {
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.5);
  }
}

.premium-success .alert-heading {
  color: #fff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.premium-success p {
  color: #f3e8ff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.premium-success .fas.fa-crown {
  color: #fde047 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: crown-pulse 1.5s ease-in-out infinite;
}

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

/* Hide hero CTA if user is logged in or premium */
#hero-cta-card {
  margin-top: 30px;
}
#result-image,
#result-video {
  max-width: 100%;
  max-height: 600px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

/* Upload Preview Images */
.upload-preview-image {
  max-width: 100%;
  max-height: 300px;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

/* AI Design Optimizer Styles */
.ai-optimizer-header {
  padding: 40px 20px;
  background: var(--glass);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  margin-bottom: 40px;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  font-size: 2rem;
  color: white;
  transition: all 0.3s ease;
}

.feature-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
}

/* Text rhythm improvements for all feature sections */
.ai-editor-header h3,
.customer-intent-header h3,
.brand-attention-header h3 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .ai-editor-header h3,
  .customer-intent-header h3,
  .brand-attention-header h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.ai-editor-header p,
.customer-intent-header p,
.brand-attention-header p {
  max-width: 70ch; /* Optimal line length for descriptions */
  margin: 0 auto;
  line-height: 1.6;
  font-size: 1.1rem;
}

/* Section titles - keep single line on desktop */
@media (min-width: 768px) {
  .section-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}

.upload-section {
  background: var(--glass);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--glass-border);
  height: 100%;
}

.section-title {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
}

.upload-group {
  margin-bottom: 24px;
}

.upload-label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--light);
}

.custom-file-upload {
  position: relative;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-file-upload:hover {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.05);
}

.custom-file-upload.has-file {
  padding: 12px;
  min-height: auto;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  top: 0;
  left: 0;
  z-index: 2;
}

.file-upload-display {
  pointer-events: none;
  width: 100%;
}

.file-upload-display i {
  color: var(--primary);
  margin-bottom: 8px;
}

.file-preview-image {
  max-width: 100%;
  max-height: 150px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.analysis-config {
  background: var(--glass);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--glass-border);
}

.modern-select,
.modern-textarea,
.modern-input {
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: var(--text-primary);
  padding: 16px 20px;
  transition: all 0.3s ease;
  font-size: 1rem;
  backdrop-filter: blur(10px);
}

.modern-select:focus,
.modern-textarea:focus,
.modern-input:focus {
  background: rgba(233, 234, 216, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(128, 103, 249, 0.15);
  color: var(--text-primary);
  outline: none;
}

/* Custom scrollbar for textarea */
.modern-input::-webkit-scrollbar {
  width: 8px;
}

.modern-input::-webkit-scrollbar-track {
  background: rgba(233, 234, 216, 0.1);
  border-radius: 4px;
}

.modern-input::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.modern-input::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.8);
}

.modern-select option {
  background-color: var(--darker);
  color: var(--text-primary);
  padding: 8px 12px;
  border: 1px solid rgba(233, 234, 216, 0.1);
}

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

.form-label {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 12px;
}

/* Streamlined Credit Summary Bar */
.credit-summary-bar {
  background: var(--surface-1);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px 30px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.credit-summary-bar:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.credit-summary-bar p {
  font-size: 1rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.credit-summary-bar .btn {
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

/* Responsive adjustments for credit summary bar */
@media (max-width: 768px) {
  .credit-summary-bar {
    padding: 16px 20px;
  }

  .credit-summary-bar p {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .credit-summary-bar .btn {
    width: 100%;
    max-width: 200px;
  }
}

/* AI Analysis Loading */
.ai-analysis-loading,
.ai-editor-loading {
  text-align: center;
  padding: 60px 20px;
  background: var(--glass);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  margin-top: 40px;
}

.ai-brain {
  animation: pulse 2s infinite;
  margin-bottom: 24px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.loading-text h4 {
  color: var(--primary);
  margin-bottom: 8px;
}

.progress-bar-container {
  width: 100%;
  max-width: 300px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin: 24px auto 0;
  overflow: hidden;
}

.progress-bar-animated {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: loading 2s infinite;
}

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(400px);
  }
}

/* AI Results */
.ai-results-container {
  background: var(--glass);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  padding: 40px;
  margin-top: 40px;
}

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

.results-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.recommendation-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.ai-response-text {
  background: transparent;
  border: none;
  color: var(--light);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  margin: 0;
}

.results-actions {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* WEB SEARCH & SIMILARITY SECTION */
.web-search-header {
  padding: 40px 20px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-bottom: 40px;
}

.web-search-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  padding: 32px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.web-search-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

.web-search-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 255, 255, 0.2);
}

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

.upload-container {
  position: relative;
  margin-bottom: 24px;
}

.upload-features {
  text-align: center;
  margin-top: 16px;
}

.search-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.search-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

.step {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.step.active {
  background-color: var(--primary);
  color: #fff;
}

.step i {
  margin-bottom: 8px;
}

/* Web Search Loading */
.web-search-loading {
  text-align: center;
  padding: 60px 20px;
  background: var(--glass);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  margin-top: 40px;
}

.search-icon {
  animation: rotate 3s linear infinite;
  margin-bottom: 24px;
}

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

/* Web Search Results */
.web-search-results {
  background: var(--glass);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  padding: 40px;
  margin-top: 40px;
}

.feature-badges .badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 500;
}

.modern-upload {
  background: rgba(255, 255, 255, 0.02);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.modern-upload:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
  transform: translateY(-2px);
}

.upload-content {
  padding: 20px;
}

/* Enhanced Brand Attention Display */
.brand-attention-container {
  background: var(--glass);
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
}

/* Image Complexity Display */
.complexity-container {
  background: var(--glass);
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
}

.complexity-header {
  text-align: center;
  margin-bottom: 24px;
}

.complexity-header h5 {
  color: var(--secondary);
  margin-bottom: 8px;
}

.complexity-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.complexity-visual {
  position: relative;
  width: 100%;
  max-width: 350px;
}

.complexity-scale {
  width: 100%;
  height: 16px;
  background: linear-gradient(
    90deg,
    #ef4444 0%,
    /* Too Simple - Red */ #f59e0b 20%,
    /* Simple - Amber */ #22c55e 35%,
    /* Optimal Start - Green */ #10b981 50%,
    /* Perfect - Emerald */ #22c55e 65%,
    /* Optimal End - Green */ #f59e0b 80%,
    /* Complex - Amber */ #ef4444 100% /* Too Complex - Red */
  );
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.complexity-pointer {
  position: absolute;
  top: -8px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid white;
  transform: translateX(-50%);
  transition: left 1s ease-in-out;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.complexity-scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--light);
  opacity: 0.8;
}

.optimal-zone-indicator {
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  animation: optimalGlow 2s ease-in-out infinite alternate;
}

@keyframes optimalGlow {
  0% {
    box-shadow: 0 0 5px rgba(34, 197, 94, 0.5);
  }
  100% {
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.8);
  }
}

.complexity-score-display {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
}

.complexity-score-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  color: white;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  transition: all 0.5s ease;
}

.complexity-score-number {
  font-size: 1.8rem;
  line-height: 1;
}

.complexity-score-label {
  font-size: 0.7rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.complexity-interpretation {
  flex: 1;
  text-align: left;
}

.complexity-level {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.complexity-description {
  margin-bottom: 8px;
  color: var(--light);
  opacity: 0.9;
}

.complexity-recommendation {
  font-size: 0.9rem;
  color: var(--light);
  opacity: 0.8;
  font-style: italic;
}

.complexity-insights {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.complexity-insight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid var(--secondary);
}

.complexity-insight-item i {
  width: 20px;
  text-align: center;
  margin-top: 2px;
}

.brand-attention-header {
  text-align: center;
  margin-bottom: 24px;
}

.brand-attention-header h5 {
  color: var(--primary);
  margin-bottom: 8px;
}

.brand-attention-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.meter-container {
  width: 100%;
  max-width: 300px;
  position: relative;
}

.meter-background {
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #22c55e 100%);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  transition: width 1s ease-in-out;
  position: relative;
}

.meter-fill::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -2px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--light);
  opacity: 0.8;
}

.brand-score-display {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
}

.score-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}

.score-interpretation {
  flex: 1;
  text-align: left;
}

.score-interpretation h6 {
  color: var(--primary);
  margin-bottom: 4px;
}

.brand-insights {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.insight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.insight-item i {
  width: 20px;
  text-align: center;
}

/* History Page Redesign */
.history-header {
  background: var(--glass);
  border-radius: 20px;
  padding: 40px 20px;
  border: 1px solid var(--glass-border);
  margin-bottom: 40px;
}

.history-controls {
  background: var(--glass);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--glass-border);
}

.search-box {
  position: relative;
}

.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  z-index: 2;
}

.search-box input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: var(--light);
  padding: 12px 16px 12px 48px;
  transition: all 0.3s ease;
}

.search-box input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  color: var(--light);
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  opacity: 1;
}

/* Global placeholder styling for better visibility */
input::placeholder,
textarea::placeholder,
.form-control::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
  opacity: 1;
}

/* For dark theme compatibility */
.modern-input::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Custom scrollbar styling to match design theme */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.8);
}

::-webkit-scrollbar-corner {
  background: rgba(255, 255, 255, 0.1);
}

.filter-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.filter-buttons .btn {
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.filter-buttons .btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

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

.history-card {
  background: var(--glass);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.history-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 255, 255, 0.2);
}

.history-card-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-card-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.history-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 8px;
  word-break: break-word;
}

.history-card-date {
  color: var(--light);
  opacity: 0.7;
  font-size: 0.875rem;
}

.history-card-preview {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.history-card-preview img,
.history-card-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.history-card:hover .history-card-preview img,
.history-card:hover .history-card-preview video {
  transform: scale(1.05);
}

/* Fix hover colors to work with purple background */
.btn:hover,
.card:hover,
.glass-card:hover {
  filter: brightness(1.1);
}

.upload-drop-zone:hover {
  border-color: var(--secondary);
  background: rgba(6, 182, 212, 0.05);
  transform: translateY(-2px);
}

/* Ensure text is readable */
.text-muted {
  color: var(--text-muted) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

/* Alert improvements */
.alert-info {
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--text-primary);
}

.history-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.history-card:hover .history-card-overlay {
  opacity: 1;
}

.history-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.history-card-actions .btn {
  flex: 1;
  min-width: 120px;
  border-radius: 8px;
  font-size: 0.875rem;
  padding: 8px 16px;
}

.empty-state {
  background: var(--glass);
  border-radius: 20px;
  padding: 60px 40px;
  border: 1px solid var(--glass-border);
}

.empty-state i {
  opacity: 0.5;
}

/* History placeholder */
.placeholder-preview {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}

/* History Controls Layout */
.history-controls .d-flex {
  align-items: center;
}

.search-box-container {
  flex: 0 0 300px; /* Fixed width for search box */
  min-width: 250px;
}

.filter-buttons-container {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-buttons-container::-webkit-scrollbar {
  display: none;
}

/* Filter buttons improvements */
.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap; /* No wrapping on desktop */
  white-space: nowrap;
}

.filter-buttons .btn {
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-buttons .btn:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

.filter-buttons .btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Enhanced No Results State Styling */
.enhanced-no-results-container {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.no-results-content {
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.no-results-icon-container {
  position: relative;
  display: inline-block;
}

.no-results-icon-circle {
  width: 120px;
  height: 120px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  animation: pulse-subtle 3s ease-in-out infinite;
  color: var(--primary);
}

@keyframes pulse-subtle {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 20px rgba(99, 102, 241, 0);
  }
}

@keyframes highlight-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(99, 102, 241, 0.3);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    transform: scale(1);
  }
}

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

.alternative-actions {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.alternative-actions p {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.alternative-action-btn {
  min-width: 200px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.alternative-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.alternative-action-btn.btn-info {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: white;
}

.alternative-action-btn.btn-info:hover {
  background: linear-gradient(135deg, #0891b2, #0e7490);
  color: white;
}

.alternative-action-btn.btn-secondary {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
}

.alternative-action-btn.btn-secondary:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: white;
}

.alternative-action-btn.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
}

.alternative-action-btn.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: white;
}

.alternative-action-btn.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.alternative-action-btn.btn-success:hover {
  background: linear-gradient(135deg, #059669, #047857);
  color: white;
}

.alternative-action-btn i {
  font-size: 1.2rem;
  align-self: flex-start;
  margin-top: 2px;
}

.alternative-action-btn div {
  text-align: left;
  flex: 1;
}

.quick-actions .btn {
  border-radius: 20px;
  transition: all 0.3s ease;
}

.quick-actions .btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .history-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile layout for history controls */
  .history-controls .d-flex {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }

  .search-box-container {
    flex: none;
    min-width: auto;
  }

  .filter-buttons-container {
    justify-content: center;
    overflow-x: auto;
  }

  .filter-buttons {
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding-bottom: 4px; /* Space for scroll indicator */
  }

  .filter-buttons .btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .enhanced-no-results-container {
    min-height: 50vh;
    padding: 1rem;
  }

  .no-results-icon-circle {
    width: 100px;
    height: 100px;
  }

  .no-results-title {
    font-size: 1.25rem;
  }

  .alternative-actions {
    padding: 1.5rem;
  }

  .alternative-action-btn {
    min-width: auto;
    width: 100%;
  }

  .alternative-action-btn i {
    align-self: center;
    margin-top: 0;
  }

  .alternative-action-btn div {
    text-align: center;
  }
}

/* Accessibility Improvements */
/* Ensure minimum touch targets on mobile */
@media (max-width: 768px) {
  .btn,
  .nav-link,
  .copy-btn,
  .btn-icon,
  button,
  input[type="submit"],
  input[type="button"] {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 16px;
  }

  .nav-link {
    padding: 12px 16px !important;
  }

  .copy-btn {
    width: 44px;
    height: 44px;
  }
}

/* Enhanced focus styles for better accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
.btn:focus,
.nav-link:focus,
a:focus {
  outline: 2px solid #e9ead8;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(233, 234, 216, 0.3);
}

/* High contrast focus for better visibility */
.btn-primary:focus,
.btn-secondary:focus,
.btn-success:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

/* Ensure focus styles are visible on dark backgrounds */
.navbar-dark .nav-link:focus {
  outline: 2px solid #e9ead8;
  outline-offset: 2px;
  background: rgba(233, 234, 216, 0.1);
}

/* Skip to content link for screen readers */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 9999;
  border-radius: 4px;
}

.skip-to-content:focus {
  top: 6px;
  outline: 2px solid #e9ead8;
}

/* Contact Page Redesign */
#contact-section {
  color: #e9ead8;
}

#contact-section h2,
#contact-section h6,
#contact-section .form-label {
  color: #e9ead8;
}

#contact-section .modern-input {
  color: #e9ead8;
}

#contact-section .modern-input::placeholder {
  color: rgba(233, 234, 216, 0.6);
}

#contact-section option {
  color: #e9ead8;
  background-color: var(--darker);
}

#contact-section select:focus option {
  color: #e9ead8;
  background-color: var(--darker);
}

#contact-section select option:hover {
  color: #e9ead8;
  background-color: rgba(233, 234, 216, 0.1);
}

.contact-header {
  background: var(--glass);
  border-radius: 20px;
  padding: 40px 20px;
  border: 1px solid var(--glass-border);
}

.contact-card {
  background: var(--glass);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xl);
}

.contact-methods {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 30px;
}

.contact-method {
  padding: 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.contact-method:hover {
  background: rgba(233, 234, 216, 0.1);
  transform: translateY(-2px);
}

.contact-method-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: white;
  font-size: 1.5rem;
}

.contact-method h6 {
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.modern-input {
  background: rgba(233, 234, 216, 0.05);
  border: 1px solid rgba(233, 234, 216, 0.2);
  border-radius: 12px;
  color: var(--light);
  padding: 12px 16px;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.modern-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  color: var(--light);
}

.modern-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-label {
  color: var(--light);
  font-weight: 500;
  margin-bottom: 8px;
}

.discord-card {
  background: var(--glass);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.discord-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.discord-icon {
  width: 60px;
  height: 60px;
  background: #5865f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.discord-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.discord-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.discord-feature i {
  width: 20px;
  text-align: center;
}

.btn-discord {
  background: #5865f2;
  border-color: #5865f2;
  color: white;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-discord:hover {
  background: #4752c4;
  border-color: #4752c4;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

@media (max-width: 768px) {
  .discord-header {
    flex-direction: column;
    text-align: center;
  }

  .contact-card {
    padding: 24px;
  }
}

/* Pricing Styles */
.pricing-header {
  text-align: center;
  margin-bottom: 40px;
}

.pricing-comparison {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.pricing-card {
  background: var(--glass);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  flex: 1;
  box-shadow: var(--shadow-lg);
}

.pricing-header h4 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.currency {
  font-size: 1rem;
  font-weight: 500;
  color: var(--light);
}

.period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--light);
}

.pricing-features {
  margin-bottom: 30px;
}

.feature {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--light);
}

.feature i {
  margin-right: 10px;
  font-size: 1rem;
}

.feature.disabled {
  color: var(--muted);
  text-decoration: line-through;
}

.popular-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  z-index: 10;
}

.credit-price-card.popular {
  position: relative;
  border: 2px solid #ff6b6b;
  transform: scale(1.05);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
  background: var(--gradient-primary);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.value-props {
  text-align: center;
  margin-bottom: 40px;
}

.value-prop {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.value-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-right: 20px;
}

.testimonial-card {
  background: var(--glass);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.testimonial-content {
  margin-bottom: 20px;
}

.testimonial-quote {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--light);
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary);
}

/* Steps styling for instructions */
.steps-container {
  position: relative;
}

.step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 32px;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 60px;
  width: 2px;
  height: 40px;
  background: var(--primary);
  opacity: 0.3;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: 24px;
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
}

.step-content h5 {
  color: var(--primary);
  margin-bottom: 8px;
}

/* API Documentation Styles */
.api-section {
  margin-bottom: 32px;
}

.api-section h5 {
  color: var(--primary);
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.endpoint-list {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 16px;
}

.endpoint-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.endpoint-method {
  background: var(--primary);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 12px;
  min-width: 60px;
  text-align: center;
}

.endpoint-path {
  font-family: monospace;
  color: var(--accent);
  margin-right: 12px;
  flex: 1;
}

.endpoint-desc {
  color: var(--light);
  opacity: 0.8;
  font-size: 0.9rem;
}

.parameter-list {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 16px;
}

.parameter-item {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light);
}

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

.parameter-item strong {
  color: var(--primary);
}

.parameter-item code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}

.api-key-display-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.api-key-actions {
  display: flex;
  gap: 8px;
}

/* Uniqueness Results Styling */
.uniqueness-score-display {
  margin: 20px 0;
}

.score-circle-large {
  width: 120px;
  height: 120px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: var(--shadow-xl);
}

.score-number {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.score-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.similarity-card {
  transition: all 0.3s ease;
}

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

.similarity-image-container {
  height: 150px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: rgba(255, 255, 255, 0.02);
}

.similarity-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.similarity-image:hover {
  transform: scale(1.05);
}

.similarity-metrics {
  margin-top: 12px;
}

.metric-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 0.85rem;
}

.metric-item.highlight {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 6px 8px;
  margin-top: 8px;
  font-weight: 600;
}

.metric-label {
  color: var(--light);
  opacity: 0.8;
}

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

.metric-item.highlight .metric-value {
  color: var(--warning);
}

/* Modern Uniqueness Analysis Styles */
.uniqueness-analysis-modern {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.uniqueness-header-modern {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.uniqueness-score-hero {
  margin-bottom: 1.5rem;
}

.score-circle-large {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.score-circle-large.score-success {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.score-circle-large.score-warning {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.score-circle-large.score-danger {
  background: linear-gradient(135deg, #dc3545, #e83e8c);
}

.score-number-hero {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.score-label-hero {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-top: 0.25rem;
}

.uniqueness-status-modern h4 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.analysis-stats {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0.25rem;
}

.reference-panel-modern,
.similar-images-panel-modern {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 1.5rem;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-header-modern {
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.2),
    rgba(13, 110, 253, 0.1)
  );
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary);
}

.reference-image-modern {
  text-align: center;
  margin-bottom: 1.5rem;
}

.reference-image-modern img {
  max-width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid var(--primary);
}

.uniqueness-metrics-modern {
  margin-top: 1.5rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-header h6 {
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.metric-row-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-row-modern:last-child {
  border-bottom: none;
}

.metric-label-modern {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.metric-value-modern {
  color: var(--light);
  font-weight: 600;
}

.similar-images-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.similar-images-grid-modern::-webkit-scrollbar {
  width: 6px;
}

.similar-images-grid-modern::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.similar-images-grid-modern::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.similar-image-card-modern {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: fit-content;
}

.similar-image-card-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--primary);
}

.image-container-modern {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.similar-image-modern {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.similar-image-modern:hover {
  transform: scale(1.05);
}

.similarity-overlay-modern {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.max-similarity-badge-modern {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.similarity-badge-high {
  background: linear-gradient(135deg, #dc3545, #c82333);
}

.similarity-badge-medium {
  background: linear-gradient(135deg, #ffc107, #e0a800);
}

.similarity-badge-low {
  background: linear-gradient(135deg, #28a745, #1e7e34);
}

.card-content-modern {
  padding: 1rem;
}

.image-title-modern {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.image-link-modern {
  color: var(--light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.image-link-modern:hover {
  color: var(--primary);
}

.image-source-modern {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.similarity-metrics-enhanced {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.75rem;
}

.metric-row-enhanced {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
  font-size: 0.85rem;
}

.metric-row-enhanced.primary-metric {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

.metric-label-enhanced {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.metric-value-enhanced {
  font-weight: 600;
  border-radius: 12px;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
}

.metric-value-high {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
}

.metric-value-medium {
  background: linear-gradient(135deg, #ffc107, #e0a800);
  color: white;
}

.metric-value-low {
  background: linear-gradient(135deg, #28a745, #1e7e34);
  color: white;
}

.error-card {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.error-content {
  display: flex;
  align-items: center;
  padding: 1rem;
}

.error-icon-modern {
  font-size: 1.5rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.error-title-modern {
  font-size: 0.9rem;
  color: var(--warning);
  margin-bottom: 0.5rem;
}

.error-source-modern {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.25rem;
}

.error-message-modern {
  font-size: 0.75rem;
  color: rgba(220, 53, 69, 0.8);
  margin: 0;
}

.unique-celebration {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(40, 167, 69, 0.1),
    rgba(32, 201, 151, 0.1)
  );
  border-radius: 20px;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.uniqueness-badge {
  margin-top: 1.5rem;
}

/* Responsive Design for Modern Uniqueness */
@media (max-width: 768px) {
  .uniqueness-analysis-modern {
    padding: 1rem;
  }

  .uniqueness-header-modern {
    padding: 1.5rem;
  }

  .score-circle-large {
    width: 120px;
    height: 120px;
  }

  .score-number-hero {
    font-size: 2rem;
  }

  .similar-images-grid-modern {
    grid-template-columns: 1fr;
    max-height: 400px;
  }

  .reference-panel-modern,
  .similar-images-panel-modern {
    padding: 1rem;
  }
}

/* Enhanced Analysis Interface */
.analysis-type-selector {
  margin: 2rem 0;
}

.analysis-option {
  margin-bottom: 1rem;
}

.analysis-radio {
  display: none;
}

.analysis-card {
  display: flex;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 110px; /* Increased height to accommodate text */
  min-height: 110px;
  color: var(--text-primary);
  text-decoration: none;
  align-items: center;
  gap: 12px;
}

.analysis-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
  color: var(--text-primary);
  text-decoration: none;
}

.analysis-radio:checked + .analysis-card {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.analysis-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.analysis-icon i {
  font-size: 1.2rem;
  color: var(--primary);
}

.analysis-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.analysis-content h6 {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.1;
}

.analysis-content small {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-secondary);
  max-width: 45ch; /* Prevent overly long lines in small descriptions */
}

.content-type-selector,
.fixation-points-selector {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.modern-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.modern-select:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.modern-select option {
  background: var(--darker);
  color: var(--text-primary);
}

/* Hide helper copy for logged-in users */
body.logged-in .ux-hint-copy {
  display: none !important;
}

/* Simplify navbar for logged-in users */
body.logged-in .navbar-info-link {
  display: none !important;
}

.fixation-input-group {
  max-width: 300px;
  margin: 0 auto;
}

.form-range {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  height: 8px;
}

.form-range::-webkit-slider-thumb {
  background: var(--primary);
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.5);
}

.fixation-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.analysis-submit-btn {
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  border: none;
  border-radius: 15px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.analysis-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.analysis-submit-btn:active {
  transform: translateY(0);
}

/* Video Analysis Enhancements */
.video-analysis-header,
.image-analysis-header {
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

/* Text rhythm improvements for better readability */
.video-analysis-header h5,
.image-analysis-header h5 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.video-analysis-header p,
.image-analysis-header p {
  max-width: 65ch; /* ~50-75 characters per line for optimal readability */
  margin: 0 auto;
  line-height: 1.6;
  font-size: 1rem;
}

.video-settings-selector {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.interval-options {
  margin-bottom: 1rem;
}

.interval-option {
  position: relative;
}

.interval-option input[type="radio"] {
  display: none;
}

.interval-card {
  display: block;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
  height: 100%;
  color: var(--text-primary);
  text-decoration: none;
  min-height: 100px;
}

.interval-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
  color: var(--text-primary);
  text-decoration: none;
}

.interval-option input[type="radio"]:checked + .interval-card {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.interval-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.interval-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Responsive Design for Video Tab */
@media (max-width: 768px) {
  .video-analysis-header h5,
  .image-analysis-header h5 {
    font-size: 1.2rem;
  }

  .video-analysis-header p,
  .image-analysis-header p {
    font-size: 0.9rem;
  }

  .video-analysis-header,
  .image-analysis-header {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .interval-card {
    padding: 0.75rem;
    min-height: 90px;
  }

  .interval-value {
    font-size: 1rem;
  }

  .interval-desc {
    font-size: 0.8rem;
  }

  .interval-card small {
    font-size: 0.7rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .analysis-card {
    padding: 12px;
    min-height: 95px;
    height: 95px;
  }

  .analysis-icon i {
    font-size: 1.3rem;
  }

  .analysis-content h6 {
    font-size: 0.9rem;
  }

  .analysis-content small {
    font-size: 0.75rem;
  }
}

/* Mobile UI Improvements - Loading and AI Elements */
@media (max-width: 768px) {
  .ai-analysis-loading,
  .ai-editor-loading {
    padding: 30px 15px;
    margin: 0 10px;
  }

  .loading-text h4 {
    font-size: 1.1rem;
  }

  .progress-bar-container {
    width: calc(100% - 40px);
    max-width: 250px;
    margin: 20px auto 0;
  }

  .spinner-container {
    margin: 15px 0;
    padding: 0 15px;
  }

  .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
  }

  /* Ensure modal content fits on mobile */
  .modal-content {
    margin: 10px;
    max-width: calc(100vw - 20px);
  }

  /* AI Editor specific mobile fixes */
  .ai-editor-results {
    padding: 15px;
    margin: 0 10px;
  }

  /* Results display mobile improvements */
  #result-image,
  #result-video {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  /* Button groups on mobile */
  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    margin: 2px 0;
    border-radius: 8px !important;
  }

  /* Upload zones mobile fix */
  .upload-drop-zone {
    margin: 10px;
    padding: 20px 15px;
    min-height: 120px;
  }

  /* Feedback messages */
  .feedback-message {
    left: 10px;
    right: 10px;
    width: auto;
  }
}

@media (max-width: 576px) {
  .ai-analysis-loading,
  .ai-editor-loading {
    padding: 20px 10px;
    margin: 0 5px;
  }

  .progress-bar-container {
    width: calc(100% - 20px);
    max-width: 200px;
  }

  .modal-content {
    margin: 5px;
    max-width: calc(100vw - 10px);
  }

  .upload-drop-zone {
    margin: 5px;
    padding: 15px 10px;
    min-height: 100px;
  }

  .spinner-border {
    width: 2rem;
    height: 2rem;
  }
}
