/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Use system font stack for better performance */
body {
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.4;
  color: #000;
  min-height: 100vh;
  background: #ffffff;
}

/* Localized, centered gradient - small orbs in the center, fade to white at edges */
.gradient-top-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 84% 84% at 32% 18%, rgba(255, 159, 67, 0.176), transparent 55%),
    radial-gradient(ellipse 72% 72% at 68% 22%, rgba(236, 72, 153, 0.144), transparent 50%),
    radial-gradient(ellipse 78% 78% at 72% 28%, rgba(168, 85, 247, 0.12), transparent 52%),
    radial-gradient(ellipse 66% 66% at 28% 32%, rgba(125, 211, 252, 0.096), transparent 48%);
  animation: gradientOrbDrift 25s ease-in-out infinite;
}

@keyframes gradientOrbDrift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.88; }
}

/* Header styles */
.sticky-header {
  position: sticky;
  top: 10px;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgb(0 0 0 / 10%);
  max-width: 1320px;
  align-items: center;
  margin: 12px auto;
  border-radius: 20px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 5%;
  position: relative;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
}

.logo img {
  max-height: 46px;
  width: auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #000;
}

.nav-logo .text-2xl.font-black {
  font-size: 1.5rem;
  font-weight: 800;
  color: #000;
  line-height: 1.2;
}

.nav-logo-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  border-radius: 10px;
  flex-shrink: 0;
}

.nav-logo-subtitle {
  font-size: 0.6rem;
  color: #94a3b8;
  margin-left: 52px;
  margin-top: -4px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 0.5rem;
}

.nav-links li {
  margin: 0 10px;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.auth-link-desktop {
  display: flex;
  align-items: center;
}

.nav-cta-group .nav-cta-button {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  color: #000 !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #FF4500 !important;
}

/* Global link reset - black, no underline by default, hover orange */
a {
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #FF6B00;
}
/* CTA buttons: white text always wins (covers :link, :visited, :active) */
a.hero-cta.primary,
a.hero-cta.primary:link,
a.hero-cta.primary:visited,
a.hero-cta.primary:active,
a.cta-button,
a.cta-button:link,
a.cta-button:visited,
a.cta-button:active,
a.cta-button-new,
a.cta-button-new:link,
a.cta-button-new:visited,
a.cta-button-new:active {
  color: #fff !important;
}
/* Google join button - dark text */
a.google-join-button {
  color: #000;
}
a.google-join-button:hover {
  color: #000;
}
/* Button links - white text for primary/dark buttons */
a.btn-primary, a.btn-dark, a.cta-button, a.cta-button-new, a.hero-cta.primary, a.nav-cta-button, a.promo-sticky-banner-cta, a.rr-btn-primary, a.ft-cta-btn {
  color: #fff;
}
a.btn-primary:hover, a.btn-dark:hover, a.cta-button:hover, a.cta-button-new:hover, a.hero-cta.primary:hover, a.nav-cta-button:hover, a.promo-sticky-banner-cta:hover, a.rr-btn-primary:hover, a.ft-cta-btn:hover {
  color: #fff;
}
/* Secondary button links - dark text */
a.btn-secondary {
  color: #374151;
}
a.btn-secondary:hover {
  color: #000000;
}
/* Nav links - black, orange on hover */
.nav-links a {
  color: #000 !important;
}
.nav-links a:hover {
  color: #FF4500 !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #000;
  font-size: 1.5rem;
}

ul, ol {
  color: inherit; /* Inherits color from parent, just like <p> tags */
  padding-left: 1.5rem; /* Proper indentation for lists */
  line-height: 1.6; /* Consistent line height with paragraphs */
  margin-bottom: 1rem; /* Consistent spacing */
}

/* Mobile navigation styles */
@media (max-width: 768px) {
  nav {
    display: flex;
    justify-content: space-between;
  }
  .menu-toggle {
    display: block;
    position: relative;
    z-index: 1001;
    text-align: right;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
  }

  .nav-links.active {
    display: flex;
    max-height: 500px;
  }

  .nav-links li {
    margin: 0;
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    color: #000 !important;
  }

  .nav-links a.nav-cta-button {
    color: #fff !important;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  /* Animation for menu items */
  .nav-links.active li {
    animation: slideIn 0.3s ease-in-out forwards;
    opacity: 0;
  }

  .nav-links.active li:nth-child(1) { animation-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { animation-delay: 0.2s; }
  .nav-links.active li:nth-child(3) { animation-delay: 0.3s; }
  .nav-links.active li:nth-child(4) { animation-delay: 0.4s; }
  .nav-links.active li:nth-child(5) { animation-delay: 0.5s; }
  .nav-links.active li:nth-child(6) { animation-delay: 0.6s; }
}

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

/* Hero section styles */
.hero {
  background: transparent;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  margin: 0 auto;
  max-width: 800px; /* Added max-width to content */
}

.hero h3 {
  font-size: 1.2rem; /* Slightly reduced */
  text-align: center;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  margin-bottom: 3rem;
  color: #000;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  -webkit-text-fill-color: #000;
  padding: 0 20px;
}

.hero h1:hover {
  transform: scale(1.02);
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.hero h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  text-align: center;
  margin-bottom: 2rem;
  color: #000;
  font-weight: 500;
  line-height: 1.4;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  padding: 0 20px;
}

.hero h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #2c3e50);
  margin: 1.5rem auto 0;
  border-radius: 2px;
}

.hero-content {
  margin: 0 auto;
  max-width: 1200px;
  padding: 1.2rem 0;
  position: relative;
}


.highlight {
  background: linear-gradient(90deg, #FF4500, #FF6B00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem; /* Reduced */
}

.hero-text {
  flex: 1;
}

.hero-text > p:first-of-type {
  font-size: 0.9rem; /* Reduced */
  margin-bottom: 0.8rem; /* Reduced */
  text-align: center;
}

.hero-text ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 1.2rem; /* Reduced */
}

.hero-text li {
  margin-bottom: 0.6rem; /* Reduced */
  font-size: 0.85rem; /* Reduced */
  text-align: left;
}


.hero-image img {
  width: 300px;
}

.hero-video {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Mobile-specific video handling */
@media (max-width: 768px) {
  .hero-video {
      cursor: pointer;
  }
  
  /* Hide video by default on mobile */
  .hero-video:not([data-clicked="true"]) {
      display: none;
  }
  
  /* Show poster image by default */
  .hero-image::before {
      content: "";
      display: block;
      width: 100%;
      height: 100%;
      background-image: var(--poster-image);
      background-size: cover;
      background-position: center;
      border-radius: 8px;
      cursor: pointer;
  }
  
  /* Hide poster when video is active */
  .hero-image[data-video-active="true"]::before {
      display: none;
  }
}

/* Loading state adjustments */
.hero-image.loading::before {
  opacity: 0.7;
}

/* Error state handling */
.hero-image.error::before {
  opacity: 1;
  cursor: not-allowed;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

/* Make it responsive */
@media (max-width: 768px) {
  .hero-image {
      max-width: 100%;
      margin: 20px 0;
  }
}



.microsoft-badge {
  text-align: center;
  margin-top: 1.2rem; /* Reduced */
}

.microsoft-badge img {
  max-width: 80%; /* Reduced to make it more compact */
  height: auto;
}

@media (max-width: 768px) {
  .hero-flex {
      flex-direction: column;
  }

  .hero-image {
      max-width: 100%;
      order: -1;
  }
}

/* Features section styles */
.features {
    padding: 4rem 2rem;
    background-color: transparent;
    width: 100%;
    overflow: visible; /* Changed from hidden to allow content to flow */
    min-height: fit-content; /* Ensures section grows with content */
}

.features .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    height: auto; /* Allows container to grow */
    overflow: visible; /* Allows content to be fully visible */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
    width: 100%;
    height: auto; /* Ensures grid grows with content */
}

/* Responsive adjustments for section */
@media (max-width: 1024px) {
    .features {
        padding: 3rem 1.5rem;
        margin-bottom: 2rem; /* Added space after section */
    }
}

@media (max-width: 768px) {
    .features {
        padding: 2rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .features .container {
        padding: 0 10px;
    }
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: visible; /* Changed from hidden to allow content to show */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures full height */
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF4500, #FF6B00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0; /* Prevents icon from shrinking */
}

.feature-icon i {
    font-size: 24px;
    color: white;
}

.feature-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows content to fill available space */
}

.feature-content h2 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: #000;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.feature-content p {
    color: #000;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: clamp(0.9rem, 1.5vw, 1rem); /* Responsive font size */
}

.feature-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto; /* Pushes list to bottom of card */
}

.feature-content li {
    color: #000;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem); /* Responsive font size */
}

.feature-content li:last-child {
    margin-bottom: 0; /* Removes extra space after last item */
}

.feature-content li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #FF4500;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .features {
        padding: 3rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

/* Add minimum height for very small screens */
@media (max-width: 480px) {
    .feature-card {
        min-height: auto; /* Allows natural height on very small screens */
    }
}

/* Email signup form styles */
.email-signup {
  display: flex;
  max-width: 500px;
  margin: 1rem auto;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
}

.email-signup input[type="email"] {
  flex-grow: 1;
  padding: 10px 15px;
  font-size: 16px;
  border: none;
  outline: none;
}

.email-signup button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #10a900;
  color: white;
  border: none;
  cursor: pointer;
}

.email-signup .success-message,
.email-signup .error-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

.email-signup .success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.email-signup .error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

.email-signup button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 768px) {
  .email-signup {
    flex-direction: column;
  }

  .email-signup input[type="email"],
  .email-signup button {
    width: 100%;
  }
}

/* Modern Pricing Section - Complete Styles */
.pricing {
  background: transparent;
  padding: 1.5rem 2rem 3.5rem;
  position: relative;
}

.pricing .container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.pricing-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: min(36rem, 100%);
  margin: 0 auto 1.25rem;
  padding: 0 0.5rem;
}

.pricing-intro-title {
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #111;
  margin: 0 0 0.4rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.pricing-intro-sub {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Two-plan side-by-side layout */
.pricing-plans {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: stretch;
  max-width: 860px;
  margin: 0 auto;
}

.plan-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.plan-col-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 0.75rem;
}

.plan-col-header-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.plan-col-header-row .plan-col-title {
  margin: 0;
}

.acc-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FF4500;
  background: rgba(255, 69, 0, 0.1);
  border: 1px solid rgba(255, 69, 0, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.plan-col-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.acc-strike {
  font-size: 0.85rem;
  color: #777;
  text-decoration: line-through;
  font-weight: 400;
}

.plan-col-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.plan-col-features li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
}

.plan-col-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 800;
  color: #FF4500;
}

.plan-col-feature--highlight {
  font-weight: 700 !important;
  color: #FF4500 !important;
}

.plan-col-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
}

.plan-col-cancel {
  font-size: 0.8rem;
  color: #888;
  margin: 0.5rem 0 0;
  text-align: center;
}

/* Accelerator card — white like Pro, orange accent border */
.plan-col--dark {
  background: #fff;
  border: 2px solid #FF4500;
}

.cta-button--accelerator {
  background: linear-gradient(135deg, #FF4500, #E83800) !important;
  color: #fff !important;
}

.cta-button--accelerator:hover {
  background: linear-gradient(135deg, #E83800, #FF4500) !important;
}

@media (max-width: 700px) {
  .pricing-plans {
    flex-direction: column;
    max-width: 420px;
  }
  .plan-col {
    padding: 1.5rem 1.25rem;
  }
}

.pricing .pricing-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 10px auto;
}

.pricing .price-main {
  font-size: 2.75rem;
  font-weight: 800;
  color: #111;
  line-height: 1;
  letter-spacing: -0.02em;
}

.pricing .price-period {
  font-size: 1rem;
  color: #555;
  font-weight: 500;
}

.pricing .price-then {
  font-size: 1rem;
  color: #555;
  font-weight: 500;
}

.pricing .price-trial-text {
  margin: 0.35rem 0 0 0;
  font-size: 0.82rem;
  color: #888;
  font-weight: 500;
  flex-basis: 100%;
}

.pricing #promo-price-container {
  flex-wrap: wrap;
}

.pricing .cta-button-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  margin-bottom: 0;
  border-radius: 10px;
  font-size: 1.1rem;
}

.pricing .cta-button-new:hover {
  transform: translateY(-2px);
}

body.promo-banner-visible {
  padding-bottom: 48px;
}

.promo-sticky-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #000;
  color: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.promo-sticky-banner.visible {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  gap: 0.65rem;
}

.promo-sticky-banner-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 800px;
}

.promo-sticky-banner-text {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  min-width: 0;
  flex: 0 0 auto;
  overflow-wrap: break-word;
}

.promo-sticky-banner-cta {
  padding: 6px 18px;
  font-size: 0.9375rem;
  background: linear-gradient(135deg, #FF4500, #FF6B00);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.promo-sticky-banner-cta:hover {
  background: linear-gradient(135deg, #FF6B00, #FF4500);
}

.promo-sticky-banner-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
}

.promo-sticky-banner-close:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .promo-sticky-banner.visible {
    padding: 7px 14px;
  }
  .promo-sticky-banner-inner {
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
  }
  .promo-sticky-banner-text {
    font-size: 0.85rem;
    text-align: center;
    width: 100%;
    flex: 0 0 100%;
  }
  .promo-sticky-banner-inner > a,
  .promo-sticky-banner-inner > button {
    align-self: center;
  }
}

.peace-of-mind-text {
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 15px;
  text-align: center;
  line-height: 1.4;
}

.pricing .pricing-right {
  display: flex;
  flex-direction: column;
}

.pricing .features-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 1.5rem;
}

.pricing .features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
  width: 100%;
}

.pricing .features-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.pricing .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #000;
  width: 100%;
}

.pricing .feature-item span:last-child {
  flex: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.pricing .check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #FF4500, #FF6B00);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
  min-width: 20px;
}

.pricing .feature-item strong {
  color: #000;
  font-weight: 600;
}

/* Override global span styles for pricing section */
.pricing .feature-item span {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  max-width: none !important;
}

.pricing .highlight-link {
  color: #FF4500;
  font-weight: 500;
}

/* Mobile responsiveness for pricing only */
@media (max-width: 968px) {
  .pricing .pricing-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem;
  }
  
  .pricing .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .pricing .plan-title {
    font-size: 2rem;
  }
  
  .pricing .price-main {
    font-size: 3rem;
  }
}

@media (max-width: 640px) {
  .pricing {
    padding: 1.25rem 1rem 3rem;
  }
  
  .pricing .pricing-card {
    padding: 1.5rem;
  }
  
  .pricing .price-main {
    font-size: 2.5rem;
  }
  
  .pricing .cta-button-new {
    padding: 1.14rem 1.95rem;
    font-size: 1.3rem;
  }
}

/* Special coupon styling enhancements */
.plan .price [style*="text-decoration: line-through"] {
  color: #94a3b8 !important;
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  margin-left: 0.5rem;
}

/* Login and Singup Styles */

.google-login-container {
  margin-top: 20px;
  text-align: center;
}

.google-signup-container {
  margin-top: 20px;
  text-align: center;
}

/* Privacy Styles */

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.6;
}

.privacy-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.privacy-content h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-content h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.privacy-content p, .privacy-content ul {
  margin-bottom: 1rem;
}

.privacy-content ul {
  padding-left: 2rem;
}

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

/* Do Not Sell */

.do-not-sell-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.do-not-sell-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.do-not-sell-content p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

#do-not-sell-form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: 0 auto;
}

#do-not-sell-form input[type="email"] {
  padding: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

#do-not-sell-form button {
  padding: 0.5rem 1rem;
  background-color: #10a900;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

#do-not-sell-form button:hover {
  background-color: #FF6B00;
}

#form-message {
  margin-top: 1rem;
  text-align: center;
  font-weight: bold;
}

/* FAQ Page Styles */
.faq-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.faq-content h1,
.faq-content h2 {
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.faq-content > p {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 16px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background-color: #000;
  border: none;
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f9f9f9;
  color:#000;
}

.faq-icon {
  font-size: 24px;
  color: #FF4500;
  transition: transform 0.3s ease;
}

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

.faq-item.active .faq-answer {
  padding: 1.5rem;
  max-height: 1000px; /* Adjust this value as needed */
}

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

.faq-answer p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Responsive design */
@media (max-width: 768px) {
  .faq-content {
      padding: 1rem;
  }

  .faq-content h1,
  .faq-content h2 {
      font-size: 32px;
  }

  .faq-question {
      font-size: 20px;
      padding: 1rem;
  }

  .faq-item.active .faq-answer {
      padding: 1rem;
  }
}

/* terms */

.terms-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.6;
}

.terms-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.terms-content h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.terms-content p {
  margin-bottom: 1rem;
}

.terms-content ul {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

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

/* Footer styles */
.site-footer {
  background-color: #000;
  color: #fff;
  width: 100%;
  padding: 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

.footer-tagline {
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.footer-social a {
  color: #9ca3af;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: #FF4500;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin: 0 0 16px;
}

.footer-col-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links li a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col-links li a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #000000;
  text-align: center;
}

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

.site-footer a {
  color: #d1d5db;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }

  .footer-tagline {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-inner {
    padding: 40px 20px 24px;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .pricing-plans {
      flex-direction: column;
      align-items: center;
  }

  .plan {
      width: 100%;
      max-width: 300px;
  }

  .plan.featured {
      transform: none;
  }

  .nav-links {
      display: none;
  }
}

body { 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

/* Sidebar Styles */

.menu-item a {
  text-decoration: none;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

.support {
  color: #6b7280;
  font-size: 14px;
  margin: 20px;
}

.sidebar.collapsed .support {
  display: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar .icon-logo {
  max-width: 40px;
  display: none;
}

.sidebar .icon-logo.visible {
  display: block;
}

.new-conversation-btn {
  background-color: black;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.new-conversation-btn:hover {
  background-color: #000; /* Slightly lighter black on hover */
}

/* Sidebar Logo Styles */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.desktop-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: #000;
  transition: color 0.3s ease;
}

.desktop-sidebar-toggle:hover {
  color: #000;
}

.desktop-sidebar-toggle .toggle-icon,
.desktop-sidebar-toggle .icon-logo {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.sidebar .logo img {
  max-width: 100%;
  min-width: 170px;
  height: auto;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  .sidebar .logo img {
    display: none;
  }
  .sidebar {
    padding-top: 100px;
  }
}

.sidebar .logo .icon-logo,
.desktop-sidebar-toggle .icon-logo {
  max-width: 40px;
  display: none;
}

.sidebar.collapsed {
  width: 60px;
}

.sidebar.collapsed .logo-container {
  justify-content: center;
  padding: 10px 0;
}

.sidebar.collapsed .logo,
.sidebar.collapsed .menu-item span,
.sidebar.collapsed .sub-menu,
.sidebar.collapsed .desktop-sidebar-toggle .toggle-icon,
.sidebar.collapsed .sidebar-divider {
  display: none;
}

.sidebar.collapsed .desktop-sidebar-toggle .icon-logo,
.sidebar.collapsed .logo .icon-logo {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto;
}

.sidebar.collapsed .menu-item button {
  justify-content: center;
}

.main-content.expanded {
  margin-left: 60px;
}

.desktop-sidebar-toggle.rotated svg {
  transform: rotate(180deg);
}

@media (min-width: 769px) {
  .desktop-sidebar-toggle {
    display: flex;
  }
}

.conversation, .new-conversation-btn {
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
}

.conversation {
  font-size: 12px;
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.conversation-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 10px; /* Add some space between the title and the delete icon */
}

/* Spans inside conversation list rows only (was `.conversation, span` which broke every span sitewide) */
.conversation span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.conversation:hover {
  background-color: #f0f0f0;
}

.conversation.selected {
  background-color: rgba(0, 0, 0, 0.08);
  color: #4b5563;
}

.delete-icon {
  cursor: pointer;
  color: #888;
  display: flex;
  align-items: center;
  flex-shrink: 0; /* Prevent the icon from shrinking */
}

.delete-icon:hover {
  color: #f00;
}


.mobile-top-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #f8f9fa;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1001;
}

.mobile-logo {
  text-align: center;
}

.mobile-logo img {
  height: auto;
  max-width: 200px;
}

.sidebar-toggle {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #000;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: flex;
}

.sidebar {
  background-color: #ffffff;
  width: 220px;
  padding: 10px;
  overflow-y: auto;
  transition: all 0.3s ease;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: width 0.3s ease;
  border-right: 1px solid #e0e0e0;
}

/* Section labels (Add ons / Admin): black text and rule lines on all app pages */
.sidebar .sidebar-divider {
  color: #000;
}
.sidebar .sidebar-divider::before,
.sidebar .sidebar-divider::after {
  background: #000;
}

.sidebar.collapsed {
  width: 60px;
}

.menu-item button {
  width: 100%;
  padding: 7px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  outline: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  color: #000000;
  font-size: 14px;
  transition: all 0.2s ease;
  border-radius: 5px;
}

.menu-item button:hover {
  background-color: rgba(0, 0, 0, 0.06);
}

.menu-item button svg {
  width: 15px;
  height: 15px;
  margin-right: 10px;
  flex-shrink: 0;
}

.menu-item button span {
  transition: opacity 0.3s ease, width 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-item {
  margin-bottom: 5px;
}

.sidebar.collapsed .menu-item button {
  justify-content: center;
  padding: 10px 0;
}

.sidebar.collapsed .menu-item button svg {
  margin-right: 0;
}

.sidebar.collapsed .menu-item button span {
  opacity: 0;
  width: 0;
  display: none;
}

.arrow-down, .arrow-right {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  margin-left: auto;
}

.arrow-down {
  border-top: 5px solid currentColor;
}

.arrow-right {
  border-left: 5px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.sidebar.collapsed .arrow-down,
.sidebar.collapsed .arrow-right {
  display: none;
}

.sub-menu {
  margin-left: 10px;
  overflow: hidden;
  transition: height 0.3s ease;
}

.sub-menu.visible {
  display: block;
}

.sidebar.collapsed .sub-menu {
  height: 0 !important;
  margin-left: 0;
}

.sub-menu .new-conversation-btn {
  width: 100%;
  padding: 8px 12px;
  background-color: black !important;
  color: white !important;
  text-align: center;
  font-size: 14px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  justify-content: center;
  margin: 10px auto;
}

.sub-menu .new-conversation-btn:hover {
  background-color: #000; /* Slightly lighter black on hover */
}

@media (max-width: 768px) {
  .mobile-top-bar {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar {
    left: -250px;
    padding-top: 70px;
  }

  .sidebar.active {
    left: 0;
  }

  .main-content {
    margin-left: 0;
    padding-top: 0px; /* Adjust based on your top bar height */
  }

  body {
    padding-top: 0px; /* Adjust based on your top bar height */
  }

  .desktop-logo {
    display: none;
  }
}

/* Assistant Chat Styles */
.chat-messages {
  display: flex;
  flex-direction: column;
}

.message {
  margin-bottom: 10px;
  max-width: 80%;
}

.user-message {
  background-color: #f0f0f0;
  border-radius: 5px;
  padding: 10px;
  margin: 10px 0px;
  align-self: flex-end;
}

.assistant-message {
  color: #000;
  line-height: 1.6;
  align-self: flex-start;
  padding: 0;
  max-width: 100%;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.assistant-message p,
.assistant-message li {
  color: #000;
  margin-bottom: 0;
}

/* Update the ordered list styles */
.assistant-message ol {
    counter-reset: item;
    padding-left: 2em;  /* Increased padding for numbers */
    margin: 0;
}

.assistant-message ol li {
    position: relative;  /* Added for positioning */
    display: block;
    padding-left: 0.5em;  /* Space between number and text */
    line-height: 1.6;
}

.assistant-message ol li:before {
    content: counter(item) ".";
    counter-increment: item;
    color: #000;
    position: absolute;  /* Position the numbers */
    left: -2em;  /* Pull the numbers out */
    width: 1.5em;  /* Give numbers some space */
    text-align: right;  /* Align numbers right */
}

/* Ensure list items wrap properly */
.assistant-message li p {
    margin: 0;  /* Remove default paragraph margins in list items */
    display: inline;  /* Keep text inline with numbers */
}

.assistant-message ul {
  padding-left: 1.5em;
  margin: 0;
}

.assistant-message li br {
  content: "";
  margin: 0.5em 0;
  display: block;
}

.assistant-message strong {
  color: #000;
  font-weight: 600;
}

.assistant-message h3 {
  color: #000;
  margin: 0;
  font-size: 1.2em;
  font-weight: 600;
}
/* Typing effect container */
.assistant-message {
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Thinking state */
.assistant-message.thinking {
  color: #000;
  font-style: italic;
}

/* Code Block Container */
.code-block-container {
    position: relative;
    margin: 1.5em 0;
    background-color: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    overflow: hidden;
}

.code-block-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 8px 16px;
    background-color: #f1f4f8;
    border-bottom: 1px solid #e1e4e8;
}

.copy-code-btn {
    padding: 4px 8px;
    font-size: 12px;
    line-height: 20px;
    color: #24292e;
    background-color: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 3px;
    cursor: pointer;
    transition: 0.2s ease;
}

.copy-code-btn:hover {
    background-color: #f3f4f6;
    border-color: #d0d7de;
}

.code-block-container pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 14px;
    line-height: 1.45;
    color: #24292e;
}

.code-block-container code {
    padding: 0;
    margin: 0;
    background-color: transparent;
    border: 0;
    white-space: pre;
}

/* Style for inline code */
:not(pre) > code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    background-color: #f6f8fa;
    border-radius: 3px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.code-language {
  font-size: 12px;
  color: #000;
  font-family: monospace;
}

.copy-button {
  padding: 4px 8px;
  font-size: 12px;
  color: #000;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}

/* Pygments syntax highlighting styles */
.highlight {
  padding: 16px;
  overflow-x: auto;
}

.highlight pre {
  margin: 0;
}

.icon-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  margin-top: 10px;
}

.icon-container button {
  margin-right: 10px;
  padding: 10px 20px;
  background: #FF6B000f;
  color: #FF6B00;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
}

.icon-container button:hover {
  background-color: #e0e0e0;
}

.chat-messages table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chat-messages th,
.chat-messages td {
  padding: 12px 15px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #e0e0e0;
}

.chat-messages th {
  background-color: #ffffff;
  color: #000;
  font-weight: bold;
  border-bottom: 2px solid #e0e0e0;
}

.chat-messages tr:last-child td {
  border-bottom: none;
  padding: 5px;
}

.chat-messages tr:nth-child(even) {
  background-color: #f9f9f9;
}

.chat-messages tr:hover {
  background-color: #f0f0f0;
}

.chat-messages th:first-child,
.chat-messages td:first-child {
  width: 40px;
  padding: 10px;
  text-align: center;
  margin: 5px;
}

.chat-messages input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #333;
  border-radius: 3px;
  outline: none;
  transition: background-color 0.3s, border-color 0.3s;
  cursor: pointer;
  margin: 0;
  vertical-align: middle;
}

.chat-messages input[type="checkbox"]:checked {
  background-color: #000;
  border-color: #000;
}

.chat-messages input[type="checkbox"]:checked::after {
  content: '\2714';
  display: block;
  text-align: center;
  color: #ffffff;
  font-size: 14px;
  line-height: 18px;
}

/* Styles for Profile Pictures in the Results Table */
.chat-messages td img {
  width: 40px;         /* Set a fixed width */
  height: 40px;        /* Set a fixed height */
  border-radius: 50%;  /* Make the image circular */
  object-fit: cover;   /* Ensure image covers the area, cropping if needed */
  vertical-align: middle; /* Align image nicely within the table cell */
  margin-right: 10px;  /* Add some space between image and text (if any) */
  border: 1px solid #eee; /* Add a subtle border */
  box-shadow: 0 1px 2px rgba(0,0,0,0.1); /* Add a slight shadow for depth */
}

/* Style for the 'Picture' column header and cell */
.chat-messages th:first-child, /* Target first header */
.chat-messages td:first-child { /* Target first cell in each row */
  width: 60px; /* Adjust width to comfortably fit the 40px image + padding */
  text-align: center; /* Center the image within the cell */
  padding: 8px; /* Adjust padding if needed */
}

.checkbox-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 12px 0;
}

.unlock-email-btn {
  background-color: #000000;
  color: white;
  border: none;
  padding: 6px 12px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 12px;
  margin: 2px 2px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.unlock-email-btn:hover {
  background-color: #000000;
}

.chat-messages .keywords,
.chat-messages .company {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


@media (max-width: 768px) {
  .chat-messages {
      max-height: calc(100vh - 200px);
      margin-top: 50px;
  }
}

@media (max-width: 768px) {
  .chat-messages table {
    font-size: 12px;
  }

  .chat-messages th,
  .chat-messages td {
    padding: 8px 10px;
  }

  .chat-messages .keywords,
  .chat-messages .company {
    max-width: 100px;
  }
}

/* Thinking and Searching message styles */
.message.assistant-message.thinking,
.message.assistant-message.searching {
  font-style: italic;
  color: #888;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 5px;
  margin-bottom: 10px;
  width: fit-content;
}

/* Chat form styles */
.chat-input-form {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    flex-direction: row;
}

.hidden-file-input {
    display: none !important; /* Hide the default file input */
}

.image-upload-wrapper {
    display: flex;
    align-items: center;
    margin-right: 8px;
}

#userQuery {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 8px;
    font-size: 16px;
    background: transparent;
}

button[type="submit"] {
    border: none;
    background: #FF6B00;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 8px; /* Added for consistency */
}

/* New styles for the send button icon */
.send-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  color: #000;
}

.send-btn:hover {
    background-color: #f0f0f0;
    color: #FF6B00;
}

.send-btn svg {
    width: 20px;
    height: 20px;
}

.image-upload-btn {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    border-radius: 6px;
    color: #000;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-upload-btn:hover {
    background-color: #f0f0f0;
    color: #FF6B00;
}

/* Add a subtle animation for the hover state */
.image-upload-btn svg {
    transition: transform 0.2s ease;
}

.image-upload-btn:hover svg {
    transform: scale(1.1);
}

/* Style for when an image is selected */
.image-upload-btn.has-image {
    color: #FF6B00;
}

/* Add visual feedback for image upload in progress */
.image-upload-btn.uploading {
    animation: pulse 1.5s infinite;
}

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

/* Add these styles for the image preview */
.image-preview-container {
    position: relative;
    display: inline-block;
    margin: 8px;
    max-width: 200px;
}

.image-preview {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.remove-image-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s ease;
}

.remove-image-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.remove-image-btn svg {
    width: 12px;
    height: 12px;
}

/* Update chat form to accommodate preview */
.chat-input-row {
    display: flex;
    gap: 8px;
}

.context-image-container {
  margin: 10px 0;
  width: 300px; /* Fixed width instead of max-width */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: block;
  flex-shrink: 0; /* Prevent shrinking */
  position: relative; /* Establish positioning context */
  z-index: 1; /* Keep it above other content */
}

.context-image {
  width: 100%;
  height: auto;
  min-height: 150px; /* Minimum height to prevent collapse */
  display: block;
  border-radius: 8px;
  object-fit: cover; /* Changed from contain to cover for better visual */
  position: relative; /* Ensure it maintains position */
}

/* Ensure the message container doesn't affect the image */
.message {
  position: relative;
  z-index: 0;
}

/* If the chat messages container is flex, add this */
#chatMessages {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align items to the start */
}

/* Adjustments for mobile view */
@media (max-width: 768px) {
    .chat-form-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    #userQuery {
        font-size: 14px;
        padding: 10px 12px;
    }

    #chatForm .send-btn {
        width: 40px;
        height: 40px;
    }

    #chatForm .send-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* master checkbox popup */

.master-checkbox-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.master-checkbox-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.master-checkbox-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

.master-checkbox-popup-content p {
    margin-bottom: 15px;
    font-weight: bold;
}

.master-checkbox-select-max,
.master-checkbox-select-current-page {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #000;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.master-checkbox-select-max:hover,
.master-checkbox-select-current-page:hover {
    background-color: #e0e0e0;
}

.main-content.use-cases-container {
    margin-right: 10px;
}

.main-content {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    margin-left: 250px;  /* Add margin to prevent content from flowing under extras column */
    transition: margin-left 0.3s ease;
}

.main-content.no-extras {
    margin-right: 20px;
}

.chat-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 100px;
    padding-right: 10px;  /* Add some padding to prevent content from touching the scrollbar */
}

form {
    display: flex;
    margin-top: 20px;
    flex-direction: column;
}

input[type="text"], input[type="email"], input[type="password"] {
    flex: 1;
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[type="submit"], button {
    padding: 10px 20px;
    background-color: #FF6B00;
    border: none;
    color: #fff;
    cursor: pointer;
}

.pagination, .campaigns-pagination, .contacts-pagination {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

.pagination button, .campaigns-pagination button, .contacts-pagination button {
    margin: 0 5px;
    padding: 5px 10px;
    background-color: #000000;
    border-radius: 5px;
    cursor: pointer;
}

.pagination {
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
}

.pagination-button {
    background-color: black;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-right: 5px;
    cursor: pointer;
    font-size: 14px;
}

.pagination-button:hover {
    background-color: #000; /* Optional: darker shade on hover */
}

.pagination-button:disabled {
    background-color: #000;
    cursor: not-allowed;
}

.message { margin-bottom: 10px; }
.user-message { text-align: left; }
.assistant-message { text-align: left; }

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #FF6B00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 5px;
    vertical-align: middle;
}

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

/* Mobile-friendly styles for the assistant page */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .logo-container {
        display: none;
    }

    .main-content {
        width: 100%;  /* Full width on very small screens */
        margin-left: 0;
        margin-right: 0;
        margin-top: 50px !important;
    }

    .chat-container {
        height: calc(100vh - 120px); /* Adjust based on your top bar height */
    }

    .chat-messages {
        max-height: calc(100vh - 200px);
    }

    #chatForm input[type="submit"] {
        width: 100%;
    }

    /* Adjustments for the results table */
    table {
        font-size: 14px;
    }

    table th, table td {
        padding: 8px 4px;
    }

    .button-placeholder button,
    .unlock-email-btn {
        font-size: 12px;
        padding: 6px 10px;
    }

    /* Adjustments for action buttons */
    .icon-container {
        flex-direction: column;
        align-items: stretch;
    }

    .icon-container button {
        margin-bottom: 10px;
    }

    /* Adjustments for pagination */
    .pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .pagination button {
        margin-bottom: 10px;
    }
}

/* General improvements for better mobile experience */
input[type="text"], input[type="email"], input[type="password"], textarea {
    font-size: 16px; /* Prevents zoom on focus in iOS */
}

button {
    touch-action: manipulation; /* Improves touch response */
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #000000;
    color: white;
    padding: 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 2000; /* Increase this value */
    height: fit-content;
}

#notification {
    z-index: 9999; /* This should be higher than any other z-index in your stylesheet */
}

.notification.show {
    opacity: 1;
}

.download-icon {
    cursor: pointer;
    margin-bottom: 10px;
}

.campaigns-container {
    width: 80%;
    margin: 20px auto;
    background: white;
    padding: 20px;
}

/* Campaigns Table Styles */
#campaignsTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

#campaignsTable th,
#campaignsTable td {
    padding: 12px 15px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #e0e0e0;
}

#campaignsTable th {
    background-color: #ffffff;
    color: #000;
    font-weight: bold;
    border-bottom: 2px solid #e0e0e0;
}

#campaignsTable tr:last-child td {
    border-bottom: none;
}

#campaignsTable tr:nth-child(even) {
    background-color: #f9f9f9;
}

