@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700&display=swap");

:root {
  --fresh-green: #10b981;
  --organic-orange: #f97316;
  --cream: #f8fafc;
  --slate: #64748b;
  --dark: #0f172a;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 6px 18px rgba(15, 23, 42, 0.06);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  margin: 0 0 16px;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #10b981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: var(--slate);
  margin: 0 0 36px;
  font-size: 1.05rem;
}

/* Center subscription plans preview section title and subtitle */
.section:nth-child(5) .section-title,
.section:nth-child(5) .section-subtitle {
  text-align: center;
}

/* Center home page 2 hero section */
.hero-mini .hero-content>div:first-child {
  text-align: center;
}

.hero-mini .hero-content .btn {
  margin: 0 auto;
  display: inline-flex;
}

/* General centering for all page headings and buttons */
.section-title {
  text-align: center;
  display: block;
}

.section-subtitle {
  text-align: center;
}

.card {
  text-align: center;
}

.card .btn {
  margin: 0 auto;
  display: inline-flex;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-soft);
}

/* Ensure icon-row buttons use standard size */
.icon-row .btn {
  padding: 12px 20px !important;
  font-size: 1rem !important;
  min-height: auto !important;
}

/* Fix meal plans page alignment */
.plan-card {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.plan-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.plan-card div {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan-card h3 {
  text-align: center;
  margin-bottom: 12px;
}

.plan-card .btn {
  margin: 16px auto 0;
  display: inline-flex;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
  text-align: center;
}

/* Pricing page specific centering */
.pricing-page .section-title {
  text-align: center;
}

.pricing-page .section-subtitle {
  text-align: center;
}

.pricing-page .card {
  text-align: center;
}

.pricing-page .card h3 {
  text-align: center;
}

.pricing-page .card .btn {
  margin: 0 auto;
  display: inline-flex;
}

/* Fix tablet pricing card layout */
@media (max-width: 1024px) and (min-width: 769px) {
  .pricing-page .grid-3 {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 32px auto 0;
  }

  .pricing-page .card {
    margin-bottom: 20px;
  }
}

/* Center testimonial cards */
.testimonial-card {
  text-align: center;
}

.testimonial-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.testimonial-header img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card p {
  text-align: center;
  font-style: italic;
}

/* Contact page button alignment fixes */
.contact-page .form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-page .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* Fix form buttons to be on same line */
@media (min-width: 769px) {
  .contact-page .grid.grid-2 {
    align-items: flex-end;
  }

  .contact-page .form-grid .btn {
    width: auto;
    min-width: 180px;
  }
}

.contact-page .chat-widget .btn {
  width: auto;
  margin: 16px auto 0;
  display: inline-flex;
}

/* Contact cards alignment */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.contact-card {
  text-align: center;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* Map container styling */
.map-container {
  margin-top: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 250px;
  border: none;
}

/* Dashboard specific styles */
.dashboard .dashboard-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(100, 116, 139, 0.1);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
}

/* Add padding to dashboard content to account for fixed topbar */
.dashboard .dashboard-content {
  padding-top: 80px;
}

/* Hide hamburger menu on web view */
@media (min-width: 769px) {
  .dashboard .hamburger {
    display: none;
  }
}

/* Center all dashboard headings */
.dashboard .section-title {
  text-align: center;
}

.dashboard h2,
.dashboard h3 {
  text-align: center;
}

.dashboard .card h3 {
  text-align: center;
}

/* Auth page improvements */
.auth-page .auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-page .auth-logo {
  margin: 0 auto;
  display: block;
}

.auth-page .section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.2rem); /* Reduced font size as requested */
}

/* Form options styling */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--dark);
}

.forgot-password {
  color: var(--fresh-green);
  text-decoration: none;
  font-size: 0.9rem;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* Social login styling */
.social-login {
  margin-top: 32px;
  text-align: center;
}

.social-login p {
  margin-bottom: 16px;
  position: relative;
  color: var(--slate) !important;
  font-size: 0.9rem !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.social-login p::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(100, 116, 139, 0.2);
  z-index: 1;
}

.social-login p::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 20px;
  background: var(--white);
  z-index: 2;
}

.social-icons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(100, 116, 139, 0.3);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--dark);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  min-width: 140px;
  justify-content: center;
}

