/* ===== CONSUMER PROTECTION PLATFORM - REDESIGN CSS ===== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap");

/* ===== CSS RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2d3748;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #1a202c;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1e40af;
  text-decoration: none;
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 85vh;
  background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #312e81 100%);
  background-image: 
    linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(55, 48, 163, 0.95) 50%, rgba(49, 46, 129, 0.95) 100%),
    url('../img/top-search2.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.3);
  z-index: 0;
}

.hero-content {
  z-index: 1;
}

.hero-header {
  padding: 1.5rem 0 3rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hero-nav {
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
  align-items: center;
}

.nav-link-hero {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link-hero:hover {
  color: #ffffff;
}

.hero-main {
  padding: 3rem 0 5rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-weight: 400;
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.btn-hero {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: #10b981;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.125rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-hero:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  color: #ffffff;
}

.hero-disclaimer {
  margin-top: 2.5rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
}

.hero-disclaimer small {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

/* ===== SECTION COMMONS ===== */
section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #64748b;
  font-weight: 400;
}

/* ===== PROBLEM NAVIGATION SECTION ===== */
.problem-navigation-section {
  background: #f8fafc;
}

.problem-cards {
  margin-top: 2rem;
}

.problem-card {
  display: block;
  background: #ffffff;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  height: 100%;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  text-decoration: none;
}

.problem-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
  transform: translateY(-5px);
  text-decoration: none;
}

.problem-card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.problem-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

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

.problem-card-link {
  display: inline-block;
  color: #3b82f6;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.problem-card:hover .problem-card-link {
  color: #2563eb;
}

/* ===== TRUST BLOCK SECTION ===== */
.trust-block-section {
  background: #ffffff;
}

.trust-pillars {
  margin-top: 3rem;
  margin-bottom: 4rem;
}

.trust-pillar {
  padding: 0 1.5rem;
}

.trust-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.trust-pillar-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.trust-pillar-description {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.7;
}

.trust-disclaimers {
  margin-top: 4rem;
}

.disclaimer-box {
  background: #fef3c7;
  border: 2px solid #fbbf24;
  border-radius: 1rem;
  padding: 2.5rem;
}

.disclaimer-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 1.5rem;
}

.disclaimer-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.disclaimer-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(251, 191, 36, 0.3);
  color: #78350f;
  font-size: 1rem;
  line-height: 1.6;
}

.disclaimer-list li:last-child {
  border-bottom: none;
}

.disclaimer-footer {
  font-size: 0.95rem;
  color: #92400e;
  margin-bottom: 0;
}

.disclaimer-footer a {
  color: #92400e;
  text-decoration: underline;
  font-weight: 600;
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works-section {
  background: #f8fafc;
}

.how-it-works-steps {
  margin-top: 3rem;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

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

/* ===== RESOURCES SECTION ===== */
.resources-section {
  background: #ffffff;
}

.resource-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
}

.resource-box-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.resource-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.resource-list li {
  margin-bottom: 1rem;
}

.resource-list li a {
  color: #475569;
  font-size: 1rem;
  transition: color 0.2s ease;
  display: block;
  padding: 0.5rem 0;
}

.resource-list li a:hover {
  color: #3b82f6;
  padding-left: 0.5rem;
}

.resource-link {
  color: #3b82f6;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.resource-link:hover {
  color: #2563eb;
}

.cta-box {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 1rem;
  padding: 3rem 2rem;
  margin-top: 2rem;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
}

.btn-primary-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: #ffffff;
  color: #2563eb;
  font-weight: 600;
  font-size: 1.125rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-primary-cta:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  color: #1e40af;
}

/* ===== TOOLS SECTION ===== */
.tools-section {
  background: #f8fafc;
}

.tools-intro-box {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2.5rem;
}

.tools-intro-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2rem;
}

.tools-features-list {
  list-style: none;
  padding-left: 0;
}

.tools-features-list li {
  padding: 0.75rem 0;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.6;
}

.tools-disclaimer {
  background: #fef3c7;
  border-left: 4px solid #fbbf24;
  padding: 1.5rem;
  margin-top: 2rem;
  border-radius: 0.5rem;
}