#campaignsTable tr:hover {
    background-color: #f0f0f0;
}

#campaignsTable th:first-child,
#campaignsTable td:first-child {
    width: 40px;
    padding: 10px;
    text-align: center;
}

#campaignsTable input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #333;
    border-radius: 3px;
    outline: none;
    transition: background-color 0.3s, border-color 0.3s;
    cursor: pointer;
    margin: 0;
    vertical-align: middle;
}

#campaignsTable input[type="checkbox"]:checked {
    background-color: #000;
    border-color: #000;
}

#campaignsTable input[type="checkbox"]:checked::after {
    content: '\2714';
    display: block;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    line-height: 18px;
}

/* Campaign Actions Styles */
.campaign-actions {
    margin-bottom: 20px;
}

.campaign-actions button {
    background: #FF6B000f;
    color: #FF6B00;
    border: none;
    padding: 10px 15px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
}

.campaign-actions button:hover {
    background-color: #e0e0e0;
}

/* New Campaign Button Styles */
#newCampaignButton {
    background-color: #FF6B00;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    margin-bottom: 20px;
}

#newCampaignButton:hover {
    background-color: #FF6B00;
}

/* Pagination Styles */
.campaigns-pagination {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
}

.campaigns-pagination button {
    background-color: #000;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
}

.campaigns-pagination button:hover {
    background-color: #000;
}

.campaigns-pagination button:disabled {
    background-color: #000;
    cursor: not-allowed;
}

/* Responsive styles */
@media (max-width: 768px) {
    #campaignsTable {
        font-size: 12px;
    }

    #campaignsTable th,
    #campaignsTable td {
        padding: 8px 10px;
    }

    .campaign-actions button,
    .campaigns-pagination button {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* Contacts Table Styles */
#contactsTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

#contactsTable th,
#contactsTable td {
    padding: 12px 15px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #e0e0e0;
}

#contactsTable th {
    background-color: #ffffff;
    color: #000;
    font-weight: bold;
    border-bottom: 2px solid #e0e0e0;
}

#contactsTable tr:last-child td {
    border-bottom: none;
}

#contactsTable tr:nth-child(even) {
    background-color: #f9f9f9;
}

#contactsTable tr:hover {
    background-color: #f0f0f0;
}

#contactsTable th:first-child,
#contactsTable td:first-child {
    width: 40px;
    padding: 10px;
    text-align: center;
}

#contactsTable input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #333;
    border-radius: 3px;
    outline: none;
    transition: background-color 0.3s, border-color 0.3s;
    cursor: pointer;
    margin: 0;
    vertical-align: middle;
}

#contactsTable input[type="checkbox"]:checked {
    background-color: #000;
    border-color: #000;
}

#contactsTable input[type="checkbox"]:checked::after {
    content: '\2714';
    display: block;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    line-height: 18px;
}

/* Action Buttons Styles */
.action-buttons {
    margin-bottom: 20px;
}

.action-buttons button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px 15px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
}

.action-buttons button:hover {
    background-color: #000;
}

/* Add Contacts Button Styles */
#addContactsButton {
    background-color: #FF6B00;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    margin-top: 20px;
}

#addContactsButton:hover {
    background-color: #FF6B00;
}

/* Pagination Styles */
.contacts-pagination {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
}

.contacts-pagination button {
    background-color: #000;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
}

.contacts-pagination button:hover {
    background-color: #000;
}

.contacts-pagination button:disabled {
    background-color: #000;
    cursor: not-allowed;
}

/* Campaign Tabs Styles */
.campaign-tabs {
    margin-bottom: 20px;
    border-bottom: solid;
}

.campaign-tabs button {
    background-color: #f0f0f0;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
    color: #000;
}

.campaign-tabs button.active {
    background-color: #000;
    color: #fff;
}

/* Campaign Title and Edit Button Container */
.campaign-title-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

#campaignTitle {
    margin: 0;
    margin-right: 10px;
}

#editTitleButton {
    background-color: #f0f0f0;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#editTitleButton:hover {
    background-color: #e0e0e0;
}

/* Style for the input when editing the title */
#campaignTitle input[type="text"] {
    font-size: 24px;
    font-weight: bold;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 10px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .campaign-title-container {
        flex-direction: column;
        align-items: flex-start;
    }

    #campaignTitle {
        margin-bottom: 10px;
    }

    #editTitleButton {
        align-self: flex-start;
    }
}

/* Email List Styles */

.email-item {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 10px;
}

.email-number {
    background: #FF6B000f;
    color: #FF6B00;
    width: 30px;
    padding: 10px;
    border-radius: 20px;
}

/* Add Email Step Button Styles */
#addEmailStepButton {
    background-color: #FF6B00;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    margin-top: 20px;
}

#addEmailStepButton:hover {
    background-color: #FF6B00;
}

/* Responsive styles */
@media (max-width: 768px) {
    #contactsTable {
        font-size: 12px;
    }

    #contactsTable th,
    #contactsTable td {
        padding: 8px 10px;
    }

    .action-buttons button,
    .contacts-pagination button,
    #addContactsButton,
    #addEmailStepButton {
        font-size: 12px;
        padding: 8px 12px;
    }

    .campaign-tabs button {
        font-size: 14px;
        padding: 8px 15px;
    }
}

/* General Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 90vh;
    overflow-y: auto;
}

/* Add to Campaign Popup Styles */
#add-to-campaign-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#add-to-campaign-popup .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#add-to-campaign-popup .popup-header h2 {
    font-size: 24px;
    margin: 0;
}

#add-to-campaign-popup .close-btn {
    font-size: 24px;
    color: #FF6B00;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#add-to-campaign-popup .popup-body {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

#add-to-campaign-popup label {
    margin-bottom: 10px;
    font-weight: bold;
}

#add-to-campaign-popup select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 20px;
}

#add-to-campaign-popup #add-to-campaign-btn {
    padding: 10px 20px;
    background-color: #FF6B00;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#add-to-campaign-popup #add-to-campaign-btn:hover {
    background-color: #FF6B00;
}

#add-to-campaign-popup .notificationSmall3 {
    margin-top: 20px;
}

/* Email Campaigns Popup Styles */
#email-campaigns-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#email-campaigns-popup .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#email-campaigns-popup .popup-header h2 {
    font-size: 24px;
    margin: 0;
}

#email-campaigns-popup .close-btn {
    font-size: 24px;
    color: #FF6B00;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#email-campaigns-popup .popup-body {
    display: flex;
    flex-direction: column;
}

#email-campaigns-popup .form-group {
    margin-bottom: 15px;
}

#email-campaigns-popup .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#email-campaigns-popup .form-group input[type="text"],
#email-campaigns-popup .form-group input[type="email"],
#email-campaigns-popup .form-group select,
#email-campaigns-popup .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

#email-campaigns-popup .connect-mailbox {
    display: flex;
    gap: 10px;
}

#email-campaigns-popup .mailbox-btn {
    padding: 10px 15px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Custom Dropdown for Dynamic Variables */
#email-campaigns-popup .custom-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}

#email-campaigns-popup .dropdown-toggle {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #000;
}

#email-campaigns-popup .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
}

#email-campaigns-popup .dropdown-menu.show {
    display: block;
}

#email-campaigns-popup .dropdown-menu li {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: 400;
    line-height: 1.42857143;
    color: #000;
    white-space: nowrap;
    cursor: pointer;
}

#email-campaigns-popup .dropdown-menu li:hover {
    background-color: #f5f5f5;
}

#email-campaigns-popup .dynamic-variables-group {
    position: relative;
    z-index: 1000;
}
/* Adjust the AI input and generate button layout */
#email-campaigns-popup .dynamic-variables-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

#email-campaigns-popup #ai-input {
    flex: 1;
    min-width: 200px;
}

#email-campaigns-popup .generate-ai-btn {
    white-space: nowrap;
}

#email-campaigns-popup .email-body {
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

#email-campaigns-popup .formatting-toolbar {
    background-color: #f0f0f0;
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

#email-campaigns-popup #email-body-editor {
    min-height: 200px;
    padding: 10px;
}

#email-campaigns-popup .send-email-btn,
#email-campaigns-popup .create-email-btn,
#email-campaigns-popup .edit-email-btn,
#email-campaigns-popup .add-to-campaign-btn {
    padding: 10px 20px;
    background-color: #FF6B00;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

#email-campaigns-popup .send-email-btn:hover,
#email-campaigns-popup .create-email-btn:hover,
#email-campaigns-popup .edit-email-btn:hover,
#email-campaigns-popup .add-to-campaign-btn:hover {
    background-color: #FF6B00;
}

/* Small Popup Styles */
.small-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.small-popup .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.small-popup .popup-header h2 {
    font-size: 20px;
    margin: 0;
}

.small-popup .close-btn {
    font-size: 24px;
    color: #FF6B00;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.small-popup .popup-body {
    display: flex;
    flex-direction: column;
}

.small-popup .form-group {
    margin-bottom: 15px;
}

.small-popup .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.small-popup .form-group input[type="text"],
.small-popup .form-group input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.small-popup #add-sendgrid-btn {
    padding: 10px 20px;
    background-color: #FF6B00;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.small-popup #add-sendgrid-btn:hover {
    background-color: #FF6B00;
}

.small-popup a {
    color: #FF6B00;
    text-decoration: none;
    font-size: 14px;
    margin-top: 10px;
    display: inline-block;
}

.small-popup a:hover {
    text-decoration: underline;
}

/* Notification Styles */
.notificationSmall,
.notificationSmall2,
.notificationSmall3 {
    display: none;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
}

.notificationSmall.success,
.notificationSmall2.success,
.notificationSmall3.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notificationSmall.error,
.notificationSmall2.error,
.notificationSmall3.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.notificationSmall.warning,
.notificationSmall2.warning,
.notificationSmall3.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.error-message {
    display: none; /* Hidden by default */
    color: red;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
}

.error-message.visible {
    display: block;
}
/* Campaign Page Actions */

.input-error {
    border-color: #f44336;
}

.email-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.email-actions button, .action-buttons button {
    margin-left: 10px;
    padding: 5px 10px;
    background: #FF6B000f;
    color: #FF6B00;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.email-actions button:hover, .action-buttons button:hover {
    background-color: #e0e0e0;
}

.edit-button {
    color: #000;
}

.pause-button {
    color: #000;
}

.delete-button {
    color: #000;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.contact-item input[type="checkbox"] {
    margin-right: 10px;
}

.contact-item .person-name, .contact-item .job-title, .contact-item .organization-name, .contact-item .last-email-received {
    flex: 2;
}

.contact-item .status {
    flex: 1;
}

.action-buttons {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

/* Styles for API Key section */
.info-item .copy-btn,
.info-item .refresh-btn {
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: fit-content;
    margin-left: 10px;
}

.info-item .copy-btn:hover,
.info-item .refresh-btn:hover {
    background-color: #e0e0e0;
}

/* Styles for connected emails list */
.connected-emails {
    list-style-type: none;
    padding: 0;
}

.connected-emails li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.connected-emails .remove-btn {
    color: #ff0000;
    cursor: pointer;
    font-weight: bold;
    background: none !important;
    text-align: right;
}



/* Login page styles */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: fit-content;
    background-color: #f0f2f5;
    flex-direction: column;
}

.login-container {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  margin-top: 30px;
  margin-bottom: 30px;
  width: fit-content;
  max-width: 380px;
}

.login-container h1 {
  text-align: left;
  margin-bottom: 0rem;
}

.centered-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.centered-form label {
    margin-bottom: 0.5rem;
}

.centered-form input[type="email"],
.centered-form input[type="password"] {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #FF6B00;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    box-sizing: border-box;
}

.submit-btn:hover {
    background-color: #FF6B00;
}

#forgotPassword {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #007bff;
    text-decoration: none;
}

#forgotPassword:hover {
    text-decoration: underline;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 2rem;
    border: 1px solid #888;
    border-radius: 8px;
    box-sizing: border-box;
    position: relative;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 1rem;
}

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

.close {
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 24px;
    cursor: pointer;
}

/* Onboarding Popup Styles */
.onboarding-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow-y: auto;
}

.onboarding-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.onboarding-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #000;
}

.onboarding-content p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: #000;
}

.onboarding-content .centered-form {
    display: flex;
    flex-direction: column;
}

.onboarding-content label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #000;
}

.onboarding-content textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    resize: vertical;
}

.onboarding-content .submit-btn {
    padding: 12px 20px;
    background-color: #FF6B00;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.onboarding-content .submit-btn:hover {
    background-color: #FF6B00;
}

.onboarding-content .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  color: #FF6B00;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0;
  line-height: 1;
  display: flex;
  flex-direction: row-reverse;
}

.onboarding-content .close-btn:hover {
    color: #FF6B00;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .onboarding-content {
        margin: 10% auto;
        padding: 20px;
    }

    .onboarding-content h3 {
        font-size: 1.3rem;
    }

    .onboarding-content p {
        font-size: 0.9rem;
    }

    .onboarding-content label {
        font-size: 0.9rem;
    }

    .onboarding-content textarea {
        font-size: 0.9rem;
    }

    .onboarding-content .submit-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Settings Page Styles */
.settings-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.your-information h2,
.your-mailboxes h2 {
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.save-btn {
    background-color: #000000;
    width: 100px;
    background: #000000;
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.save-btn:hover {
    background-color: #FF6B00;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    font-weight: bold;
    margin-bottom: 5px;
}

.info-item input[type="text"],
.info-item input[type="email"],
.info-item input[type="url"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
}

#changePasswordButton {
    background-color: #f0f0f0;
    color: #000;
    border: 1px solid #ccc;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: fit-content;
}

#changePasswordButton:hover {
    background-color: #e0e0e0;
}

.info-item .copy-btn,
.info-item .refresh-btn {
    background-color: #f0f0f0;
    color: #000;
    border: 1px solid #ccc;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.info-item .copy-btn:hover,
.info-item .refresh-btn:hover {
    background-color: #e0e0e0;
}

.credits-info {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.credits-info p {
    margin-bottom: 10px;
}

.note {
    font-size: 12px;
    color: #000;
    margin-top: 10px;
}

.cancel-subscription {
    color: #000;
    border: none;
    font-size: 12px;
    cursor: pointer;
    margin-top: 20px;
    padding: 0px;
    background-color: #fff;
    background: transparent;
    width:200px;
}

.cancel-subscription:hover {
    color: #c82333;
}

.connected-emails {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}

.connected-emails li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.connected-emails .remove-btn {
    background-color: transparent;
    color: #dc3545;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s ease;
    text-align: right;
}

.connected-emails .remove-btn:hover {
    color: #c82333;
}

/* API Key Section Styles */
.info-item.api-key-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item.api-key-section label {
    font-weight: bold;
}

.api-key-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.api-key-container input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.api-key-container .copy-btn,
.api-key-container .refresh-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 14px;
    background-color: #f0f0f0;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.api-key-container .copy-btn:hover,
.api-key-container .refresh-btn:hover {
    background-color: #e0e0e0;
}

/* Change Password Popup Styles */
#changePasswordPopup {
    width: 90%;
    max-width: 400px;
}

#changePasswordPopup .popup-content {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    position: relative;
}

#changePasswordPopup h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

#changePasswordPopup input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

#changePasswordPopup #confirmChangePassword {
    width: 100%;
    padding: 12px;
    background-color: #FF6B00;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

#changePasswordPopup #confirmChangePassword:hover {
    background-color: #FF6B00;
}

#changePasswordPopup .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #FF6B00;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#changePasswordPopup .close-btn:hover {
    color: #FF6B00;
}

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

    .settings-container {
        padding: 10px;
    }

    .your-information h2,
    .your-mailboxes h2 {
        font-size: 20px;
    }
}

#cancellationPopup {
    max-width: 500px;
    width: 90%;
}

#cancellationPopup .popup-content {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    position: relative;
}

#cancellationPopup h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #000;
}

#cancellationPopup p {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #000;
}

#cancellationPopup textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    resize: vertical;
}

#cancellationPopup #submitCancellation {
    padding: 12px 20px;
    background-color: #FF6B00;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

#cancellationPopup #submitCancellation:hover {
    background-color: #FF6B00;
}

#cancellationPopup .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #FF6B00;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#cancellationPopup .close-btn:hover {
    color: #000;
}

/* Enrichment styles */
.enrichment-row {
    background-color: #e6f7e6;
}

.enrichment-status {
    display: flex;
    align-items: center;
    background-color: #e6f7e6;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.magnifying-glass-icon {
    margin-right: 5px;
    animation: spin 1s linear infinite;
}

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

