/* CSS Variables */
:root {
  /* Brand */
  --primary-color:      #FF9C8F;
  --primary-dark:       #C46D60;
  --primary-light:      #FFEAE6;

  --secondary-color:    #6FC0B6;
  --secondary-dark:     #418C84;
  --secondary-light:    #E5F7F5;

  /* Greys & neutrals */
  --background-color:   #FCFAF8;
  --surface-color:      #FFFFFF;
  --border-color:       #ECE6DF;

  /* Text */
  --text-primary:       #3F362F;
  --text-secondary:     #6D6259;

  /* States */
  --error-color:        #D35D5D;
  --success-color:      #5DA97F;

  /* Effects */
  --shadow:     0 1px 3px rgba(63, 54, 47, .08);
  --shadow-lg:  0 10px 20px -5px rgba(63, 54, 47, .10);
  --border-radius: 12px;          /* a touch rounder = softer */
  --font-family: 'Inter', system-ui, sans-serif;

  /* Gradient Variables */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
  --gradient-warm: linear-gradient(135deg, var(--primary-light) 0%, rgba(212, 196, 176, 0.1) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 250, 248, 0.95) 100%);

  /* New Modern Gradients */
  --gradient-hero-bg: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 25%, #f3e8ff 100%);
  --gradient-pink-purple: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  --gradient-badge: linear-gradient(135deg, #fce7f3 0%, #f3e8ff 100%);
  --gradient-icon-pink: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  --gradient-icon-purple: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  --gradient-icon-emerald: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
  --gradient-icon-amber: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}


/* Loading and Typing Indicators */
.loading-message, .error-message {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-style: italic;
}

.error-message {
  color: var(--error-color);
}

.typing-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 0;
  justify-content: center;
}

.typing-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary-color);
  animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  30% {
    transform: translateY(-12px);
    opacity: 1;
  }
}

/* Typing indicator styling */
.message.typing .message-content {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background: var(--gradient-hero-bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* PWA Status Bar Styling */
@media (display-mode: standalone) {
  body {
    /* Ensure the background extends to the status bar area */
    background: var(--gradient-hero-bg);
    padding-top: env(safe-area-inset-top);
  }
  
  /* iOS PWA specific adjustments */
  @supports (-webkit-touch-callout: none) {
    body {
      background: #fdf2f8; /* Fallback solid color for iOS status bar */
    }
  }
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Ensure app content is properly positioned in PWA mode */
@media (display-mode: standalone) {
  .app {
    background: var(--gradient-hero-bg);
    min-height: calc(100vh - env(safe-area-inset-top));
    margin-top: env(safe-area-inset-top);
  }
}

/* Pages */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Landing Page */
.landing-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--gradient-hero-bg);
}

.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(236, 72, 153, 0.1);
  box-shadow: 0 1px 10px rgba(236, 72, 153, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

.nav-brand h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-pink-purple);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  filter: drop-shadow(0 2px 8px rgba(236, 72, 153, 0.2));
  object-fit: contain;
}

.nav-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-buttons .btn-secondary {
  color: #6b7280;
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-buttons .btn-secondary:hover {
  color: #ec4899;
  background: transparent;
  transform: none;
  box-shadow: none;
}

.nav-buttons .btn-primary {
  background: var(--gradient-pink-purple);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  box-shadow: 0 4px 14px 0 rgba(236, 72, 153, 0.4);
  transition: all 0.3s ease;
}

.nav-buttons .btn-primary:hover {
  background: linear-gradient(135deg, #db2777 0%, #7c3aed 100%);
  box-shadow: 0 6px 20px 0 rgba(236, 72, 153, 0.6);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .navigation {
    padding: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .nav-buttons {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
  }
  
  .nav-buttons a,
  .nav-buttons button {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
  
  .nav-brand h1 {
    font-size: 1.25rem;
  }
  
  .logo-icon {
    width: 28px;
    height: 28px;
  }
}

.hero-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 4rem;
  background: transparent;
  position: relative;
  overflow: hidden;
  text-align: center;
  min-height: 70vh;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 4rem 2rem 6rem;
    min-height: 80vh;
  }
}

.hero-content {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .hero-content {
    max-width: 56rem;
    padding: 0;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-badge);
  color: #be185d;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(236, 72, 153, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .hero-badge {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }
}

.hero-badge:hover {
  background: rgba(236, 72, 153, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.2);
}

.hero-content h1 {
  font-size: clamp(1.75rem, 8vw, 4rem);
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero-content h1 {
    margin-bottom: 1.5rem;
    line-height: 1.1;
  }
}

.hero-highlight {
  background: var(--gradient-pink-purple);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 3.75rem;
  }
  
  .hero-content {
    max-width: 56rem;
  }
}

.hero-content p {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 32rem;
    padding: 0;
  }
}

