/* ---------------------------------- */
/* ACCESSIBILITY UTILITIES */
/* ---------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------------------------------- */
/* RTL (RIGHT-TO-LEFT) SUPPORT */
/* ---------------------------------- */
.rtl-content {
  direction: rtl;
  text-align: right;
  unicode-bidi: embed;
}

.rtl-content * {
  direction: rtl;
  text-align: right;
}

.rtl-content p,
.rtl-content div,
.rtl-content span {
  direction: rtl;
  text-align: right;
  unicode-bidi: embed;
}

.rtl-content ul,
.rtl-content ol {
  direction: rtl;
  text-align: right;
  padding-right: 1.5em;
  padding-left: 0;
}

.rtl-content li {
  direction: rtl;
  text-align: right;
}

/* For mixed content (Arabic + English) */
.rtl-content .ltr-text {
  direction: ltr;
  text-align: left;
  unicode-bidi: embed;
}

/* Ensure proper line height and spacing for Arabic */
.rtl-content {
  line-height: 1.8;
  letter-spacing: 0.02em;
}

/* ---------------------------------- */
/* SPINNER OVERLAY STYLES (Enhanced) */
/* ---------------------------------- */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px); /* Adds a modern glassmorphism effect */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.spinner-container {
  text-align: center;
}

.spinner {
  border: 8px solid #e0e0e0;
  border-top: 8px solid #007BFF;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

#spinner-message {
  font-size: 1rem;
  color: #333;
  font-weight: 500;
}

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

/* ---------------------------------- */
/* COPIED NOTIFICATION (Enhanced) */
/* ---------------------------------- */
.copied-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #28a745; /* Changed to a success green */
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.3s ease-in-out;
  opacity: 1;
}

.copied-notification.fade-out {
  animation: fadeOut 0.5s ease-in-out forwards;
}

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

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

/* ---------------------------------- */
/* RESET / BASE (Updated) */
/* ---------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; /* Modern font stack */
  background-color: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
  margin: 0;
}

/* Apply fade-in animation to body */
body.page-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.skip-to-content {
  position: absolute;
  top: -40px;
  left: 10px;
  background: #007BFF;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  z-index: 1000;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 10px;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

/* ---------------------------------- */
/* NAVBAR (Enhanced) */
/* ---------------------------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #007BFF, #00A3FF); /* Gradient for depth */
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Brand area */
.navbar__brand a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.navbar__logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

/* Logo image styling */
.navbar__logo-image {
  height: 70px;
  width: auto;
  margin-right: 10px;
}

/* Links container */
.navbar__links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  transition: max-height 0.3s ease;
}

/* Nav links */
.navbar__link {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: opacity 0.3s, transform 0.2s;
}

.navbar__link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* "Primary" link style */
.navbar__link--primary {
  background: #fff;
  color: #007BFF;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.navbar__link--primary:hover {
  background: #e6f0ff;
  color: #0056b3;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}



/* Hamburger Toggle (mobile) */
.navbar__toggle {
  display: none;
  font-size: 1.5rem;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s;
}

.navbar__toggle:hover {
  transform: rotate(90deg);
}

/* ---------------------------------- */
/* RESPONSIVE NAV LOGIC (Enhanced) */
/* ---------------------------------- */
@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1.5rem;
  }

  .navbar__links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #007BFF, #00A3FF);
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    padding: 0;
  }

  .navbar__links.is-active {
    max-height: 400px;
    opacity: 1;
    padding: 1rem 0;
  }

  .navbar__link {
    padding: 0.75rem 1.5rem;
    width: 100%;
    text-align: center;
  }

  .navbar__link--primary {
    margin: 0 1.5rem;
    width: auto;
  }

  .navbar__toggle {
    display: block;
  }
}

/* ---------------------------------- */
/* HERO SECTION (Enhanced) */
/* ---------------------------------- */
.hero {
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.7), rgba(0, 176, 255, 0.5)),
    url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: #fff;
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: 0;
}

.hero__content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero__subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

/* Optional CTA button in Hero */
.hero .btn--primary {
  background: #ff6f61; /* Coral color for contrast */
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.3s, transform 0.2s;
}

.hero .btn--primary:hover {
  background: #ff4f40;
  transform: translateY(-2px);
}

/* ---------------------------------- */
/* CONTAINER (Updated) */
/* ---------------------------------- */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem 3rem;
}

/* ---------------------------------- */
/* FEATURE SELECTION (Enhanced) */
/* ---------------------------------- */
.feature-selection {
  text-align: center;
  margin-bottom: 3rem;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9); /* Glassmorphism effect */
}