.social-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* Facebook specific styling */
.social-icon-btn.facebook {
  background: var(--fresh-green);
  color: white;
  border-color: var(--fresh-green);
}

.social-icon-btn.facebook svg {
  fill: white;
}

.social-icon-btn.facebook:hover {
  background: #059669;
  border-color: #059669;
}

/* Google specific styling */
.social-icon-btn.google {
  background: var(--fresh-green);
  color: white;
  border-color: var(--fresh-green);
}

.social-icon-btn.google svg {
  fill: white;
}

.social-icon-btn.google:hover {
  background: #059669;
  border-color: #059669;
}

/* Checkbox group styling */
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkbox-group label:hover {
  background: rgba(16, 185, 129, 0.05);
  border-color: var(--fresh-green);
}

/* Card image styling */
.card-image {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-image img:hover {
  transform: scale(1.05);
}

/* Mobile responsive for card images */
@media (max-width: 768px) {
  .card-image {
    height: 280px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
  }

  .card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    max-width: 100% !important;
    min-height: 280px !important;
  }

  /* Improve card design for mobile */
  .card {
    padding: 1rem;
    margin-bottom: 1rem;
    display: block;
  }

  .card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .card p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0;
  }

  .coverage-areas {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    margin-top: 0.75rem;
  }

  .coverage-item {
    padding: 0.25rem;
    text-align: center;
  }

  /* Reduce grid gaps on mobile */
  .grid.grid-2 {
    gap: 1rem;
  }

  .section {
    padding: 1.5rem 1rem;
  }

  /* Remove unnecessary margins */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Coverage areas styling */
.coverage-areas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.coverage-item {
  padding: 0.75rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.coverage-item:hover {
  background: var(--light-green);
  transform: translateY(-2px);
}

.coverage-item strong {
  display: block;
  color: var(--fresh-green);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.coverage-item p {
  margin: 0;
  font-size: 0.8rem;
}

/* Privacy links styling */
.privacy-links {
  margin-top: 24px;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(100, 116, 139, 0.1);
}

/* About page hero image fix */
.about-hero .image-card {
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.about-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* About page team and partner sections */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
}

.team-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  /* Crop from top as requested */
  flex-shrink: 0;
}

.partner-grid {
  margin-top: 32px;
}

.partner-card {
  padding: 0 !important;
  overflow: hidden;
  text-align: left !important;
}

.partner-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.partner-card div {
  padding: 16px;
}

.partner-card h4 {
  margin-bottom: 4px;
}

.privacy-link {
  color: var(--fresh-green);
  text-decoration: none;
}

.privacy-link:hover {
  text-decoration: underline;
}

/* New Dashboard Design */
.dashboard-new {
  background: #f8fafc;
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dashboard-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Styles */
.sidebar-new {
  width: 280px;
  background: white;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 1000;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.05);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-brand {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-brand .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fresh-green);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 700;
}

.sidebar-brand .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--fresh-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-brand .logo-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

.sidebar-nav {
  flex: 1;
  padding: 1.5rem 0;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 2rem;
}

.nav-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate);
  padding: 0 1.5rem;
  margin-bottom: 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 1.5rem;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.nav-item:hover {
  background: rgba(16, 185, 129, 0.08);
  color: var(--fresh-green);
}

/* Theme toggle button styles */
.theme-toggle {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  color: inherit; /* Fix dark mode visibility */
}

.theme-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

body.dark-theme .theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Blog page specific top space */
body.blog-page .site-header {
  margin-bottom: 24px;
}

/* Fix blog card layout and add requested spacing */
body.blog-page .card.card-image {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 24px;
  height: 100%;
  min-height: 360px; 
  background-size: cover;
}

body.blog-page .card.card-image .badge {
  margin-top: 16px;
  margin-bottom: 16px;
}

body.blog-page .card.card-image h3 {
  margin-bottom: 8px;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

body.blog-page .card.card-image .pill-list {
  margin-bottom: 24px;
}

body.blog-page .card.card-image .btn {
  margin-top: auto;
}

body.dark-theme.blog-page .card.card-image .btn {
  background: white;
  color: var(--dark);
  border-color: white;
}

.nav-item.active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--fresh-green);
}



.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--fresh-green);
}

.nav-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: var(--dark);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.logout-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 280px;
  display: flex;
  flex-direction: column;
}