.table-cell-content {
    display: inline-block;
    max-width: 200px; /* Adjust this value as needed */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Optional: Style for the tooltip */
.table-cell-content:hover::after {
    content: attr(title);
    position: absolute;
    background: #f9f9f9;
    color: #000;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    z-index: 1000;
    white-space: normal;
    max-width: 300px; /* Adjust as needed */
    word-wrap: break-word;
}

/* info columns */

.info-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.info-column {
    flex: 1 1 100%;
    margin-bottom: 20px;
}

.info-column h3 {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-bottom: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.info-column ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    max-width: 300px;
}

.info-column li {
    font-size: 13px;
    color: #000;
    line-height: 1.3;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.info-column li:hover {
    color: #000;
}

@media (min-width: 768px) {
    .info-column {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (min-width: 1024px) {
    .info-column {
        flex: 1 1 calc(33.333% - 20px);
    }
    
    .info-column h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .info-column li {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 10px;
    }
}
/* Company Profile Styles */
.company-profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.company-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.company-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-right: 20px;
}

.company-header h1 {
    font-size: 36px;
    color: #000;
    margin: 0;
}

.company-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
}

.quick-info-item {
    display: flex;
    align-items: center;
}

.quick-info-item i {
    margin-right: 10px;
    color: #FF6B00;
}

.company-description {
    margin-bottom: 40px;
}

.company-description h2,
.info-column h2,
.social-links h2 {
    font-size: 24px;
    color: #000;
    margin-bottom: 15px;
    border-bottom: 2px solid #FF6B00;
    padding-bottom: 5px;
}

.company-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #000;
}

.info-columns {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.info-column {
    flex: 1;
}

.info-column ul {
    list-style-type: none;
    padding: 0;
}

.info-column li {
    margin-bottom: 10px;
}

.info-column strong {
    font-weight: 600;
    color: #000;
}

.social-links ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 20px;
}

.social-links a {
    text-decoration: none;
    color: #FF6B00;
    font-weight: bold;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.social-links a i {
    margin-right: 5px;
}

.social-links a:hover {
    color: #0c7a00;
}


.technology-stack,
.market-presence,
.leadership,
.products-services {
    margin-bottom: 40px;
}

.technology-stack h2,
.market-presence h2,
.leadership h2,
.products-services h2 {
    font-size: 24px;
    color: #000;
    margin-bottom: 15px;
    border-bottom: 2px solid #FF6B00;
    padding-bottom: 5px;
}

.technology-stack p,
.market-presence p,
.leadership p,
.products-services p {
    font-size: 16px;
    line-height: 1.6;
    color: #000;
}

.leadership,
.employees {
    margin-bottom: 40px;
}

.leadership h2,
.employees h2 {
    font-size: 24px;
    color: #000;
    margin-bottom: 15px;
    border-bottom: 2px solid #FF6B00;
    padding-bottom: 5px;
}

.leadership ul,
.employees ul {
    list-style-type: none;
    padding: 0;
}

.leadership li,
.employees li {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.4;
}

.leadership a,
.employees a {
    color: #FF6B00;
    text-decoration: none;
}

.leadership a:hover,
.employees a:hover {
    text-decoration: underline;
}

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

    .company-logo {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .info-columns {
        flex-direction: column;
    }
}
/* Directory pages styling */

:root {
    --brand-green: #FF6B00;
    --brand-green-hover: #FF8A00;
    --cta-brand-bg: #0a0a0a;
    --cta-brand-bg-hover: #161616;
    /* Bottom tab: hot orange → gold (matches primary CTA reference) */
    --cta-brand-strip: linear-gradient(90deg, #ff3d00 0%, #ff5a00 18%, #ff8c00 45%, #ffc107 78%, #ffd700 100%);
    --cta-brand-shadow: 0 6px 22px rgba(0, 0, 0, 0.14);
    --cta-brand-shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.directory-container,
.company-directory-container,
.company-directory-letter-container,
.company-directory-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

h1 {
    color: #000;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    color: #000;
    font-size: 1.8rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: #000;
}

/* Alphabet navigation */
.alphabet-nav {
    margin: 2rem 0;
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 4px;
}

.alphabet-nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.alphabet-nav li {
    margin: 0.3rem;
}

.alphabet-nav a {
    display: inline-block;
    padding: 0.5rem 0.8rem;
    background-color: var(--brand-green);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.alphabet-nav a:hover,
.alphabet-nav a.active {
    background-color: var(--brand-green-hover);
}

/* Company list */
.company-list {
    list-style-type: none;
    padding: 0;
}

.company-list li {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.company-list li:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.company-list h3 {
    color: var(--brand-green);
    margin-bottom: 0.5rem;
}

.company-list p {
    color: #000;
}


/* Directory options */
.directory-options {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.directory-option {
    flex-basis: 48%;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.directory-option h2 a {
    color: var(--brand-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.directory-option h2 a:hover {
    color: var(--brand-green-hover);
}

/* Directory benefits */
.directory-benefits ul,
.directory-usage ol {
    padding-left: 1.5rem;
    color: #000;
}

.directory-benefits li,
.directory-usage li {
    margin-bottom: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .directory-options {
        flex-direction: column;
    }

    .directory-option {
        flex-basis: 100%;
        margin-bottom: 1rem;
    }

    .alphabet-nav ul {
        justify-content: flex-start;
    }

    .alphabet-nav li {
        margin: 0.2rem;
    }

    .alphabet-nav a {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }
}
/* Blog Page Styles */
.blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.blog-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #000;
}

.blog-list {
    list-style: none;
    padding: 0;
}

.blog-item {
    background: #fff;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.blog-item-image-link {
    display: block;
    margin-bottom: 1.5rem;
}

.blog-item-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.blog-item-image-link:hover .blog-item-image {
    opacity: 0.9;
}

.blog-item h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.blog-item h2 a {
    text-decoration: none;
    color: #000;
}

.blog-item h2 a:hover {
    color: #FF6B00;
}

.blog-meta {
    font-size: 0.9rem;
    color: #000;
    margin-bottom: 1rem;
}

.blog-summary {
    font-size: 1rem;
    color: #000;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: #000;
    text-decoration: underline;
    font-weight: bold;
}

.read-more:hover {
    color: #FF6B00;
    text-decoration: underline;
}

.blog-article-count {
    text-align: center;
    color: #000;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.blog-pagination {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 0 1rem;
    flex-wrap: wrap;
}

.blog-pagination-btn {
    display: inline-block;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    background: #FF6B00;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.blog-pagination-btn:hover {
    background: #d45a00;
    color: #fff;
    text-decoration: none;
}

.blog-pagination-btn--disabled {
    background: #ddd;
    color: #aaa;
    cursor: default;
    pointer-events: none;
}

.blog-pagination-pages {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
}

.blog-pagination-page {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    border-radius: 5px;
    text-decoration: none;
    color: #000;
    font-size: 0.95rem;
    border: 1px solid #ddd;
    transition: background 0.15s;
}

.blog-pagination-page:hover {
    background: #f5f5f5;
    text-decoration: none;
}

.blog-pagination-page--active {
    background: #FF6B00;
    color: #fff;
    border-color: #FF6B00;
    font-weight: 700;
    cursor: default;
}

.blog-pagination-ellipsis {
    color: #000;
    padding: 0 0.25rem;
}

/* ======================================== */
/* Individual Blog Article Styles           */
/* ======================================== */

.blog-page-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    /* Space between TOC and article; table uses flex space to the right of TOC, not 760px */
    gap: 1.75rem;
    position: relative;
}

.article-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 2rem;
    flex: 1;
    min-width: 0;
}

/* With sidebar: main column may grow to ~min(100%, 1200 - sidebar - padding); wide tables get real room */
.blog-page-wrapper > .article-container {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    flex: 1 1 0%;
    min-width: 0;
}

.blog-article {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.blog-article h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #000;
    letter-spacing: -0.02em;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.blog-article .blog-meta {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #000;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.3rem;
}

.blog-article .blog-meta span[itemprop="author"] {
    color: #000;
    font-weight: 600;
}

.blog-content {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.05rem;
    color: #000;
    line-height: 1.85;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

.blog-content h2, .blog-content h3 {
    font-family: 'Roboto', sans-serif;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #000;
    font-weight: 700;
    line-height: 1.3;
}

.blog-content h2 {
    font-size: 1.6rem;
}

.blog-content h3 {
    font-size: 1.25rem;
}

.blog-content a {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-content a:hover {
    color: #FF6B00;
}

.blog-content li {
    margin: 8px 0;
}

.blog-content blockquote {
    border-left: 4px solid #3b82f6;
    margin: 1.5em 0;
    padding: 1em 1.5em;
    font-style: italic;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    font-size: 1.1em;
    color: #1e293b;
}
.blog-content .key-takeaway {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-left: 4px solid #2563eb;
    padding: 1em 1.5em;
    margin: 1.5em 0;
    border-radius: 0 8px 8px 0;
}
.blog-content .key-takeaway strong { color: #1e40af; }
.blog-content .stat-highlight {
    text-align: center;
    padding: 1.5em;
    margin: 1.5em 0;
    background: #f0fdf4;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
}
.blog-content .stat-highlight .stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: 800;
    color: #16a34a;
    line-height: 1.2;
}
.blog-content .stat-highlight .stat-label {
    display: block;
    font-size: .95em;
    color: #374151;
    margin-top: .3em;
}
.blog-content .pro-tip {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-left: 4px solid #f59e0b;
    padding: 1em 1.5em;
    margin: 1.5em 0;
    border-radius: 0 8px 8px 0;
}
.blog-content .pro-tip strong { color: #92400e; }

/* --- Sticky Sidebar TOC --- */
.blog-toc-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    max-height: calc(100vh - 140px);
}

.blog-toc-nav {
    overflow-y: auto;
    max-height: calc(100vh - 140px);
    padding-right: 1.5rem;
}

.blog-toc-label {
    font-family: 'Roboto', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.blog-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-toc-list li {
    margin-bottom: 0;
}

.blog-toc-link {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #000 !important;
    text-decoration: none !important;
    padding: 6px 0 6px 12px;
    border-left: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    opacity: 0.6;
}

.blog-toc-link:hover {
    color: #000 !important;
    opacity: 1;
}

.blog-toc-link.active {
    color: #000 !important;
    font-weight: 600;
    border-left-color: #000;
    opacity: 1;
}

/* Hide the inline TOC that's inside the article content */
.blog-content .table-of-contents {
    display: none;
}

/* Feature image inside article */
.article-container .feature-image {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2.5rem;
}

.blog-article img {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* --- Blog Article Responsive --- */
@media (max-width: 1024px) {
    .blog-toc-sidebar {
        display: none;
    }
    .blog-page-wrapper {
        max-width: 760px;
        padding: 1.5rem 1rem;
    }
    .blog-content .table-of-contents {
        display: block;
        background: #f9f9f9;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 1.2rem 1.5rem;
        margin-bottom: 2rem;
    }
    .blog-content .table-of-contents h3 {
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #000;
        margin-top: 0;
        margin-bottom: 0.8rem;
    }
    .blog-content .table-of-contents ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .blog-content .table-of-contents li {
        margin: 0;
    }
    .blog-content .table-of-contents a {
        font-size: 0.9rem;
        color: #000;
        text-decoration: none;
        display: block;
        padding: 5px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    .blog-content .table-of-contents a:hover {
        color: #FF6B00;
    }
    .blog-content .table-of-contents li:last-child a {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .blog-article h1 {
        font-size: 1.75rem;
        line-height: 1.25;
        letter-spacing: -0.01em;
    }
    .article-container {
        padding: 0 1rem;
    }
    .blog-page-wrapper {
        padding: 1rem 0.5rem;
    }
    .blog-content {
        font-size: 1rem;
    }
    .blog-content h2 {
        font-size: 1.3rem;
    }
    .blog-content h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .blog-article h1 {
        font-size: 1.5rem;
        line-height: 1.25;
    }
    .article-container {
        padding: 0 0.75rem;
    }
    .blog-content {
        font-size: 0.95rem;
        line-height: 1.75;
    }
}

/* Target Audience Section */
.target-audience {
    background-color: transparent;
    padding: 4rem 0;
}

.target-audience .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    /* Override any inherited display property */
    display: block; /* Ensure the container behaves as a block element */
}

.centered-heading {
    font-size: clamp(1.55rem, 4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 1rem;
    color: #111;
}

.centered-heading + .section-subtitle {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto 2rem;
    text-align: center;
}

.audience-columns {
    display: flex; /* Flex container for the columns */
    justify-content: space-between;
    gap: 2rem;
}

.for-column, .not-for-column {
    flex: 1;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.for-column h3, .not-for-column h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #000;
}

.for-column ul, .not-for-column ul {
    list-style-type: none;
    padding-left: 0;
}

.for-column li, .not-for-column li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #000;
}

.for-column {
    border-left: 4px solid #FF6B00;
}

.not-for-column {
    border-left: 4px solid #dc3545;
}

@media (max-width: 768px) {
    .audience-columns {
        flex-direction: column;
    }

    .for-column, .not-for-column {
        margin-bottom: 2rem;
    }
}

/* Add at the end of your CSS file */

/* Display states */
.display-none {
    display: none;
}

.display-block {
    display: block;
}

/* Popup visibility classes */
.popup-visible {
    display: block;
}

.popup-hidden {
    display: none;
}

/* Debug styles */
pre {
    border: 1px solid #ddd;
    margin: 1em 0;
    padding: 1em;
    background: #f8f9fa;
}

code {
    color: #e83e8c;
    background-color: #f8f9fa;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    text-wrap: auto;
}

.code-block-container {
    position: relative;
    margin: 1.5em 0;
    border: 2px solid #007bff;  /* Make it obvious where our containers are */
    border-radius: 6px;
    overflow: hidden;
}

.code-block-container pre {
    margin: 0;
  border: none;
    background-color: #f8f9fa;
}

.code-block-container code {
  display: block;
    padding: 1em;
  color: #000;
  background: none;
}

/* Update code block styles to preserve formatting during typing */
.code-block-container {
    position: relative;
    margin: 1.5em 0;
    background-color: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    overflow: hidden;
}

.code-block-container pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    white-space: pre !important; /* Force pre formatting */
    tab-size: 4;
}

.code-block-container code {
    display: block;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 14px;
    line-height: 1.45;
    color: #24292e;
    white-space: pre !important; /* Force pre formatting */
    word-wrap: normal !important; /* Prevent unwanted wrapping */
    padding: 0;
    margin: 0;
    background-color: transparent;
    border: 0;
    overflow: visible;
    tab-size: 4;
}

/* Fix spacing issues during typing */
.assistant-message pre {
    white-space: pre !important;
    word-wrap: normal !important;
    tab-size: 4;
    overflow-x: auto;
}

.assistant-message code {
    white-space: pre !important;
    word-wrap: normal !important;
    tab-size: 4;
}

.citation-link {
  color: #FF6B00;
  text-decoration: none;
  padding: 0 2px;
  transition: all 0.2s ease;
}

.citation-link:hover {
  color: #003366;
  text-decoration: underline;
  background-color: rgba(0, 102, 204, 0.1);
}

.video-citation {
  margin: 20px 0;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
}

.video-embed {
  margin-top: 10px;
}

.video-embed h4 {
    margin-bottom: 10px;
  color: #000;
}

.video-embed iframe {
  max-width: 100%;
  border: none;
  border-radius: 4px;
}

@media (max-width: 768px) {
    iframe {
        max-width: fit-content;
        max-height: fit-content;
    }
}


/* Override global iframe rules for Twitter embeds on mobile */
@media (max-width: 768px) {
  blockquote.twitter-tweet iframe,
  .twitter-tweet iframe,
  iframe.twitter-tweet-rendered,
  .twitter-tweet-rendered {
    max-height: none !important;
  }
}


/* Add after the .assistant-message styles */

.message-container {
  display: flex;
  gap: 20px;
  width: 100%;
}

.message-content {
  flex: 1;
  min-width: 0; /* Prevents flex item from overflowing */
}

.citations-column {
  width: 300px;
  flex-shrink: 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e1e4e8;
  max-height: 500px;
  overflow-y: auto;
}

.youtube-embed {
  margin-bottom: 15px;
}

.youtube-embed iframe {
  width: 100%;
  border-radius: 8px;
  border: none;
}

.youtube-title {
  font-size: 14px;
  color: #000;
  margin: 5px 0;
  line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .message-container {
    flex-direction: column;
  }
  
  .citations-column {
    width: 100%;
    max-height: none;
  }
}

a {
  color: #FF6B00;
}

/* Update container to support 3-column layout */
.container {
  display: flex;
  width: 100%;
  height: fit-content;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 768px) {
  .container {
    padding: 20px 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 16px 12px;
  }
}

/* Add styles for the extras column */
.extras-column {
  width: 320px;
  background-color: #ffffff;
  border-left: 0px solid #e0e0e0;
  padding: 20px;
  height: 100vh;
  overflow-y: auto;
  position: fixed;
  right: 0;
  top: 0;
}

/* Adjust for mobile responsiveness */
@media (max-width: 1024px) {
  .extras-column {
    display: none;  /* Hide extras column on mobile */
  }
  
  .main-content {
    margin-right: 0;  /* Remove right margin when extras column is hidden */
  }
}

@media (max-width: 768px) {
  .main-content {
    width: 100%;  /* Full width on very small screens */
    margin-left: 0;
  }
}

.video-block {
    margin-bottom: 20px;
    display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.video-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.2s ease-in-out;
}

/* Main featured video */
.video-container.prominent {
  width: 100%;
  aspect-ratio: 16/9;
  margin-bottom: 15px; /* Add space between rows */
}

/* Smaller videos in second row */
.video-container.small {
  width: calc(50% - 8px); /* Account for gap between videos */
  aspect-ratio: 16/9;
}

/* Ensure proper spacing in mobile view */
@media (max-width: 768px) {
  .video-block {
    gap: 10px;
  }
  
  .video-container.small {
    width: 100%; /* Stack videos vertically on mobile */
  }
}

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

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

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

.watch-button {
  background-color: #fff;
  color: #000;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.video-block {
  margin-bottom: 20px;
    display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.video-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.2s ease-in-out;
}

/* Main featured video - always full width */
.video-container.prominent {
  width: 100%;
  aspect-ratio: 16/9;
  margin-bottom: 15px;
}

/* Smaller videos in second row */
.video-container.small {
  width: calc(50% - 8px);
  aspect-ratio: 16/9;
}

/* Single small video should take full width of its row */
.video-container.small:only-of-type {
  width: 100%;
}

/* Sources Block Styles */
.sources-block {
  margin-top: 30px;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
}

.sources-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.sources-heading h2 {
  font-size: 20px;
  font-weight: 600;
  color: #000;
  margin: 0;
}

.source-card {
  padding: 15px;
  border-radius: 8px;
  background: #f8f8f8;
  margin-bottom: 10px;
  transition: background-color 0.2s ease;
}

.source-card:hover {
  background: #f0f0f0;
}

.source-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.source-title {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  line-height: 1.4;
}

.source-domain {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #000;
}

.source-domain img {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

.source-description {
  font-size: 13px;
  color: #000;
  line-height: 1.5;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.citation-tooltip {
  position: fixed;
  z-index: 1000;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 12px;
  max-width: 300px;
  width: 100%;
  pointer-events: none;
  animation: fadeIn 0.2s ease-in-out;
}

.citation-tooltip .source-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.citation-tooltip .source-title {
  font-weight: 600;
        font-size: 14px;
  color: #000;
  line-height: 1.4;
}

.citation-tooltip .source-domain {
    display: flex;
    align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #000;
}

.citation-tooltip .source-domain img {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

.citation-tooltip .source-description {
  font-size: 13px;
  color: #000;
  line-height: 1.5;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

/* Styles for the generated image */
.generated-image-container {
  position: relative;
    width: 100%;
    margin-bottom: 20px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.generated-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
    cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.generated-image.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
  transform: translate(-50%, -50%) scale(1.5);
    max-height: 90vh;
  max-width: 90vw;
    z-index: 1000;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.image-loading {
  width: 100%;
  height: 200px;
    display: flex;
  flex-direction: column;
    align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 8px;
    margin-bottom: 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

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

.message.streaming {
  animation: pulse 2s infinite;
}

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

.generate-image-btn {
  background: none;
  border: 1px dotted rgba(128, 128, 128, 0.3);
  border-radius: 8px;
  padding: 12px 16px; /* Slightly increased padding */
  display: inline-flex !important; /* Changed to inline-flex */
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #585858;
  margin-bottom: 10px;
  width: 100%; /* Changed from 100% to auto */
  min-width: 160px; /* Added minimum width */
  font-size: 14px; /* Added explicit font size */
  line-height: 1; /* Added to ensure proper text alignment */
}

.generate-image-btn:hover {
  background: rgba(128, 128, 128, 0.05); /* Very subtle hover effect */
  border-color: rgba(128, 128, 128, 0.5); /* Slightly darker border on hover */
}

.generate-image-btn svg {
  width: 16px; /* Reduced from 24px */
  height: 16px; /* Reduced from 24px */
  opacity: 0.8; /* Increased from 0.6 */
  flex-shrink: 0; /* Prevent icon from shrinking */
}

.emotional-connection {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #f9f9f9, #ffffff);
    position: relative;
  overflow: hidden;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.emotional-connection .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.emotional-connection h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 30px;
    color: #000;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    width: 100%;
}

.emotional-connection p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    color: #5a6a7e;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .emotional-connection {
        padding: 40px 15px;
        min-height: 300px;
    }

    .emotional-connection .container {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .emotional-connection {
        padding: 30px 10px;
    }

    .emotional-connection .container {
        padding: 20px 15px;
    }
}

/* Add animation for the gradient */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero h1 {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.hero h1:hover {
    transition: all 0.3s ease;
}

/* Add these styles for the testimonials section */

.testimonials-section {
  padding: 4rem 2rem;
  background-color: transparent;
  text-align: center;
}

.testimonials-section .section-subtitle {
  max-width: 600px;
  margin: 1rem auto 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}

.tweet-card {
  background: #ffffff;
  border: 1px solid #e1e8ed;
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 500px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  transition: box-shadow 0.3s ease;
}

.tweet-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tweet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.tweet-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tweet-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #e1e8ed;
}

.tweet-user-info {
  display: flex;
  flex-direction: column;
}

.tweet-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f1419;
  margin: 0;
  line-height: 1.2;
}

.tweet-username {
  font-size: 15px;
  color: #536471;
  font-weight: 400;
}

.tweet-x-logo {
  fill: #000000;
  opacity: 0.8;
}

.tweet-content {
  margin-bottom: 1rem;
}

.tweet-content p {
  font-size: 15px;
  line-height: 1.5;
  color: #0f1419;
  margin: 0 0 0.5rem 0;
}

.tweet-content p:last-child {
  margin-bottom: 0;
}

.tweet-footer {
  border-top: 1px solid #eff3f4;
  padding-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tweet-time {
  font-size: 13px;
  color: #536471;
}

.tweet-actions {
  display: flex;
  gap: 1.5rem;
}

.tweet-action {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #536471;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.tweet-action:hover {
  color: #1d9bf0;
}

.tweet-action svg {
  fill: currentColor;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .testimonials-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
  }
  
  .tweet-card {
      padding: 1rem;
      margin: 0;
      max-width: 100%;
  }
  
  .tweet-actions {
      gap: 1rem;
  }
}
/* Add these styles for the floating particles */

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.18) 0%, rgba(255, 69, 0, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 25s ease-in-out infinite;
    filter: blur(0.5px);
}

.particle:nth-child(even) {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, rgba(168, 85, 247, 0.04) 50%, transparent 70%);
}

/* Create different sizes and starting positions for particles */
.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: -2s; width: 8px; height: 8px; }
.particle:nth-child(3) { left: 30%; top: 40%; animation-delay: -4s; width: 5px; height: 5px; }
.particle:nth-child(4) { left: 40%; top: 60%; animation-delay: -6s; width: 7px; height: 7px; }
.particle:nth-child(5) { left: 50%; top: 30%; animation-delay: -8s; }
.particle:nth-child(6) { left: 60%; top: 70%; animation-delay: -10s; width: 6px; height: 6px; }
.particle:nth-child(7) { left: 70%; top: 50%; animation-delay: -12s; width: 5px; height: 5px; }
.particle:nth-child(8) { left: 80%; top: 90%; animation-delay: -14s; }
.particle:nth-child(9) { left: 90%; top: 10%; animation-delay: -16s; width: 7px; height: 7px; }
.particle:nth-child(10) { left: 95%; top: 45%; animation-delay: -18s; width: 5px; height: 5px; }

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-80px) rotate(180deg);
        opacity: 0.35;
    }
    100% {
        transform: translateY(-160px) rotate(360deg);
        opacity: 0.5;
    }
}

/* Ensure main content stays above particles */
main {
    position: relative;
    z-index: 1;
}

/* Adjust particle visibility for mobile */
@media (max-width: 768px) {
    .particle {
        opacity: 0.4;
    }
}

/* Updated Carousel styles */
video {
  margin: 20px;
  border: solid;
  border-radius: 10px;
}
* 
.carousel-section {
  padding: 40px 20px;
  background-color: transparent;
}

.carousel-section .container {
  max-width: 1200px; /* Or your preferred container width */
  margin: 0 auto; /* Center the container */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.carousel {
    position: relative;
    width: 100%;
    max-width: 800px; /* Add max-width for larger screens */
    margin: 0 auto;
    height: fit-content; /* Allow height to adjust based on content */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-inner {
    display: flex;
    width: 600%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother easing */
}

.carousel-slide {
    width: 16.667%;
    flex-shrink: 0; /* Prevent slides from shrinking */
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensure full image is visible */
    max-height: 400px; /* Set a max height for larger screens */
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.dot.active {
    background: #ffffff;
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .carousel {
        margin-bottom: 20px;
    }

    .carousel-slide img {
        max-height: 250px; /* Adjust max height for mobile */
    }

    .carousel-dots {
        bottom: 15px;
        gap: 8px;
        padding: 8px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }
}

/* Add touch support */
.carousel {
  touch-action: pan-y pinch-zoom;
}

/* Pricing Toggle Styles */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px auto;
    padding: 10px;
    max-width: 300px;
}

.billing-toggle span {
    font-size: 16px;
    color: #000;
    cursor: pointer;
    transition: color 0.3s ease;
}

.billing-toggle span.active {
    color: #FF6B00;
    font-weight: 600;
}

/* Modern Toggle Switch */

.toggle-switch {
  position: relative;
  width: 60px;
  height: 30px;
  background: #f0f0f0;
  border-radius: 15px;
  padding: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid #ddd;
}

.toggle-switch:hover {
  background: #e8e8e8;
}

.toggle-switch input {
  display: none;
}

/* Make the label act as the track container */
.toggle-switch .switch {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 100%;
}

/* The knob */
.toggle-switch .slider {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 26px;
  height: 26px;
  background: #FF6B00;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Move the knob when checked */
.toggle-switch .switch input:checked + .slider {
  transform: translateX(30px);
}

.toggle-switch input:checked + .switch {
    transform: translateX(30px);
}

p.guarantee {
    text-align: center;
}

/* Save Indicator */
.save-indicator {
    font-size: 14px;
    color: #FF6B00;
    margin-top: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.save-indicator.show {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .billing-toggle {
        gap: 15px;
        padding: 8px;
    }

    .billing-toggle span {
        font-size: 14px;
    }

    .toggle-switch {
        width: 50px;
        height: 26px;
    }

    .toggle-switch input:checked + .switch {
        transform: translateX(24px);
    }
}

.menu-toggle {
  display: none;
  background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    text-align: right;
  }
  
}

.features-grid .feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.features-grid .feature-card p {
  margin-bottom: 1rem;
}
.feature-bullets {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
  text-align: left;
}
.feature-bullets li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.4;
}
.yellow-arrow {
  color: #FF4500;
  margin-right: 0.75rem;
  font-weight: bold;
  margin-top: 2px;
}
/* Feature mockup styles */
.feature-mockup {
  background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}
.feature-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF6B00, #ff6b35);
}
.mockup-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #dee2e6;
}
.mockup-status {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #28a745;
  font-weight: 500;
}
.mockup-content {
  color: #000;
  line-height: 1.4;
}
.mockup-metric {
  background: #fff;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #dee2e6;
  margin: 0.5rem 0;
  display: inline-block;
  font-weight: 500;
}
.mockup-list {
  background: #fff;
  padding: 0.75rem;
  border-radius: 4px;
  border: 1px solid #dee2e6;
  margin: 0.5rem 0;
}
.mockup-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
  border-bottom: 1px solid #f1f3f4;
}
.mockup-list-item:last-child {
  border-bottom: none;
}
.mockup-button {
  background: #FF6B00;
  color: #000;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

/* Landing Pages List Styles */
.lander-container {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  margin: auto;
  overflow-x: hidden;
}

.lander-container section {
  max-width: 100vw;
  overflow-x: hidden;
}

.lander-container table {
  width: 100%;
  max-width: 100%;
  display: table;
}

@media (max-width: 640px) {
  .lander-container table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .lander-container table th,
  .lander-container table td {
    font-size: 0.85rem;
    padding: 10px 8px !important;
    word-break: break-word;
  }

  .lander-container section > div {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .lander-container h1 {
    font-size: 1.75rem !important;
  }

  .lander-container h2 {
    font-size: 1.4rem !important;
  }
}

/* LP: video-first landers (e.g. Claude / SEO walkthrough) */
.lander-lp-video-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  gap: 24px;
  box-sizing: border-box;
}

.lander-lp-video-section h1 {
  text-align: center;
  margin: 0;
  color: #000;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.25;
}

.lander-lp-video-section .lander-lp-lead {
  text-align: center;
  margin: 0;
  max-width: 640px;
  color: #333;
  line-height: 1.6;
  font-size: 1.05rem;
}

.lander-lp-video-section .lander-lp-bullets {
  width: 100%;
  max-width: 640px;
  margin: 0;
  padding-left: 1.25rem;
  color: #222;
  line-height: 1.65;
}

.lander-lp-video-section .lander-lp-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.landing-pages-container {
  max-width: 800px;
    margin: 0 auto;
  padding: 2rem;
}

.landing-pages-container h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
    color: #000;
}

.landing-page-item {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.landing-page-item h2 {
  margin-bottom: 0.5rem;
}

.landing-page-item h2 a {
    color: #FF6B00;
    text-decoration: none;
    transition: color 0.3s ease;
}

.landing-page-item h2 a:hover {
  color: #FF4500;
}

.landing-page-item p {
    color: #000;
    line-height: 1.4;
}

/* Landing Pages List Styles */
.landing-pages-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.landing-pages-container h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #000;
  text-align: center;
}

.landing-pages-list {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* Consistent spacing between items */
}

.landing-page-item {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.landing-page-item:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.landing-page-item h2 {
  margin-bottom: 0.8rem;
  font-size: 1.8rem;
}

.landing-page-item h2 a {
  color: #FF6B00;
  text-decoration: none;
  transition: color 0.3s ease;
}

.landing-page-item h2 a:hover {
  color: #FF4500;
}

.landing-page-item p {
  color: #000;
  line-height: 1.6;
  font-size: 1rem;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .landing-pages-container {
    padding: 1.5rem;
  }

  .landing-pages-container h1 {
    font-size: 2rem;
  }

  .landing-page-item {
    padding: 1rem;
  }

  .landing-page-item h2 {
    font-size: 1.5rem;
  }
}

/* Brand primary CTAs: black + gradient bottom tab (matches hero). Not .nav-cta-button / .promo-sticky-banner-cta */
a.hero-cta.primary,
a.cta-button,
a.cta-button-new,
a.ft-cta-btn {
  position: relative;
  color: #fff !important;
  border: none !important;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  background: var(--cta-brand-strip) bottom / 100% 5px no-repeat, var(--cta-brand-bg);
  box-shadow: var(--cta-brand-shadow) !important;
}

a.hero-cta.primary,
a.cta-button-new,
a.ft-cta-btn {
  padding: 12px 28px 16px;
  font-size: 0.95rem;
}

a.cta-button {
  padding: 16px 40px 20px;
  font-size: 1.25rem;
}

a.hero-cta.primary:hover,
a.cta-button:hover,
a.cta-button-new:hover,
a.ft-cta-btn:hover {
  color: #fff !important;
  background: var(--cta-brand-strip) bottom / 100% 5px no-repeat, var(--cta-brand-bg-hover) !important;
  transform: translateY(-2px);
  box-shadow: var(--cta-brand-shadow-hover) !important;
}

a.hero-cta.primary:active,
a.cta-button:active,
a.cta-button-new:active,
a.ft-cta-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  a.hero-cta.primary,
  a.cta-button-new,
  a.ft-cta-btn {
    padding: 11px 24px 14px;
    font-size: 0.9rem;
  }
  a.cta-button {
    padding: 14px 32px 17px;
    font-size: 1.1rem;
  }
  .pricing .cta-button-new {
    padding: 1.02rem 2rem 1.2rem;
    font-size: 1.22rem;
  }
}

@media (max-width: 480px) {
  a.hero-cta.primary,
  a.cta-button-new,
  a.ft-cta-btn {
    padding: 10px 20px 13px;
    font-size: 0.85rem;
  }
  .pricing .cta-button-new {
    padding: 0.95rem 1.75rem 1.1rem;
    font-size: 1.05rem;
  }
  .hero a.hero-cta.primary,
  .hero-v4 a.hero-cta.primary,
  .hero-v5 a.hero-cta.primary,
  .hero-v6 a.hero-cta.primary {
    width: 100%;
    max-width: 280px;
  }
}


/* Container for multiple file previews above the chat input */
.file-previews-container {
  display: flex; /* Arrange previews horizontally */
  flex-wrap: wrap; /* Allow previews to wrap to the next line */
  gap: 10px; /* Space between previews */
  margin-bottom: 10px; /* Space below the container */
  padding: 5px; /* Optional padding inside the container */
  max-height: 180px; /* Limit container height */
  overflow-y: auto; /* Add scrollbar if previews exceed max height */
}

/* Individual file preview container */
.file-preview-container {
  position: relative; /* Needed for absolute positioning of the button */
  display: flex; /* Make them inline elements */
  /* Removed margin-bottom as gap is used in the parent */
  overflow: hidden;
}

/* Style the image preview */
.image-preview {
  display: block;
  width: 100%; /* Make image fill container width */
  height: 80px; /* Fixed height for consistency */
  object-fit: cover; /* Cover the area, cropping if needed */
}

/* Style the video preview */
.video-preview {
  display: block;
  width: 100%; /* Make video fill container width */
  height: 80px; /* Fixed height for consistency */
  object-fit: cover; /* Cover the area */
  background-color: #000; /* Black background for videos */
}

/* Hide the note below video preview in the multiple preview container */
.file-previews-container .file-preview-container p {
    display: none;
}

/* Style the remove button (slightly smaller for multiple previews) */
.remove-file-btn {
    position: absolute;
    top: 3px;
    right: 3px;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
    /* background: none; */
    margin: 3px;
}

.remove-file-btn svg {
  width: 5px; /* Adjust icon size */
  height: 5px;
  stroke: white;
}

.remove-file-btn:hover {
  background-color: rgba(220, 53, 69, 0.8);
}

video.context-video {
  max-height: 500px;
  border: solid;
  border-radius: 10px;
}

.single-file-preview {
  margin: 3px;
}

/* --- Existing Styles --- */
button.connect-btn {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #706f6f;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px 12px;
  width: 200px;
  cursor: pointer;
  text-align: left;
  margin: 5px;
  font-family: inherit;
  font-size: 14px;
  /* +++ Additions for Glare Effect +++ */
  position: relative; /* Needed for absolute positioning of pseudo-element */
  overflow: hidden; /* Hide the pseudo-element when it's off-screen */
  transition: border-color 0.3s ease, color 0.3s ease; /* Smooth transition for text/border color change */
  z-index: 1; /* Ensure button content is above the glare */
}

img.connect-btn-logo {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  flex-shrink: 0;
  /* +++ Additions for Glare Effect +++ */
  position: relative; /* Keep logo above glare */
  z-index: 2;
}

.connect-btn-text {
  flex-grow: 1;
  text-align: center;
  margin-right: 28px;
  /* +++ Additions for Glare Effect +++ */
  position: relative; /* Keep text above glare */
  z-index: 2;
}

/* +++ Glare Pseudo-Element +++ */
button.connect-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%; /* Start off-screen to the left */
  width: 75%; /* Width of the glare */
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%, /* Transparent start */
    rgba(255, 255, 255, 0.4) 50%, /* White glare */
    rgba(255, 255, 255, 0) 100% /* Transparent end */
  );
  transform: skewX(-25deg); /* Angle the glare */
  transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth movement */
  z-index: 1; /* Position behind text/logo but above background */
}

/* +++ Hover State +++ */
button.connect-btn:hover {
  /* Optional: Slightly change border/text color on hover */
  border-color: #FF6B00; 
  color: #000; /* Example: Darker text */
}

button.connect-btn:hover::before {
  left: 125%; /* Move glare across and off-screen to the right */
}

#sendgrid-api-popup {
  position: fixed; /* Keep it fixed */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001; /* Ensure it's above other elements */
  background-color: #ffffff; /* Clean white background */
  border: none; /* Remove default border */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); /* Softer shadow */
  padding: 0; /* Remove padding, handle internally */
  border-radius: 12px; /* More rounded corners */
  width: 90%;
  max-width: 400px; /* Slightly smaller max-width */
  overflow: hidden; /* Ensure content respects border radius */
  display: none; /* Keep initial state hidden */
}

#sendgrid-api-popup .popup-header {
  background-color: #f8f9fa; /* Light grey header background */
  padding: 15px 40px 15px 25px; /* Increased right padding to avoid overlap with absolute positioned button */
  border-bottom: 1px solid #e9ecef; /* Subtle border */
  display: flex;
  justify-content: space-between; /* Keep title left */
  /* align-items: center; */ /* Remove align-items: center */
  position: relative; /* Add relative positioning context */
}

#sendgrid-api-popup .popup-header h2 {
  font-size: 1.1rem; /* Slightly smaller title */
  font-weight: 600; /* Bolder title */
  color: #343a40; /* Darker text */
  margin: 0;
}

#sendgrid-api-popup .close-btn {
  font-size: 1.6rem; /* Larger close icon */
  color: #adb5bd; /* Lighter grey for close */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}

#sendgrid-api-popup .close-btn:hover {
  color: #495057; /* Darken on hover */
}

#sendgrid-api-popup .popup-body {
  padding: 25px; /* Consistent padding */
  display: flex;
  flex-direction: column;
  gap: 20px; /* Space between form groups */
}

#sendgrid-api-popup .form-group {
  margin-bottom: 0; /* Remove bottom margin, rely on gap */
}