.feature-selection__title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e293b;
}

.feature-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn--feature {
  background: linear-gradient(135deg, #007BFF, #00A3FF); /* Align with primary color */
  color: #fff;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.3s;
}

.btn--feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* ---------------------------------- */
/* CARD LAYOUT (Enhanced) */
/* ---------------------------------- */
.card {
  background: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px); /* Glassmorphism */
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.card__title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e293b;
}

.card__info {
  margin-bottom: 1.5rem;
  color: #64748b;
  font-size: 1rem;
}

/* ---------------------------------- */
/* FORM GROUP (Enhanced) */
/* ---------------------------------- */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

label small {
  font-weight: normal;
  color: #64748b;
}

input[type="file"],
select,
input[type="text"],
input[type="password"],
input[type="email"] {
  display: block;
  margin-top: 0.25rem;
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="file"]:focus,
select:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: #007BFF;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* ---------------------------------- */
/* BUTTONS (Enhanced) */
/* ---------------------------------- */
.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.btn--primary {
  background: linear-gradient(135deg, #007BFF, #00A3FF);
  color: #fff;
}

.btn--primary:hover {
  background: linear-gradient(135deg, #0056b3, #0086cc);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn--secondary {
  background: #64748b;
  color: #fff;
}

.btn--secondary:hover {
  background: #4b5563;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

/* Modern button variants for hero */
.btn--primary-modern {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn--primary-modern::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 ease;
}

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

.btn--primary-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  text-decoration: none;
  color: white;
}

.btn--secondary-modern {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

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

.btn--secondary-modern:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: white;
}

.btn--ghost-modern {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

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

.btn--ghost-modern:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: white;
}

.btn__icon {
  font-size: 1.1rem;
}

/* ---------------------------------- */
/* ALERTS (Enhanced) */
/* ---------------------------------- */
.alert {
  padding: 12px 16px;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  font-weight: 500;
}

.alert--error {
  color: #9f1239;
  background: #ffe4e6;
  border: 1px solid #fecdd3;
}

/* ---------------------------------- */
/* RESULTS SECTION (Enhanced) */
/* ---------------------------------- */
.results-section__title {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 2rem 0 1.5rem;
  color: #1e293b;
}

.chat-container {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
  position: relative;
}

.chat-container::before {
  content: '🤖';
  position: absolute;
  top: -15px;
  left: 20px;
  font-size: 2rem;
  background: #fff;
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.assistant-message {
  background: #fff;
  color: #1e293b;
  padding: 1.5rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  white-space: pre-wrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.assistant-message h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.assistant-message ul {
  margin-left: 1.5rem;
  list-style-type: disc;
}

.copy-btn {
  margin-top: 0.5rem;
}

/* ---------------------------------- */
/* FOOTER (Enhanced) */
/* ---------------------------------- */
.main-footer {
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
  padding: 2rem 0;
  background: #f1f5f9;
  margin-top: 3rem;
  border-top: 1px solid #e2e8f0;
}

.main-footer a {
  color: #007BFF;
  text-decoration: none;
  transition: color 0.3s;
}

.main-footer a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* ---------------------------------- */
/* LOGIN PAGE HERO SECTION (Enhanced) */
/* ---------------------------------- */
.login-hero {
  background: linear-gradient(-45deg, #007BFF, #00A3FF, #0099E6, #0073CC);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: #fff;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.login-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
}

.login-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom right, transparent 49%, #f8fafc 51%);
  z-index: 1;
}

.login-hero__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.login-hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.login-hero__subtitle {
  font-size: 1.4rem;
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  line-height: 1.5;
}

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

/* Legacy video styles - now superseded by enhanced version below */

/* ---------------------------------- */
/* FEATURE PAGE STYLES (Enhanced) */
/* ---------------------------------- */
.card--features-intro {
  text-align: left;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.feature-item__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #007BFF;
}

.feature-icon {
  display: inline-block;
}

.feature-item__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-item__desc {
  color: #64748b;
}

.extended-features__list {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
}

.extended-features__list li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
  padding-left: 1.5rem;
  position: relative;
}

.extended-features__list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #28a745;
  font-size: 1rem;
}

.extended-features__list li strong {
  color: #007BFF;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------------------------------- */
/* PRICING PAGE STYLES (Enhanced) */
/* ---------------------------------- */
.card--pricing-intro {
  text-align: left;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
}

.pricing-tier {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-top: 4px solid #007BFF;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-tier:nth-child(1) { border-top-color: #007BFF; }
.pricing-tier:nth-child(2) { border-top-color: #28a745; }
.pricing-tier:nth-child(3) { border-top-color: #6f42c1; }

.pricing-tier:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.pricing-tier__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pricing-tier__subtitle {
  color: #64748b;
  margin-bottom: 1.5rem;
  font-style: italic;
  font-size: 0.95rem;
}

.pricing-tier__features {
  text-align: left;
  list-style: disc;
  margin: 0 auto 1.5rem auto;
  max-width: 300px;
  padding-left: 1.5rem;
}

.pricing-tier__features li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
  color: #1e293b;
}

.pricing-tier__price {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 1.5rem 0;
  color: #1e293b;
}

.pricing-tier__price span {
  display: block;
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------------------------------- */
/* POLICY PAGES (Privacy Policy, Terms of Use) */
/* ---------------------------------- */
.policy-section {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.policy-section__title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.5rem;
  text-align: center;
}

.policy-section__intro {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.policy-section__intro strong {
  font-weight: 600;
}

.policy-section__subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2563eb;
  margin: 2rem 0 1rem;
}

.policy-section__text {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.policy-section__text a {
  color: #2563eb;
  text-decoration: none;
}

.policy-section__text a:hover {
  text-decoration: underline;
}

.policy-section__list {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  list-style: disc;
}

.policy-section__list li {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.policy-section__list li strong {
  font-weight: 600;
}

.policy-section__hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 2rem 0;
}

.policy-section__footer {
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
  margin-top: 2rem;
}
/* Legacy testimonials styles - now superseded by enhanced version below */

/* Fade-in Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accessibility: Disable Animations for Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .testimonial {
    animation: none;
    opacity: 1;
  }
}
/* Legacy empowerment styles - now superseded by enhanced version below */

/* --- Enhanced Look and Feel - Appended Styles --- */

/* General Body and Typography Enhancements */
body {
  font-family: 'Roboto', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; /* Modern, clean font stack */
  background-color: #f4f6f8; /* Slightly softer background */
  color: #333e48; /* Darker, more readable text */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1140px; /* Consistent max-width for content */
}

/* Improved Link Styling */
a {
  color: #0067c0; /* Slightly adjusted primary link color */
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover, a:focus {
  color: #004c8f; /* Darker hover/focus color */
  text-decoration: underline;
}

/* Enhanced Focus States for Accessibility */
*:focus-visible {
  outline: 3px solid #007bff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.25);
}

/* Card Enhancements */
.card {
  background-color: #ffffff;
  border: 1px solid #e1e8ed; /* Softer border */
  border-radius: 10px; /* Slightly more rounded corners */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07); /* Softer, more modern shadow */
  transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Enhanced hover shadow */
}

.card__title {
  color: #2c3e50; /* Richer title color */
}

/* Button Enhancements */
.btn {
  border-radius: 8px; /* Consistent rounded corners for buttons */
  font-weight: 500; /* Slightly less bold, more modern */
  padding: 0.8rem 1.75rem; /* Adjusted padding */
  transition: background-color 0.2s ease-in-out, transform 0.15s ease-in-out, box-shadow 0.2s ease-in-out;
}

.btn--primary {
  background: linear-gradient(145deg, #007bff, #0056b3);
  box-shadow: 0 2px 5px rgba(0, 91, 179, 0.2);
}

.btn--primary:hover, .btn--primary:focus {
  background: linear-gradient(145deg, #0069d9, #004085);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 91, 179, 0.3);
}

.btn--secondary {
  background-color: #6c757d;
  border-color: #6c757d;
  box-shadow: 0 2px 5px rgba(108, 117, 125, 0.2);
}

.btn--secondary:hover, .btn--secondary:focus {
  background-color: #5a6268;
  border-color: #545b62;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(108, 117, 125, 0.3);
}

/* Form Element Enhancements */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="file"],
select,
textarea {
  border-radius: 6px;
  border: 1px solid #ced4da;
  padding: 0.75rem 1rem; /* Comfortable padding */
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="file"]:focus,
select:focus,
textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* Bootstrap-like focus shadow */
}

/* Navbar Enhancements */
.navbar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Softer shadow */
  background: #ffffff; /* Cleaner white background */
  border-bottom: 1px solid #e9ecef;
}

.navbar__logo-text {
  color: #2c3e50; /* Darker logo text for white background */
}

.navbar__link {
  color: #495057; /* Darker nav links for white background */
  font-weight: 500;
}

.navbar__link:hover, .navbar__link:focus {
  color: #0056b3;
}

.navbar__link--primary {
  background-color: #007bff;
  color: #ffffff;
}

.navbar__link--primary:hover, .navbar__link--primary:focus {
  background-color: #0056b3;
  color: #ffffff;
}

.navbar__toggle {
  color: #2c3e50; /* Darker toggle for white background */
}

/* Responsive Navbar links background */
@media (max-width: 768px) {
  .navbar__links {
    background: #ffffff; /* White background for dropdown */
    border-top: 1px solid #e9ecef;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  }
  .navbar__link {
    color: #495057; /* Ensure links are dark on white */
  }
}

/* Hero Section Enhancements */
.hero {
  padding: 4rem 1.5rem; /* Adjusted padding */
}

.hero__title {
  font-size: 2.8rem; /* Slightly adjusted size */
  color: #fff;
}

.hero__subtitle {
  font-size: 1.3rem; /* Slightly adjusted size */
  color: #f8f9fa;
  opacity: 0.9;
}

/* Footer Enhancements */
.main-footer {
  background-color: #343a40; /* Darker footer */
  color: #f8f9fa; /* Lighter text for dark footer */
  padding: 2.5rem 0;
  border-top: 3px solid #007bff;
}

.main-footer a {
  color: #80bdff; /* Lighter link color for dark footer */
}

.main-footer a:hover, .main-footer a:focus {
  color: #ffffff;
}

/* Login Page Specific Enhancements - Hero */
.login-hero {
  padding: 4rem 1.5rem;
}

.login-hero__title {
  font-size: 2.5rem;
}

.login-hero__subtitle {
  font-size: 1.2rem;
}

/* Testimonials Section Enhancements */
.testimonials {
  padding: 2rem 0;
}

.testimonials__title {
  color: #2c3e50;
  margin-bottom: 2rem;
}

.testimonial {
  background-color: #fff;
  border: 1px solid #e1e8ed;
  border-left: 5px solid #007bff;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.testimonial__image {
  border: 3px solid #007bff;
}

/* Empower Learners & Accessibility Sections on Login Page */
.empower-learners, .additional-empowerment-content, .sign-language-accessibility {
  padding: 2.5rem 1.5rem;
  margin-top: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.07);
}

.empower-learners {
  background-color: #e9f5ff; /* Light blue tint */
}

.additional-empowerment-content {
  background-color: #f8f9fa; /* Light grey tint */
}

.sign-language-accessibility {
  background-color: #e6f7ff; /* Another light blue tint */
}

/* Ensure appended styles don't break existing layout too much */
/* This is a general approach; specific overrides might be needed after testing */




/* --- Animations and Enhanced Visual Appeal for New Login Page Sections --- */

/* Keyframes for subtle fade-in and upward movement */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply animation to the new sections */
.additional-empowerment-content,
.sign-language-accessibility {
  animation: fadeInUp 0.8s ease-out forwards;
  /* Ensure sections are initially hidden if JS is disabled or animation doesn't run */
  opacity: 0; 
  animation-fill-mode: forwards; /* Keeps the state of the last keyframe */
}

/* Styling for the images within the new sections */
.additional-empowerment-content img,
.sign-language-accessibility img {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  max-width: 90%; /* Ensure image is not too overwhelming */
  margin-bottom: 1.5rem; /* Add some space below the image */
}

.additional-empowerment-content img:hover,
.sign-language-accessibility img:hover {
  transform: scale(1.05); /* Slight zoom effect on hover */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

/* Refined text styling for better readability and appeal in new sections */
.additional-empowerment-content__title,
.sign-language-accessibility__title {
  color: #2c3e50; /* Darker, more professional title color */
  position: relative;
  padding-bottom: 0.5rem;
}

.additional-empowerment-content__title::after,
.sign-language-accessibility__title::after {
  content: \'\';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #007bff; /* Accent color underline */
  border-radius: 2px;
}

.additional-empowerment-content__text,
.sign-language-accessibility__text {
  color: #5a6268; /* Softer text color for paragraphs */
  font-size: 1.1rem; /* Slightly increased font size for readability */
}

/* Adding a subtle hover effect to the section itself for interactivity */
.additional-empowerment-content:hover,
.sign-language-accessibility:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* More pronounced shadow on section hover */
}

/* Enhanced Login Form Container */
.login-container {
  max-width: 450px;
  margin: -2rem auto 3rem;
  position: relative;
  z-index: 10;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 8px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.08);
}

.login-card__title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: #1e293b;
  position: relative;
}

.login-card__title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #007BFF, #00A3FF);
  border-radius: 2px;
}

/* Enhanced Form Styling */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #374151;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: #007BFF;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
  transform: translateY(-1px);
}

.form-input:focus + .form-icon {
  color: #007BFF;
}

/* Input Icons */
.form-group-with-icon {
  position: relative;
}

.form-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  pointer-events: none;
}

/* Enhanced Button Styling */
.btn--login {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #007BFF, #00A3FF);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: 0.025em;
  margin-top: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn--login:hover {
  background: linear-gradient(135deg, #0056b3, #0086cc);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.btn--login:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Sign up link styling */
.login-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.login-footer p {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.login-footer a {
  color: #007BFF;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.login-footer a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Enhanced Video Section */
.video-section {
  margin: 4rem auto;
  text-align: center;
  max-width: 800px;
  padding: 0 1.5rem;
}

.video-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1e293b;
  position: relative;
}

.video-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #007BFF, #00A3FF);
  border-radius: 2px;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  margin-top: 2rem;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

/* Enhanced Testimonials */
.testimonials {
  margin: 5rem auto;
  text-align: center;
  max-width: 1200px;
  padding: 0 1.5rem;
}

.testimonials__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #1e293b;
  position: relative;
}

.testimonials__title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #007BFF, #00A3FF);
  border-radius: 2px;
}

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

.testimonial {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  text-align: left;
  position: relative;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.testimonial:nth-child(1) { animation-delay: 0.2s; }
.testimonial:nth-child(2) { animation-delay: 0.4s; }
.testimonial:nth-child(3) { animation-delay: 0.6s; }

.testimonial:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: #007BFF;
  font-family: Georgia, serif;
  opacity: 0.3;
}

.testimonial__header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.testimonial__image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
  border: 3px solid #007BFF;
  object-fit: cover;
}

.testimonial__info {
  flex: 1;
}

.testimonial__name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.testimonial__title {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0.25rem 0 0;
}

.testimonial__quote {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #374151;
  font-style: italic;
  margin: 0;
}

/* Enhanced Empowerment Section */
.empower-learners {
  margin: 5rem auto;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 1200px;
}

.empower-learners::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 123, 255, 0.05) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
}