.main-header {
  background: white;
  padding: 2rem 2rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: white;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: #f9fafb;
  transform: translateY(-1px);
}

.mobile-menu-toggle svg {
  width: 20px;
  height: 20px;
  fill: #6b7280;
}

.header-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.page-subtitle {
  color: #6b7280;
  font-size: 1rem;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 1rem;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  background: #f9fafb;
  transform: translateY(-1px);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: #6b7280;
}

.content-area {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
}

.stat-label {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

/* Sections */

.activity-section {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: #f9fafb;
  transition: all 0.2s ease;
}

.activity-item:hover {
  background: #f3f4f6;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #10b981;
}

.activity-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.activity-content {
  flex: 1;
}

.activity-title {
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
}

.activity-time {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

.actions-section {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: white;
  color: #374151;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  border-color: #10b981;
  color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.action-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .sidebar-new {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar-new.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .actions-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .actions-grid {
    grid-template-columns: 1fr;
  }

  .main-header {
    padding: 1.5rem;
  }

  .content-area {
    padding: 1.5rem;
  }

  .page-title {
    font-size: 1.5rem;
  }
}

/* Sidebar theme toggle and logout styling */
.sidebar-theme-toggle {
  width: 100%;
  justify-content: flex-start;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-theme-toggle:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--fresh-green);
  color: var(--fresh-green);
}

.sidebar-logout {
  display: block;
  padding: 12px 16px;
  color: var(--dark);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.sidebar-logout:hover {
  background: rgba(249, 115, 22, 0.1);
  color: var(--organic-orange);
}

/* Remove sidebar scrolling */
.sidebar {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 32px 20px;
  background: var(--white);
  border-right: 1px solid rgba(100, 116, 139, 0.1);
}

/* Ensure sidebar content fits without scrolling */
.sidebar {
  max-height: 100vh;
  padding-bottom: 20px;
  box-sizing: border-box;
}

/* Hide scrollbar for cleaner look */
.sidebar::-webkit-scrollbar {
  width: 0px;
}

.sidebar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Fix mobile and tablet sidebar issues */
@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    padding: 32px 20px 20px;
    box-shadow: var(--shadow);
    background: var(--white);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 999;
  }

  .sidebar-overlay.show {
    opacity: 1;
    pointer-events: auto;
  }

  /* Ensure logout button is visible in mobile */
  .sidebar-section {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px dashed rgba(100, 116, 139, 0.2);
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .sidebar-logout {
    margin-top: 8px;
    border: 1px solid rgba(100, 116, 139, 0.25);
    display: block !important;
    padding: 12px 16px !important;
  }

  /* Fix hamburger positioning - increase z-index */
  .dashboard-topbar {
    position: relative;
    z-index: 1003;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--white);
    border-bottom: 1px solid rgba(100, 116, 139, 0.1);
    box-shadow: var(--shadow-soft);
  }

  .hamburger {
    position: relative;
    z-index: 1004;
    order: 1;
    background: var(--fresh-green);
    color: var(--white);
    border: none;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 18px;
  }

  .hamburger:hover {
    background: var(--dark-green);
  }

  .dashboard-topbar span {
    order: 2;
    flex: 1;
    text-align: center;
    font-weight: 600;
  }

  /* Ensure sidebar logo is visible above hamburger */
  .sidebar-header {
    position: relative;
    z-index: 1005;
    margin-bottom: 18px;
  }

  .sidebar-header .logo {
    position: relative;
    z-index: 1006;
  }

  /* Make sidebar always accessible in mobile */
  .dashboard-layout {
    position: relative;
  }

  /* Ensure content doesn't overlap */
  .dashboard-content {
    margin-left: 0;
  }
}

/* Logo with food icon styling */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--fresh-green);
  text-decoration: none;
}

/* Override for navigation logo */
.nav .logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--fresh-green);
  margin-right: auto;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--fresh-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

/* Footer logo specific styling */
.footer-logo {
  margin-bottom: 16px;
}

.footer-logo .logo-icon {
  background: var(--fresh-green);
}