.hero-cta {
  background: var(--gradient-pink-purple);
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  width: auto;
  max-width: 280px;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-cta {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.4);
    max-width: none;
  }
}

.hero-cta:hover {
  background: linear-gradient(135deg, #db2777 0%, #7c3aed 100%);
  box-shadow: 0 15px 35px rgba(236, 72, 153, 0.6);
  transform: translateY(-2px);
}

.hero-cta svg {
  width: 1.25rem;
  height: 1.25rem;
}

.features-section {
  padding: 2rem 1rem;
  background: transparent;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .features-section {
    padding: 4rem 2rem;
  }
}

.features-section h2 {
  font-size: clamp(1.5rem, 6vw, 3rem);
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .features-section h2 {
    margin-bottom: 1rem;
    padding: 0;
  }
}

.features-section p {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 2rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .features-section p {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 32rem;
    padding: 0;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: none;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  max-width: 320px;
  width: 100%;
  box-sizing: border-box;
}

/* Mobile first approach for very small screens */
@media (max-width: 374px) {
  .features-section {
    padding: 1.5rem 0.5rem;
  }
  
  .features-grid {
    padding: 0 0.5rem;
    gap: 1rem;
  }
  
  .feature-card {
    padding: 1rem;
    max-width: none;
  }
}

@media (min-width: 768px) {
  .feature-card {
    padding: 1.5rem;
    max-width: none;
  }
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.feature-icon-container {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  background: var(--gradient-icon-pink);
  color: white;
  font-size: 1.25rem;
}

@media (min-width: 768px) {
  .feature-icon-container {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
  }
}

.feature-card:nth-child(1) .feature-icon-container {
  background: var(--gradient-icon-pink);
}

.feature-card:nth-child(2) .feature-icon-container {
  background: var(--gradient-icon-purple);
}

.feature-card:nth-child(3) .feature-icon-container {
  background: var(--gradient-icon-emerald);
}

.feature-card:nth-child(4) .feature-icon-container {
  background: var(--gradient-icon-amber);
}


.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .feature-card h3 {
    font-size: 1.25rem;
  }
}

.feature-card p {
  color: #6b7280;
  line-height: 1.6;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .feature-card p {
    font-size: 1rem;
  }
}

/* Social Proof Section */
.social-proof-section {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  padding: 2rem 1rem;
  text-align: center;
  margin: 1rem 0;
}

@media (min-width: 768px) {
  .social-proof-section {
    padding: 4rem 2rem;
    margin: 2rem 0;
  }
}

.social-proof-section h2 {
  font-size: clamp(1.5rem, 6vw, 3rem);
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .social-proof-section h2 {
    margin-bottom: 1rem;
    padding: 0;
  }
}

.social-proof-section > p {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .social-proof-section > p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 32rem;
    padding: 0;
  }
}

.rating-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .rating-display {
    margin-bottom: 3rem;
  }
}

.rating-stars {
  display: flex;
  gap: 0.25rem;
}

.rating-star {
  width: 1.25rem;
  height: 1.25rem;
  color: #fbbf24;
  fill: currentColor;
}

@media (min-width: 768px) {
  .rating-star {
    width: 1.5rem;
    height: 1.5rem;
  }
}

.rating-text {
  color: #6b7280;
  margin-left: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .rating-text {
    font-size: 1rem;
  }
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto 3rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: left;
  margin: 0 auto;
  max-width: 350px;
}

@media (min-width: 768px) {
  .testimonial-card {
    padding: 1.5rem;
    max-width: none;
  }
}

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

.testimonial-text {
  color: #6b7280;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .testimonial-text {
    font-size: 1rem;
  }
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.author-avatar.pink {
  background: var(--gradient-icon-pink);
}

.author-avatar.emerald {
  background: var(--gradient-icon-emerald);
}

.author-avatar.rose {
  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
}

.author-info h4 {
  font-weight: 600;
  color: #111827;
  margin: 0;
  font-size: 0.875rem;
}

.author-info p {
  color: #6b7280;
  margin: 0;
  font-size: 0.75rem;
}

.cta-section {
  padding: 2rem 1rem;
  background: transparent;
  color: #111827;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .cta-section {
    padding: 4rem 2rem;
  }
}

.cta-section h2 {
  font-size: clamp(1.5rem, 6vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .cta-section h2 {
    margin-bottom: 1rem;
    padding: 0;
  }
}

.cta-section p {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 32rem;
    padding: 0;
  }
}

.cta-button {
  background: var(--gradient-pink-purple);
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  margin-bottom: 1rem;
  max-width: 280px;
  justify-content: center;
}

@media (min-width: 768px) {
  .cta-button {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.4);
    max-width: none;
  }
}