.empower-learners__content {
  position: relative;
  z-index: 2;
}

.empower-learners__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1e293b;
  position: relative;
}

.empower-learners__title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #007BFF, #00A3FF);
  border-radius: 2px;
}

.empower-learners__text {
  font-size: 1.2rem;
  color: #4b5563;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.empower-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.empower-learners__image {
  position: relative;
}

.empower-learners__image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.empower-learners__image:hover img {
  transform: scale(1.05);
}

.empower-learners__quote {
  text-align: left;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.quote-text {
  font-size: 1.3rem;
  font-style: italic;
  color: #374151;
  margin-bottom: 1rem;
  line-height: 1.6;
  position: relative;
}

.quote-text::before {
  content: '"';
  font-size: 2rem;
  color: #007BFF;
  position: absolute;
  left: -20px;
  top: -5px;
}

.quote-author {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

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

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

/* Enhanced Universal Learning Section */
.additional-empowerment-content {
  margin: 5rem auto !important;
  padding: 4rem 2rem !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9)) !important;
  backdrop-filter: blur(20px) !important;
  border-radius: 24px !important;
  text-align: center !important;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  position: relative !important;
  overflow: hidden !important;
  max-width: 1200px !important;
}

.additional-empowerment-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #007BFF, #00A3FF, #007BFF);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.additional-empowerment-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 16px !important;
  margin-bottom: 2rem !important;
  max-height: 400px !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1) !important;
  transition: transform 0.3s ease !important;
}