/* Auth page logo styling */
.auth-logo {
  margin-bottom: 32px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.auth-logo .logo-icon {
  background: var(--fresh-green);
  margin-right: 8px;
  flex-shrink: 0;
}

.auth-logo .logo-icon svg {
  width: 20px;
  height: 20px;
}

/* Override for auth page logo specifically */
.auth-page .logo {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
}

.auth-page .logo-icon {
  flex-shrink: 0 !important;
  width: 32px !important;
  height: 32px !important;
}

/* Dashboard logo styling */
.sidebar-header .logo {
  font-size: 1.1rem;
  justify-content: center;
}

.sidebar-header .logo-icon {
  background: var(--fresh-green);
}

/* Center delivery timeline section */
.timeline {
  display: flex !important;
  flex-direction: column;
  gap: 20px;
  max-width: fit-content;
  margin: 0 auto;
  text-align: left;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--fresh-green);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.btn-primary {
  background: var(--fresh-green);
  color: var(--white);
}

.btn-secondary {
  background: var(--organic-orange);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(100, 116, 139, 0.3);
  color: var(--dark);
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
  color: var(--fresh-green);
}

.badge.orange {
  background: rgba(249, 115, 22, 0.15);
  color: var(--organic-orange);
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

/* Center-align subscription plans preview cards */
.section:nth-child(5) .card {
  text-align: center;
}

.section:nth-child(5) .card h3 {
  text-align: center;
}

.section:nth-child(5) .card .btn {
  margin: 0 auto;
  display: inline-flex;
}

.card-image {
  position: relative;
  color: var(--white);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.card-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.7));
}

.card-image>* {
  position: relative;
  z-index: 1;
}

.card-image .badge,
.card-image .pill,
.card-image .tag {
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
}

.card-image .btn {
  background: var(--white);
  color: var(--dark);
  box-shadow: none;
}

.card-image .muted {
  color: rgba(226, 232, 240, 0.9);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 251, 235, 0.92);
  backdrop-filter: blur(12px);
  z-index: 10;
  border-bottom: 1px solid rgba(100, 116, 139, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  position: relative;
}

.logo {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--fresh-green);
  margin-right: auto;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  color: var(--slate);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--dark);
}

.nav-links a.active {
  color: var(--fresh-green);
  font-weight: 700;
  background: rgba(16, 185, 129, 0.1);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.2);
}

.nav-links .btn {
  padding: 6px 12px;
  font-size: 0.85rem;
  height: 34px;
  box-shadow: none;
}

.nav-links .theme-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem;
  box-shadow: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(100, 116, 139, 0.3);
  background: var(--white);
  color: var(--dark);
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  line-height: 1;
}

.nav-links .theme-toggle {
  width: 34px;
  height: 34px;
  font-size: 1rem;
  padding: 0;
}

.about-hero-image {
  height: 100%;
  object-fit: cover;
}

.about-hero {
  align-items: stretch;
}

.about-hero .card,
.about-hero .image-card {
  height: 100%;
}

.about-hero .card {
  padding: 20px;
}

.about-hero .image-card {
  max-height: 260px;
}

.partner-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  height: 100%;
}