#sendgrid-api-popup .form-group label {
  display: block;
  margin-bottom: 8px; /* Increased space below label */
  font-weight: 500; /* Medium weight label */
  font-size: 0.9rem;
  color: #495057;
}

#sendgrid-api-popup .form-group input[type="text"],
#sendgrid-api-popup .form-group input[type="email"] {
  width: 100%;
  padding: 12px 15px; /* More padding */
  border: 1px solid #ced4da; /* Standard border */
  border-radius: 6px; /* Slightly more rounded */
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#sendgrid-api-popup .form-group input[type="text"]:focus,
#sendgrid-api-popup .form-group input[type="email"]:focus {
  border-color: #FF6B00; /* Brand color focus */
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.25); /* Subtle focus glow */
  outline: none;
}

/* Style the link */
#sendgrid-api-popup .form-group a {
  color: #FF6B00; /* Brand color link */
  text-decoration: none;
  font-size: 0.85rem;
  margin-top: 8px; /* Space above link */
  display: inline-block; /* Needed for margin-top */
  transition: color 0.2s ease;
}

#sendgrid-api-popup .form-group a:hover {
  color: #e0ac00; /* Darken link on hover */
  text-decoration: underline;
}

/* Style the primary button */
#sendgrid-api-popup #add-sendgrid-btn {
  width: 100%; /* Full width button */
  padding: 12px 20px;
  /* Brand gradient */
  background: linear-gradient(135deg, #FF6B00, #ff8e40);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 10px; /* Space above button */
  transition: background 0.3s ease, transform 0.1s ease;
}

#sendgrid-api-popup #add-sendgrid-btn:hover {
  background: linear-gradient(135deg, #e0ac00, #f0782c); /* Slightly darker gradient on hover */
}

#sendgrid-api-popup #add-sendgrid-btn:active {
  transform: scale(0.98); /* Slight press effect */
}

/* Style the notification area */
#sendgrid-api-popup #notificationSendgrid {
  margin-top: 15px; /* Space above notification */
  /* Inherits .notificationSmall styles, can add specifics here if needed */
}


/* --- End SendGrid Popup Styles --- */

/* --- Remove or Adjust conflicting .small-popup styles if necessary --- */
/* Review the existing .small-popup styles below and remove/comment out */
/* properties that conflict with the #sendgrid-api-popup styles above */
/* For example, padding, border, box-shadow might be redundant now */

.small-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 400px;
  background-color: white;
  /* Remove/adjust these if conflicting */
  /* border-radius: 10px; */
  /* padding: 20px; */
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
  z-index: 1001; /* Ensure this doesn't conflict if needed */
}

/* Keep header/body/form-group styles within .small-popup if they */
/* apply to OTHER popups using this class, otherwise remove/adjust */

.small-popup .popup-header {
  /* ... potentially conflicting styles ... */
  margin-bottom: 15px;
}

.small-popup .popup-header h2 {
  /* ... potentially conflicting styles ... */
  font-size: 20px;
  margin: 0;
}

.small-popup .close-btn {
  /* ... potentially conflicting styles ... */
  font-size: 24px;
  color: #FF6B00; /* Already different, maybe keep for other popups */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.small-popup .popup-body {
  /* ... potentially conflicting styles ... */
  display: flex;
  flex-direction: column;
}

.small-popup .form-group {
  /* ... potentially conflicting styles ... */
  margin-bottom: 15px;
}

.small-popup .form-group label {
  /* ... potentially conflicting styles ... */
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.small-popup .form-group input[type="text"],
.small-popup .form-group input[type="email"] {
  /* ... potentially conflicting styles ... */
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

/* Keep the general button style for other small popups if needed */
.small-popup #add-sendgrid-btn {
  padding: 10px 20px;
  background-color: #FF6B00; /* Keep default brand color */
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
}

.small-popup #add-sendgrid-btn:hover {
  background-color: #e0ac00; /* Keep default darker hover */
}

.small-popup a {
  color: #FF6B00; /* Keep default brand link color */
  text-decoration: none;
  font-size: 14px;
  margin-top: 10px;
  display: inline-block;
}

.small-popup a:hover {
  text-decoration: underline;
}
#sendgrid-api-popup .close-btn {
  display: contents;
  font-size: 1.6rem;
  color: #adb5bd;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px; /* Add padding to increase clickable area */
  line-height: 1;
  transition: color 0.2s ease;
  z-index: 2; /* Ensure it's above other header content */
}

/* --- NEW: Use Cases Page Styles --- */
.use-cases-container {
  padding: 2rem;
  /* Removed height constraint */
  /* Ensure container takes full width within main-content */
  width: 100%; 
  box-sizing: border-box; /* Include padding in width calculation */
}

.use-cases-container h1 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  color: #000;
}

.use-cases-container .section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #000;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
  gap: 1.5rem; /* Space between cards */
  /* Ensure grid takes available width */
  width: 100%; 
}

.use-case-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column; /* Stack icon, title, text vertically */
  align-items: center; /* Center content horizontally */
  text-align: center; /* Center text */
  height: 100%; /* Make cards in a row the same height */
  box-sizing: border-box; /* Include padding and border in height */
}

.use-case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.use-case-icon {
  font-size: 2.5rem; /* Larger icon */
  margin-bottom: 1rem;
  color: #FF6B00; /* Use brand color */
  /* Optional background styling: */
  /* background-color: #f0f0f0; */
  /* border-radius: 50%; */
  /* width: 60px; */
  /* height: 60px; */
  /* display: flex; */
  /* align-items: center; */
  /* justify-content: center; */
}

.use-case-card h3 {
  font-size: 1.3rem;
  color: #000;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.use-case-card p {
  font-size: 0.95rem;
  color: #000;
  line-height: 1.5;
  margin: 0; /* Remove default paragraph margin */
  flex-grow: 1; /* Allow paragraph to take up remaining space */
}

/* Responsive adjustments for use cases */
@media (max-width: 768px) {
  .use-cases-container {
      padding: 1rem;
  }
  .use-cases-grid {
      grid-template-columns: 1fr; /* Single column on smaller screens */
  }
}

/* ======================================== */
/* Styles for "How It Works" Section      */
/* ======================================== */

.how-it-works {
  padding: 4rem 2rem; /* Vertical and horizontal padding */
  background-color: #ffffff; /* White background */
  text-align: center; /* Center align title and subtitle */
}

.how-it-works .container {
  max-width: 900px; /* Limit content width */
  margin: 0 auto; /* Center container */
  padding: 0 15px; /* Padding for smaller screens */
  height: 100% !important;
  display: flex;
  flex-direction: column;
}