.additional-empowerment-content img:hover {
  transform: scale(1.02) !important;
}

.additional-empowerment-content__title {
  font-size: 2.5rem !important;
  color: #1f2937 !important;
  margin-bottom: 1.5rem !important;
  font-weight: 700 !important;
  position: relative !important;
}

.additional-empowerment-content__title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, #007BFF, #00A3FF);
  border-radius: 2px;
}

.additional-empowerment-content__text {
  font-size: 1.2rem !important;
  color: #4b5563 !important;
  line-height: 1.8 !important;
  max-width: 800px !important;
  margin: 0 auto !important;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .login-hero__title {
    font-size: 2.5rem;
  }

  .login-hero__subtitle {
    font-size: 1.2rem;
  }

  .login-container {
    margin: -1rem auto 2rem;
    padding: 0 1rem;
  }

  .login-card {
    padding: 2rem 1.5rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .empower-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .empower-learners__quote {
    text-align: center;
  }

  .empower-learners__title,
  .additional-empowerment-content__title {
    font-size: 2rem !important;
  }

  .testimonials__title {
    font-size: 2rem;
  }
}

/* ---------------------------------- */
/* ENHANCED STREAMING UX STYLES */
/* ---------------------------------- */

/* Scroll lock during processing */
body.scroll-locked {
  overflow: hidden;
  height: 100vh;
}

/* Processing indicator styling */
.processing-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-radius: 12px;
  border: 2px dashed #007BFF;
  color: #1e293b;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  margin: 1rem 0;
  animation: pulseGlow 2s ease-in-out infinite;
}