.tools-disclaimer p {
  color: #78350f;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.tools-disclaimer p:last-child {
  margin-bottom: 0;
}

.tool-selection {
  margin-top: 3rem;
}

.tool-card {
  display: block;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.tool-card:hover {
  border-color: #10b981;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
  transform: translateY(-5px);
  text-decoration: none;
}

.tool-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.tool-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.tool-card-desc {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 0;
}

.tools-footer-note {
  color: #64748b;
  font-size: 0.9rem;
}

.tools-footer-note a {
  color: #3b82f6;
  text-decoration: underline;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
  background: #ffffff;
}

.testimonials {
  margin-top: 3rem;
}

.testimonial-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
}

.testimonial-rating {
  color: #fbbf24;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 0;
}

.testimonials-note {
  color: #64748b;
  font-size: 1rem;
  margin-top: 2rem;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background: #f8fafc;
}

.about-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.about-text {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.about-list li {
  padding: 0.75rem 0 0.75rem 2rem;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.6;
  position: relative;
}

.about-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 700;
  font-size: 1.25rem;
}

.about-values-box {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2.5rem;
}

.about-values-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2rem;
}

.value-item {
  margin-bottom: 2rem;
}

.value-item:last-child {
  margin-bottom: 0;
}

.value-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 0.5rem;
}

.value-desc {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===== FOOTER SECTION ===== */
.footer-section {
  background: #1e293b;
  color: #cbd5e1;
  padding: 4rem 0 2rem;
}

.footer-disclaimers {
  background: #0f172a;
  border-radius: 1rem;
  padding: 2.5rem;
  margin-bottom: 3rem;
}

.footer-disclaimer-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 2rem;
}

.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-disclaimer-box h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 1rem;
}

.footer-disclaimer-box p {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.footer-disclaimer-box ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0.5rem;
}

.footer-disclaimer-box ul li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  color: #cbd5e1;
  font-size: 0.9rem;
  position: relative;
}

.footer-disclaimer-box ul li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #fbbf24;
  font-size: 1.2rem;
}

.footer-accuracy-notice {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.footer-accuracy-notice h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fca5a5;
  margin-bottom: 1rem;
}