.how-it-works h2 {
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  color: #111;
  margin-bottom: 1rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.how-it-works .section-subtitle {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.home-steps-container {
  display: flex;
  flex-direction: column; /* Stack steps vertically */
  gap: 2.5rem; /* Space between steps */
  text-align: left; /* Align text within steps to the left */
}

.home-step {
  display: flex;
  gap: 1.5rem; /* Space between number and content */
  align-items: flex-start; /* Align items to the top */
  padding: 2rem; /* Padding inside the step */
  background-color: #f8f9fa; /* Light background for step */
  border-radius: 12px; /* Rounded corners */
  border: 1px solid #e9ecef; /* Subtle border */
  transition: box-shadow 0.3s ease;
}

.home-step:hover {
   box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08); /* Subtle shadow on hover */
}

.home-step-number {
  flex-shrink: 0; /* Prevent number from shrinking */
  width: 50px;
  height: 50px;
  background: rgba(255, 69, 0, 0.18);
  color: #c2410c;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.home-step-content {
  flex-grow: 1; /* Allow content to take remaining space */
}

.home-step-content h3 {
  font-size: 1.5rem;
  color: #000;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.home-step-content p {
  font-size: 1rem;
  color: #000;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

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

.home-step-benefits li {
  font-size: 0.95rem;
  color: #000;
  margin-bottom: 0.6rem;
  padding-left: 1.8rem; /* Space for icon */
  position: relative;
}

.home-step-benefits li::before {
  content: '✓'; /* Checkmark icon */
  position: absolute;
  left: 0;
  top: 1px;
  color: #FF4500;
  font-weight: bold;
  font-size: 1.1rem;
}

.home-step-benefits li:last-child {
  margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .how-it-works {
      padding: 3rem 1rem; /* Adjust padding */
  }

  .home-step {
      flex-direction: column; /* Stack number above content on mobile */
      align-items: center; /* Center items */
      text-align: center; /* Center text */
      padding: 1.5rem;
  }

  .home-step-number {
      margin-bottom: 1rem; /* Add space below number */
  }

  .home-step-content {
      width: 100%; /* Ensure content takes full width */
  }

  .home-step-benefits {
       display: inline-block; /* Center the list items */
       text-align: left; /* Keep list text left-aligned */
       margin-top: 1rem;
  }
}

/* --- Hero Section Call-to-Action Button --- */
.nav-cta-button {
  display: block;
  width: fit-content;
  margin: 0.5rem auto 0;
  padding: 8px 25px;
  background: #000;
  color: white;
  text-decoration: none;
  font-size: 0.77rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.nav-cta-button:hover {
  background: #222;
}

/* Base hero CTA layout; primary uses brand strip (see .cta-button block); secondary outlined */
.hero-cta {
  display: block;
  width: fit-content;
  margin: 0.5rem auto 0;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  text-align: center;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  line-height: 1.6;
  color: #000;
  background-color: #fff; /* Ensure body background is white */
}

/* Hero section styles - UPDATED */
.hero {
  padding: 0.5rem 0 2rem 0;
  background: transparent;
  text-align: center;
}

.hero-container {
  max-width: 1100px; /* Consistent max-width */
  margin: 0 auto;
  padding: 0 20px;
}

.hero-content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-headline-accent {
  color: #FF4500;
  -webkit-text-fill-color: #FF4500;
}

/* Updated Hero Typography */
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  color: #000;
  line-height: 1.2;
  margin-top: 6rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

.hero-subheadline {
  font-size: 1.1rem;
  color: #555;
  font-weight: 400;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.hero h2 {
  font-size: 1.3rem;
  color: #000;
  font-weight: 400;
  margin-bottom: 1.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

p.hero-description {
  font-size: 1rem;
  color: #000;
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- NEW: Hero CTA Button Styles --- */
.hero-cta-buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem; /* Space between buttons */ /* Space below buttons */
}

a.hero-cta {
  padding: 10px 26px;
  font-size: 0.91rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  display: inline-block;
  text-align: center;
}

/* a.hero-cta.primary — brand strip + black (defined with other CTAs earlier in file) */

a.hero-cta.secondary {
  background-color: transparent;
  color: #FF4500 !important;
  border: 1px solid #e0e0e0;
}

a.hero-cta.secondary:hover {
  background-color: #f8f9fa;
  border-color: #ccc;
  transform: translateY(-1px);
}
/* --- End NEW CTA Styles --- */

/* --- COMPETITOR HERO STYLES --- */
#hero-competitor {
  text-align: center;
}

#hero-competitor h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #000000 0%, #374151 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.competitor-badge {
  display: inline-block;
  margin-bottom: 1rem;
}

.competitor-badge span {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, #FF6B00 0%, #ff9500 100%);
  color: #000000;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.competitor-comparison {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
  text-align: left;
}

.comparison-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border-left: 4px solid #10b981;
  transition: all 0.2s ease;
}

.comparison-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* FEATURED comparison item - for key differentiator */
.comparison-item.featured {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left: 4px solid #f59e0b;
  padding: 1.25rem 1.5rem;
}

.comparison-item.featured .comparison-icon.win {
  background: linear-gradient(135deg, #FF4500 0%, #FF6B00 100%);
}

.exclusive-badge {
  display: inline-block;
  background: linear-gradient(135deg, #000000 0%, #374151 100%);
  color: #fbbf24;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 4px;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

.comparison-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.comparison-icon.win {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.comparison-icon.lose {
  background: #ef4444;
  color: white;
}

.comparison-text {
  flex: 1;
}

.comparison-text strong {
  display: block;
  font-size: 1rem;
  color: #000000;
  margin-bottom: 0.25rem;
}

.comparison-text p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

#hero-competitor .hero-cta-buttons {
  margin-top: 1.5rem;
}

#hero-competitor .cancel-anytime {
  color: #64748b;
  font-size: 0.8rem;
}

/* Hero trust badge */
.hero-trust-badge {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1.2rem;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.hero-trust-badge-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.hero-trust-badge-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.hero-trust-badge-stars {
  font-size: 0.9rem;
  color: #f5a623;
  letter-spacing: 0.05em;
  line-height: 1;
}

.hero-trust-laurel {
  width: 44px;
  height: 54px;
  color: #000;
  flex-shrink: 0;
}

.hero-trust-laurel--right {
  transform: scaleX(-1);
}

/* Competitor hero responsive */
@media (max-width: 768px) {
  #hero-competitor h1 {
    font-size: 1.6rem;
  }
  
  .comparison-item {
    padding: 0.875rem 1rem;
  }
  
  .comparison-icon {
    width: 28px;
    height: 28px;
  }
  
  .comparison-text strong {
    font-size: 0.9rem;
  }
  
  .comparison-text p {
    font-size: 0.8rem;
  }
}
/* --- End COMPETITOR HERO STYLES --- */

/* --- NEW: Hero Social Proof Styles --- */
.hero-social-proof {
  margin-bottom: 0.5rem;
  color: #000;
  font-size: 0.9rem;
}


/* --- NEW: Hero Simple Steps Styles --- */
.hero-steps-simple {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 0; /* Removed top margin */
    padding: 1rem 0;
    /* Optional: border-top: 1px solid #eee; */
    flex-wrap: wrap; /* Allow wrapping */
}

/* Sequence page styles */
.sequence-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 12px;
  background-color: #fff;
  transition: box-shadow 0.2s ease-in-out;
}

.sequence-card:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.sequence-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sequence-card .sequence-description {
  margin-top: 4px;
  color: #000;
  font-size: 14px;
}

.sequence-actions {
  margin-top: 12px;
}

.sequence-actions .btn {
  padding: 6px 12px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.sequence-actions .btn.btn-primary {
  background-color: #007bff;
  color: #fff;
  width: fit-content;
}

.sequence-actions .btn.btn-primary:hover {
  background-color: #0069d9;
}

.loading-message, .error-message, .empty-message {
  color: #000;
  text-align: center;
  margin-top: 20px;
}

.error-message {
  color: #e74c3c;
}

.sequence-dates span {
  font-size: 12px;
  color: #888;
}

.sequence-dates .sequence-updated {
  margin-left: 4px;
}

/* sequence detail specific overrides */
.step-card { border: 1px solid #ddd; margin-bottom: 1rem; padding: 1rem; border-radius: 4px; background:#fff; margin-bottom: 20px; display: flex; flex-direction: column; flex-direction: column;}
.step-card button { margin-top: 0.5rem; }
.step-header { display:flex; flex-direction:column; }
.quill-editor { height:200px; margin-top:0.5rem; }
.contacts-actions { margin-bottom:0.5rem; display: flex; }
.contacts-actions button { margin: 0.5rem; }
.subs-table { width:100%; border-collapse:collapse; }
.subs-table th, .subs-table td { border:1px solid #ccc; padding:0.5rem; }
.subs-table th { background:#f5f5f5; }
.loading-message { color:#666; font-style:italic; }

.page-btn{margin:2px;padding:4px 8px;}
.page-btn.active{background:#000;color:#fff;}
.pagination{margin-top:10px; width:100px;}
.step-actions {
  margin-top: 10px; /* Space above the buttons */
  display: flex; /* Align buttons in a row */
  gap: 10px; /* Space between buttons */
}
.step-card .form-group { /* For the subject's form group */
  margin-bottom: 15px;
}
.step-card .email-subject-input {
  /* Specific styles for subject input if needed */
}
.step-card .personalization-prompt-textarea {
  margin-bottom: 15px;
  padding: 10px; /* Space below the prompt textarea */
}
.step-card .quill-editor { /* Ensure some space around quill */
  margin-bottom: 15px;
}
.step-actions {
  margin-top: 15px; /* Consistent spacing for actions */
}

/* Upgrade Modal Styles (Copied from project-BOMA/styles.css) */
.upgrade-btn {
    background-color: #FF6B00; /* Green */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    width: fit-content;
}

.upgrade-btn:hover {
    background-color: #0d8a00; /* Darker green */
}

.upgrade-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1001; /* Higher than sidebar */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6); /* Darker overlay */
}

.upgrade-modal-content {
  background-color: #fff;
  margin: 10% auto; /* Centered */
  padding: 30px;
  border-radius: 8px;
  width: 80%;
  max-width: 700px; /* Max width for the modal */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}

.upgrade-modal .modal-close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.upgrade-modal .modal-close-btn:hover,
.upgrade-modal .modal-close-btn:focus {
    color: black;
    text-decoration: none;
}

.upgrade-modal .warning-modal-header h2 {
  font-size: 24px;
  color: #000;
  margin-top: 0;
  margin-bottom: 10px;
  text-align: center;
}

.upgrade-modal .warning-modal-body p {
  font-size: 16px;
  color: #000;
  text-align: center;
  margin-bottom: 25px;
}

.upgrade-modal .pricing-plans {
  display: flex;
  justify-content: space-around; /* Space out plans */
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.upgrade-modal .plan {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  width: calc(50% - 30px); /* Adjust width for two plans with gap */
  box-sizing: border-box;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.upgrade-modal .plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.upgrade-modal .plan.featured {
  border-color: #109a00;
  box-shadow: 0 0 15px rgba(16, 154, 0, 0.2);
}

.upgrade-modal .plan h3 {
  font-size: 20px;
  color: #109a00;
  margin-top: 0;
  margin-bottom: 15px;
}

.upgrade-modal .plan .price-container {
  margin-bottom: 15px;
}

.upgrade-modal .plan .price .amount {
  font-size: 28px;
  font-weight: bold;
  color: #000;
}

.upgrade-modal .plan .price .period {
  font-size: 14px;
  color: #000;
}

.upgrade-modal .plan .feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.upgrade-modal .plan .feature-list li {
  font-size: 14px;
  color: #000;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.upgrade-modal .plan .feature-list li::before {
  content: '\2713'; /* Checkmark */
  color: #109a00;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.upgrade-modal .plan .feature-list .feature-category {
    font-weight: bold;
    color: #000;
    margin-top: 15px;
    margin-bottom: 5px;
    padding-left: 0;
}

.upgrade-modal .plan .feature-list .feature-category::before {
    content: none;
}


.upgrade-modal .plan .signup-button {
  background-color: #109a00;
  color: white;
  border: none;
  padding: 12px 15px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: background-color 0.3s ease;
}

.upgrade-modal .plan .signup-button:hover {
  background-color: #0d8a00;
}

@media (max-width: 600px) {
  .upgrade-modal-content {
    margin: 5% auto;
    width: 90%;
    padding: 20px;
  }
  .upgrade-modal .pricing-plans {
      flex-direction: column;
      align-items: center;
  }
  .upgrade-modal .plan {
      width: 100%;
      max-width: 350px; /* Max width for single plan display */
      margin-bottom: 20px;
  }
  .upgrade-modal .plan:last-child {
      margin-bottom: 0;
  }
}

/* --- Feature Demo Chat Bubbles --- */
.demo{
  display:flex;
  flex-direction:column;
  margin-bottom: 0.5rem;
}
.demo p{
  font-size:0.8rem;
  padding:10px;
  border-radius:20px;
  max-width:250px;
  width:fit-content;
}
.user-demo{
  background: #fffcea;
  color: #e9b760;
  margin-left:auto;
  margin-right:0;
}
.agent-demo{
  background:#f9f9f9;
  color:#878788;
  margin-left:0;
}
/* --- End Feature Demo --- */

/* --- NEW: Avatar and Emphasis Styles for Demos --- */
.demo p {
  position: relative; /* Needed for avatar positioning */
  /* General padding for p within .demo should not interfere with specific avatar padding */
  padding-top: 10px;    /* Keep existing vertical padding if any */
  padding-bottom: 10px; /* Keep existing vertical padding if any */
  padding-right: 10px;  /* Keep existing right padding if any */
}

/* REMOVE USER AVATAR STYLES */

.user-demo {
    padding-left: 10px; /* User demo has no icon, so less left padding is fine */
}

.agent-demo {
    padding-left: 40px; /* Increased padding for agent avatar + space */
}

.agent-demo::before {
  content: '';
  position: absolute;
  left: 12px; /* Keep icon slightly off the very edge */
  top: 50%;
  transform: translateY(-50%);
  width: 16px; /* Favicon size */
  height: 16px; /* Favicon size */
  border-radius: 3px; 
  background-image: url('/static/images/favicon-16x16.png');
  background-size: contain; 
  background-repeat: no-repeat;
  background-position: center;
}

.agent-demo strong {
  color: #5E90C6; /* A slightly more prominent color for emphasis */
  font-weight: 600;
}
/* --- End Feature Demo --- */

/* --- Feature Demo Chat Bubbles --- */
.demo {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}

/* Shared bubble styles for user's <p> and agent's <div> container */
.demo > .user-demo, 
.demo > .agent-response-container {
  font-size: 0.8rem;
  padding: 10px;
  border-radius: 20px;
  max-width: 250px;
  width: fit-content;
  position: relative; /* Added for potential future use, good practice */
}

.user-demo { /* Specifics for user bubble, which is a <p> tag */
  background: aliceblue;
  color: steelblue;
  margin-left: auto;
  margin-right: 0;
}

.agent-response-container { /* This is the agent's bubble (a <div>) and flex container for icon+text */
  background: #f9f9f9;
  margin-left: 0;
  display: flex;
  align-items: center; 
  /* Padding is already applied by the shared rule .demo > .agent-response-container */
}

img.agent-avatar { /* Styling for the <img> tag used as the agent icon */
  width: 16px;
  height: 16px;
  border-radius: 3px; /* Optional: for favicon if it's not already rounded */
  margin-right: 8px; /* Space between icon and text */
  flex-shrink: 0; /* Prevent icon from shrinking if text is long */
}

p.agent-demo-text { /* The <p> tag inside .agent-response-container, holds the agent's text */
  margin: 0; /* Remove default paragraph margins */
  padding: 0; /* Padding is on the parent bubble (.agent-response-container) */
  flex-grow: 1; /* Allows text to take up available space */
  color: #878788; 
  font-size: 0.8rem; /* Consistent with .user-demo */
  line-height: 1.4; /* Adjust for better vertical alignment with icon if needed */
  word-break: break-word; /* Ensure long words break nicely */
}

.agent-demo-text strong { /* For emphasized text within agent's message */
  color: #5E90C6;
  font-weight: 600;
}
/* --- End Feature Demo --- */
/* Inbox Page Specific Styles */
/* Consider prefixing with .inbox-page-body or similar if these are truly page-specific */

.inbox-container {
  display: flex
;
    flex-direction: column;
    max-width: 1200px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border: solid;
    border-color: #ebebeb;
}

.inbox-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}

.inbox-tab-button {
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  background-color: transparent;
  font-size: 16px;
  color: #000;
  position: relative; /* For the ::after pseudo-element */
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
  width:fit-content;
}

.inbox-tab-button.active {
  color: #FF6B00; /* Or your primary color */
  font-weight: bold;
}

.inbox-tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -1px; /* Align with the .inbox-tabs border */
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #007bff; /* Or your primary color */
}

.inbox-tab-button:hover {
  color: #0056b3; /* Darker shade on hover */
}

.inbox-tab-content {
  display: none; /* Hidden by default */
}

.inbox-tab-content.active {
  display: block; /* Show active tab content */
}

button.inbox-tab-button {
  background: none;
}

.inbox-tab-content h2 {
  font-size: 20px;
  color: #000;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.email-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.email-item {
  padding: 12px 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex; /* Use flexbox for better alignment */
  justify-content: space-between; /* Space out children */
  align-items: center; /* Vertically align items */
  gap: 15px; /* Add some gap between elements */
}

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

.email-item:hover {
  background-color: #f9f9f9;
}

.email-item-sender,
.email-item-recipient { /* For Sent/Drafts */
  font-weight: 500;
  color: #222;
  flex-basis: 25%; /* Assign a base width */
  min-width: 150px; /* Prevent it from becoming too small */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-item-subject {
  color: #000;
  flex-grow: 1; /* Allow subject to take remaining space */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 10px; /* Add some horizontal margin */
}

.email-item-date {
  font-size: 0.85em;
  color: #777;
  white-space: nowrap; /* Prevent date from wrapping */
  flex-shrink: 0; /* Prevent date from shrinking */
}

.email-placeholder {
  text-align: center;
  color: #777;
  padding: 20px;
  font-style: italic;
}

/* Email Detail View - Placeholder styles, expand as needed */
.email-detail-view {
  padding: 20px;
  border: 1px solid #ddd;
  margin-top: 20px;
  border-radius: 5px;
  background-color: #fdfdfd;
}

.email-detail-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.email-detail-header h3 {
  font-size: 1.4em;
  color: #000;
  margin: 0 0 5px 0;
}

.email-detail-meta span {
  display: block;
  font-size: 0.9em;
  color: #000;
  margin-bottom: 3px;
}

.email-detail-body {
  line-height: 1.6;
  color: #000;
}

.email-detail-actions {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.email-detail-actions button {
  padding: 8px 15px;
  margin-right: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.email-detail-actions button:hover {
  background-color: #0056b3;
}

/* Responsive adjustments for Inbox */
@media (max-width: 768px) {
  .inbox-container {
      margin: 10px;
      padding: 15px;
  }

  .inbox-tab-button {
      padding: 8px 12px;
      font-size: 15px;
  }

  .email-item {
      flex-direction: column; /* Stack items vertically on small screens */
      align-items: flex-start; /* Align to start */
      gap: 5px;
  }

  .email-item-sender,
  .email-item-recipient,
  .email-item-subject,
  .email-item-date {
      flex-basis: auto; /* Reset flex-basis */
      width: 100%;      /* Make them full width */
      min-width: 0;     /* Reset min-width */
      margin: 0 0 3px 0; /* Adjust margin */
  }

  .email-item-date {
      text-align: left; /* Align date to the left */
      font-size: 0.8em;
  }
}

@media (max-width: 480px) {
  .inbox-tab-button {
      padding: 8px 10px;
      font-size: 14px;
  }
}

/* Ensure the new styles don't negatively impact existing .email-item if it exists elsewhere */
/* This can be done by making selectors more specific if needed, e.g. .inbox-container .email-item */

/* Inbox Page Specific Styles */
/* Consider prefixing with .inbox-page-body or similar if these are truly page-specific */

/* Email Detail View Modal Styles */
.email-detail-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Dimming overlay */
  z-index: 1040; /* Ensure it's above other content but below the modal */
  /* For centering the modal content: */
  display: flex; /* Changed from none to flex for centering */
  justify-content: center;
  align-items: center;
}

.email-detail-view {
  /* display: none; Is controlled by the parent overlay */
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 25px;
  width: 90%;
  max-width: 700px;
  max-height: 80vh; /* Max height */
  overflow-y: auto; /* Scrollable if content exceeds max height */
  position: relative; /* For positioning the close button */
  /* z-index: 1050; /* Not strictly needed if it's a child of the overlay */
  /* No fixed positioning needed here, overlay handles centering */
}

.email-detail-close-btn {
  position: absolute;
  top: 8px; /* Adjusted for a tighter fit */
  right: 8px; /* Adjusted for a tighter fit */
  font-size: 28px;
  font-weight: bold;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  z-index: 1051; /* Ensure it's above other modal content */
  display: flex;
  flex-direction: row-reverse;
}

.email-detail-close-btn:hover {
  color: #000;
}

/* Retain existing .email-detail-header and other related styles if they are fine */
/* .email-detail-header { ... } */
/* .email-detail-meta span { ... } */
/* .email-detail-body { ... } */
/* .email-detail-actions { ... } */

/* Ensure other .email-detail-view styles (if any previously existed for non-modal) */
/* are either removed or don't conflict */

/* ... rest of existing styles ... */

/* ======================================== */
/* Tables in public blog posts (.blog-content — blog_article.html only) */
/* Wide / many-column tables: outer frame = fixed width + visible border; inner = horizontal scroll; first col sticky */
/* (Does not apply to app article_detail — that uses .article-body.) */
/* ======================================== */

.blog-article .blog-content caption {
    caption-side: top;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
    padding: 0.75rem 1rem 0.5rem;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Outer: matches article width; border + radius stay visible; does not scroll */
.blog-article .blog-content .blog-table-bleed {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 2.5rem 0;
    overflow: hidden;
    border: 1px solid #d8dee4;
    border-radius: 10px;
    background: #fff;
}

/* Inner: only this layer scrolls horizontally; sticky first column is relative to this box */
.blog-article .blog-content .blog-table-bleed-scroll {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    scrollbar-gutter: stable;
}

.blog-article .blog-content .blog-table-bleed table {
    display: table;
    width: max-content;
    min-width: 100%;
    max-width: none;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    overflow: visible;
    table-layout: auto;
    box-shadow: none;
    background: #fff;
}

.blog-article .blog-content thead {
    display: table-header-group;
}

.blog-article .blog-content tbody {
    display: table-row-group;
}

.blog-article .blog-content tfoot {
    display: table-footer-group;
}

.blog-article .blog-content tr {
    display: table-row;
}

/* Minimum readable column width so many-column tables get room (user scrolls within .blog-table-bleed) */
.blog-article .blog-content .blog-table-bleed th,
.blog-article .blog-content .blog-table-bleed td {
    display: table-cell;
    min-width: 7.5rem;
    max-width: 16rem;
    padding: 0.65rem 0.6rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e9ecef;
    border-right: 1px solid #eceff2;
    color: #000;
    font-size: 0.875rem;
    line-height: 1.45;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Headers: break at word boundaries, not mid-word (less “AUTOMAT / ION” stacking) */
.blog-article .blog-content .blog-table-bleed th {
    background: #f4f4f5;
    font-weight: 600;
    font-size: 0.68rem;
    text-transform: none;
    letter-spacing: 0.02em;
    color: #374151;
    border-bottom: 1px solid #d8dde3;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    line-height: 1.35;
    white-space: normal;
}

.blog-article .blog-content .blog-table-bleed th:last-child,
.blog-article .blog-content .blog-table-bleed td:last-child {
    border-right: none; /* outer vertical line is the frame */
}

/* No extra top border when thead is the first child (no caption) */
.blog-article .blog-content .blog-table-bleed table > thead:first-child th {
    border-top: none;
}

.blog-article .blog-content .blog-table-bleed caption + thead th {
    border-top: 1px solid #e5e5e5;
}

.blog-article .blog-content .blog-table-bleed td {
    background: #fff;
    font-weight: 400;
}

/* Sticky first column: frozen; border-left is the frame edge only */
.blog-article .blog-content .blog-table-bleed th:first-child,
.blog-article .blog-content .blog-table-bleed td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 6.25rem;
    max-width: 8.5rem;
    border-left: none;
    box-shadow: 4px 0 8px -4px rgba(0, 0, 0, 0.12);
    border-right: 1px solid #c5ccd4;
}

.blog-article .blog-content .blog-table-bleed th:first-child {
    z-index: 3;
    background: #f0f0f1;
}

.blog-article .blog-content .blog-table-bleed td:first-child {
    z-index: 1;
    background: #fff;
}

.blog-article .blog-content .blog-table-bleed tbody tr:nth-child(even) td:first-child {
    background-color: #fcfcfc;
}

.blog-article .blog-content .blog-table-bleed tbody tr:hover td:first-child {
    background-color: #f4f4f5;
}

.blog-article .blog-content .blog-table-bleed tbody tr:nth-child(even) td {
    background-color: #fcfcfc;
}

.blog-article .blog-content .blog-table-bleed tbody tr:hover td {
    background-color: #f0f1f2;
}

.blog-article .blog-content .blog-table-bleed tbody tr:last-child th,
.blog-article .blog-content .blog-table-bleed tbody tr:last-child td {
    border-bottom: none;
}

/* No JS / rare unwrapped table: still readable in the article column */
.blog-article .blog-content > table {
    display: table;
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    table-layout: auto;
    box-shadow: none;
}

/* ══════════════════════════════════════════════════════════
   Statistics Article Styles
   Applied when .blog-article has .statistics-article class
   ══════════════════════════════════════════════════════════ */

.statistics-article .stat-key-takeaways {
    background: #f8f9fa;
    border-left: 4px solid #FF6B00;
    border-radius: 0 8px 8px 0;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}

.statistics-article .stat-key-takeaways h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #000;
}

.statistics-article .stat-key-takeaways ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.statistics-article .stat-key-takeaways li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

.statistics-article .stat-key-takeaways li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background: #FF6B00;
    border-radius: 50%;
}

.statistics-article .stat-author-byline {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.statistics-article .stat-author-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: none;
}

.statistics-article .stat-author-info {
    display: flex;
    flex-direction: column;
}

.statistics-article .stat-author-name {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #000;
}

.statistics-article .stat-author-role {
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    color: #666;
}

.statistics-article .stat-updated-date {
    margin-left: auto;
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
}

.statistics-article .blog-content .stat-highlight {
    background: #fff8f0;
    border: 1px solid #ffe0c2;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.statistics-article .blog-content .stat-highlight strong {
    color: #FF6B00;
    font-size: 1.3rem;
}

.statistics-article .stat-sources {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.statistics-article .stat-sources h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.statistics-article .stat-sources ol {
    padding-left: 1.5rem;
}

.statistics-article .stat-sources li {
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
    color: #555;
    line-height: 1.5;
}

.statistics-article .stat-sources li a {
    color: #333;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.statistics-article .stat-sources li a:hover {
    color: #FF6B00;
}

/* Stats posts: often fewer, narrower columns — full width inside frame, no inner scroll */
.statistics-article .blog-content .blog-table-bleed-scroll {
    overflow-x: visible;
}

.statistics-article .blog-content .blog-table-bleed table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    table-layout: fixed;
}

.statistics-article .blog-content .blog-table-bleed th,
.statistics-article .blog-content .blog-table-bleed td {
    min-width: 0;
    max-width: none;
    position: static;
    box-shadow: none;
    left: auto;
}

.statistics-article .blog-content .blog-table-bleed th:first-child,
.statistics-article .blog-content .blog-table-bleed td:first-child {
    position: static;
    box-shadow: none;
}

.statistics-article .blog-content .blog-table-bleed th {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.statistics-article .blog-content table th {
    background-color: #1a1a1a;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

.statistics-article .blog-content table td:first-child {
    font-weight: 500;
}

.statistics-article .blog-content table td:last-child {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
    .statistics-article .stat-key-takeaways {
        padding: 1rem 1.25rem;
    }
    .statistics-article .blog-content .stat-highlight {
        padding: 1rem;
    }
    .statistics-article .stat-author-byline {
        flex-wrap: wrap;
    }
    .statistics-article .stat-updated-date {
        margin-left: 0;
        width: 100%;
        padding-top: 0.5rem;
    }
}

/* New Blog Styles */
.blog-item-content {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
}

.blog-item .feature-image {
    width: 300px;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.blog-item-text {
    flex: 1;
}

.blog-item h2 {
    margin-top: 0;
}

.blog-item .read-more {
    align-self: flex-start;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .blog-item-content {
        flex-direction: column;
    }
    .blog-item .feature-image {
        width: 100%;
        height: auto;
        margin-bottom: 1.5rem;
    }
}

/* Hero Graphic Elements */
.hero-graphic {
    background: rgba(255, 255, 255, 0.7); /* Semi-transparent white background */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    padding: 3px;
    position: absolute;
    z-index: 1; /* Behind hero-content */
    animation: float 8s ease-in-out infinite;
    overflow: hidden; /* For glare effect */
}

.hero-graphic-inner {
    background: #fff;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    flex-direction: column;
}

/* Gradient Border Effect */
.hero-graphic::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: -1;
  margin: -2px; /* Border width */
  border-radius: inherit; /* Matches parent's border-radius */
  background: linear-gradient(135deg, #a855f7, #7a3ff3, #4f46e5);
}

/* Glare Effect */
.hero-graphic::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -150%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 60%);
  transform: rotate(45deg);
  transition: left 0.6s ease-out;
}

.hero-graphic:hover::after {
  left: 50%;
}


/* Positioning and Animation */
#graphic-seo-score { top: 15%; left: 5%; transform: rotate(-15deg); --initial-rotate: -15deg; animation-delay: 0s; }
#graphic-keywords { top: 45%; left: -2%; transform: rotate(10deg); --initial-rotate: 10deg; animation-delay: -2s; }
#graphic-personal-images { top: 20%; right: 3%; transform: rotate(12deg); --initial-rotate: 12deg; animation-delay: -1s; }
#graphic-published-post { bottom: 1%; right: 90%; transform: rotate(-8deg); --initial-rotate: -8deg; animation-delay: -3s; flex-direction: column; align-items: flex-start; padding: 1.2rem; width: 220px; }
#graphic-competitors { bottom: 40%; left: 90%; transform: translateX(-50%) rotate(5deg); --initial-rotate: 5deg; animation-delay: -4s; }


/* Specific styles for card content */
#graphic-seo-score .graphic-text,
#graphic-keywords .graphic-text,
#graphic-personal-images .graphic-text,
#graphic-competitors .graphic-text {
  font-weight: 500;
  color: #000;
}

#graphic-seo-score .graphic-value {
  font-weight: bold;
  font-size: 1.2rem;
  color: #4f46e5;
}

#graphic-published-post {
  gap: 0; /* Override default gap for more control */
}

#graphic-published-post .graphic-header { display: flex; align-items: center; width: 100%; margin-bottom: 0.75rem; }
#graphic-published-post .graphic-number {
  color: #28a745;
  font-weight: bold;
  font-size: 1.5rem;
  margin-right: 10px;
}
#graphic-published-post .graphic-status {
  background-color: rgba(228, 248, 240, 0.8);
  color: #28a745;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}
#graphic-published-post .graphic-title {
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: #000;
}
#graphic-published-post .graphic-meta {
  font-size: 0.9rem;
  color: #000;
  margin-bottom: 1rem;
  width: 100%;
}
#graphic-published-post .graphic-button-placeholder {
  background-color: #f0f0f0;
  height: 40px;
  width: 100%;
  border-radius: 8px;
}

/* Keyframe Animation */
@keyframes float {
  0% { transform: translateY(0px) rotate(var(--initial-rotate, 0deg)); }
  50% { transform: translateY(-25px) rotate(var(--initial-rotate, 0deg)); }
  100% { transform: translateY(0px) rotate(var(--initial-rotate, 0deg)); }
}

@media (max-width: 992px) {
  .hero-graphic {
      display: none;
  }
}
/* =================================== */
/* Hero Graphic Elements - V2          */
/* =================================== */

.hero-container {
  position: relative;
  overflow: visible; /* Allows elements to peek out */
}

.hero-content {
  position: relative;
  z-index: 2; /* Ensures content is on top */
}

/* Gradient Border Effect */
.hero-graphic::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: -1;
  margin: -2px; /* Border width */
  border-radius: inherit; /* Matches parent's border-radius */
  background: linear-gradient(135deg, #a855f7, #7a3ff3, #4f46e5);
}

/* Glare Effect */
.hero-graphic::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -150%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 60%);
  transform: rotate(45deg);
  transition: left 0.6s ease-out;
}

.hero-graphic:hover::after {
  left: 50%;
}


/* Positioning and Animation */
#graphic-seo-score { top: 15%; left: -10%; transform: rotate(-15deg); --initial-rotate: -15deg; animation-delay: 0s; }
#graphic-keywords { top: 45%; left: -10%; transform: rotate(10deg); --initial-rotate: 10deg; animation-delay: -2s; }
#graphic-personal-images { top: 20%; right: 3%; transform: rotate(12deg); --initial-rotate: 12deg; animation-delay: -1s; }
#graphic-published-post { bottom: 25%; right: -1%; transform: rotate(-8deg); --initial-rotate: -8deg; animation-delay: -3s; flex-direction: column; align-items: flex-start; padding: 3px; width: 220px; }
#graphic-competitors { bottom: 10%; left: 50%; transform: translateX(-50%) rotate(5deg); --initial-rotate: 5deg; animation-delay: -4s; }


/* Specific styles for card content */
#graphic-seo-score .graphic-text,
#graphic-keywords .graphic-text,
#graphic-personal-images .graphic-text,
#graphic-competitors .graphic-text {
  font-weight: 500;
  color: #000;
}

#graphic-seo-score .graphic-value {
  font-weight: bold;
  font-size: 1.2rem;
  color: #4f46e5;
}

#graphic-published-post {
  gap: 0; /* Override default gap for more control */
}

#graphic-published-post .graphic-header { display: flex; align-items: center; width: 100%; margin-bottom: 0.75rem; }
#graphic-published-post .graphic-number {
  color: #28a745;
  font-weight: bold;
  font-size: 1.5rem;
  margin-right: 10px;
}
#graphic-published-post .graphic-status {
  background-color: rgba(228, 248, 240, 0.8);
  color: #28a745;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}
#graphic-published-post .graphic-title {
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: #000;
}
#graphic-published-post .graphic-meta {
  font-size: 0.9rem;
  color: #000;
  margin-bottom: 1rem;
  width: 100%;
}
#graphic-published-post .graphic-button-placeholder {
  background-color: #f0f0f0;
  height: 40px;
  width: 100%;
  border-radius: 8px;
}

/* Keyframe Animation */
@keyframes float {
  0% { transform: translateY(0px) rotate(var(--initial-rotate, 0deg)); }
  50% { transform: translateY(-25px) rotate(var(--initial-rotate, 0deg)); }
  100% { transform: translateY(0px) rotate(var(--initial-rotate, 0deg)); }
}

@media (max-width: 992px) {
  .hero-graphic {
      display: none;
  }
  .hero-dashboard {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}
/* Hero Dashboard Mockup - Premium & polished */
.hero-dashboard {
  flex-shrink: 0;
  width: 480px;
  height: 320px;
  background: linear-gradient(145deg, #ffffff 0%, #fafbfc 30%, #f4f6f8 100%);
  border-radius: 20px;
  border: 1px solid rgba(255, 69, 0, 0.08);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.03), 0 2px 4px rgba(0,0,0,0.04), 0 12px 24px -8px rgba(0,0,0,0.12), 0 32px 64px -16px rgba(255, 69, 0, 0.06);
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: 48px 1fr;
  grid-template-areas:
      "header header"
      "sidebar main";
  overflow: hidden;
  transform: perspective(1200px) rotateX(6deg) rotateY(-6deg) rotateZ(-1deg);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.hero-dashboard:hover {
  transform: perspective(1200px) rotateX(0) rotateY(0) rotateZ(0);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 4px 8px rgba(0,0,0,0.06), 0 24px 48px -12px rgba(0,0,0,0.15), 0 40px 80px -20px rgba(255, 69, 0, 0.1);
}

.dash-header {
  grid-area: header;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(250,251,252,0.95) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 14px;
}

.dash-header-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}

.dash-search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 10px;
  padding: 8px 14px;
  min-width: 0;
}

.dash-search-icon {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.dash-search-placeholder {
  font-size: 12px;
  color: #94a3b8;
}

.dash-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-pill-sm {
  height: auto;
  width: auto;
  min-width: fit-content;
  margin-right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF4500 0%, #FF6B00 100%);
  color: #fff !important;
  padding: 6px 14px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(255, 69, 0, 0.25);
}

.dash-avatar {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.dash-logo {
  width: 12px;
  height: 12px;
  background-color: #7a3ff3;
  border-radius: 50%;
  margin-right: 15px;
}

.dash-pill {
  height: 16px;
  width: 60px;
  background-color: #f3f4f6;
  border-radius: 8px;
  margin-right: 8px;
}

.dash-sidebar {
  grid-area: sidebar;
  background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(248,250,252,0.6) 100%);
  border-right: 1px solid rgba(226, 232, 240, 0.6);
  padding: 8px 6px;
}

.hero-dashboard .dash-sidebar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    margin-bottom: 2px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.hero-dashboard .dash-sidebar-item.active {
    font-weight: 700;
    opacity: 1;
}

.hero-dashboard .dash-sidebar-item:not(.active):hover {
    background: rgba(248, 250, 252, 0.95);
    opacity: 0.95;
}

.hero-dashboard .dash-sidebar-item .item-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  margin-right: 0;
  flex-shrink: 0;
  background: rgba(241, 245, 249, 0.8);
}

.hero-dashboard .dash-sidebar-item.active .item-icon-wrap {
  background: rgba(255, 69, 0, 0.12);
}