.processing-indicator i {
  font-size: 1.5rem;
  color: #007BFF;
  animation: spin 2s linear infinite;
}

.processing-indicator i::before {
  content: "🤖";
  font-style: normal;
}

@keyframes pulseGlow {
  0%, 100% { 
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.1);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.2);
    transform: scale(1.02);
  }
}

/* Enhanced results section focus */
.results-section {
  scroll-margin-top: 2rem;
  transition: all 0.3s ease;
}

.results-section.streaming-active {
  background: rgba(0, 123, 255, 0.02);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(0, 123, 255, 0.1);
}

/* Form disabled state styling */
.form-disabled {
  pointer-events: none !important;
  opacity: 0.7 !important;
  transition: opacity 0.3s ease;
}

/* Enhanced spinner overlay for better UX */
.spinner-overlay {
  backdrop-filter: blur(8px) !important;
  background: rgba(255, 255, 255, 0.95) !important;
}

.spinner-overlay .spinner-container {
  transform: translateY(-20px);
}

/* Smooth content updates */
.assistant-message {
  transition: all 0.2s ease;
}

/* Mobile optimizations for scroll lock */
@media (max-width: 768px) {
  body.scroll-locked {
    overflow: hidden;
    height: 100vh;
  }
  
  .processing-indicator {
    padding: 1.5rem 1rem;
    font-size: 1rem;
  }
  
  .processing-indicator i {
    font-size: 1.25rem;
  }
}