.partner-card img {
  border-radius: var(--radius-md);
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.partner-grid {
  align-items: stretch;
}

.team-grid {
  display: grid;
  gap: 16px;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(100, 116, 139, 0.1);
}

.team-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.team-card div {
  text-align: center;
}

.team-card .muted {
  margin: 0;
}

.testimonial-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-header img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.plan-card {
  display: grid;
  gap: 12px;
  overflow: hidden;
}

.plan-card img {
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.plan-features {
  display: grid;
  gap: 6px;
}

.auth-header {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.auth-logo {
  text-align: center;
}

.site-menu-toggle {
  display: none;
  border: 1px solid rgba(100, 116, 139, 0.3);
  background: var(--white);
  color: var(--dark);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  margin-left: auto;
}

.hero {
  padding: 80px 0 40px;
}

.hero-content {
  display: grid;
  gap: 32px;
  align-items: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-content>div:first-child {
  text-align: center;
}

.hero h1 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  margin: 0 0 16px;
}

.hero p {
  color: var(--slate);
  margin-bottom: 24px;
}

.hero-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  grid-auto-rows: 1fr;
}

.hero-images img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.icon-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero .icon-row {
  justify-content: center;
}

/* Center-align icon-row inside cards (Chef testimonials, Customer success stories) */
.card .icon-row {
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  text-align: center;
}

.card .icon-row img {
  display: block;
  margin: 0 auto 8px;
}

.card .icon-row > div {
  text-align: center;
}

.icon-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.steps {
  counter-reset: step;
}

.step-card {
  position: relative;
  padding-left: 52px;
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fresh-green);
  color: var(--white);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.footer {
  background: var(--white);
  padding: 48px 0;
  border-top: 1px solid rgba(100, 116, 139, 0.1);
}

.footer-columns {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer h4 {
  margin: 0 0 12px;
  font-family: "Poppins", sans-serif;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 8px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(100, 116, 139, 0.25);
  color: var(--slate);
  font-weight: 600;
  font-size: 0.8rem;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
  background: var(--fresh-green);
  color: var(--white);
  border-color: var(--fresh-green);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.social-icon:hover svg {
  fill: var(--white);
}

/* Per-platform social icon hover colors */
.social-icon[aria-label="Facebook"]:hover {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 6px 16px rgba(24, 119, 242, 0.35);
}

.social-icon[aria-label="X"]:hover {
  background: #000;
  border-color: #000;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.social-icon[aria-label="YouTube"]:hover {
  background: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 6px 16px rgba(255, 0, 0, 0.35);
}

.social-icon[aria-label="Instagram"]:hover {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: #dc2743;
  box-shadow: 0 6px 16px rgba(220, 39, 67, 0.35);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(100, 116, 139, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.muted {
  color: var(--slate);
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  padding: 12px 16px;
  border: 1px solid rgba(100, 116, 139, 0.1);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--fresh-green);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "–";
}

.contact-cards {
  display: grid;
  gap: 16px;
}

.contact-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid rgba(100, 116, 139, 0.1);
  box-shadow: var(--shadow-soft);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--fresh-green);
  font-size: 0.8rem;
  font-weight: 600;
}

.pill.orange {
  background: rgba(249, 115, 22, 0.15);
  color: var(--organic-orange);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(100, 116, 139, 0.25);
  background: var(--white);
  font-size: 0.95rem;
}

.input:focus {
  outline: 2px solid rgba(16, 185, 129, 0.25);
  border-color: var(--fresh-green);
}

.toggle-group {
  display: inline-flex;
  background: #f8fafc;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(100, 116, 139, 0.25);
  box-shadow: var(--shadow-soft);
}

.toggle-group button {
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
}

.toggle-group .active {
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow-soft);
}


.dashboard {
  min-height: 100vh;
  background: #f8fafc;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar-header {
  margin-bottom: 18px;
}

.sidebar a {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--slate);
  text-decoration: none;
  font-weight: 500;
}

.sidebar a.active,
.sidebar a:hover {
  background: rgba(16, 185, 129, 0.12);
  color: var(--fresh-green);
}

.sidebar-section {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(100, 116, 139, 0.2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-logout {
  margin-top: 16px;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.hamburger {
  border: 1px solid rgba(100, 116, 139, 0.25);
  background: var(--white);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.sidebar-overlay {
  display: none;
}

.dashboard-content {
  padding: 32px;
}

.calendar {
  display: grid;
  gap: 12px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.calendar-slot {
  min-height: 90px;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(100, 116, 139, 0.3);
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.draggable-meal {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  font-weight: 600;
  cursor: grab;
}

.calculator {
  display: grid;
  gap: 16px;
}

.progress {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.progress-step {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.2);
}

.progress-step.active {
  background: var(--fresh-green);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 16px;
}

.auth-card {
  width: min(420px, 100%);
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.chat-widget {
  border-radius: var(--radius-lg);
  padding: 16px;
  background: rgba(16, 185, 129, 0.08);
}


body.dark-theme {
  background: #0f172a;
  color: #e2e8f0;
}

body.dark-theme .site-header {
  background: rgba(15, 23, 42, 0.92);
  border-bottom-color: rgba(148, 163, 184, 0.2);
}

body.dark-theme .card,
body.dark-theme .sidebar,
body.dark-theme .footer,
body.dark-theme .auth-card {
  background: #1e293b;
  color: #e2e8f0;
}

body.dark-theme .card h3,
body.dark-theme .card h4,
body.dark-theme .card p,
body.dark-theme .card strong,
body.dark-theme .card li {
  color: #e2e8f0;
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6 {
  color: #f1f5f9;
}

body.dark-theme p,
body.dark-theme li,
body.dark-theme span,
body.dark-theme label {
  color: #cbd5e1;
}

body.dark-theme .section-title {
  background: linear-gradient(135deg, #34d399, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-theme .section-subtitle {
  color: #b0bec5;
}

body.dark-theme .muted {
  color: #c8d1db;
}

body.dark-theme .btn-outline,
body.dark-theme .theme-toggle,
body.dark-theme .hamburger {
  border-color: rgba(148, 163, 184, 0.4);
  color: #e2e8f0;
  background: transparent;
}

body.dark-theme .site-menu-toggle {
  border-color: rgba(148, 163, 184, 0.4);
  color: #e2e8f0;
  background: transparent;
}

body.dark-theme .nav-links a {
  color: #cbd5e1;
}

body.dark-theme .nav-links a:hover {
  color: #f8fafc;
}

body.dark-theme .badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

body.dark-theme .badge.orange {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
}

body.dark-theme .pill {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

body.dark-theme .pill.orange {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
}

body.dark-theme .tag {
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

body.dark-theme .toggle-group {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.35);
}

body.dark-theme .toggle-group button {
  color: #cbd5e1;
}

body.dark-theme .toggle-group .active {
  background: #1f2937;
  color: #f1f5f9;
}

body.dark-theme .calendar-slot {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.3);
}

body.dark-theme .responsive-table th,
body.dark-theme .responsive-table td {
  border-bottom-color: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

body.dark-theme .footer h4,
body.dark-theme .footer p,
body.dark-theme .footer a {
  color: #cbd5e1;
}

body.dark-theme .footer a:hover {
  color: #34d399;
}

body.dark-theme .social-icon {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}

body.dark-theme .social-icon svg {
  fill: #94a3b8;
}

body.dark-theme .input {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
}

body.dark-theme .faq details {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.2);
}

body.dark-theme .faq summary {
  color: #f1f5f9;
}

body.dark-theme .activity-item {
  background: #0f172a;
}

body.dark-theme .activity-title {
  color: #f1f5f9;
}

body.dark-theme .coverage-item {
  background: #1e293b;
}

/* Enhanced dark mode text visibility */
body.dark-theme .btn {
  color: #f1f5f9;
}

body.dark-theme .btn-primary {
  color: #ffffff;
}

body.dark-theme .btn-secondary {
  color: #ffffff;
}

body.dark-theme a {
  color: #cbd5e1;
}

body.dark-theme .card .muted,
body.dark-theme .card .muted a {
  color: #c8d1db;
}

body.dark-theme .footer .muted {
  color: #b0bec5;
}

body.dark-theme .team-card strong {
  color: #f1f5f9;
}

body.dark-theme .testimonial-card p {
  color: #c8d1db;
}

body.dark-theme .plan-features span {
  color: #cbd5e1;
}

body.dark-theme .contact-card p {
  color: #c8d1db;
}

body.dark-theme .step-card p {
  color: #c8d1db;
}

body.dark-theme .partner-card p {
  color: #c8d1db;
}

body.dark-theme .hero p {
  color: #c8d1db;
}

body.dark-theme .checkbox-label {
  color: #cbd5e1;
}

body.dark-theme .forgot-password {
  color: #34d399;
}

body.dark-theme .social-login p {
  color: #94a3b8 !important;
}

body.dark-theme .privacy-link {
  color: #34d399;
}

.tag {
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.1);
  color: var(--slate);
  font-weight: 600;
}

.image-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.image-card img {
  border-radius: 0;
}

.responsive-table {
  width: 100%;
  border-collapse: collapse;
}

.responsive-table th,
.responsive-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid rgba(100, 116, 139, 0.1);
}

.hero-mini {
  padding: 60px 0;
}

@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 20;
    overflow-y: auto;
    box-shadow: var(--shadow);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 15;
  }

  .sidebar-overlay.show {
    opacity: 1;
    pointer-events: auto;
  }

  /* Fix hamburger menu alignment */
  .site-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    position: relative;
    z-index: 1005;
    background: var(--fresh-green);
    color: var(--white);
    border: none;
  }

  .site-menu-toggle:hover {
    background: var(--dark-green);
  }

  /* Ensure proper header stacking */
  .site-header {
    position: relative;
    z-index: 1002;
  }

  .site-header .nav {
    position: relative;
    z-index: 1003;
  }

  .site-header .logo {
    position: relative;
    z-index: 1004;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    z-index: 5;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a,
  .nav-links .btn {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links .theme-toggle {
    align-self: flex-start;
  }

  body.dark-theme .nav-links {
    background: #111827;
  }
}

@media (max-width: 768px) {

  .grid-3,
  .grid-2,
  .grid-4,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: row;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* RTL Support */
html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .nav-links {
  justify-content: flex-start;
}

html[dir="rtl"] .logo {
  margin-right: 0;
  margin-left: auto;
  flex-direction: row-reverse;
}

html[dir="rtl"] .logo-icon {
  margin-right: 0;
  margin-left: 12px;
}

html[dir="rtl"] .social-icon {
  margin-right: 0;
  margin-left: 12px;
}

html[dir="rtl"] .site-menu-toggle {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .hero-content {
  text-align: right;
}

html[dir="rtl"] .v2-hero h1 mark::after {
  left: auto;
  right: 0;
}

html[dir="rtl"] .detail-item {
  flex-direction: row-reverse;
  text-align: right;
}

html[dir="rtl"] .v2-label {
  margin-left: 0;
  margin-right: 12px;
}

html[dir="rtl"] .btn-v2 svg {
  transform: scaleX(-1);
}

html[dir="rtl"] .grid-2,
html[dir="rtl"] .grid-3,
html[dir="rtl"] .grid-4 {
  direction: rtl;
}

html[dir="rtl"] .footer-columns {
  text-align: right;
}

html[dir="rtl"] [data-rtl-toggle].active {
  background: var(--fresh-green);
  color: var(--white);
}

/* Fix dark mode text visibility */
body.dark-theme .muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.dark-theme .card,
body.dark-theme .team-card,
body.dark-theme .partner-card,
body.dark-theme .contact-card {
  background: #1e293b;
  color: var(--white);
}

body.dark-theme .section-title,
body.dark-theme .section-subtitle,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme strong {
  color: var(--white);
}

/* Dashboard specific dark mode */
body.dashboard-new.dark-theme {
  background: var(--dark);
  color: var(--white);
}

body.dashboard-new.dark-theme .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dashboard-new.dark-theme .theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

body.dashboard-new.dark-theme .sidebar-new {
  background: #1e293b;
  border-right: 1px solid rgba(148, 163, 184, 0.1);
}

body.dashboard-new.dark-theme .main-header {
  background: var(--dark);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

body.dashboard-new.dark-theme .nav-item {
  color: #94a3b8;
}

body.dashboard-new.dark-theme .nav-item:hover,
body.dashboard-new.dark-theme .nav-item.active {
  background: rgba(52, 211, 153, 0.1);
  color: var(--fresh-green);
}

body.dashboard-new.dark-theme .sidebar-brand,
body.dashboard-new.dark-theme .sidebar-footer {
  border-color: rgba(148, 163, 184, 0.1);
}

body.dashboard-new.dark-theme .nav-title {
  color: #64748b;
}

body.dashboard-new.dark-theme .logout-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

body.dashboard-new.dark-theme .logout-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

body.dashboard-new.dark-theme .stat-card {
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

body.dashboard-new.dark-theme .stat-value {
  color: var(--white);
}

body.dashboard-new.dark-theme .page-title {
  color: var(--white);
}

body.dashboard-new.dark-theme .page-subtitle {
  color: #cbd5e1;
}

body.dashboard-new.dark-theme .action-btn {
  background: #1e293b;
  color: var(--white);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

body.dashboard-new.dark-theme .action-btn:hover {
  background: #334155;
}

body.dashboard-new.dark-theme .activity-item {
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

body.dashboard-new.dark-theme .theme-toggle-btn,
body.dashboard-new.dark-theme .mobile-menu-toggle {
  color: var(--white);
}

body.dashboard-new.dark-theme .theme-toggle-btn:hover,
body.dashboard-new.dark-theme .mobile-menu-toggle:hover {
  background: #1e293b;
}

/* FAQ Accordion Styles */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

body.dark-theme .faq-item {
  background: #1e293b;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 24px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.2s ease;
}

body.dark-theme .faq-question {
  color: var(--white);
}

.faq-question:hover {
  color: var(--fresh-green);
}

.faq-question svg {
  transition: transform 0.3s ease;
  color: var(--fresh-green);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 500px; 
  padding: 0 24px 24px;
}