.hero-dashboard .dash-sidebar-item .item-icon {
  width: 10px;
  height: 10px;
  color: #64748b;
}

.hero-dashboard .dash-sidebar-item.active .item-icon {
  color: #FF4500;
}

.hero-dashboard .dash-sidebar-item .item-label {
  display: none;
}

.hero-dashboard .dash-main {
    grid-area: main;
    padding: 18px;
    font-size: 10px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(248,250,252,0.4) 0%, rgba(241,245,249,0.3) 100%);
}

.dash-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.dash-view.active {
    opacity: 1;
    visibility: visible;
    position: relative; /* Take up space in the flow */
}

.dash-main-header {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hero-dashboard .dash-main-header {
  border-bottom: none;
}
.dash-main-header h4 {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

.dash-main-header .dash-verified-pill {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.2);
    flex-shrink: 0;
}

.dash-calendar-header {
  font-weight: 700;
  color: #334155;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: -0.01em;
}

.dash-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-dow-header {
  font-size: 9px;
  font-weight: 700;
  color: #94a3b8;
  text-align: center;
  padding: 4px 0;
  letter-spacing: 0.02em;
}

.hero-dashboard .calendar-dow-header {
  display: none;
}

.calendar-day-cell {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 5px;
  height: 50px;
  transition: all 0.2s ease;
}

.calendar-day-cell:hover {
  border-color: rgba(255, 69, 0, 0.2);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.calendar-day-cell.empty {
  background: rgba(248, 250, 252, 0.6);
  border: 1px dashed rgba(203, 213, 225, 0.8);
}

.day-info {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 3px;
  font-size: 10px;
}
.day-info .day-name {
  color: #94a3b8;
  font-weight: 500;
}

.calendar-event {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 6px;
  padding: 5px 6px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.25;
  border: 1px solid rgba(226, 232, 240, 0.6);
}
.calendar-event p {
    font-size: 9px;
    margin: 0 0 2px 0;
    color: #334155;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.event-meta {
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 8px;
    font-weight: 500;
}

.calendar-event.featured {
  background: linear-gradient(135deg, rgba(255, 69, 0, 0.12) 0%, rgba(255, 107, 0, 0.08) 100%);
  border-color: rgba(255, 69, 0, 0.25);
}
.calendar-event.featured p {
  color: #c2410c;
}

.dash-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 10px;
}

.dash-card-title {
  height: 10px;
  width: 50%;
  background-color: #e5e7eb;
  border-radius: 5px;
  margin-bottom: 12px;
}

.dash-card-content {
  height: 60px;
  background-color: #f3f4f6;
  border-radius: 5px;
}

.dash-card.small {
  height: 40px;
  margin-top: 10px;
}

/* Table and pill styles for dashboard */
.dash-table {
    display: flex;
    flex-direction: column;
    font-size: 11px;
    margin-top: 10px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.dash-table-header,
.dash-table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 0.5fr 1.2fr 1.5fr;
    gap: 10px;
    padding: 9px 12px;
    align-items: center;
}

.dash-table-header {
    color: #64748b;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(248, 250, 252, 0.9);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.dash-table-row {
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
    background: rgba(255, 255, 255, 0.5);
    transition: background 0.2s ease;
}

.dash-table-row:hover {
    background: rgba(255, 69, 0, 0.03);
}

.dash-table .col {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-pill {
    padding: 4px 9px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.02em;
}

.status-pill.verified {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-pill.not-verified {
    background: rgba(248, 250, 252, 0.9);
    color: #64748b;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.dr-pill {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.1) 0%, rgba(255, 107, 0, 0.06) 100%);
    color: #c2410c;
    padding: 4px 9px;
    border-radius: 20px;
    font-weight: 700;
    display: inline-block;
    min-width: 22px;
    text-align: center;
    font-size: 11px;
    border: 1px solid rgba(255, 69, 0, 0.15);
}

.hero-dashboard .calendar-event p {
  margin: 0 0 4px 0;
  font-size: 12px;
  font-weight: 500;
  color: #000;
}

.hero-dashboard .event-meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: #000;
}

/* AI Agent Demo styles */
.dash-chat-log {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    padding: 10px 14px;
    border-radius: 14px;
    max-width: 90%;
    font-size: 12px;
    line-height: 1.45;
}

.chat-message.user {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.08) 0%, rgba(255, 107, 0, 0.05) 100%);
    color: #334155;
    border: 1px solid rgba(255, 69, 0, 0.15);
    align-self: flex-end;
    border-bottom-right-radius: 6px;
}

.chat-message.agent {
    background: rgba(255, 255, 255, 0.9);
    color: #334155;
    border: 1px solid rgba(226, 232, 240, 0.9);
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.agent-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px 0;
}

.agent-step + .agent-step {
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    padding-top: 8px;
    margin-top: 6px;
}

.agent-step .step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 14px;
    color: #FF4500;
}

.agent-step .step-text {
    font-size: 11px;
    font-weight: 500;
}

.agent-step.tool-call {
    font-family: "SF Mono", Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 10px;
    background: rgba(248, 250, 252, 0.9);
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.dash-chat-form {
    margin-top: auto;
    padding: 12px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.6);
}

.mock-input {
    flex-grow: 1;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 12px;
    color: #94a3b8;
}

.mock-send-btn {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #FF4500 0%, #FF6B00 100%);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(255, 69, 0, 0.3);
}

/* Hero Dashboard: Social Media Pills on Calendar */
.dash-sm-pills {
    display: flex;
    gap: 2px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.dash-sm-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 4px;
    border: 1px solid;
}
.dash-sm-pill svg {
    display: block;
}
.dash-sm-pill.published {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: rgba(16, 185, 129, 0.4);
    color: #059669;
}
.dash-sm-pill.published svg path {
    fill: #059669;
}
.dash-sm-pill.scheduled {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: rgba(59, 130, 246, 0.4);
    color: #2563eb;
}
.dash-sm-pill.scheduled svg path {
    fill: #2563eb;
}
.dash-sm-pill.draft {
    background: rgba(248, 250, 252, 0.9);
    border-color: rgba(203, 213, 225, 0.8);
    color: #94a3b8;
}
.dash-sm-pill.draft svg path {
    fill: #94a3b8;
}

/* Social Media Repurposing Slide */
.dash-social-source {
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.04) 0%, rgba(255, 107, 0, 0.02) 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 0 0 8px 8px;
}
.dash-social-source-label {
    font-size: 0.58rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.dash-social-source-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 3px;
    letter-spacing: -0.01em;
}
.dash-social-posts {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}
.dash-social-post {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 10px;
    padding: 8px 11px;
    transition: all 0.2s ease;
}
.dash-social-post:hover {
    border-color: rgba(255, 69, 0, 0.2);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.dash-social-post-header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
}
.dash-social-platform-name {
    font-size: 0.64rem;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.01em;
}
.dash-social-post-header .status-pill {
    margin-left: auto;
    font-size: 0.54rem;
}
.dash-social-post-preview {
    font-size: 0.61rem;
    color: #475569;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =================================== */
/* NEW: Content Planner Section        */
/* =================================== */
.content-planner-section {
    padding: 4rem 2rem;
    background-color: transparent;
    text-align: center;
}

.planner-visual {
    max-width: 600px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.planner-day {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.planner-day:last-child {
    border-bottom: none;
}
.planner-day.faded {
    opacity: 0.6;
}

.planner-day .day-number {
    font-weight: 600;
    color: #000;
    width: 60px;
}
.planner-day .day-topic {
    color: #000;
    text-align: left;
    flex-grow: 1;
}
.planner-day .day-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
}
.day-status.high-potential {
    background-color: #e6f7ff;
    color: #007bff;
}
.day-status.medium-potential {
    background-color: #fffbe6;
    color: #ffc107;
}

.planner-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: left;
}
.benefit-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #000;
}
.benefit-item p {
    color: #000;
    line-height: 1.6;
}


/* =================================== */
/* NEW: SEO Expertise Section          */
/* =================================== */
.seo-expertise-section {
    padding: 4rem 2rem;
    background-color: #fff;
    text-align: center;
}
.expertise-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.expertise-item {
    text-align: center;
    padding: 2rem;
    background-color: #fdfdfd;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}
.expertise-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a3ff3;
}
.expertise-icon svg {
    width: 24px;
    height: 24px;
}
.expertise-item h3 {
    font-size: 1.25rem;
    color: #000;
    margin-bottom: 0.5rem;
}
.expertise-item p {
    color: #000;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.expertise-benefit {
    font-weight: 500;
    color: #7a3ff3;
}


/* =================================== */
/* NEW: Backlink Exchange Section      */
/* =================================== */
.backlink-exchange-section {
    padding: 5rem 2rem;
    background: #0f0f0f;
    color: #eee;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.backlink-exchange-section h2 {
    color: #fff;
    font-size: clamp(1.55rem, 4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.backlink-exchange-section .section-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto 2.5rem;
}
.backlink-exchange-section .cta-button {
    margin: 2rem auto;
    width: fit-content;
}

.backlink-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}
.backlink-step {
    background: #1a1a1a;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Same graphic height on every card so numbered step text lines up across the row */
.backlink-step-graphic {
    flex-shrink: 0;
    min-height: 260px;
    height: 260px;
    box-sizing: border-box;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.backlink-step-body {
    flex-shrink: 0;
    padding: 0 1.5rem 1.75rem;
    margin-top: 0;
}

.backlink-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.backlink-step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 700;
}
.backlink-step p {
    color: #999;
    line-height: 1.55;
    font-size: 0.9rem;
}

/* Card 1: Toggle (flex row inside white card, status centered below) */
.bl-toggle-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 240px;
}
.bl-toggle-card {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    overflow: hidden;
}
.bl-toggle-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
}
.bl-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}
.bl-toggle-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
}
.bl-toggle-sub {
    font-size: 0.7rem;
    color: #888;
    line-height: 1.25;
}
.bl-toggle-switch {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 24px;
    background: #FF4500;
    border-radius: 12px;
}
.bl-toggle-knob {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.bl-toggle-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.75rem;
    color: #FF4500;
    font-weight: 600;
    line-height: 1.2;
}
.bl-toggle-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FF4500;
    flex-shrink: 0;
}

/* Card 2: Links list */
.bl-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    max-width: 240px;
}
.bl-link-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #252525;
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
}
.bl-link-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FF4500;
    flex-shrink: 0;
}
.bl-link-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.bl-link-domain {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}
.bl-link-path {
    font-size: 0.65rem;
    color: #777;
}
.bl-link-badge {
    font-size: 0.6rem;
    font-weight: 700;
    color: #FF4500;
    background: rgba(255, 69, 0, 0.12);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Card 3: DR chart */
.bl-dr-card {
    width: 100%;
    max-width: 220px;
}
.bl-dr-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.25rem;
}
.bl-dr-label {
    font-size: 0.72rem;
    color: #999;
    font-weight: 500;
}
.bl-dr-change {
    font-size: 0.65rem;
    color: #FF4500;
    font-weight: 600;
}
.bl-dr-score {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
}
.bl-dr-chart svg {
    width: 100%;
    height: 50px;
    display: block;
}
.bl-dr-months {
    display: flex;
    justify-content: space-between;
    margin-top: 0.35rem;
}
.bl-dr-months span {
    font-size: 0.6rem;
    color: #666;
}

@media (max-width: 768px) {
    .backlink-steps {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .backlink-step-graphic {
        min-height: 220px;
        height: 220px;
    }
}

/* Graphical elements for backlink section */
.backlink-graphic {
    position: absolute;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 1;
    animation: float 10s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
}
#backlink-graphic-1 { top: 10%; left: 15%; animation-delay: 0s; transform: rotate(-10deg); }
#backlink-graphic-2 { top: 10%; right: 10%; animation-delay: -2s; transform: rotate(8deg); }
#backlink-graphic-3 { top: 30%; left: 20%; animation-delay: -5s; transform: rotate(5deg); }
#backlink-graphic-4 { 
    top: 25%; right: 15%; 
    animation-delay: -8s; 
    transform: rotate(-5deg);
    color: #FF4500;
    font-weight: bold;
    font-size: 1.1rem;
    border-color: #FF4500;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.3);
}

/* ------------ NEW STYLES FOR CONTENT PLANNER ------------ */

/* Align content planner header to the left */
.dash-main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

/* Optimize calendar grid to fill space */
.dash-calendar-grid {
    grid-template-columns: repeat(7, 1fr); /* Ensure 7 columns */
}

.calendar-day-cell {
    min-height: 120px; /* Give cells a minimum height to fill space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calendar-event {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.expertise-item p {
    color: #000;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.expertise-benefit {
    font-weight: 500;
    color: #7a3ff3;
}


/* =================================== */
/* NEW: Content Planner Section        */
/* =================================== */

.content-planner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0rem;
    padding: 0 1rem;
}

.content-planner-header h1 {
    margin: 0;
    font-size: 1.8rem;
}

.content-planner-header p {
    margin: 0;
    color: #000;
}

.planner-actions {
    display: flex;
    gap: 1rem;
}

.planner-btn {
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
    color: #000;
}

.planner-btn:hover {
    background-color: #f0f0f0;
}

.planner-btn.primary-btn {
    background-color: #000;
    color: #fff;
    border-color: #000;
}
.planner-btn.primary-btn:hover {
    background-color: #000;
}

.calendar-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 100%;
    overflow-x: auto; /* Allow horizontal scrolling on very small screens if needed */
}

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

.calendar-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #000;
}

.month-nav-btn {
    background: none;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.month-nav-btn:hover {
    background-color: #f0f0f0;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 0.5rem;
    color: #000;
    font-weight: 500;
    padding: 0 0.5rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.calendar-day {
    border-radius: 6px;
    min-height: 150px;
    padding: 0.5rem;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden; /* Prevent content from overflowing the day cell */
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
}

.day-number {
    font-weight: 600;
    color: #000;
}

.day-name {
    color: #000;
}

.article-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 0.5rem;
    border: 1px solid #e8e8e8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-left: none;
    overflow: hidden; /* Ensure card content doesn't overflow */
}

.article-card.published {
    border-left-color: #000000;
}

a.article-card-link {
    text-decoration: none;
    color: inherit;
}

.article-card-content {
    padding: 0.8rem;
    overflow: hidden; /* Prevent content overflow */
}

.article-type {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* Text truncation for type labels */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.article-type.guide { 
    background-color: #f3e8ff; 
    color: #9333ea;
}
.article-type.listicle { background-color: #fffbe6; color: #ffc107; }
.article-type.article { background-color: #f8f9fa; color: #6c757d; }

.article-type-icon {
    width: 1em;
    height: 1em;
}

.article-title {
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    /* Allow vertical wrapping for main keyword */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Allow up to 3 lines for main keyword */
    -webkit-box-orient: vertical;
    word-break: break-word;
    hyphens: auto; /* Add hyphenation for better wrapping */
}

.article-meta {
    font-size: 0.85rem;
    color: #000;
    padding: 0.8rem;
    background-color: #f9fafb;
    border-top: 1px solid #e8e8e8;
    border-radius: 0 0 8px 8px;
    overflow: hidden; /* Prevent meta content overflow */
}

.article-meta span {
    display: block;
    margin-bottom: 4px;
    /* Truncate long meta text */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.visit-article-btn {
    display: block;
    margin-top: 0.8rem;
    padding: 4px 8px;
    background-color: #000;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: background-color 0.2s;
}

.visit-article-btn:hover {
    background-color: #000;
}

@media (max-width: 992px) {
    .content-planner-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 992px) {
    .calendar-container {
        padding: 1rem;
    }
    
    .calendar-day {
        min-height: 120px;
        padding: 0.25rem;
    }
    
    .article-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 3; /* Keep 3 lines on medium screens */
    }
    
    .article-card-content {
        padding: 0.6rem;
    }
    
    .article-meta {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .calendar-container {
        padding: 0.5rem;
    }
    
    .calendar-grid {
        gap: 3px;
    }
    
    .calendar-day {
        min-height: 100px;
        padding: 0.25rem;
    }
    
    .article-title {
        font-size: 0.85rem;
        line-height: 1.2;
        -webkit-line-clamp: 2; /* Limit to 2 lines on mobile */
    }
    
    .article-card-content {
        padding: 0.5rem;
    }
    
    .article-type {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
    
    .article-meta {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .calendar-day {
        min-height: 80px;
        padding: 0.2rem;
    }
    
    .day-header {
        font-size: 0.8rem;
    }
    
    .article-title {
        font-size: 0.75rem;
        -webkit-line-clamp: 1; /* Single line on very small screens */
    }
    
    .article-card-content {
        padding: 0.4rem;
    }
    
    .article-type {
        font-size: 0.7rem;
        padding: 2px 4px;
        gap: 4px;
    }
    
    .article-meta {
        padding: 0.4rem;
        font-size: 0.75rem;
    }
}

.article-type span {
    /* Ensure the text inside the span also truncates */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .article-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 3; /* Keep 3 lines on medium screens */
    }
    
    .article-type {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 0.85rem;
        line-height: 1.2;
        -webkit-line-clamp: 2; /* Reduce to 2 lines on mobile */
    }
    
    .article-type {
        font-size: 0.7rem;
        padding: 3px 6px;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 0.75rem;
        -webkit-line-clamp: 2; /* Keep 2 lines on very small screens */
    }
    
    .article-type {
        font-size: 0.65rem;
        padding: 2px 4px;
        gap: 3px;
    }
}

.article-card.published {
    border-left: 4px solid #000000; /* Green for published */
}

.article-card.draft {
    border-left: 4px solid #FF9800; /* Orange for draft */
}

.visit-article-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 6px 12px;
    background-color: #000;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    font-weight: 500;
}

.visit-article-btn:hover {
    background-color: #000;
}

.article-card.published .visit-article-btn {
    background-color: #000000; /* Green for published articles */
}

.article-card.published .visit-article-btn:hover {
    background-color: #000000;
}

.article-card.draft .visit-article-btn {
    background-color: #FF9800; /* Orange for draft articles */
}

.article-card.draft .visit-article-btn:hover {
    background-color: #e68900;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .visit-article-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .visit-article-btn {
        padding: 3px 6px;
        font-size: 0.7rem;
    }
}

/* Base calendar styles */
.calendar-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 100%;
    overflow-x: auto;
}

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

.calendar-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #000;
}

.month-nav-btn {
    background: none;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    color: #ccc;
}

.month-nav-btn:hover {
    background-color: #f0f0f0;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 0.5rem;
    color: #000;
    font-weight: 500;
    padding: 0 0.5rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Mobile-first responsive design */
@media (max-width: 1200px) {
    .calendar-container {
        padding: 1.2rem;
    }
    
    .calendar-day {
        min-height: 140px;
        padding: 0.4rem;
    }
    
    .article-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 992px) {
    .content-planner-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .calendar-container {
        padding: 1rem;
    }
    
    .calendar-day {
        min-height: 120px;
        padding: 0.3rem;
    }
    
    .article-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
    
    .article-card-content {
        padding: 0.6rem;
    }
    
    .article-meta {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    /* Header adjustments */
    .calendar-header h2 {
        font-size: 1.3rem;
    }
    
    .month-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    /* Container adjustments */
    .calendar-container {
        padding: 0.8rem;
        border-radius: 6px;
    }
    
    .calendar-weekdays {
        font-size: 0.85rem;
        padding: 0 0.25rem;
    }
    
    .calendar-grid {
        gap: 3px;
    }
    
    .calendar-day {
        min-height: 100px;
        padding: 0.25rem;
        border-radius: 4px;
    }
    
    /* Card adjustments */
    .article-card {
        margin-bottom: 0.3rem;
        border-radius: 6px;
    }
    
    .article-card-content {
        padding: 0.5rem;
    }
    
    .article-type {
        font-size: 0.7rem;
        padding: 3px 6px;
        margin-bottom: 0.5rem;
        gap: 4px;
    }
    
    .article-title {
        font-size: 0.85rem;
        line-height: 1.2;
        margin-bottom: 0.4rem;
        -webkit-line-clamp: 2;
    }
    
    .article-meta {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .visit-article-btn {
        padding: 5px 8px;
        font-size: 0.75rem;
        margin-top: 0.4rem;
    }
    
    .day-header {
        font-size: 0.8rem;
        padding: 0.2rem 0.3rem;
    }
}

@media (max-width: 640px) {
    /* Very compact mobile layout */
    .calendar-container {
        padding: 0.6rem;
    }
    
    .calendar-day {
        min-height: 90px;
        padding: 0.2rem;
    }
    
    .article-card-content {
        padding: 0.4rem;
    }
    
    .article-type {
        font-size: 0.65rem;
        padding: 2px 4px;
        gap: 3px;
    }
    
    .article-title {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .article-meta {
        padding: 0.4rem;
        font-size: 0.7rem;
    }
    
    .visit-article-btn {
        padding: 4px 6px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .calendar-header {
        margin-bottom: 1rem;
    }
    
    .calendar-header h2 {
        font-size: 1.2rem;
    }
    
    .month-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .calendar-container {
        padding: 0.5rem;
    }
    
    .calendar-weekdays {
        font-size: 0.8rem;
        padding: 0;
    }
    
    .calendar-grid {
        gap: 2px;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 0.15rem;
    }
    
    .day-header {
        font-size: 0.75rem;
        padding: 0.1rem 0.2rem;
    }
    
    .article-card {
        margin-bottom: 0.2rem;
        border-radius: 4px;
    }
    
    .article-card-content {
        padding: 0.3rem;
    }
    
    .article-type {
        font-size: 0.6rem;
        padding: 1px 3px;
        gap: 2px;
        margin-bottom: 0.3rem;
    }
    
    .article-title {
        font-size: 0.75rem;
        line-height: 1.1;
        margin-bottom: 0.3rem;
        -webkit-line-clamp: 1; /* Single line on very small screens */
    }
    
    .article-meta {
        padding: 0.3rem;
        font-size: 0.65rem;
    }
    
    .article-meta span {
        margin-bottom: 2px;
    }
    
    .visit-article-btn {
        padding: 3px 5px;
        font-size: 0.65rem;
        margin-top: 0.3rem;
    }
}

/* Landscape phone orientation */
@media (max-width: 896px) and (orientation: landscape) {
    .calendar-day {
        min-height: 70px;
    }
    
    .article-title {
        -webkit-line-clamp: 1;
    }
    
    .article-meta span {
        display: inline;
        margin-right: 8px;
        margin-bottom: 0;
    }
    
    .article-meta span:last-child {
        margin-right: 0;
    }
}

/* Touch-friendly improvements */
@media (pointer: coarse) {
    .month-nav-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .visit-article-btn {
        min-height: 32px;
        touch-action: manipulation;
    }
}

/* =================================== */
/* Responsive Calendar Styles          */
/* =================================== */
@media (max-width: 768px) {
    /* Hide the weekday headers on mobile */
    .calendar-weekdays {
        display: none;
    }

    /* Change grid to a vertical flex container (list view) */
    .calendar-grid {
        display: flex;
        flex-direction: column;
        gap: 1px; /* Creates a thin line between days */
        border-radius: 8px;
        overflow: hidden; /* To apply border-radius to children */
    }

    /* Hide the empty placeholder days at the start of the month */
    .calendar-grid > div:not(.calendar-day) {
        display: none;
    }

    /* Style each day as a list item row */
    .calendar-day {
        min-height: auto; /* Let height be determined by content */
        padding: 0.75rem;
        background-color: #fff;
        display: flex;
        flex-direction: column; /* Stack day-header and articles vertically */
        gap: 0.75rem;
    }

    /* Ensure the day header is clear and takes full width */
    .day-header {
        padding: 0;
        font-size: 1rem;
        font-weight: 600;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .day-name {
        font-size: 0.9rem;
        color: #6c757d;
    }

    /* Make article cards take full width */
    .article-card {
        width: 100%;
        margin-bottom: 0;
    }
}

/* Further adjustments for very small screens */
@media (max-width: 480px) {
    .calendar-day {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    .day-header {
        font-size: 0.9rem;
    }
    .article-title {
        font-size: 0.9rem;
    }
    .article-meta {
        font-size: 0.8rem;
    }
    .article-type {
        font-size: 0.75rem;
    }
}

/* ======================================= */
/* SEO AUDIT HOMEPAGE SECTION             */
/* ======================================= */
.seo-audit-home-section {
  padding: 5rem 2rem 3rem;
  background: #fafafa;
  text-align: center;
}
.seo-audit-home-section h2 {
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #111;
}
.seo-audit-home-section .section-subtitle {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.6;
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.seo-audit-home-showcase {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
  text-align: left;
}

.seo-audit-home-mockup {
  flex-shrink: 0;
  width: 380px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.seo-audit-mock-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}
.seo-audit-mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
}
.seo-audit-mock-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  margin-left: 8px;
}
.seo-audit-mock-body {
  padding: 20px;
}
.seo-audit-mock-score-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.seo-audit-mock-ring {
  position: relative;
  flex-shrink: 0;
}
.seo-audit-mock-ring-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.6rem;
  font-weight: 800;
  color: #000000;
}
.seo-audit-mock-metrics {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.seo-audit-mock-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: #f9fafb;
  border-radius: 6px;
}
.seo-audit-mock-metric-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #000000;
}
.seo-audit-mock-metric-lbl {
  font-size: 0.7rem;
  color: #6b7280;
  font-weight: 500;
}
.seo-audit-mock-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.seo-audit-mock-check {
  font-size: 0.72rem;
  padding: 5px 8px;
  border-radius: 6px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}
.seo-audit-mock-check.pass {
  background: #f0fdf4;
  color: #065f46;
}
.seo-audit-mock-check.pass span {
  color: #059669;
}
.seo-audit-mock-check.warn {
  background: #fffbeb;
  color: #92400e;
}
.seo-audit-mock-check.warn span {
  color: #d97706;
}

.seo-audit-home-content {
  flex: 1;
}
.seo-audit-home-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 0.75rem;
}
.seo-audit-home-content > p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.seo-audit-home-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.seo-audit-home-features li {
  font-size: 0.88rem;
  color: #374151;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.seo-audit-check-icon {
  color: #059669;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.seo-audit-home-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}
.seo-audit-home-pillar {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}
.seo-audit-home-pillar:hover {
  border-color: #FF4500;
  box-shadow: 0 8px 24px rgba(255, 69, 0, 0.12);
}
.seo-audit-pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(255, 69, 0, 0.15) 0%, rgba(255, 107, 0, 0.1) 100%);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  color: #FF4500;
}
.seo-audit-home-pillar h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 0.5rem;
}
.seo-audit-home-pillar p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 768px) {
  .seo-audit-home-section {
    padding: 3rem 1rem 2rem;
  }
  .seo-audit-home-showcase {
    flex-direction: column;
    gap: 1.5rem;
  }
  .seo-audit-home-mockup {
    width: 100%;
  }
  .seo-audit-home-pillars {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ======================================= */
/* SOCIAL MEDIA REPURPOSING SECTION       */
/* ======================================= */
.social-media-section {
  padding: 5rem 2rem 1.75rem;
  background: transparent;
  text-align: center;
}

.social-media-section h2 {
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #111;
  margin-bottom: 1rem;
}

.social-media-section .section-subtitle {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.6;
  max-width: 650px;
  margin: 0 auto 2rem;
}

.social-platforms-showcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 3rem;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #374151;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.platform-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: #FF4500;
}

.platform-badge svg {
  fill: #6b7280;
}

.social-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.social-feature-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.2s ease;
}

.social-feature-card:hover {
  border-color: #FF4500;
  box-shadow: 0 8px 24px rgba(255, 69, 0, 0.12);
}

.social-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(255, 69, 0, 0.15) 0%, rgba(255, 107, 0, 0.1) 100%);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.social-feature-icon svg {
  stroke: #c2410c;
}

.social-feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.75rem;
}