/* ================================== */
/* MODERN UI COMPONENTS - 2024 UPDATE */
/* ================================== */

/* Modern Navbar */
.navbar-modern {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-modern__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.navbar-modern__brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #1e293b;
  font-weight: 700;
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.navbar-modern__brand-link:hover {
  transform: translateY(-1px);
  text-decoration: none;
  color: #1e293b;
}

.navbar-modern__logo {
  height: 50px;
  width: auto;
  border-radius: 8px;
}

.navbar-modern__text {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.navbar-modern__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.navbar-modern__toggle:hover {
  background: rgba(102, 126, 234, 0.1);
}

.navbar-modern__toggle-line {
  width: 24px;
  height: 3px;
  background: #667eea;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.navbar-modern__toggle.is-active .navbar-modern__toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-modern__toggle.is-active .navbar-modern__toggle-line:nth-child(2) {
  opacity: 0;
}

.navbar-modern__toggle.is-active .navbar-modern__toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar-modern__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-modern__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-modern__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.navbar-modern__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar-modern__link:hover::before {
  opacity: 1;
}

.navbar-modern__link:hover {
  color: #667eea;
  text-decoration: none;
  transform: translateY(-1px);
}

.navbar-modern__link[aria-current="page"] {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.navbar-modern__link-icon {
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.navbar-modern__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-modern__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.navbar-modern__user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.navbar-modern__user-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.navbar-modern__user-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.9rem;
}

.navbar-modern__user-plan {
  font-size: 0.75rem;
  color: #64748b;
}

.navbar-modern__button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-size: 0.9rem;
}

.navbar-modern__button::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 ease;
}

.navbar-modern__button:hover::before {
  left: 100%;
}

.navbar-modern__button--primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.navbar-modern__button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  text-decoration: none;
  color: white;
}