.footer-accuracy-notice p {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-nav-section {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.footer-nav-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 1.25rem;
}

.footer-nav-list {
  list-style: none;
  padding-left: 0;
}

.footer-nav-list li {
  margin-bottom: 0.75rem;
}

.footer-nav-list li a {
  color: #cbd5e1;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-nav-list li a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 2rem;
}

.footer-copyright {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.footer-address {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0;
}

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

.footer-link {
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
}

.separator {
  color: #64748b;
}

.footer-final-notice {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-final-notice p {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: center;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1199px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 991px) {
  .hero-section {
    min-height: auto;
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.15rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .footer-privacy-links {
    justify-content: flex-start;
    margin-top: 1rem;
  }
}

@media (max-width: 767px) {
  section {
    padding: 3rem 0;
  }
  
  .hero-nav {
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
  }
  
  .hero-title {
    font-size: 1.85rem;
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .problem-card {
    padding: 2rem 1.5rem;
  }
  
  .cta-box {
    padding: 2rem 1.5rem;
  }
  
  .cta-title {
    font-size: 1.5rem;
  }
  
  .disclaimer-box {
    padding: 1.5rem;
  }
  
  .footer-disclaimers {
    padding: 1.5rem;
  }
  
  .footer-privacy-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .separator {
    display: none;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

/* ===== SMOOTH ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ===== PHASE 1 CONVERSION OPTIMIZATIONS ===== */

/* Social Proof Statistics Bar */
.social-proof-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
  padding: 3rem 0;
  border-bottom: 1px solid #e2e8f0;
}

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

.stat-item {
  padding: 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #3b82f6;
  line-height: 1;
  margin-bottom: 0.5rem;
  animation: countUp 1s ease-out;
}

.stat-label {
  font-size: 1rem;
  color: #64748b;
  font-weight: 500;
}

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

/* Trust Badges in Hero */
.trust-badges-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.trust-badge:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Trending Badges on Cards */
.trending-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: #ffffff;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

.trending-badge-warning {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.trending-badge-urgent {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
  animation: urgentPulse 1s ease-in-out infinite;
}

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

@keyframes urgentPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

/* Enhanced Problem Cards */
.problem-card {
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 197, 253, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.problem-card:hover::before {
  opacity: 1;
}

.problem-card:hover .problem-card-link {
  color: #2563eb;
  transform: translateX(5px);
}

.problem-card-link {
  transition: all 0.3s ease;
  display: inline-block;
}

/* Enhanced Testimonials */
.testimonials-section {
  background: #ffffff;
  padding: 5rem 0;
}

.testimonial-card {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}

.testimonial-rating {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #f59e0b;
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.testimonial-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.testimonials-cta {
  font-size: 1.125rem;
  color: #475569;
  line-height: 1.7;
}

.testimonials-cta strong {
  color: #1e293b;
  font-size: 1.25rem;
}

.btn-secondary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 1rem 2.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  color: #ffffff;
  text-decoration: none;
}

/* Mobile Responsiveness for New Elements */
@media (max-width: 767px) {
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
  
  .trust-badges-hero {
    gap: 0.5rem;
  }
  
  .trust-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
  
  .trending-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .testimonials-cta strong {
    font-size: 1.1rem;
  }
}

/* ===== PHASE 2: PROFESSIONAL ICONS ===== */

/* Font Awesome Icon Styling */
.problem-card-icon i,
.trust-icon i,
.tool-card-icon i {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: inherit;
}

.problem-card:hover .problem-card-icon i {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: iconPulse 0.6s ease-in-out;
}

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

/* Trust Icon Specific Styling */
.trust-icon i {
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tool Card Icon Styling */
.tool-card-icon i {
  transition: all 0.3s ease;
}

.tool-card:hover .tool-card-icon i {
  transform: scale(1.15) rotate(5deg);
}

/* ===== PHASE 2: FAQ ACCORDION ===== */

.faq-section {
  background: #f8fafc;
  padding: 5rem 0;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #3b82f6;
}

.faq-header {
  margin: 0;
}

.faq-button {
  width: 100%;
  padding: 1.5rem;
  background: #ffffff;
  border: none;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.faq-button:hover {
  background: #f8fafc;
}

.faq-button i.fa-question-circle,
.faq-button i.fa-user-secret,
.faq-button i.fa-check-double,
.faq-button i.fa-balance-scale,
.faq-button i.fa-shield-alt,
.faq-button i.fa-database {
  color: #3b82f6;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.faq-button span {
  flex-grow: 1;
}

.faq-arrow {
  color: #64748b;
  font-size: 0.875rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-button:not(.collapsed) .faq-arrow {
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 1.5rem 1.5rem 4rem;
  color: #475569;
  line-height: 1.7;
  font-size: 1.05rem;
}

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

.faq-body strong {
  color: #1e293b;
}

.faq-body ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

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

.faq-body a {
  color: #3b82f6;
  font-weight: 600;
  text-decoration: none;
}

.faq-body a:hover {
  text-decoration: underline;
}

.faq-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 1rem;
}

.faq-cta-text {
  font-size: 1.25rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.faq-cta p {
  font-size: 1.05rem;
  color: #475569;
  margin-bottom: 0;
}

/* ===== PHASE 2: ACTIVITY FEED ===== */

.activity-feed {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 999;
  animation: slideInLeft 0.5s ease-out;
}

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

.activity-feed-content {
  background: #ffffff;
  border: 2px solid #3b82f6;
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 400px;
  min-width: 300px;
}

.activity-icon {
  color: #3b82f6;
  font-size: 1.5rem;
  flex-shrink: 0;
  animation: bellRing 2s ease-in-out infinite;
}

@keyframes bellRing {
  0%, 100% {
    transform: rotate(0deg);
  }
  10%, 30% {
    transform: rotate(-10deg);
  }
  20%, 40% {
    transform: rotate(10deg);
  }
  50% {
    transform: rotate(0deg);
  }
}

.activity-text {
  flex-grow: 1;
  font-size: 0.95rem;
  color: #1e293b;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.activity-close {
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.125rem;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.activity-close:hover {
  color: #1e293b;
}

/* ===== PHASE 2: EXIT INTENT POPUP ===== */

.exit-intent-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.exit-intent-popup.show {
  display: flex;
}

.exit-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-out;
}

.exit-popup-content {
  position: relative;
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 3rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: popIn 0.4s ease-out;
  z-index: 1;
}

@keyframes popIn {
  0% {
    transform: scale(0.8) translateY(-20px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.exit-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f1f5f9;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.exit-popup-close:hover {
  background: #e2e8f0;
  color: #1e293b;
  transform: rotate(90deg);
}

.exit-popup-icon {
  font-size: 4rem;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.exit-popup-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 1rem;
}

.exit-popup-text {
  font-size: 1.125rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.exit-popup-benefits {
  text-align: left;
  margin: 0 auto 2rem;
  max-width: 350px;
}

.exit-benefit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 1.05rem;
  color: #1e293b;
  font-weight: 500;
}

.exit-benefit i {
  color: #10b981;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.btn-exit-popup {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 1rem 2.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  margin-bottom: 1rem;
}

.btn-exit-popup:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  color: #ffffff;
  text-decoration: none;
}

.exit-popup-footer {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

/* ===== PHASE 2: ENHANCED CARD HOVER EFFECTS ===== */

.problem-card {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.problem-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2);
}

.problem-card-icon {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.problem-card:hover .problem-card-icon {
  transform: scale(1.15);
}

/* Mobile Responsiveness for Phase 2 Elements */
@media (max-width: 767px) {
  .activity-feed {
    left: 1rem;
    bottom: 1rem;
  }
  
  .activity-feed-content {
    min-width: auto;
    max-width: calc(100vw - 2rem);
    padding: 0.75rem 1rem;
  }
  
  .activity-text {
    font-size: 0.85rem;
  }
  
  .exit-popup-content {
    padding: 2rem 1.5rem;
    width: 95%;
  }
  
  .exit-popup-title {
    font-size: 1.5rem;
  }
  
  .exit-popup-text {
    font-size: 1rem;
  }
  
  .faq-body {
    padding: 0 1rem 1rem 1rem;
  }
  
  .faq-button {
    padding: 1rem;
    font-size: 1rem;
  }
}

/* ===== PHASE 3: ADVANCED FEATURES ===== */

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  z-index: 10000;
  transition: width 0.1s ease-out;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.5);
}

/* Scam Alert Banner */
.scam-alert-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-bottom: 2px solid #f59e0b;
  padding: 1rem 0;
  display: none;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.scam-alert-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.scam-alert-icon {
  color: #f59e0b;
  font-size: 1.5rem;
  flex-shrink: 0;
  animation: warningPulse 2s ease-in-out infinite;
}

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

.scam-alert-text {
  flex-grow: 1;
  color: #78350f;
  font-size: 0.95rem;
  font-weight: 500;
}

.scam-alert-link {
  color: #c2410c;
  font-weight: 700;
  text-decoration: underline;
}

.scam-alert-close {
  background: none;
  border: none;
  color: #92400e;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.scam-alert-close:hover {
  color: #78350f;
}

/* Risk Assessment Quiz CTA Section */
.quiz-cta-section {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  padding: 4rem 0;
  border-top: 1px solid #bfdbfe;
  border-bottom: 1px solid #bfdbfe;
}

.quiz-cta-content {
  padding-right: 2rem;
}

.quiz-cta-icon {
  font-size: 4rem;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.quiz-cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 1rem;
}

.quiz-cta-description {
  font-size: 1.25rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.quiz-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quiz-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 1.125rem;
  color: #1e293b;
  font-weight: 500;
}

.quiz-benefits i {
  color: #10b981;
  font-size: 1.25rem;
}

.btn-quiz-start {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  padding: 1.25rem 3rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-quiz-start:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.quiz-cta-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #64748b;
}

/* Quiz Modal */
.quiz-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.quiz-modal.show {
  display: flex;
}

.quiz-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-out;
}

.quiz-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 3rem;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1;
}

@keyframes scaleIn {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.quiz-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f1f5f9;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.quiz-modal-close:hover {
  background: #e2e8f0;
  color: #1e293b;
  transform: rotate(90deg);
}

.quiz-progress {
  height: 6px;
  background: #e2e8f0;
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  transition: width 0.4s ease;
  border-radius: 10px;
}

.quiz-step-indicator {
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.quiz-question-container {
  text-align: center;
}

.quiz-question-icon {
  font-size: 3rem;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.quiz-question {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quiz-option-btn {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.quiz-option-btn:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  transform: translateX(5px);
}

.quiz-back-btn {
  background: #f1f5f9;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-back-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* Quiz Results */
.quiz-results {
  text-align: center;
}

.quiz-result-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
}

.quiz-result-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.quiz-result-content {
  text-align: left;
  background: #f8fafc;
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.quiz-result-content h4 {
  color: #1e293b;
  font-size: 1.125rem;
  margin: 1.5rem 0 1rem;
}

.quiz-result-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.quiz-result-content li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.btn-quiz-cta {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.btn-quiz-cta:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  text-decoration: none;
  color: #ffffff;
}

.quiz-result-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.btn-quiz-restart {
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
}

.btn-quiz-restart:hover {
  background: #e2e8f0;
}

.quiz-disclaimer {
  font-size: 0.75rem;
  color: #94a3b8;
  font-style: italic;
  margin: 0;
}

/* Live Chat Widget */
.live-chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
}

.live-chat-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  color: #ffffff;
  font-size: 1.75rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
  position: relative;
}

.live-chat-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.live-chat-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: #ffffff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid #ffffff;
  animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.live-chat-box {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  max-height: 500px;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: none;
  animation: slideUp 0.3s ease-out;
}

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

.live-chat-header {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 1rem 1rem 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-chat-header-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.live-chat-minimize {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.live-chat-minimize:hover {
  background: rgba(255, 255, 255, 0.3);
}

.live-chat-body {
  padding: 1.5rem;
  max-height: 300px;
  overflow-y: auto;
}

.live-chat-message {
  margin-bottom: 1rem;
}

.bot-message .message-content {
  background: #f1f5f9;
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1e293b;
}

.bot-message .message-content ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.bot-message .message-content li {
  margin-bottom: 0.5rem;
}

.live-chat-quick-actions {
  padding: 1rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chat-quick-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-quick-btn:hover {
  background: #eff6ff;
  border-color: #3b82f6;
}

/* Mobile Responsiveness for Phase 3 */
@media (max-width: 767px) {
  .scam-alert-content {
    flex-wrap: wrap;
  }
  
  .scam-alert-text {
    font-size: 0.85rem;
  }
  
  .quiz-cta-section {
    padding: 3rem 0;
  }
  
  .quiz-cta-title {
    font-size: 1.75rem;
  }
  
  .quiz-cta-description {
    font-size: 1.05rem;
  }
  
  .btn-quiz-start {
    padding: 1rem 2rem;
    font-size: 1.05rem;
  }
  
  .quiz-modal-content {
    padding: 2rem 1.5rem;
    width: 95%;
  }
  
  .quiz-question {
    font-size: 1.25rem;
  }
  
  .live-chat-widget {
    bottom: 1rem;
    right: 1rem;
  }
  
  .live-chat-box {
    width: calc(100vw - 2rem);
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .live-chat-button {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
  }
}

/* ===== END OF CSS ===== */

/* ===== FINAL POLISH: Button Spacing & Layout Fixes ===== */

/* Fix Newsletter Subscribe Button Spacing */
.newsletter-box .btn,
.newsletter-box button[type="submit"] {
  margin-top: 1.5rem;
  padding: 0.875rem 2.5rem;
  white-space: nowrap;
}

.newsletter-box input[type="email"] {
  margin-bottom: 0;
}

/* Fix Resource Card Button Overlap */
.resource-card .resource-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
}

.resource-card-description {
  margin-bottom: 1.5rem;
  min-height: 80px;
}

.resource-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

.resource-badge.trending {
  background: #f97316;
}

.resource-badge.essential {
  background: #0ea5e9;
}

/* Ensure CTA Buttons Don't Overlap */
.btn-hero,
.btn-quiz-start,
.btn-exit-popup {
  margin: 1rem auto;
  display: inline-block;
}

/* Fix Social Proof Spacing */
.social-proof-bar {
  padding: 2rem 0;
  margin: 2rem 0;
}

/* Resource Card Improvements */
.resource-card {
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  padding-top: 2.4rem; /* space for badge */
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.resource-card-title {
  margin-bottom: 1rem;
}

.resource-meta {
  margin-top: auto;
  padding-top: 1rem;
}

/* ====================== */
/* TOOL FORMS - INPUTS    */
/* ====================== */
.search-form-section label,
.form-label-custom {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.search-form-section .form-control {
  border: 1.2px solid #d7dce3;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  color: #0f172a;
  font-size: 16px;
  padding: 12px 14px;
  height: 48px;
}

.search-form-section .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-form-section select.form-control {
  height: 48px;
  appearance: none;
  background-color: #ffffff;
  font-weight: 600;
}

.search-form-section select.form-control option {
  color: #0f172a;
  font-weight: 600;
}

@media (max-width: 767px) {
  .search-form-section .form-control {
    font-size: 15px;
    padding: 11px 12px;
  }
}

/* Newsletter Box Better Spacing */
.newsletter-box {
  padding: 3rem 2rem;
}

/* ====================== */
/* RESOURCE GUIDE PAGES   */
/* ====================== */
.resources-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.resources-header .logo-link {
  font-weight: 800;
  color: #0f172a;
  font-size: 1.1rem;
}

.resources-hero {
  padding: 60px 0;
  color: #ffffff;
}

.resources-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.resources-hero-subtitle {
  font-size: 1.1rem;
  color: #e5e7eb;
}

.resources-content {
  padding: 60px 0 80px;
}

.quick-answer-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 28px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.quick-answer-box h3 {
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.content-section {
  margin-bottom: 32px;
}

.content-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
}

.content-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 18px;
  margin-bottom: 10px;
}

.content-section p,
.content-section ul,
.content-section ol {
  color: #475569;
  line-height: 1.6;
}

.content-section ul {
  padding-left: 18px;
}

.content-section ol {
  padding-left: 20px;
}

.scam-example,
.warning-box,
.tip-box,
.emergency-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 12px 0;
}

.warning-box {
  border-left-color: #f59e0b;
}

.emergency-box {
  border-left-color: #ef4444;
}

.step-by-step .step {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.step-by-step .step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-checklist h4 {
  font-weight: 800;
  color: #0f172a;
  margin-top: 12px;
}

.related-resources {
  margin-top: 32px;
}

.related-card {
  display: block;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  color: #0f172a;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  height: 100%;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  color: #0f172a;
}

.related-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.related-card p {
  color: #475569;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .resources-hero {
    padding: 42px 0;
  }
  .resources-hero-title {
    font-size: 1.8rem;
  }
  .resources-content {
    padding: 40px 0 60px;
  }
}

.newsletter-box h2 {
  margin-bottom: 1.5rem;
}

.newsletter-box p {
  margin-bottom: 2rem;
}

/* Fix Email Input + Button Layout */
.newsletter-box form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-box input[type="email"] {
  width: 100%;
  max-width: 400px;
}

.newsletter-box .btn {
  width: auto;
  min-width: 200px;
}

/* Mobile Responsive Fixes */
@media (max-width: 767px) {
  .newsletter-box {
    padding: 2rem 1.5rem;
  }
  
  .newsletter-box form {
    width: 100%;
  }
  
  .newsletter-box input[type="email"],
  .newsletter-box .btn {
    width: 100%;
    max-width: 100%;
  }
  
  .resource-card {
    min-height: auto;
    padding: 1.25rem;
    padding-top: 2.2rem;
  }
  
  .resource-card-description {
    min-height: auto;
  }
}

/* ===== END OF POLISH FIXES ===== */