.social-feature-card p {
  color: #000;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.social-best-practices,
.social-hook-examples {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-best-practices li,
.social-hook-examples li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.5;
}

.social-best-practices li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
}

.social-hook-examples li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #FF4500;
  font-weight: 700;
}

.social-hook-examples li {
  font-style: italic;
  color: #6b7280;
}

/* Social section emphasis (black text; legacy .social-highlight-red kept for old templates) */
.social-highlight-line,
.social-highlight-red {
  color: #111;
  font-weight: 600;
}

/* Meme Generator horizontal card */
.meme-generator-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  max-width: 1100px;
  margin: 2.5rem auto 0;
  background: #ffffff;
  border: 2px solid rgba(255, 69, 0, 0.15);
  border-radius: 16px;
  padding: 2rem;
  text-align: left;
}
.meme-generator-card:hover {
  box-shadow: 0 8px 24px rgba(255, 69, 0, 0.12);
  border-color: #FF4500;
}
.meme-generator-image {
  flex-shrink: 0;
  width: 340px;
}
.meme-generator-image img,
.meme-generator-image video {
  display: block;
  width: 100%;
  height: auto;
  min-height: 200px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.meme-generator-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 0.75rem;
}
.meme-generator-content p {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.meme-generator-opportunity {
  background: rgba(255, 69, 0, 0.06);
  border-left: 4px solid #FF4500;
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
}

/* Reddit "Why it matters" card */
.rr-why-card {
  background: #111;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
  text-align: left;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.rr-why-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
}

.rr-why-img {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

.rr-why-copy {
  flex: 1;
  min-width: 0;
}

.rr-why-title {
  color: #FF4500;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.rr-why-body {
  color: #d1d5db;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

.rr-why-body strong {
  color: #fff;
}

@media (max-width: 768px) {
  .social-media-section {
    padding: 3rem 1rem 1.25rem;
  }
  .social-media-section .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .social-features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .social-feature-card {
    padding: 1.5rem;
  }
  .meme-generator-card {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  .meme-generator-image {
    width: 100%;
  }
  .rr-why-card {
    padding: 1.25rem;
  }
  .rr-why-row {
    flex-direction: column;
    gap: 1rem;
  }
  .rr-why-img {
    max-width: 100%;
    flex-shrink: 1;
  }
  .rr-why-title {
    font-size: 1rem;
  }
  .rr-why-body {
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  .rr-why-card {
    padding: 1rem;
    border-radius: 10px;
  }
  .rr-why-title {
    font-size: 0.95rem;
  }
  .rr-why-body {
    font-size: 0.84rem;
    line-height: 1.55;
  }
}

/* User Spotlight Card */
.user-spotlight-card {
  display: flex;
  flex-direction: column;
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 24px 28px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffbf7 0%, #ffffff 100%);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.user-spotlight-card:hover {
  border-color: #FF4500;
  box-shadow: 0 6px 20px rgba(255, 69, 0, 0.1);
  transform: translateY(-2px);
}
.user-spotlight-badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c2410c;
  background: rgba(255, 69, 0, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.user-spotlight-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.user-spotlight-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.user-spotlight-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000000;
  margin: 0;
  line-height: 1.3;
}
.user-spotlight-quote {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 0.95rem;
  font-style: italic;
  color: #4b5563;
  line-height: 1.5;
}
.user-spotlight-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-spotlight-author-info {
  display: flex;
  flex-direction: column;
}
.user-spotlight-author-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #000000;
}
.user-spotlight-author-source {
  font-size: 0.78rem;
  color: #6b7280;
}
.user-spotlight-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.user-spotlight-rank {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: #FF4500;
}
.user-spotlight-rank-hash {
  font-size: 1.4rem;
  font-weight: 700;
}
.user-spotlight-rank-num {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}
.user-spotlight-rank-label {
  font-size: 0.72rem;
  color: #6b7280;
  text-align: center;
  max-width: 120px;
  line-height: 1.3;
}
.user-spotlight-cta {
  display: inline-block;
  width: fit-content;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #FF4500;
}
.user-spotlight-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.user-spotlight-card:hover .user-spotlight-arrow {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .user-spotlight-card {
    padding: 20px;
  }
  .user-spotlight-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .user-spotlight-right {
    flex-direction: row;
    gap: 10px;
    align-items: center;
  }
  .user-spotlight-rank-num {
    font-size: 2.2rem;
  }
  .user-spotlight-rank-label {
    text-align: left;
    max-width: none;
  }
  .user-spotlight-title {
    font-size: 1.1rem;
  }
}

/* Featured Articles Section */
.featured-articles-container {
  display: flex;
  flex-direction: column;
  max-width: 1100px;
  margin: 60px auto;
  gap: 32px;
  padding: 0 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.featured-articles-list-col {
  flex: 0 0 35px; /* Adjust width of the left column */
  display: flex;
  flex-direction: row;
  gap: 16px;
}

.featured-article-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease-in-out;
}

.featured-article-card.selected,
.featured-article-card:hover {
    border-color: #FF4500;
    box-shadow: 0 4px 14px 0 rgba(255, 69, 0, 0.12);
    transform: translateY(-2px);
}

.featured-article-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.featured-article-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.featured-article-company {
  font-weight: 600;
  color: #000000;
}

.featured-article-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #000000;
  line-height: 1.4;
  margin-bottom: 12px;
}

.featured-article-tag {
  align-self: flex-end;
  background-color: rgba(255, 69, 0, 0.12);
  color: #c2410c;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 9999px;
}

.featured-article-detail-col {
  flex: 1 1 100;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.04), 0 8px 10px -6px rgba(0,0,0,0.04);
  max-height: 600px; /* Important: sets a max height */
  overflow-y: auto; /* Important: makes it scrollable */
  padding: 24px;
}

.featured-article-detail-image {
  width: 100%;
  height: 300px; /* A fixed height for a landscape feel */
  object-fit: cover; /* This will crop the image to fit */
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Added shadow */
}

.featured-article-detail-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 16px;
}

.featured-article-detail-content {
  font-size: 1rem;
  line-height: 1.6;
  color: #374151;
}

.featured-article-detail-content h1,
.featured-article-detail-content h2,
.featured-article-detail-content h3 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
}

.featured-article-detail-content p {
  margin-bottom: 1em;
}

.featured-article-detail-content ul,
.featured-article-detail-content ol {
  padding-left: 20px;
  margin-bottom: 1em;
}

.featured-article-detail-content a {
    color: #4f46e5;
    text-decoration: underline;
}

.featured-article-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.featured-article-detail-content th, 
.featured-article-detail-content td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
}

.featured-article-detail-content th {
  background-color: #f9fafb;
}

.article-meta-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 24px;
  border: 1px solid #e5e7eb;
}

.meta-item {
  padding: 16px;
  text-align: center;
}

.meta-item:not(:last-child) {
  border-right: 1px solid #e5e7eb;
}

.meta-item span {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-item strong {
  font-size: 1.25rem;
  font-weight: 600;
  color: #000000;
  display: block;
}

.featured-article-detail-content img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 1.5em 0;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 900px) {
  .featured-articles-container {
      flex-direction: column;
      max-width: 100%;
  }
  .featured-articles-list-col {
    flex: initial;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .featured-article-detail-col {
      max-height: none;
      flex: initial;
  }
  .featured-article-detail-title {
    font-size: 1.1rem;
  }
  .featured-article-detail-content img {
    height: auto;
    max-height: 250px;
  }
}

@media (max-width: 768px) {
  .featured-articles-section .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .featured-articles-list-col {
    flex-direction: column;
  }
  .article-meta-info {
    grid-template-columns: 1fr;
  }
  .meta-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
  .meta-item strong {
    font-size: 1rem;
  }
  .featured-article-detail-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .featured-article-detail-image {
    height: auto;
    max-height: 200px;
  }
  .writing-examples-section-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .meta-item {
    padding: 10px;
  }
  .meta-item span {
    font-size: 0.7rem;
  }
  .meta-item strong {
    font-size: 0.9rem;
  }
  .featured-article-detail-content {
    font-size: 0.9rem;
  }
  .featured-article-detail-content th,
  .featured-article-detail-content td {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
}

.writing-examples-section-subtitle {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.6;
  max-width: 650px;
  margin: 0 auto 2rem;
  text-align: center;
}

.seo-practices-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 3rem;
  max-width: 800px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.seo-practices-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(255, 69, 0, 0.06) 0%, rgba(255, 69, 0, 0.02) 100%);
  border: 1px solid rgba(255, 69, 0, 0.15);
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #000;
  transition: all 0.2s ease;
}

.seo-practices-list li:hover {
  background: linear-gradient(135deg, rgba(255, 69, 0, 0.1) 0%, rgba(255, 69, 0, 0.04) 100%);
  border-color: rgba(255, 69, 0, 0.3);
  transform: translateY(-2px);
}

.seo-practices-list li strong {
  color: #222;
  font-weight: 600;
}

.seo-practices-list .we-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.seo-practices-list .we-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: #111;
  line-height: 1.3;
}

.seo-practices-list .we-desc {
  display: block;
  font-size: 0.88rem;
  color: #444;
  line-height: 1.5;
}

.seo-practices-list .practice-icon {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FF4500;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .seo-practices-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0 1rem;
  }
  
  .seo-practices-list li {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }
}

.auth-link-mobile { display: none; font-weight: 700; }
.auth-link-desktop { display: flex; align-items: center; font-weight: 700; }

@media (max-width: 768px) {
  .auth-link-desktop { display: none; }
  .auth-link-mobile { display: block; }
}

/* AS SEEN IN block */
.as-seen-in {
width: 100%;
max-width: 900px;
margin: 0 auto;
text-align: center;
}

.as-seen-in h4 {
text-transform: uppercase;
color: #6c757d;
font-size: 0.9rem;
letter-spacing: 1.5px;
margin-bottom: 1.5rem;
font-weight: 500;
}

.as-seen-logos {
display: flex;
justify-content: center;
align-items: center;
gap: 4rem;
flex-wrap: wrap;
}

.as-seen-logos img {
height: 30px;
opacity: 0.65;
}

.as-seen-logos img.semrush {
height: 35px;
}

@media (max-width: 768px) {
.as-seen-logos {
  gap: 1.5rem;
}
}

/* Subscription Required Modal Styles */
#subscription-required-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

#subscription-required-modal .modal-container {
  background: white;
  border-radius: 12px;
  width: fit-content;
  max-width: 500px;
  min-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

#subscription-required-modal .modal-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 24px 0 24px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 24px;
}

#subscription-required-modal .modal-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #000000;
  text-align: center;
}

#subscription-required-modal .modal-body {
  padding: 0 24px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

#subscription-required-modal .modal-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  gap: 10px;
}

#subscription-required-modal .primary-btn:hover {
  background-color: #e6ad00 !important;
}

#subscription-required-modal .primary-btn:disabled {
  background-color: #d1d5db !important;
  cursor: not-allowed !important;
  color: #6b7280 !important;
}

.modal-overlay { display: none; }

@media (max-width: 768px) {
  .modal-body {
      padding: 0 20px 20px 20px;
      margin-top: 50px;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  #subscription-required-modal .modal-overlay {
      padding: 10px;
  }
  
  #subscription-required-modal .modal-container {
      max-width: 100%;
      min-width: unset;
      margin: 0;
  }
  
  #subscription-required-modal .modal-header {
      padding: 20px 20px 0 20px;
      margin-bottom: 20px;
  }
  
  #subscription-required-modal .modal-header h3 {
      font-size: 20px;
  }
  
  #subscription-required-modal .modal-body {
      padding: 0 20px 20px 20px;
  }
}

/* Videos Toggle (isolated to avoid conflicts with other toggles) */
.videos-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.videos-toggle .videos-switch {
  position: relative;
  width: 60px;
  height: 30px;
  background: #f0f0f0;
  border-radius: 15px;
  padding: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid #ddd;
  display: inline-block;
}

.videos-toggle .videos-switch input {
  display: none;
}

.videos-toggle .videos-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  background: #FF6B00;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Move knob on check */
.videos-toggle .videos-switch input:checked + .videos-slider {
  transform: translateX(30px);
}

/* Hover state for track */
.videos-toggle .videos-switch:hover {
  background: #e8e8e8;
}

/* Responsive */
@media (max-width: 768px) {
  .videos-toggle .videos-switch {
    width: 50px;
    height: 26px;
  }
  .videos-toggle .videos-switch input:checked + .videos-slider {
    transform: translateX(24px);
  }
}

/* Active menu item styling */
.menu-item.active button {
  background-color: rgba(0, 0, 0, 0.08);
  color: #000000;
  font-weight: 600;
}

.menu-item.active button:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.menu-item.active button svg {
  color: #000;
}

.sidebar.collapsed .menu-item.active button {
  border-left: none;
}

/* Project Dropdown Styles */
.project-dropdown-container {
  margin: 16px 12px;
  position: relative;
}

.project-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 52px;
}

.project-dropdown-header:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.current-project-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.project-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  flex-shrink: 0;
}

.current-project-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.current-project-name {
  font-weight: 600;
  font-size: 14px;
  color: #000;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.current-project-url {
  font-size: 12px;
  color: #000;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-arrow {
  display: flex;
  align-items: center;
  color: #000;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.project-dropdown-header.open .dropdown-arrow {
  transform: rotate(180deg);
}

.project-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #2a2a2a;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  margin-top: 4px;
  max-height: 300px;
  overflow-y: auto;
}

.project-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.project-dropdown-list {
  padding: 8px 0;
}

.project-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.project-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.project-dropdown-item.current {
  background: rgba(255, 255, 255, 0.12);
  border-left: 3px solid rgba(255, 255, 255, 0.4);
}

.project-dropdown-item .project-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}
.project-dropdown-item .project-icon svg path {
  fill: rgba(255, 255, 255, 0.7);
}

.project-dropdown-item .project-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.project-dropdown-item .project-name {
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-dropdown-item .project-url {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 8px 16px;
}

.add-project-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 13px;
}

.add-project-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.add-project-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  flex-shrink: 0;
}

.add-project-btn:hover .add-project-icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Collapsed sidebar styles */
.sidebar.collapsed .project-dropdown-container {
  display: none;
}

.sidebar.collapsed .project-dropdown-header {
  padding: 8px;
  min-height: 40px;
}

.sidebar.collapsed .current-project-details,
.sidebar.collapsed .dropdown-arrow {
  display: none;
}

.sidebar.collapsed .project-icon {
  width: 24px;
  height: 24px;
  margin: 0 auto;
}

.sidebar.collapsed .project-dropdown-menu {
  left: 100%;
  top: 0;
  margin-left: 8px;
  margin-top: 0;
  width: 280px;
}

/* Custom scrollbar for dropdown */
.project-dropdown-menu::-webkit-scrollbar {
  width: 4px;
}

.project-dropdown-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.project-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.project-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .project-dropdown-header {
    padding: 10px 12px;
    min-height: 48px;
  }
  
  .current-project-name {
    font-size: 13px;
  }
  
  .current-project-url {
    font-size: 11px;
  }
  
  .project-dropdown-item {
    padding: 10px 12px;
  }
  
  .add-project-btn {
    padding: 10px 12px;
  }
}

/* Add New Project Popup Styles */
.add-project-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.add-project-modal {
  position: relative;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10001;
}

.add-project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid #e5e7eb;
}

.add-project-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #000000;
  margin: 0;
}

.add-project-close-btn {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 8px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-project-close-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

.add-project-content {
  display: flex;
  gap: 32px;
  padding: 32px;
}

.add-project-left {
  flex: 1;
  min-width: 0;
}

.add-project-right {
  flex: 1;
  min-width: 0;
}

/* Additional Products Section */
.additional-products-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 16px 0;
}

.product-selector {
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 32px;
}

.product-quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  border: 2px solid #FF6B00;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #FF6B00;
  font-size: 18px;
  font-weight: 600;
  user-select: none;
}

.quantity-btn:hover {
  background: #FF6B00;
  color: white;
}

.quantity-btn:disabled {
  border-color: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
}

.quantity-btn:disabled:hover {
  background: white;
  color: #9ca3af;
}

#productQuantity {
  width: 80px;
  height: 40px;
  text-align: center;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  background: white;
}

.current-subscription {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

/* Subscription Summary */
.subscription-summary h3 {
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 16px 0;
}

.pricing-breakdown {
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 16px;
}

.price-row:last-child {
  margin-bottom: 0;
}

.discount-row {
  color: #10b981;
}

.discount-label {
  color: #10b981;
  font-weight: 500;
}

.discount-amount {
  color: #10b981;
  font-weight: 600;
}

.total-row {
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  font-size: 18px;
  margin-bottom: 8px;
}

.per-product-cost {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  margin-top: 8px;
}

/* Volume Discounts */
.volume-discounts {
  background: #f0fdf4;
  border-radius: 12px;
  padding: 24px;
}

.discount-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.discount-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  margin: 0;
}

.discount-icon {
  color: #10b981;
}

.discount-tiers {
  margin-bottom: 20px;
}

.discount-tier {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.discount-tier:last-child {
  margin-bottom: 0;
}

.tier-badge {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.discount-tier.active .tier-badge {
  background: #FF6B00;
}

.tier-info strong {
  display: block;
  font-weight: 600;
  color: #000000;
  margin-bottom: 4px;
}

.tier-info p {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
}

.discount-explanation {
  padding: 16px;
  background: white;
  border-radius: 8px;
  border: 1px solid #d1fae5;
}

.discount-explanation p {
  color: #065f46;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Footer */
.add-project-footer {
  padding: 24px 32px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
}

.purchase-btn {
  background: #FF6B00;
  color: #000000;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 140px;
}

.purchase-btn:hover {
  background: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .add-project-modal {
    width: 95%;
    margin: 20px;
  }
  
  .add-project-content {
    flex-direction: column;
    gap: 24px;
    padding: 24px;
  }
  
  .add-project-header {
    padding: 20px 24px;
  }
  
  .add-project-header h2 {
    font-size: 20px;
  }
  
  .add-project-footer {
    padding: 20px 24px;
  }
  
  .purchase-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .add-project-content {
    padding: 16px;
  }
  
  .product-selector,
  .pricing-breakdown,
  .volume-discounts {
    padding: 16px;
  }
}

/* Add Project Tabs Styling */
.add-project-tabs {
  display: flex;
  margin: 0 32px;
  margin-top: -1px;
  border-bottom: 2px solid #f1f5f9;
  position: relative;
}

.tab-btn {
  background: none;
  border: none;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 0;
  margin: 0;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #334155;
  background: linear-gradient(to bottom, transparent 0%, rgba(59, 130, 246, 0.05) 100%);
}

.tab-btn.active {
  color: #000000;
  background: linear-gradient(to bottom, transparent 0%, rgba(59, 130, 246, 0.1) 100%);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #000000, #1d4ed8);
  border-radius: 2px 2px 0 0;
  animation: tabSlideIn 0.3s ease;
}

.tab-btn:disabled {
  color: #cbd5e1;
  cursor: not-allowed;
  background: none;
}

.tab-btn:disabled:hover {
  color: #cbd5e1;
  background: none;
}

/* Tab content sections */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

/* Seat availability indicator */
.tab-btn.has-seats::before {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.tab-btn.no-seats::before {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  background: #f59e0b;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

/* Animation for tab indicator */
@keyframes tabSlideIn {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

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

/* Enhanced responsive design for tabs */
@media (max-width: 768px) {
  .add-project-tabs {
    margin: 0 16px;
  }
  
  .tab-btn {
    padding: 14px 20px;
    font-size: 15px;
  }
  
  .tab-btn.has-seats::before,
  .tab-btn.no-seats::before {
    top: 10px;
    right: 10px;
    width: 6px;
    height: 6px;
  }
}

@media (max-width: 480px) {
  .add-project-tabs {
    margin: 0 12px;
  }
  
  .tab-btn {
    padding: 12px 16px;
    font-size: 14px;
    flex: 1;
    text-align: center;
  }
}

/* Additional styling for tab content sections */
.add-project-content .tab-content {
  padding-top: 24px;
}

/* Visual separator between tabs when collapsed sidebar */
.add-project-tabs::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: #f1f5f9;
  z-index: 1;
}

/* ===== MINI ONBOARDING STYLES FOR ADD PROJECT POPUP ===== */

/* Post-purchase setup container */
#postPurchaseSetup {
  padding: 32px !important;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  margin: 16px 32px 0;
}

/* Mini onboarding header */
#postPurchaseSetup .add-project-header {
  text-align: center;
  padding-bottom: 10px;
}

#postPurchaseSetup .add-project-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
}

#projectSlotsMsg {
  font-size: 14px !important;
  color: #64748b !important;
  margin: 0 !important;
  font-weight: 500;
}

/* Progress indicator */
.add-project-steps::before {
  content: '';
  display: block;
  height: 4px;
  border-radius: 2px;
}

.add-project-steps[data-current-step="1"]::before {
  background: linear-gradient(to right, #FF6B00 0%, #FF6B00 33%, #e2e8f0 33%, #e2e8f0 100%);
}

.add-project-steps[data-current-step="2"]::before {
  background: linear-gradient(to right, #FF6B00 0%, #FF6B00 66%, #e2e8f0 66%, #e2e8f0 100%);
}

.add-project-steps[data-current-step="3"]::before {
  background: linear-gradient(to right, #FF6B00 0%, #FF6B00 100%);
}

/* Setup step containers */
.setup-step {
  background: white;
  border-radius: 12px;
  padding: 28px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.setup-step h4 {
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 24px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.setup-step h4::before {
  content: attr(data-step-number);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #FF4500, #FF6B00);
  color: white;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Form styling - matching onboarding */
.setup-step .form-group {
  margin-bottom: 20px;
}

.setup-step .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.setup-step .form-group input,
.setup-step .form-group textarea,
.setup-step .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  transition: all 0.2s ease;
  box-sizing: border-box;
  color: #000000;
}

.setup-step .form-group input:focus,
.setup-step .form-group textarea:focus,
.setup-step .form-group select:focus {
  outline: none;
  border-color: #FF6B00;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
}

.setup-step .form-group textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

/* Row layout */
.setup-step .row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.setup-step .col-sm-6 {
  flex: 1;
  min-width: 0;
}

.setup-step .col-sm-6 .form-group {
  margin-bottom: 0;
}

/* Custom dropdown styling */
.setup-step .custom-dropdown select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

/* Tag container for audiences and competitors */
.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  min-height: 32px;
  padding: 8px;
  border: 2px dashed #e5e7eb;
  border-radius: 8px;
  background: #fafbff;
}

.tag-container:empty::before {
  content: "Added items will appear here...";
  color: #9ca3af;
  font-size: 13px;
  font-style: italic;
}

.tag-container .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #FF6B00;
  color: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.tag .remove-tag {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.tag .remove-tag:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

/* Input group for adding items */
.input-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.input-group input {
  flex: 1;
  margin-bottom: 0 !important;
}

/* ONBOARDING-STYLE BUTTONS */
.setup-step .btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.setup-step .btn-primary {
  background-color: #FF6B00;
  color: #FFFFFF;
}

.setup-step .btn-primary:hover {
  background-color: #000000;
}

.setup-step .btn-secondary {
  background-color: #FFFFFF;
  color: #374151;
  border-color: #D1D5DB;
}

.setup-step .btn-secondary:hover {
  background-color: #F9FAFB;
}

/* Videos Toggle within Setup Steps */
.setup-step .videos-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.setup-step .videos-switch {
  position: relative;
  width: 60px;
  height: 30px;
  background: #f0f0f0;
  border-radius: 15px;
  padding: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid #ddd;
  display: inline-block;
}

.setup-step .videos-switch input {
  display: none;
}

.setup-step .videos-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  background: #FF6B00;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.setup-step .videos-switch input:checked + .videos-slider {
  transform: translateX(30px);
}

.setup-step .videos-switch:hover {
  background: #e8e8e8;
}

/* Step navigation */
.setup-step > div:last-child {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Checkbox styling */
.setup-step input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #FF6B00;
}

.setup-step label[for="npSetAsCurrent"] {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 0;
}

/* Links */
.setup-step a {
  color: #FF6B00;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}

.setup-step a:hover {
  text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
  #postPurchaseSetup {
    margin: 16px 16px 0;
    padding: 24px 20px !important;
  }
  
  .setup-step {
    padding: 20px;
  }
  
  .setup-step h4 {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .setup-step h4::before {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  
  .setup-step .row {
    flex-direction: column;
    gap: 0;
  }
  
  .setup-step .row .form-group {
    margin-bottom: 20px;
  }
  
  .setup-step > div:last-child {
    flex-direction: column;
    gap: 16px;
  }
  
  .setup-step .btn-primary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .setup-step .form-group input,
  .setup-step .form-group textarea,
  .setup-step .form-group select {
    padding: 10px 14px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  #postPurchaseSetup {
    margin: 16px 16px 0;
    padding: 24px 20px !important;
  }
  
  .setup-step {
    padding: 20px;
  }
  
  .setup-step h4 {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .setup-step h4::before {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  
  .setup-step .row {
    flex-direction: column;
    gap: 0;
  }
  
  .setup-step .row .form-group {
    margin-bottom: 20px;
  }
  
  .setup-step > div:last-child {
    flex-direction: column;
    gap: 16px;
  }
  
  .setup-step .btn-primary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .setup-step .form-group input,
  .setup-step .form-group textarea,
  .setup-step .form-group select {
    padding: 10px 14px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Image Style Grid inside Setup Steps */
.setup-step .image-style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
}

.setup-step .image-style-item {
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.setup-step .image-style-item:hover {
    border-color: #A5B4FC;
}

.setup-step .image-style-item.selected {
    border-color: #FF6B00;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.setup-step .image-style-item .placeholder-img {
    width: 100%;
    height: 60px;
    background-color: #F3F4F6;
    border-radius: 6px;
    margin-bottom: 8px;
    object-fit: cover;
}

/* Step navigation */
.setup-step > div:last-child {
  margin-top: 32px;
}
input#apiKey {
  max-width: 300px;
}
.input-group {
  display: flex;
  flex-direction: row;
  gap: 10px;
}


/* ── Reddit Radar Sidebar Flame ─────────────────────── */
.rr-sidebar-flame {
  font-size: 14px;
  margin-left: auto;
  animation: rr-flame-pulse 1.5s ease-in-out infinite;
  line-height: 1;
}

@keyframes rr-flame-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.15); }
}


/* =====================================================================
   REDDIT RADAR STYLES
   ===================================================================== */

/* ── Page Header ────────────────────────────────────── */
.rr-page-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0 20px 0;
  gap: 16px;
  min-width: 0;
  box-sizing: border-box;
}

.rr-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.rr-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: #000000;
}

.rr-title-icon {
  flex-shrink: 0;
}

.rr-subtitle {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.rr-header-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

.rr-account-selector-wrap {
  width: fit-content;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rr-account-selector-label {
  font-size: 11px;
  color: #9ca3af;
  margin: 0;
}

.rr-account-select {
  width: fit-content;
  min-width: 220px;
  height: fit-content;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 13px;
}

.rr-account-select:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

.rr-scan-limit-badge {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
  padding: 4px 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
}


/* ── Buttons ────────────────────────────────────────── */
.rr-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

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

.rr-btn-primary {
  background: var(--cta-brand-strip) bottom / 100% 5px no-repeat, var(--cta-brand-bg);
  color: #fff;
  box-shadow: var(--cta-brand-shadow);
}

.rr-btn-primary:hover:not(:disabled) {
  background: var(--cta-brand-strip) bottom / 100% 5px no-repeat, var(--cta-brand-bg-hover);
  transform: translateY(-2px);
  box-shadow: var(--cta-brand-shadow-hover);
}

.rr-btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.rr-btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.rr-btn-secondary:hover:not(:disabled) {
  background: #e5e7eb;
}

.rr-btn-ghost {
  background: transparent;
  color: #374151;
  border: 1px solid #d1d5db;
}

.rr-btn-ghost:hover:not(:disabled) {
  background: #f9fafb;
}

.rr-btn-text {
  background: transparent;
  color: #6b7280;
  padding: 10px 12px;
}

.rr-btn-text:hover {
  color: #374151;
  background: #f3f4f6;
}

.rr-btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}


/* ── Filter Tabs ────────────────────────────────────── */
.rr-filters {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  padding: 0 0 20px 0;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 20px;
}

.rr-filter-tab {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rr-filter-tab:hover {
  background: #f3f4f6;
  color: #374151;
}

.rr-filter-tab.active {
  background: #000000;
  color: #fff;
}

.rr-count {
  margin-left: auto;
  font-size: 13px;
  color: #9ca3af;
}

/* ── How-To Steps Bar ─────────────────────────────── */
.rr-steps-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  padding: 14px 20px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #eef2ff 0%, #f0fdf4 100%);
  border: 1px solid #e0e7ff;
  border-radius: 12px;
}

.rr-step {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  overflow: visible;
}

.rr-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #6366f1;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.rr-step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
  overflow: visible;
}

.rr-step-text strong {
  font-size: 13px;
  font-weight: 700;
  color: #1e1b4b;
  white-space: normal;
  word-break: break-word;
}

.rr-step-text span {
  font-size: 11.5px;
  color: #4338ca;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
}

.rr-step-divider {
  width: 1px;
  height: 36px;
  background: #c7d2fe;
  margin: 0 16px;
  flex-shrink: 0;
}

/* ── Advanced Filters Collapsible ─────────────────── */
.rr-advanced-filters {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fcfcfd;
  overflow: hidden;
}

.rr-advanced-filters-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  text-align: left;
  transition: background 0.15s;
}

.rr-advanced-filters-toggle:hover {
  background: #f3f4f6;
}

.rr-advanced-filters-toggle-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
}

.rr-toggle-chevron {
  transition: transform 0.2s ease;
  color: #9ca3af;
  flex-shrink: 0;
}

.rr-advanced-filters-toggle--open .rr-toggle-chevron {
  transform: rotate(180deg);
}

.rr-advanced-filters-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.rr-advanced-filters-body--open {
  max-height: 800px;
  padding: 0 16px 16px 16px;
}

.rr-advanced-filters-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rr-advanced-filters-header p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.rr-advanced-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.rr-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rr-filter-field span {
  font-size: 12px;
  color: #4b5563;
  font-weight: 600;
}

.rr-filter-field input,
.rr-filter-field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  font-size: 13px;
  color: #000000;
  background: #fff;
  box-sizing: border-box;
}

.rr-filter-field input:focus,
.rr-filter-field select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.rr-filter-checkbox-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px;
}

.rr-filter-checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
}