.cta-button:hover {
  background: linear-gradient(135deg, #db2777 0%, #7c3aed 100%);
  box-shadow: 0 15px 35px rgba(236, 72, 153, 0.6);
  transform: translateY(-2px);
}

.cta-button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.cta-subtitle {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 0.75rem;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .cta-subtitle {
    font-size: 0.875rem;
    margin-top: 1rem;
    padding: 0;
  }
}

/* Pricing Section */
.pricing-section {
  padding: 2rem 1rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-section {
    padding: 4rem 2rem;
  }
}

.pricing-section h2 {
  font-size: clamp(1.5rem, 6vw, 3rem);
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .pricing-section h2 {
    margin-bottom: 1rem;
    padding: 0;
  }
}

.pricing-section > p {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 2rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .pricing-section > p {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 32rem;
    padding: 0;
  }
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 56rem;
  }
}

.pricing-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(236, 72, 153, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .pricing-card {
    padding: 2rem;
  }
}

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

.pricing-card.popular {
  border-color: #8b5cf6;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 14px 0 rgba(139, 92, 246, 0.4);
}

.pricing-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pricing-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
}

.pricing-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.pricing-amount .price {
  font-size: 2rem;
  font-weight: 700;
  color: #ec4899;
}

@media (min-width: 768px) {
  .pricing-amount .price {
    font-size: 2.5rem;
  }
}

.pricing-card.popular .pricing-amount .price {
  color: #8b5cf6;
}

.pricing-amount .price-old {
  font-size: 1.125rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.pricing-amount .period {
  color: #6b7280;
  font-size: 1rem;
}

.pricing-savings {
  font-size: 0.875rem;
  color: #8b5cf6;
  font-weight: 600;
  margin: 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  text-align: left;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .pricing-features li {
    padding: 0.75rem 0;
    font-size: 1rem;
  }
}

.pricing-features li::before {
  content: '✓';
  background: #10b981;
  color: white;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-button {
  width: 100%;
  background: var(--gradient-pink-purple);
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px 0 rgba(236, 72, 153, 0.4);
}

@media (min-width: 768px) {
  .pricing-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

.pricing-button:hover {
  background: linear-gradient(135deg, #db2777 0%, #7c3aed 100%);
  box-shadow: 0 6px 20px 0 rgba(236, 72, 153, 0.6);
  transform: translateY(-1px);
}

.pricing-button.popular {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  box-shadow: 0 4px 14px 0 rgba(139, 92, 246, 0.4);
}

.pricing-button.popular:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  box-shadow: 0 6px 20px 0 rgba(139, 92, 246, 0.6);
}

/* Footer */
.footer {
  background: #111827;
  color: white;
  padding: 2rem 1rem 0;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .footer {
    padding: 3rem 2rem 0;
    margin-top: 4rem;
  }
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
}

@media (min-width: 768px) {
  .footer-brand-name {
    font-size: 1.25rem;
  }
}

.footer-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.footer-link {
  color: #9ca3af;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .footer-link {
    font-size: 1rem;
  }
}

.footer-link:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding: 2rem 0;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  color: #9ca3af;
  margin: 0;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .footer-nav {
    justify-content: center;
  }
  
  .footer {
    padding: 2rem 1rem 0;
  }
}

/* Auth Page */
.auth-page {
  min-height: 100vh;
  background: var(--gradient-hero-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
}

.auth-container {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  margin-top: 4rem;
}

.auth-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: none;
  overflow: hidden;
}

.auth-header {
  text-align: center;
  padding: 2rem 2rem 1rem;
  border-bottom: none;
}

.auth-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: #6b7280;
  font-size: 1rem;
  margin: 0;
}

.auth-content {
  padding: 0 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.auth-back-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  z-index: 10;
}

.auth-back-link:hover {
  color: #ec4899;
}

.auth-back-link img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
}

.auth-back-link span {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-pink-purple);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
  .auth-back-link {
    top: 1.5rem;
    left: 1.5rem;
  }
}

@media (max-width: 768px) {
  .auth-container {
    margin-top: 2rem;
    padding: 0 1rem;
    position: relative;
  }
  
  .auth-back-link {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 0.5rem;
  }
  
  .auth-back-link img {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .auth-back-link span {
    font-size: 1.5rem;
  }
}

.back-btn:hover {
  color: var(--primary-color);
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}


.google-signin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3rem;
  padding: 0 1.5rem;
  background: transparent;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 0.75rem;
}

.google-signin-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.google-signin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.google-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.separator {
  position: relative;
  margin: 1.5rem 0;
}

.separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb;
}