.navbar-modern__button--secondary {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.navbar-modern__button--secondary:hover {
  background: rgba(100, 116, 139, 0.15);
  color: #475569;
  transform: translateY(-1px);
  text-decoration: none;
}

.navbar-modern__button--ghost {
  background: transparent;
  color: #667eea;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.navbar-modern__button--ghost:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #5a67d8;
  transform: translateY(-1px);
  text-decoration: none;
}

.navbar-modern__button-icon {
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .navbar-modern__container {
    height: 70px;
    padding: 0 1rem;
  }

  .navbar-modern__toggle {
    display: flex;
  }

  .navbar-modern__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    gap: 0;
    padding: 1.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
  }

  .navbar-modern__nav.is-active {
    max-height: 400px;
    opacity: 1;
  }

  .navbar-modern__links {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 1rem;
  }

  .navbar-modern__link {
    width: 100%;
    justify-content: flex-start;
    padding: 1rem;
    border-radius: 12px;
  }

  .navbar-modern__actions {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .navbar-modern__user {
    width: 100%;
    justify-content: flex-start;
    padding: 1rem;
  }

  .navbar-modern__button {
    width: 100%;
    justify-content: center;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .navbar-modern__brand-link {
    font-size: 1.1rem;
  }

  .navbar-modern__logo {
    height: 40px;
  }

  .navbar-modern__user {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .navbar-modern__user-info {
    align-items: center;
  }
}

/* Clean Hero Section */
.hero-clean {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-clean::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  z-index: 1;
}

.hero-clean__content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-clean__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-clean__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-clean__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-clean__welcome {
  margin-bottom: 2rem;
}

.hero-clean__usage {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-top: 1.5rem;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.usage-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffd700;
}

/* Clean button styles */
.btn--primary-clean {
  background: rgba(255, 255, 255, 0.95);
  color: #667eea;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.btn--primary-clean:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: #5a67d8;
}

.btn--ghost-clean {
  background: transparent;
  color: white;
  padding: 1rem 2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn--ghost-clean:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

/* Modern Container */
.container-modern {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* Modern Feature Selection */
.feature-selection-modern {
  margin-bottom: 6rem;
  text-align: center;
}

.feature-selection-modern__header {
  margin-bottom: 3rem;
}

.feature-selection-modern__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-selection-modern__subtitle {
  font-size: 1.2rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.feature-cards-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card-modern {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.feature-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card-modern:hover::before {
  transform: scaleX(1);
}

.feature-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  border-color: rgba(102, 126, 234, 0.3);
}

.feature-card-modern:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.feature-card-modern__icon {
  flex-shrink: 0;
}

.feature-card-modern__icon-bg {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.feature-card-modern__icon-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent);
}

.feature-card-modern__icon-bg--secondary {
  background: linear-gradient(135deg, #fd79a8, #fdcb6e);
}

.feature-card-modern__emoji {
  font-size: 2rem;
  position: relative;
  z-index: 1;
}

.feature-card-modern__content {
  flex: 1;
  text-align: left;
}

.feature-card-modern__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.feature-card-modern__description {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.feature-card-modern__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.feature-tag {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.feature-tag--secondary {
  background: rgba(253, 121, 168, 0.1);
  color: #fd79a8;
  border-color: rgba(253, 121, 168, 0.2);
}

.feature-card-modern__arrow {
  flex-shrink: 0;
  color: #64748b;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.feature-card-modern:hover .feature-card-modern__arrow {
  opacity: 1;
  transform: translateX(4px);
  color: #667eea;
}

/* Modern Form Sections */
.form-section-modern {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 32px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.form-section-modern__header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.form-section-modern__icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.form-section-modern__icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent);
}

.form-section-modern__icon span {
  position: relative;
  z-index: 1;
}

.form-section-modern__title-group {
  flex: 1;
}

.form-section-modern__title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-section-modern__subtitle {
  font-size: 1.1rem;
  color: #64748b;
  line-height: 1.6;
}

/* Modern Form Steps */
.form-steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.form-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -1rem;
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  opacity: 0.3;
}

.form-step__number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-step__label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  text-align: center;
}

/* Modern Form Groups */
.form-modern {
  max-width: 100%;
}

.form-group-modern {
  margin-bottom: 2rem;
}

.form-row-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.form-label-modern {
  display: block;
  margin-bottom: 0.75rem;
}

.form-label-modern__text {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.form-label-modern__hint {
  display: block;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: normal;
}

.form-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.form-link:hover {
  text-decoration: underline;
}

/* Modern File Upload */
.file-upload-modern {
  position: relative;
}

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

.file-upload-modern__area {
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  background: rgba(248, 250, 252, 0.5);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.file-upload-modern__area::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: left 0.5s ease;
}

.file-upload-modern__input:hover + .file-upload-modern__area,
.file-upload-modern__area:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.file-upload-modern__input:hover + .file-upload-modern__area::before {
  left: 100%;
}

.file-upload-modern__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.file-upload-modern__text {
  font-size: 1.1rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.file-upload-modern__hint {
  font-size: 0.9rem;
  color: #64748b;
}

/* Modern Select */
.select-modern {
  position: relative;
}

.select-modern__input {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: white;
  transition: all 0.3s ease;
  appearance: none;
  cursor: pointer;
}

.select-modern__input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.select-modern__icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.select-modern__input:focus + .select-modern__icon {
  transform: translateY(-50%) rotate(180deg);
  color: #667eea;
}

/* Accessibility Options */
.accessibility-options {
  display: grid;
  gap: 1rem;
}

.accessibility-option {
  position: relative;
}

.accessibility-option__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.accessibility-option__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.accessibility-option__label::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.accessibility-option__input:checked + .accessibility-option__label {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.accessibility-option__input:checked + .accessibility-option__label::before {
  opacity: 1;
}

.accessibility-option__label:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.accessibility-option__icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.accessibility-option__content {
  flex: 1;
  text-align: left;
}

.accessibility-option__title {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.accessibility-option__desc {
  display: block;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.4;
}

/* Level Options */
.level-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.level-option {
  position: relative;
  cursor: pointer;
}

.level-option__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.level-option__label {
  display: block;
  padding: 1.5rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: white;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.level-option__label::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.level-option__input:checked + .level-option__label {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.level-option__input:checked + .level-option__label::before {
  opacity: 1;
}

.level-option__label:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.level-option__title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 1;
}

.level-option__desc {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  position: relative;
  z-index: 1;
}

/* Modern Buttons */
.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 200px;
  justify-content: center;
}

.btn-modern::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 ease;
}

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

.btn-modern--primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-modern--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-modern--secondary {
  background: linear-gradient(135deg, #fd79a8, #fdcb6e);
  color: white;
  box-shadow: 0 4px 15px rgba(253, 121, 168, 0.3);
}

.btn-modern--secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(253, 121, 168, 0.4);
}

.btn-modern--ghost {
  background: rgba(255, 255, 255, 0.9);
  color: #667eea;
  border: 2px solid rgba(102, 126, 234, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-modern--ghost:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.btn-modern__icon {
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.btn-modern__text {
  position: relative;
  z-index: 1;
}

.btn-modern__loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  opacity: 0;
  z-index: 2;
}

.btn-modern:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.btn-modern:disabled .btn-modern__loader {
  opacity: 1;
}

.btn-modern:disabled .btn-modern__icon,
.btn-modern:disabled .btn-modern__text {
  opacity: 0;
}

/* Modern Alert */
.alert-modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  font-weight: 500;
}

.alert-modern--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #dc2626;
}

.alert-modern__icon {
  font-size: 1.2rem;
}

.alert-modern__message {
  flex: 1;
}

/* Modern Results Section */
.results-section-modern {
  margin-top: 4rem;
  scroll-margin-top: 2rem;
}

.results-section-modern__header {
  text-align: center;
  margin-bottom: 3rem;
}

.results-section-modern__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.results-section-modern__icon {
  font-size: 2rem;
}

.results-section-modern__subtitle {
  font-size: 1.2rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.results-container-modern {
  max-width: 1000px;
  margin: 0 auto;
}

.results-content-modern {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.results-content-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.results-content-modern__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.results-content-modern__badge {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.results-content-modern__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #10b981;
  font-weight: 500;
}

.results-content-modern__status-icon {
  font-size: 1.2rem;
}

.assistant-message-modern {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.5);
  line-height: 1.7;
  color: #374151;
  font-size: 1rem;
  white-space: pre-wrap;
  min-height: 100px;
  position: relative;
  overflow: hidden;
}

.assistant-message-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.results-actions-modern {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) rotate(1deg);
  }
  66% {
    transform: translateY(-20px) rotate(-1deg);
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-clean {
    padding: 4rem 1rem 3rem;
  }

  .hero-clean__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .hero-clean__subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .hero-clean__actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .btn--primary-clean,
  .btn--ghost-clean {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .feature-cards-modern {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card-modern {
    padding: 1.5rem;
    flex-direction: column;
    text-align: center;
  }

  .feature-card-modern__content {
    text-align: center;
  }

  .form-section-modern {
    padding: 2rem 1.5rem;
    border-radius: 24px;
  }

  .form-section-modern__header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .form-row-modern {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .form-steps {
    flex-direction: column;
    gap: 1rem;
  }

  .form-step:not(:last-child)::after {
    display: none;
  }

  .accessibility-options {
    gap: 1rem;
  }

  .accessibility-option__label {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }

  .level-options {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .results-actions-modern {
    flex-direction: column;
  }

  .container-modern {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero-modern__badge,
  .hero-modern__features {
    display: none;
  }

  .hero-modern__title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-modern__subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .file-upload-modern__area {
    padding: 2rem 1rem;
  }

  .form-section-modern {
    padding: 1.5rem 1rem;
  }
}