.rr-advanced-filter-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rr-filter-result-count {
  font-size: 12px;
  color: #6b7280;
}


/* ── State Containers (loading, empty, no-reddit) ──── */
.rr-state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 12px;
  color: #6b7280;
  text-align: center;
}

.rr-state-container h3 {
  margin: 0;
  color: #374151;
  font-size: 18px;
}

.rr-state-container p {
  margin: 0;
  max-width: 400px;
  line-height: 1.5;
}


/* ── Connect Reddit Banner ──────────────────────────── */
.rr-connect-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #1e40af;
}

.rr-connect-banner span {
  flex: 1;
}

.rr-banner-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #93c5fd;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.rr-banner-close:hover {
  color: #1e40af;
}

/* ── Spinner ────────────────────────────────────────── */
.rr-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top-color: #000000;
  border-radius: 50%;
  animation: rr-spin 0.8s linear infinite;
}

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

.rr-spin {
  animation: rr-spin 1s linear infinite;
}


/* ── Opportunities List ────────────────────────────── */
.rr-opportunities-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 40px;
  min-width: 0;
}


/* ── Opportunity Card ──────────────────────────────── */
.rr-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s ease;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.rr-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.rr-card.rr-status-replied {
  border-left: 3px solid #10b981;
  opacity: 0.8;
}

.rr-card.rr-status-dismissed {
  opacity: 0.5;
}


/* ── Card Header ───────────────────────────────────── */
.rr-card-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rr-card-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rr-subreddit {
  background: #f0f0ff;
  color: #4f46e5;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.rr-time {
  color: #9ca3af;
  font-size: 12px;
}

.rr-hot-badge {
  background: #fef2f2;
  color: #dc2626;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: rr-pulse 2s ease-in-out infinite;
}

.rr-priority-badge {
  background: #ede9fe;
  color: #5b21b6;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

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

.rr-relevance {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.rr-relevance-high {
  background: #ecfdf5;
  color: #059669;
}

.rr-relevance-medium {
  background: #fffbeb;
  color: #d97706;
}

.rr-relevance-low {
  background: #f3f4f6;
  color: #6b7280;
}

.rr-replied-badge {
  background: #ecfdf5;
  color: #059669;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.rr-dismissed-badge {
  background: #f3f4f6;
  color: #9ca3af;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.rr-scheduled-badge {
  background: #eff6ff;
  color: #2563eb;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.rr-card-stats {
  display: flex;
  flex-direction: row;
  gap: 12px;
  font-size: 12px;
  color: #9ca3af;
}


/* ── Card Body ─────────────────────────────────────── */
.rr-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #000000;
  text-decoration: none;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
}

.rr-card-title:hover {
  color: #4f46e5;
  text-decoration: underline;
}

.rr-card-text {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
}

.rr-card-reason {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
  background: #f9fafb;
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 3px solid #4f46e5;
  word-break: break-word;
  overflow-wrap: break-word;
}


/* ── Reply Section ─────────────────────────────────── */
.rr-reply-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #f3f4f6;
  min-width: 0;
}

.rr-reply-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rr-reply-textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  color: #000000;
  resize: vertical;
  min-height: 60px;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.rr-reply-textarea:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.rr-reply-textarea:disabled {
  background: #f9fafb;
  color: #9ca3af;
}

.rr-link-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #92400e;
  margin-top: 6px;
}

.rr-link-warning svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #d97706;
}

.rr-custom-instructions {
  width: 100%;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px dashed #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  color: #374151;
  background: #f9fafb;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.rr-custom-instructions:focus {
  outline: none;
  border-color: #4f46e5;
  border-style: solid;
  background: #fff;
}

.rr-custom-instructions::placeholder {
  color: #9ca3af;
  font-style: italic;
}

.rr-card-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: wrap;
}

.rr-replied-msg {
  color: #059669;
  font-weight: 600;
  font-size: 14px;
  margin: 0;
}


/* ── Card Footer ───────────────────────────────────── */
.rr-card-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9ca3af;
  flex-wrap: wrap;
}

.rr-search-query {
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60%;
}


/* ── Load More ─────────────────────────────────────── */
.rr-load-more {
  display: flex;
  justify-content: center;
  padding: 20px 0 40px 0;
}


/* ── Confirm Modal ─────────────────────────────────── */
.rr-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.rr-modal {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.rr-modal h3 {
  margin: 0;
  font-size: 18px;
  color: #000000;
}

.rr-modal p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

.rr-modal-preview {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.rr-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  justify-content: flex-end;
}


/* ── Toast ─────────────────────────────────────────── */
.rr-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 2000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: rr-slide-in 0.3s ease;
  max-width: 400px;
}

@keyframes rr-slide-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.rr-toast-success {
  background: #059669;
  color: #fff;
}

.rr-toast-error {
  background: #dc2626;
  color: #fff;
}

.rr-toast-info {
  background: #374151;
  color: #fff;
}


/* ── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  .rr-page-header {
    flex-direction: column;
    gap: 12px;
  }

  .rr-header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

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

  .rr-account-selector-wrap,
  .rr-account-select {
    width: 100%;
  }

  .rr-filters {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .rr-advanced-filter-actions .rr-btn {
    width: 100%;
    justify-content: center;
  }

  .rr-steps-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
  }

  .rr-step-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }

  .rr-step-text strong {
    white-space: normal;
  }

  .rr-card {
    padding: 16px;
  }

  .rr-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .rr-card-actions {
    flex-direction: column;
  }

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

  .rr-modal {
    margin: 16px;
  }

  .rr-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }

  .rr-bulk-bar {
    bottom: 16px;
    left: 16px;
    right: 16px;
  }
}


/* ── Bulk Selection Checkbox ───────────────────────── */
.rr-bulk-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.rr-bulk-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #2563eb;
  margin: 0;
  border-radius: 4px;
}


/* ── Bulk Action Bar ───────────────────────────────── */
.rr-bulk-bar {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  animation: rr-bulk-bar-in 0.25s ease-out;
}

@keyframes rr-bulk-bar-in {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.rr-bulk-bar-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: #000000;
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  font-size: 0.88rem;
}

.rr-bulk-count {
  font-weight: 600;
  white-space: nowrap;
}


/* ── Schedule Modal ────────────────────────────────── */
.rr-modal-wide {
  max-width: 600px;
  width: 95%;
}

.rr-schedule-preview {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.rr-schedule-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.rr-schedule-row-warning {
  border-color: #fbbf24;
  background: #fffbeb;
}

.rr-schedule-slot {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2563eb;
}

.rr-schedule-title {
  font-size: 0.84rem;
  font-weight: 500;
  color: #374151;
}

.rr-schedule-reply-preview {
  font-size: 0.78rem;
  color: #6b7280;
  font-style: italic;
}

.rr-schedule-no-reply {
  font-size: 0.78rem;
  color: #dc2626;
  font-weight: 600;
}

.rr-schedule-summary {
  font-size: 0.84rem;
  color: #6b7280;
  padding: 8px 0;
  line-height: 1.5;
}


/* ── Scheduled Replies Panel ───────────────────────── */
.rr-scheduled-panel {
  margin-bottom: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  overflow: hidden;
}

.rr-scheduled-panel-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e40af;
  gap: 8px;
}

.rr-scheduled-panel-header > span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rr-scheduled-count-badge {
  background: #2563eb;
  color: #fff;
  font-size: 0.72rem;
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 700;
}

.rr-scheduled-panel-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.rr-scheduled-panel-body--open {
  max-height: 600px;
  overflow-y: auto;
  padding: 0 16px 12px;
}

.rr-scheduled-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #dbeafe;
  gap: 10px;
}

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

.rr-scheduled-item-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  min-width: 0;
}

.rr-scheduled-item-time {
  font-weight: 700;
  color: #2563eb;
  white-space: nowrap;
}

.rr-scheduled-item-sub {
  color: #6b7280;
  white-space: nowrap;
}

.rr-scheduled-item-title {
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

.rr-scheduled-item-actions {
  flex-shrink: 0;
}

.rr-sched-status-posting {
  font-size: 0.78rem;
  color: #2563eb;
  font-weight: 600;
}

.rr-sched-posting {
  opacity: 0.7;
}

.rr-status-scheduled .rr-reply-section {
  display: none;
}
/* ===== Documentation page: code blocks and table ===== */
.form-section pre {
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0 20px;
}

.form-section pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
  border-radius: 0;
}

.form-section code {
  background: #f3f4f6;
  color: #000000;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'Fira Code', 'Courier New', monospace;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 14px;
}

.docs-table th,
.docs-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.docs-table thead th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
}

.docs-table tbody tr:hover {
  background: #f3f4f6;
}

.docs-table td code {
  background: #f3f4f6;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 12px;
}

.form-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: #000000;
}

/* ===== Documentation page: TOC sidebar layout ===== */
.documentation-page-main {
  padding: 40px 20px;
}

.documentation-page-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.docs-page-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.docs-page-main {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  flex: 1;
}

.documentation-page-inner nav.docs-toc {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0;
  padding: 1.15rem 1.25rem;
  margin: 0;
  position: relative;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.docs-toc-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #000000;
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e5e7eb;
}

.docs-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.docs-toc-list li {
  margin: 0;
}

a.docs-toc-link {
  display: block;
  font-size: 0.875rem;
  line-height: 1.35;
  color: #374151 !important;
  text-decoration: none !important;
  padding: 0.45rem 0 0.45rem 0.65rem;
  margin: 0;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

a.docs-toc-link:hover {
  color: #FF6B00 !important;
  background: rgba(255, 107, 0, 0.06);
}

a.docs-toc-link.docs-toc-link--active {
  color: #000000 !important;
  font-weight: 600;
  border-left-color: #FF6B00;
  background: rgba(255, 107, 0, 0.08);
}

.docs-toc-sidebar {
  width: 100%;
  flex-shrink: 0;
}

.documentation-page-inner section.form-section[id] {
  scroll-margin-top: 96px;
}

@media (min-width: 992px) {
  .docs-page-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.25rem;
    margin-top: 2rem;
  }

  .docs-toc-sidebar {
    width: 220px;
    max-width: 34%;
  }

  .documentation-page-inner nav.docs-toc {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ===== API Webhook modal info box ===== */
.webhook-info-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.webhook-info-intro {
  font-size: 14px;
  color: #0c4a6e;
  margin: 0 0 8px;
  line-height: 1.5;
}

.webhook-payload-details summary {
  font-size: 13px;
  font-weight: 600;
  color: #0369a1;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
}

.webhook-payload-details[open] summary {
  margin-bottom: 10px;
}

.webhook-payload-pre {
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
  margin: 0 0 10px;
  white-space: pre;
}

.webhook-payload-pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
  border-radius: 0;
}

.webhook-comment {
  color: #6b7280;
  font-style: italic;
}

.webhook-info-note {
  font-size: 13px;
  color: #374151;
  margin: 0;
  line-height: 1.5;
}

.webhook-info-note code {
  background: #e0f2fe;
  color: #0369a1;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}

.webhook-docs-link {
  color: #0369a1;
  font-weight: 600;
  text-decoration: none;
}

.webhook-docs-link:hover {
  text-decoration: underline;
}

.form-hint {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
  line-height: 1.4;
}

.form-hint code {
  background: #f3f4f6;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 11px;
}

/* First 7 Days — steps use How it works timeline classes (see test-landing.css) */

.f7d-section .f7d-eyebrow {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #555;
  margin: 0 0 0.5rem;
}

.f7d-section .hiw-timeline-body .hiw-step1-platforms-label {
  margin-bottom: 0.35rem;
}

.f7d-cta-note {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.6rem;
}

/* ============================================
   HOVER FEEDBACK SYSTEM — article_detail.html
   Brand: black, white, #FF4500 / #FF6B00
   ============================================ */

.hover-feedback-highlight {
  outline: 2px solid rgba(255, 69, 0, 0.3);
  outline-offset: 3px;
  border-radius: 6px;
  transition: outline-color 0.2s ease;
}

.hover-feedback-toolbar {
  position: absolute;
  display: flex;
  gap: 2px;
  padding: 3px;
  background: #111;
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.hover-toolbar-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hover-feedback-toolbar button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #999;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  padding: 0;
}

.hover-feedback-toolbar button:hover {
  background: rgba(255, 69, 0, 0.15);
  color: #FF6B00;
}

.hover-ban-channel-btn {
  display: none;
}

.hover-ban-channel-btn:hover {
  background: rgba(220, 38, 38, 0.15) !important;
  color: #ef4444 !important;
}

.hover-feedback-popup {
  position: absolute;
  width: fit-content;
  min-width: 280px;
  max-width: 380px;
  padding: 12px 14px;
  background: #111;
  border: 1px solid rgba(255, 69, 0, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.hover-popup-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hover-feedback-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.hover-feedback-popup-header span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #FF6B00;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hover-feedback-popup-header button {
  background: none;
  border: none;
  color: #666;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}

.hover-feedback-popup-header button:hover {
  color: #fff;
}

.hover-feedback-popup input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: 8px;
  color: #e5e7eb;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.hover-feedback-popup input[type="text"]:focus {
  border-color: rgba(255, 69, 0, 0.5);
}

.hover-feedback-popup input[type="text"]::placeholder {
  color: #666;
}

.hover-feedback-popup-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.hover-feedback-submit-btn {
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #FF4500;
  color: #fff;
  transition: background 0.15s ease;
}

.hover-feedback-submit-btn:hover {
  background: #FF6B00;
}

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

.hover-edit-submit-btn {
  background: #111;
  border: 1px solid #FF4500;
  color: #FF4500;
}

.hover-edit-submit-btn:hover {
  background: #FF4500;
  color: #fff;
}

.hover-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 20px;
  background: #111;
  color: #fff;
  border: 1px solid rgba(255, 69, 0, 0.3);
  border-radius: 10px;
  font-size: 0.85rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hover-toast-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.hover-toast-error {
  border-color: rgba(220, 38, 38, 0.5);
  color: #fca5a5;
}

/* Full-screen loading while hover "Apply edit" waits on Socket.IO */
.article-ai-edit-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.article-ai-edit-overlay.article-ai-edit-overlay-visible {
  opacity: 1;
  pointer-events: auto;
}

.article-ai-edit-overlay-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 360px;
  width: fit-content;
  padding: 28px 32px;
  background: #111;
  color: #fff;
  border: 1px solid rgba(255, 69, 0, 0.35);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.article-ai-edit-overlay-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.article-ai-edit-overlay-sub {
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.65);
}

.article-ai-edit-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #ff4500;
  border-radius: 50%;
  animation: article-ai-edit-spin 0.75s linear infinite;
}

@keyframes article-ai-edit-spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   YouTube Prompt Pages  (.yt-prompt-*)
   Used by /lp/<video-id> lander pages
   ========================================================= */
.yt-prompt-page {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* --- Video section --- */
.yt-video-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px 40px;
  background: #0d0d0d;
}

.yt-video-meta {
  width: 100%;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.yt-video-meta h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.yt-video-meta p {
  font-size: 1rem;
  color: #aaa;
  margin: 0;
  line-height: 1.6;
}

.yt-video-wrapper {
  width: 100%;
  max-width: 880px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
}

.yt-video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* --- Prompt section --- */
.yt-prompt-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 20px;
  background: #f5f5f5;
}

.yt-prompt-inner {
  width: 100%;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.yt-prompt-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #FF5733;
}

.yt-prompt-inner h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  margin: 0;
  line-height: 1.3;
}

.yt-prompt-inner > p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
  max-width: 640px;
}

.yt-prompt-block-wrapper {
  position: relative;
}

.yt-prompt-block {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 32px;
  color: #d4d4d4;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 520px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}

.yt-prompt-copy-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #FF5733;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.3px;
}

.yt-prompt-copy-btn:hover {
  background: #e04e2d;
  transform: translateY(-1px);
}

.yt-prompt-copy-btn.copied {
  background: #22c55e;
}

/* --- CTA section --- */
.yt-cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  background: #fff;
}

.yt-cta-inner {
  width: 100%;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px;
  background: #0d0d0d;
  border-radius: 16px;
}

.yt-cta-inner h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.yt-cta-inner p {
  font-size: 0.97rem;
  color: #aaa;
  line-height: 1.7;
  margin: 0;
  max-width: 560px;
}

.yt-cta-inner a {
  display: inline-block;
  background: #FF5733;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  width: fit-content;
  transition: background 0.2s, transform 0.1s;
}

.yt-cta-inner a:hover {
  background: #e04e2d;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .yt-video-meta h1 {
    font-size: 1.3rem;
  }
  .yt-prompt-block {
    padding: 20px;
    font-size: 0.75rem;
  }
  .yt-cta-inner {
    padding: 28px 20px;
  }
  .yt-prompt-copy-btn {
    position: static;
    width: 100%;
    margin-bottom: 12px;
    text-align: center;
  }
  .yt-prompt-block-wrapper {
    display: flex;
    flex-direction: column;
  }
}

/* ───── 404 Page ───── */
.error-404-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 60px 20px;
}

.error-404-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 520px;
  width: fit-content;
  text-align: center;
}

.error-404-code {
  font-size: clamp(5rem, 12vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #FF4500, #FF6B00, #FF8A00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.error-404-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.error-404-desc {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 32px;
}

.error-404-path {
  color: #111;
  font-weight: 500;
  word-break: break-all;
}

.error-404-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.error-404-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.error-404-btn.primary {
  background: linear-gradient(135deg, #FF4500, #FF6B00);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 69, 0, 0.25);
}

.error-404-btn.primary:hover {
  background: linear-gradient(135deg, #e03e00, #e55f00);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 69, 0, 0.35);
}

.error-404-btn.secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.error-404-btn.secondary:hover {
  background: #e5e7eb;
  color: #111;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .error-404-actions {
    flex-direction: column;
    width: 100%;
  }
  .error-404-btn {
    width: 100%;
  }
}

/* ===== Email Gate Page ===== */
.email-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: #fafafa;
}

.email-gate-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 480px;
  padding: 48px 40px;
}

.email-gate-headline {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin: 0 0 12px;
  line-height: 1.3;
}

.email-gate-subtitle {
  font-size: 16px;
  color: #555;
  text-align: center;
  margin: 0 0 32px;
  line-height: 1.5;
}

.email-gate-form {
  display: flex;
  flex-direction: row;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.email-gate-input {
  flex: 1;
  padding: 14px 16px;
  border: none;
  outline: none;
  font-size: 15px;
  color: #333;
  background: transparent;
  min-width: 0;
}

.email-gate-input::placeholder {
  color: #999;
}

.email-gate-btn {
  padding: 14px 24px;
  background: #1a1a1a !important;
  color: #fff !important;
  border: none;
  border-radius: 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.email-gate-btn:hover {
  background: #333 !important;
}

.email-gate-btn:disabled {
  background: #666 !important;
  cursor: not-allowed;
}

.email-gate-error {
  color: #e53e3e;
  font-size: 14px;
  margin: 12px 0 0;
  min-height: 20px;
}

.email-gate-privacy {
  font-size: 13px;
  color: #999;
  margin: 16px 0 0;
}

@media (max-width: 480px) {
  .email-gate-card {
    padding: 32px 20px;
  }

  .email-gate-form {
    flex-direction: column;
    border: none;
    border-radius: 0;
  }

  .email-gate-input {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 12px;
  }

  .email-gate-btn {
    border-radius: 6px;
    text-align: center;
  }
}

/* ── Case Studies Section ── */
.case-studies-section {
    padding: 5rem 2rem;
    background: #fff;
    text-align: center;
}

.case-studies-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: #0f0f0f;
}

.case-studies-section .cs-subtitle {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 2.5rem;
}

.cs-tabs {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.cs-tab {
    padding: 0.55rem 1.25rem;
    border: 1.5px solid #ddd;
    border-radius: 999px;
    background: transparent;
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
}

.cs-tab:hover {
    border-color: #0f0f0f;
    color: #0f0f0f;
}

.cs-tab.active {
    background: #0f0f0f;
    border-color: #0f0f0f;
    color: #fff;
}

.cs-panels {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

.cs-panel {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cs-panel.active {
    display: flex;
}

.cs-panel-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
    max-width: 640px;
    line-height: 1.5;
    margin: 0;
}

.cs-panel-image {
    width: 100%;
    height: fit-content;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

@media (max-width: 600px) {
    .case-studies-section {
        padding: 3rem 1rem;
    }
    .cs-tab {
        font-size: 0.82rem;
        padding: 0.45rem 1rem;
    }
    .cs-panel-label {
        font-size: 0.95rem;
    }
}

/* ── Pricing split card (desktop two-panel layout) ── */
.pricing-card-split {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

.pcs-left {
    display: flex;
    flex-direction: column;
    padding: 2.25rem 2rem;
    min-width: 240px;
    width: fit-content;
    justify-content: flex-start;
    gap: 0;
}

.pcs-left .plan-col-title {
    font-size: 1rem;
    font-weight: 700;
    color: #555;
    margin: 0 0 0.5rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.pcs-left .plan-col-price {
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.pcs-left .price-main {
    font-size: 3rem;
    font-weight: 800;
    color: #0f0f0f;
    line-height: 1;
    letter-spacing: -0.03em;
}

.pcs-left .price-period {
    font-size: 1rem;
    color: #555;
    font-weight: 500;
    align-self: flex-end;
    padding-bottom: 0.3rem;
}

.pcs-left .price-then {
    font-size: 0.8rem;
    color: #555;
    flex-basis: 100%;
    margin-top: 0.25rem;
}

.pcs-left .price-trial-text {
    font-size: 0.82rem;
    color: #888;
    font-weight: 500;
    margin: 0.1rem 0 1.25rem;
    flex-basis: 100%;
}

.pcs-left .plan-col-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: auto;
}

.pcs-left .cta-button-new {
    width: 100%;
    text-align: center;
}

.pcs-left .plan-col-cancel {
    font-size: 0.78rem;
    color: #888;
    margin: 0.6rem 0 0;
    text-align: left;
}

.pcs-divider {
    width: 1px;
    background: #e8e8e8;
    flex-shrink: 0;
    margin: 1.5rem 0;
}

.pcs-right {
    display: flex;
    flex-direction: column;
    padding: 2.25rem 2rem;
    flex: 1;
}

.pcs-features-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f0f0f;
    margin: 0 0 1.25rem;
    letter-spacing: -0.01em;
}

.pcs-features-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 1.5rem;
}

.pcs-features-grid li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
}

.pcs-features-grid li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 800;
    color: #FF4500;
}

@media (max-width: 700px) {
    .pricing-card-split {
        flex-direction: column;
    }
    .pcs-divider {
        width: auto;
        height: 1px;
        margin: 0 1.5rem;
    }
    .pcs-left {
        padding: 1.75rem 1.5rem 1.5rem;
    }
    .pcs-right {
        padding: 1.5rem;
    }
    .pcs-features-grid {
        grid-template-columns: 1fr;
    }
    .pcs-left .plan-col-cta {
        align-items: center;
    }
    .pcs-left .plan-col-cancel {
        text-align: center;
    }
}