.separator span {
  position: relative;
  background: white;
  padding: 0 1rem;
  color: #6b7280;
  font-size: 0.875rem;
  display: flex;
  justify-content: center;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.input-container {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  width: 1rem;
  height: 1rem;
  pointer-events: none;
}

.form-input {
  width: 100%;
  height: 3rem;
  padding: 0 0.75rem;
  padding-left: 2.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: #ec4899;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.form-input.has-icon-right {
  padding-right: 2.5rem;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: #6b7280;
}

.password-toggle svg {
  width: 1rem;
  height: 1rem;
}

.forgot-password {
  text-align: right;
  margin-top: 0.5rem;
}

.forgot-password button {
  background: none;
  border: none;
  color: #ec4899;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.forgot-password button:hover {
  color: #db2777;
}

.auth-submit-btn {
  width: 100%;
  height: 3rem;
  background: var(--gradient-pink-purple);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-submit-btn:hover {
  background: linear-gradient(135deg, #db2777 0%, #7c3aed 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.4);
}

.auth-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.loading-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.auth-toggle {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  margin-top: 1rem;
}

.auth-toggle p {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

.auth-toggle button {
  background: none;
  border: none;
  color: #ec4899;
  font-weight: 500;
  cursor: pointer;
  margin-left: 0.25rem;
  transition: color 0.3s ease;
}

.auth-toggle button:hover {
  color: #db2777;
}

.terms-text {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
  line-height: 1.5;
  margin-top: 1rem;
}

.terms-text a {
  color: #ec4899;
  text-decoration: none;
  transition: color 0.3s ease;
}

.terms-text a:hover {
  color: #db2777;
}

/* Profile Page */
.profile-container {
  flex: 1;
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem;
}

.profile-header {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-header h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.profile-header p {
  color: var(--text-secondary);
}

.profile-form {
  space-y: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.field-help {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  display: block;
}

.info-box {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #856404;
}

.info-box strong {
  color: #856404;
}

/* =========================
   Profile Page Styles
   ========================= */

.profile-page-background {
  min-height: 100vh;
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 25%, #f3e8ff 100%);
  padding: 0;
}

.profile-header-container {
  padding: 1rem;
  padding-bottom: 0;
}

.profile-header-card {
  background: var(--gradient-pink-purple);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.profile-header-content {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-btn-modern, .edit-btn-modern {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: rgba(255, 255, 255, 0.8);
}

.back-btn-modern:hover, .edit-btn-modern:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  transform: translateY(-1px);
}

.back-icon, .edit-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.profile-header-brand {
  flex: 1;
  display: flex;
  justify-content: center;
}

.profile-brand-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
}

.profile-brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.profile-content-container {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 2rem;
}

.profile-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  border: 0;
  overflow: hidden;
}

.profile-card-header {
  text-align: center;
  padding: 1.5rem 1rem 1rem;
}

.profile-avatar-container {
  margin-bottom: 1rem;
}

.profile-avatar {
  width: 5rem;
  height: 5rem;
  background: var(--gradient-pink-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.profile-user-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: white;
}

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

.profile-card-content {
  padding: 0 1.5rem 1.5rem;
}

.profile-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.profile-info-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: #fce7f3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-emoji {
  font-size: 1.125rem;
}

.profile-info-content {
  flex: 1;
}

.profile-info-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0 0 0.25rem 0;
}

.profile-info-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.profile-separator {
  height: 1px;
  background: #f3f4f6;
  margin: 0.5rem 0;
}

.profile-trimester-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.profile-trimester-badge.first {
  background: #dcfce7;
  color: #166534;
}

.profile-trimester-badge.second {
  background: #dbeafe;
  color: #1d4ed8;
}

.profile-trimester-badge.third {
  background: #f3e8ff;
  color: #7c3aed;
}

.profile-subscription-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-subscription-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.profile-subscription-badge.free {
  background: #f3f4f6;
  color: #374151;
}

.profile-subscription-badge.premium {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
}

.profile-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}

.profile-additional-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-additional-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-additional-label {
  color: var(--text-secondary);
}

.profile-additional-value {
  color: var(--text-primary);
  font-weight: 500;
}

.profile-additional-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.profile-additional-badge.yes {
  background: #dcfce7;
  color: #166534;
}

.profile-additional-badge.no {
  background: #f3f4f6;
  color: #6b7280;
}

.profile-plans-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-plan-btn {
  width: 100%;
  background: var(--gradient-pink-purple);
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
  position: relative;
  overflow: hidden;
}

.profile-plan-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(236, 72, 153, 0.4);
}

.profile-plan-monthly {
  height: 4rem;
}

.profile-plan-delivery {
  height: 5rem;
  padding-top: 1.25rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.profile-plan-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.profile-plan-info {
  text-align: left;
  flex: 1;
}

.profile-plan-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.profile-plan-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.profile-plan-savings {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.25rem;
}

.profile-plan-original {
  text-decoration: line-through;
}

.profile-plan-discounted {
  font-weight: 600;
}

.profile-plan-price {
  text-align: right;
}

.profile-plan-amount {
  font-weight: 700;
  font-size: 1.125rem;
}

.profile-plan-period {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.profile-plan-discount {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.profile-plan-recommended {
  position: relative;
}

.profile-plan-badge {
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.profile-install-btn {
  width: 100%;
  height: 3rem;
  border: 2px solid #dbeafe;
  background: transparent;
  color: #2563eb;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
}

.profile-install-btn:hover {
  background: #eff6ff;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.profile-install-icon {
  width: 1rem;
  height: 1rem;
}

.profile-install-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-install-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

.profile-plans-disclaimer {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  text-align: center;
}

.profile-update-btn {
  width: 100%;
  height: 3rem;
  border: 2px solid #068041;
  background: transparent;
  color: #059669;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.profile-update-btn:hover {
  background: #ecfdf5;
  color: #047857;
  transform: translateY(-1px);
  border-color: #a7f3d0;
}

.profile-update-btn svg {
  width: 1rem;
  height: 1rem;
}

.profile-update-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

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

.profile-signout-btn {
  width: 100%;
  height: 3rem;
  border: 2px solid #fecaca;
  background: transparent;
  color: #dc2626;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.profile-signout-btn:hover {
  background: #fef2f2;
  color: #b91c1c;
  transform: translateY(-1px);
}

/* Profile Page Mobile Responsiveness */
@media (max-width: 640px) {
  .profile-header-content {
    padding: 0.75rem;
  }
  
  .profile-content-container {
    padding: 0.75rem;
  }
  
  .profile-card-content {
    padding: 0 1rem 1rem;
  }
  
  .profile-info-item {
    padding: 0.5rem 0;
  }
  
  .profile-plan-btn {
    padding: 0.75rem;
  }
  
  .profile-plan-monthly {
    height: 3.5rem;
  }
  
  .profile-plan-delivery {
    height: 4.5rem;
    padding-top: 1rem;
  }
}

/* Modern Chat Page Styles - Mobile Optimized */
.chat-page-background {
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height - adjusts for mobile UI */
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 25%, #f3e8ff 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.chat-header-container {
  padding: 0.75rem;
  flex-shrink: 0;
}

.chat-header-card {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: white;
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  border: 0;
  overflow: hidden;
}

.chat-header-content {
  padding: 0.75rem;
}

.chat-header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.menu-btn-modern {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-btn-modern:hover {
  color: white;
  background: rgba(255, 255, 255, 0.3);
}

.menu-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.chat-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon-small {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
}

.logo-text-white {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.pregnancy-header-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.pregnancy-info-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.baby-icon-container {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 1.25rem;
}

.pregnancy-text-info h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: white;
}

.pregnancy-text-info p {
  margin: 0;
  color: #fce7f3;
  font-size: 0.75rem;
}

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

.due-date-info {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  color: #fce7f3;
  font-size: 0.875rem;
}

.calendar-icon {
  width: 1rem;
  height: 1rem;
}

.pregnancy-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.pregnancy-badge:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modern-chat-container {
  flex: 1;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.chat-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  border: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.chat-messages-modern {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.message {
  display: flex;
  margin-bottom: 1rem;
}

.message.user {
  justify-content: flex-end;
}

.message.assistant {
  justify-content: flex-start;
}

.message-content-modern {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.message.user .message-content-modern {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: white;
  border-bottom-right-radius: 0.25rem;
}

.message.assistant .message-content-modern {
  background: #f3f4f6;
  color: #1f2937;
  border-bottom-left-radius: 0.25rem;
}

.message-text {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.message-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
}

.message.user .message-time {
  color: #fce7f3;
}

.message.assistant .message-time {
  color: #6b7280;
}

.clock-icon {
  width: 0.75rem;
  height: 0.75rem;
}

.chat-input-modern {
  border-top: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.input-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.message-input-field {
  flex: 1;
  min-height: 3rem;
  max-height: 6rem;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: white;
  resize: none;
  transition: border-color 0.2s ease;
  font-family: inherit;
  line-height: 1.4;
}

.message-input-field:focus {
  outline: none;
  border-color: #ec4899;
}

.send-btn-modern {
  height: 3rem;
  width: 3rem;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  border: none;
  border-radius: 0.5rem;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.send-btn-modern:hover {
  background: linear-gradient(135deg, #be185d 0%, #7c3aed 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.send-btn-modern:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.send-icon-modern {
  width: 1rem;
  height: 1rem;
}

.disclaimer-text {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

/* Loading animation for chat */
.loading-dots {
  display: flex;
  gap: 0.25rem;
  padding: 0.75rem;
}

.loading-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: #9ca3af;
  border-radius: 50%;
  animation: bounce 1.4s ease-in-out infinite both;
}

.loading-dot:nth-child(1) {
  animation-delay: -0.32s;
}
.loading-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mobile Responsiveness - Critical fixes */
@media (max-width: 768px) {
  .chat-page-background {
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
  }

  .chat-header-container {
    padding: 0.5rem;
    flex-shrink: 0;
  }

  .chat-header-content {
    padding: 0.5rem;
  }

  .pregnancy-header-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .pregnancy-info-left {
    gap: 0.75rem;
  }

  .pregnancy-info-right {
    text-align: left;
    align-self: stretch;
  }

  .due-date-info {
    justify-content: flex-start;
  }

  .modern-chat-container {
    padding: 0 0.75rem 0.75rem;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  .chat-card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .chat-messages-modern {
    padding: 0.75rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .message-content-modern {
    max-width: 85%;
  }

  .chat-input-modern {
    padding: 0.75rem;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
  }

  .input-form {
    gap: 0.5rem;
  }

  .message-input-field {
    min-height: 2.5rem;
    max-height: 5rem;
    font-size: 0.9rem;
    padding: 0.625rem;
  }

  .send-btn-modern {
    height: 2.5rem;
    width: 2.5rem;
  }

  .disclaimer-text {
    font-size: 0.7rem;
    margin: 0.25rem 0 0 0;
    line-height: 1.3;
  }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
  .chat-page-background {
    height: 100vh;
    height: -webkit-fill-available;
  }

  .message-input-field {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Keyboard handling for mobile */
@media (max-width: 768px) {
  .chat-input-modern {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }

  /* When keyboard is open, adjust layout */
  .keyboard-open .chat-messages-modern {
    padding-bottom: 1rem;
  }

  .keyboard-open .chat-page-background {
    height: 100vh;
    height: 100svh; /* Small viewport height when keyboard is open */
  }
}

/* Prevent horizontal scroll */
* {
  box-sizing: border-box;
}

.chat-page-background,
.modern-chat-container,
.chat-card,
.chat-messages-modern {
  overflow-x: hidden;
}

/* Smooth scrolling */
.chat-messages-modern {
  scroll-behavior: smooth;
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
  .menu-btn-modern,
  .send-btn-modern {
    min-height: 44px;
    min-width: 44px;
  }
}

/* PWA Install Banner Styles */
.pwa-install-banner {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  margin-bottom: 1rem;
  border: none;
}

.pwa-banner-content {
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pwa-banner-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.pwa-banner-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-banner-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
}

.pwa-banner-text {
  flex: 1;
  min-width: 0;
}

.pwa-banner-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin: 0 0 0.125rem 0;
  line-height: 1.3;
}

.pwa-banner-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.3;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.pwa-install-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2rem;
}

.pwa-install-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.pwa-install-btn svg {
  width: 1rem;
  height: 1rem;
}

.pwa-close-btn {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.pwa-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.pwa-close-btn svg {
  width: 1rem;
  height: 1rem;
}

/* Mobile responsiveness for PWA banner */
@media (max-width: 768px) {
  .pwa-banner-content {
    padding: 0.625rem;
  }
  
  .pwa-banner-icon {
    width: 2rem;
    height: 2rem;
  }
  
  .pwa-banner-icon svg {
    width: 1rem;
    height: 1rem;
  }
  
  .pwa-banner-title {
    font-size: 0.8rem;
  }
  
  .pwa-banner-subtitle {
    font-size: 0.7rem;
  }
  
  .pwa-install-btn {
    padding: 0.375rem 0.625rem;
    font-size: 0.8rem;
    min-height: 1.75rem;
  }
  
  .pwa-close-btn {
    width: 1.75rem;
    height: 1.75rem;
  }
}

/* Paywall Button Styles */
.paywall-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.paywall-modal {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.paywall-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.paywall-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
}

.paywall-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.paywall-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.paywall-btn {
  width: 100%;
  background: var(--gradient-pink-purple);
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  position: relative;
  overflow: hidden;
}

.paywall-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(236, 72, 153, 0.4);
}

.monthly-btn {
  background: var(--gradient-pink-purple);
  height: 4rem;
  font-size: 1rem;
}

.monthly-btn:hover {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

.pdr-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  height: 4rem;
  padding: 1rem;
  position: relative;
  overflow: visible;
}

.pdr-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.pdr-btn::before {
  content: "💰 SAVE 20%";
  position: absolute;
  top: -10px;
  right: 8px;
  background: #fbbf24;
  color: #78350f;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  white-space: nowrap;
  z-index: 1;
}

.wait-btn {
  background: linear-gradient(135deg, var(--surface-color) 0%, #e2e8f0 100%);
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
  height: 3rem;
  font-size: 0.9rem;
}

.wait-btn:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
  border-color: var(--text-secondary);
}

/* Mobile responsiveness for paywall buttons */
@media (max-width: 768px) {
  .paywall-modal {
    padding: 1.5rem;
    margin: 1rem;
    border-radius: 1rem;
  }
  
  .paywall-buttons {
    gap: 0.5rem;
  }
  
  .paywall-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    min-height: 44px;
  }
  
  .pdr-btn::before {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
  }
}

/* PWA Install Modal Styles */
.pwa-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pwa-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.pwa-modal-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 28rem;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.pwa-modal-overlay.show .pwa-modal-card {
  transform: scale(1) translateY(0);
}

.pwa-modal-header {
  text-align: center;
  padding: 1.5rem 1.5rem 1rem;
  position: relative;
}

.pwa-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: none;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pwa-modal-close:hover {
  color: #6b7280;
  background: #f9fafb;
}

.pwa-modal-close svg {
  width: 1rem;
  height: 1rem;
}

.pwa-modal-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.pwa-modal-icon svg {
  width: 2rem;
  height: 2rem;
  color: white;
}

.pwa-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1rem;
}

.pwa-modal-badge {
  display: inline-block;
  background: #fdf2f8;
  color: #be185d;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #fce7f3;
}

.pwa-modal-content {
  padding: 0 1.5rem 1.5rem;
}

.pwa-modal-description {
  color: #6b7280;
  text-align: center;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.pwa-modal-steps {
  margin-bottom: 1.5rem;
}

.pwa-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pwa-step:last-child {
  margin-bottom: 0;
}

.pwa-step-number {
  width: 2rem;
  height: 2rem;
  background: #dbeafe;
  color: #2563eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.pwa-step-number.pwa-step-final {
  background: #dcfce7;
  color: #16a34a;
}

.pwa-step-content h4 {
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
}

.pwa-step-content p {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.5;
}

.pwa-step-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.pwa-step-detail svg {
  width: 1rem;
  height: 1rem;
  color: #3b82f6;
  flex-shrink: 0;
}

.pwa-step-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  object-fit: contain;
}

.pwa-step-detail span {
  color: #6b7280;
  font-size: 0.875rem;
}

.pwa-modal-benefits {
  background: #fdf2f8;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.pwa-modal-benefits h4 {
  color: #be185d;
  font-weight: 600;
  font-size: 0.875rem;
  margin: 0 0 0.5rem;
}

.pwa-modal-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pwa-modal-benefits li {
  color: #be185d;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.pwa-modal-benefits li:last-child {
  margin-bottom: 0;
}

.pwa-modal-buttons {
  display: flex;
  gap: 0.75rem;
}

.pwa-modal-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.pwa-modal-btn-outline {
  background: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.pwa-modal-btn-outline:hover {
  background: #f9fafb;
  color: #374151;
  border-color: #9ca3af;
}

.pwa-modal-btn-primary {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: white;
  border: 1px solid transparent;
}

.pwa-modal-btn-primary:hover {
  background: linear-gradient(135deg, #db2777 0%, #7c3aed 100%);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .pwa-modal-overlay {
    padding: 0.5rem;
  }
  
  .pwa-modal-card {
    max-height: 95vh;
  }
  
  .pwa-modal-header {
    padding: 1rem 1rem 0.75rem;
  }
  
  .pwa-modal-content {
    padding: 0 1rem 1rem;
  }
  
  .pwa-modal-icon {
    width: 3.5rem;
    height: 3.5rem;
  }
  
  .pwa-modal-icon svg {
    width: 1.75rem;
    height: 1.75rem;
  }
  
  .pwa-modal-title {
    font-size: 1.125rem;
  }
  
  .pwa-modal-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .pwa-modal-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    min-height: 44px;
  }
}


/* Edit Profile Page Styles */
#edit-profile-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.edit-profile-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 25%, #f3e8ff 100%);
  display: flex;
  flex-direction: column;
}

.edit-profile-header {
  padding: 1rem;
}

.edit-header-card {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: white;
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  border: none;
}

.edit-header-content {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-btn-modern {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn-modern:hover {
  color: white;
  background: rgba(255, 255, 255, 0.2);
}

.back-btn-modern svg {
  width: 1.25rem;
  height: 1.25rem;
}

.edit-brand-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.edit-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
}

.edit-brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.edit-spacer {
  width: 2.5rem;
  height: 2.5rem;
}

.edit-profile-content {
  flex: 1;
  padding: 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edit-profile-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  border: none;
  overflow: hidden;
}

.edit-profile-card-header {
  text-align: center;
  padding: 1.5rem 1.5rem 1rem;
}

.edit-profile-icon {
  width: 5rem;
  height: 5rem;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.edit-profile-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: white;
}

.edit-profile-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem;
}

.edit-profile-subtitle {
  color: #6b7280;
  margin: 0;
  font-size: 1rem;
}

.edit-profile-card-content {
  padding: 0 1.5rem 1.5rem;
}

/* Onboarding Page Styles */
.onboarding-background {
    min-height: 100vh;
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 25%, #f3e8ff 100%);
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    display: flex;
    flex-direction: column;
}

.onboarding-header {
    padding: 2rem 1.5rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.onboarding-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.onboarding-container {
    flex: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
    width: 100%;
}

.onboarding-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.onboarding-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.onboarding-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

#onboarding-btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}

@media (max-width: 480px) {
    .onboarding-container {
        padding: 0 1rem 1rem;
    }
    
    .onboarding-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .onboarding-title {
        font-size: 1.5rem;
    }
}

.onboarding-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

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

.onboarding-card-content {
    padding: 0;
}

.onboarding-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-icon {
    width: 1rem;
    height: 1rem;
    color: var(--primary-color);
}

.form-icon-small {
    width: 1rem;
    height: 1rem;
    border-radius: 2px;
}

.onboarding-input {
    height: 3rem;
    padding: 0 1rem;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.9);
}

.onboarding-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.1);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.radio-option input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
}

.radio-label {
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
}

.select-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.select-option {
    padding: 0.75rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.select-option:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 1);
}

.select-option.selected {
    border-color: var(--primary-color);
    background: rgba(219, 39, 119, 0.05);
}

.select-option input[type="radio"] {
    margin: 0;
}

.pregnancy-week-info {
    padding: 0.75rem;
    background: rgba(219, 39, 119, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

#pregnancy-week-text {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
}

.onboarding-submit-btn {
    width: 100%;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.onboarding-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #be185d 0%, #6d28d9 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(219, 39, 119, 0.25);
}

.onboarding-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.onboarding-submit-btn.loading {
    pointer-events: none;
}

.onboarding-submit-btn .btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.onboarding-info-box {
    background: rgba(219, 39, 119, 0.05);
    border: 1px solid rgba(219, 39, 119, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.onboarding-info-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.onboarding-info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.onboarding-info-box li {
    font-size: 0.875rem;
    color: #7c2d92;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.onboarding-info-box li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    flex-shrink: 0;
}

.privacy-note {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    line-height: 1.5;
    margin-top: 1.5rem;
    padding: 0 0.5rem;
}

.edit-profile-form-new {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.edit-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.edit-form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.edit-form-label svg {
  width: 1rem;
  height: 1rem;
  color: #ec4899;
}

.edit-form-input {
  height: 3rem;
  padding: 0 1rem;
  border: 2px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  background: white;
}

.edit-form-input:focus {
  outline: none;
  border-color: #ec4899;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.edit-form-input.error {
  border-color: #ef4444;
}

.edit-form-error {
  font-size: 0.875rem;
  color: #ef4444;
  margin-top: 0.25rem;
}

.pregnancy-info-preview {
  background: #fdf2f8;
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid #fce7f3;
}

.pregnancy-info-preview h4 {
  font-weight: 600;
  color: #be185d;
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
}

.pregnancy-info-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pregnancy-info-content p {
  font-size: 0.875rem;
  color: #be185d;
  margin: 0;
  line-height: 1.4;
}

.edit-form-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
}

.edit-btn-cancel,
.edit-btn-save {
  flex: 1;
  height: 3rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.edit-btn-cancel {
  background: transparent;
  color: #6b7280;
  border: 2px solid #d1d5db;
}

.edit-btn-cancel:hover {
  background: #f9fafb;
  color: #374151;
  border-color: #9ca3af;
}

.edit-btn-cancel svg {
  width: 1rem;
  height: 1rem;
}

.edit-btn-save {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: white;
  border: 2px solid transparent;
}

.edit-btn-save:hover {
  background: linear-gradient(135deg, #db2777 0%, #7c3aed 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.edit-btn-save:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.edit-btn-save svg {
  width: 1rem;
  height: 1rem;
}

.edit-info-note {
  background: #eff6ff;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-top: 1.5rem;
  border: 1px solid #dbeafe;
}

.edit-info-note h4 {
  font-weight: 600;
  color: #1e40af;
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
}

.edit-info-note p {
  font-size: 0.875rem;
  color: #1e40af;
  margin: 0;
  line-height: 1.5;
}

/* Mobile responsiveness for edit profile page */
@media (max-width: 640px) {
  .edit-profile-header {
    padding: 0.5rem;
  }
  
  .edit-header-content {
    padding: 0.75rem;
  }
  
  .edit-brand-text {
    font-size: 1.125rem;
  }
  
  .edit-profile-content {
    padding: 0 0.5rem 0.5rem;
  }
  
  .edit-profile-card-header {
    padding: 1rem 1rem 0.75rem;
  }
  
  .edit-profile-card-content {
    padding: 0 1rem 1rem;
  }
  
  .edit-profile-icon {
    width: 3.5rem;
    height: 3.5rem;
  }
  
  .edit-profile-icon svg {
    width: 1.75rem;
    height: 1.75rem;
  }
  
  .edit-profile-title {
    font-size: 1.5rem;
  }
  
  .edit-form-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .edit-btn-cancel,
  .edit-btn-save {
    width: 100%;
    min-height: 44px;
  }
}