/* Marketing screen styles for logged out users */

.marketing-screen {
  padding: 40px 20px;
  background: linear-gradient(135deg, #2c3e2d 0%, #3e5132 50%, #1a2e1a 100%);
  color: #f5f5f5;
  text-align: center;
  min-height: 50vh;
  position: relative;
}

.marketing-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.03"><path d="M0,20 Q250,80 500,20 T1000,20 L1000,100 L0,100 Z"/></svg>') repeat-x;
  pointer-events: none;
}

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

.marketing-hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #f5f5f5;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.marketing-hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.95;
  line-height: 1.6;
  color: #e8e8e8;
}

.marketing-cta {
  margin-bottom: 40px;
}

.cta-button {
  background: linear-gradient(45deg, #6d4c41, #8d6e63);
  color: #f5f5f5;
  border: 2px solid #a1887f;
  border-radius: 8px;
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(45deg, #5d4037, #6d4c41);
  border-color: #8d6e63;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  color: #ffffff;
}

/* FORCE 3x2 LAYOUT - OVERRIDE ALL CACHING */
.marketing-screen .features-grid,
.features-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  grid-template-rows: repeat(2, 1fr) !important;
  gap: 20px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  /* Fixed 3x2 layout forced */
}

.feature-card {
  background: rgba(245, 245, 245, 0.95);
  border-radius: 12px;
  padding: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(161, 136, 127, 0.3);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  color: #2c3e50;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(45deg, #6d4c41, #8d6e63);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(245, 245, 245, 1);
  border-color: #6d4c41;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

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

.feature-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 15px;
  background: linear-gradient(45deg, #6d4c41, #8d6e63);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 1px solid rgba(161, 136, 127, 0.4);
  color: white;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
  color: #2c3e50;
}

.feature-card p {
  opacity: 0.9;
  line-height: 1.5;
  color: #495057;
  font-size: 0.95rem;
}

.marketing-bottom {
  background: rgba(45, 62, 45, 0.8);
  margin-top: 60px;
  padding: 40px;
  border-radius: 12px;
  border: 1px solid rgba(161, 136, 127, 0.3);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.marketing-bottom h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.marketing-bottom p {
  margin-bottom: 25px;
  opacity: 0.9;
}

/* Responsive design */
/* Pricing Section */
.pricing-section {
  margin: 80px 0;
  padding: 60px 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(161, 136, 127, 0.3);
}

.pricing-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 0 20px;
}

.pricing-header h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #2c3e2d;
  text-shadow: none;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.pricing-header p {
  font-size: 1.3rem;
  font-weight: 500;
  opacity: 1;
  max-width: 650px;
  margin: 0 auto;
  color: #444444;
  text-shadow: none;
  line-height: 1.4;
  text-align: center !important;
  display: block;
}

/* Force center alignment for pricing subtitle */
.pricing-section .pricing-header p,
.marketing-pricing .pricing-header p {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  display: block !important;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.pricing-card {
  background: rgba(245, 245, 245, 0.95);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  color: #2c3e2d;
  border: 1px solid rgba(161, 136, 127, 0.3);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  border-color: rgba(161, 136, 127, 0.5);
}

.pricing-card.featured {
  transform: scale(1.05);
  background: linear-gradient(135deg, #6d4c41 0%, #5d4037 100%);
  color: #f5f5f5;
  border-color: #8d6e63;
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

/* Ensure all text in featured card has proper contrast */
.pricing-card.featured .plan-header h3,
.pricing-card.featured .price,
.pricing-card.featured .currency,
.pricing-card.featured .amount,
.pricing-card.featured .period,
.pricing-card.featured .features-list li {
  color: #ffffff !important;
}

.pricing-card.featured .features-list li {
  color: #f0f0f0 !important;
}

.pricing-category-badge {
  background: #ff8c00;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
  display: inline-block;
  text-align: center;
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #8d6e63;
  color: #f5f5f5;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  border: 1px solid #a1887f;
}

.plan-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.price {
  margin-bottom: 30px;
}

.currency {
  font-size: 1.5rem;
  vertical-align: top;
  margin-top: 10px;
}

.amount {
  font-size: 3rem;
  font-weight: 700;
}

.period {
  font-size: 1rem;
  opacity: 0.7;
}

/* Simplified pricing card styles for centralized config */
.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e2d;
  margin-bottom: 15px;
}

.plan-price {
  font-size: 3rem;
  font-weight: 700;
  color: #2c3e2d;
  margin-bottom: 5px;
}

.plan-period {
  font-size: 1rem;
  opacity: 0.7;
  color: #666;
  margin-bottom: 25px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 25px 0;
  text-align: left;
}

.plan-features li {
  padding: 8px 0;
  font-size: 14px;
  color: #444;
  position: relative;
  padding-left: 20px;
}

.plan-features li::before {
  content: "✓";
  color: #6d4c41;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Featured card text colors */
.pricing-card.featured .plan-name {
  color: #f5f5f5;
}

.pricing-card.featured .plan-price {
  color: #f5f5f5;
}

.pricing-card.featured .plan-period {
  color: rgba(245, 245, 245, 0.8);
}

.pricing-card.featured .plan-features li {
  color: #f0f0f0;
}

.pricing-card.featured .plan-features li::before {
  color: #a8d5ba;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  text-align: left;
}

.features-list li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.features-list i {
  color: #6d4c41;
  margin-right: 10px;
  font-size: 12px;
}

.pricing-card.featured .features-list i {
  color: #a8d5ba !important;
}

/* Trial badge styling */
.trial-badge {
  background: linear-gradient(45deg, #28a745, #20c997);
  color: white;
  padding: 6px 14px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
  border: none;
}

.pricing-card.featured .trial-badge {
  background: linear-gradient(45deg, #ffc107, #fd7e14);
  color: #2c3e2d;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
  font-weight: 800;
}

/* Usage limit styling */
.usage-limit {
  background: rgba(109, 76, 65, 0.1);
  border: 1px solid rgba(109, 76, 65, 0.2);
  border-radius: 8px;
  padding: 12px;
  margin: 15px 0;
  font-size: 13px;
  font-weight: 600;
  color: #6d4c41;
  text-align: center;
}

.pricing-card.featured .usage-limit {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #f0f0f0;
}

.usage-highlight {
  color: #28a745;
  font-weight: 700;
  font-size: 16px;
}

.pricing-card.featured .usage-highlight {
  color: #ffc107;
  font-weight: 800;
}

/* Trial description styling */
.trial-description {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.2);
  border-radius: 6px;
  padding: 10px;
  margin: 10px 0;
  font-size: 12px;
  color: #155724;
  text-align: center;
  line-height: 1.3;
}

.pricing-card.featured .trial-description {
  background: rgba(255, 193, 7, 0.2);
  border-color: rgba(255, 193, 7, 0.3);
  color: #f0f0f0;
}

/* Cost protection badge */
.protection-badge {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.2);
  color: #721c24;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11px;
  margin-top: 10px;
  font-weight: 600;
}

.pricing-card.featured .protection-badge {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f0f0f0;
}

.plan-button {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.basic-button, .elite-button {
  background: transparent;
  color: #6d4c41;
  border: 2px solid #6d4c41;
}

.basic-button:hover, .elite-button:hover {
  background: #6d4c41;
  color: #f5f5f5;
}

.pro-button {
  background: #f5f5f5;
  color: #6d4c41;
  border: 2px solid #f5f5f5;
}

.pro-button:hover {
  background: rgba(245, 245, 245, 0.9);
  border-color: #a1887f;
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .marketing-hero h1 {
    font-size: 2.5rem;
  }
  
  .marketing-hero p {
    font-size: 1.1rem;
  }
  
  .marketing-screen {
    padding: 30px 15px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .feature-card {
    padding: 20px;
  }
  
  .feature-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    margin-bottom: 12px;
  }
  
  .feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .feature-card p {
    font-size: 0.9rem;
  }
  
  /* Enhanced pricing grid mobile layout */
  .pricing-grid,
  .marketing-pricing-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
    gap: 25px;
  }
  
  /* Enhanced pricing card mobile styling */
  .pricing-card {
    padding: 35px 25px;
    margin-bottom: 20px;
  }
  
  .pricing-card.featured {
    transform: none;
    margin: 15px 0;
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }
  
  /* Better mobile typography for pricing */
  .plan-name,
  .plan-header h3 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 15px;
  }
  
  .plan-price,
  .amount {
    font-size: 2.8rem;
    line-height: 1.1;
  }
  
  .currency {
    font-size: 1.3rem;
    margin-top: 8px;
  }
  
  .plan-period,
  .period {
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.4;
  }
  
  /* Enhanced features list mobile */
  .plan-features,
  .features-list {
    margin: 25px 0;
    text-align: left;
  }
  
  .plan-features li,
  .features-list li {
    font-size: 1rem;
    line-height: 1.6;
    padding: 12px 0;
    padding-left: 28px;
  }
  
  .plan-features li::before,
  .features-list li::before {
    font-size: 1.1rem;
    left: 0;
  }
  
  /* CTA Button Mobile Enhancement */
  .cta-button {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    margin: 15px 0;
    min-height: 44px;
    box-sizing: border-box;
  }
  
  .pricing-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.1;
  }
  
  .pricing-header p {
    font-size: 1.1rem;
    padding: 0 10px;
  }
  
  .pricing-section {
    margin: 40px 0;
    padding: 40px 0;
  }
}

/* FINAL OVERRIDE - FORCE 3x2 LAYOUT */
body .marketing-screen .features-grid,
body main .features-grid,
html body .features-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  grid-template-rows: repeat(2, 1fr) !important;
  gap: 20px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  width: 100% !important;
}

@media screen and (min-width: 768px) {
  body .marketing-screen .features-grid,
  body main .features-grid,
  html body .features-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: repeat(2, 1fr) !important;
  }
}

/* Mobile responsive - stack vertically on small screens */
@media screen and (max-width: 767px) {
  body .marketing-screen .features-grid,
  body main .features-grid,
  html body .features-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: repeat(6, auto) !important;
  }
}

/* Stripe Pricing Table Container */
.stripe-pricing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Style the Stripe pricing table to match our theme */
stripe-pricing-table {
  --pricing-table-background-color: transparent;
  --pricing-table-text-color: #f5f5f5;
  --pricing-table-border-color: rgba(161, 136, 127, 0.3);
}

/* Marketing Pricing Cards for Non-Logged-In Users */
.marketing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.marketing-pricing-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 15px;
  padding: 45px 35px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  color: #2c3e2d;
  border: 2px solid rgba(161, 136, 127, 0.3);
  overflow: hidden;
}

/* Ensure all text in regular pricing cards has good contrast */
.marketing-pricing-card:not(.featured) * {
  color: #2c3e2d !important;
}

/* Exception: Keep pricing badge text white for good contrast on dark background */
.marketing-pricing-card:not(.featured) .pricing-badge {
  color: white !important;
}

/* Exception: Keep button text with proper colors for contrast */
.marketing-pricing-card:not(.featured) button,
.marketing-pricing-card:not(.featured) .plan-button,
.marketing-pricing-card:not(.featured) .pro-button {
  color: white !important;
}

.marketing-pricing-card:not(.featured) .feature-item {
  color: #444444 !important;
}

.marketing-pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6d4c41, #8d6e63, #a1887f);
}

.marketing-pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(161, 136, 127, 0.6);
}

.marketing-pricing-card.featured {
  transform: scale(1.05);
  background: linear-gradient(135deg, #6d4c41 0%, #5d4037 100%);
  color: #f5f5f5;
  border-color: #8d6e63;
}

.marketing-pricing-card.featured::before {
  background: linear-gradient(90deg, #ffab40, #ff8f00, #ff6f00);
}

.marketing-pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
  display: inline-block;
  background: #6d4c41;
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 12px rgba(109, 76, 65, 0.3);
}

.pricing-badge.popular {
  background: linear-gradient(135deg, #ff8f00, #ff6f00);
  box-shadow: 0 4px 15px rgba(255, 143, 0, 0.4);
}

.pricing-plan-name {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #1a2e1a;
  line-height: 1.2;
}

.pricing-subtitle {
  font-size: 1rem;
  opacity: 1;
  margin-bottom: 25px;
  font-weight: 500;
  color: #444444;
  line-height: 1.4;
}

.pricing-amount {
  margin-bottom: 35px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.pricing-amount .currency {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2c3e2d;
  opacity: 1;
}

.pricing-amount .price {
  font-size: 4rem;
  font-weight: 900;
  line-height: 0.9;
  color: #1a2e1a;
}

.pricing-amount .period {
  font-size: 1.1rem;
  opacity: 1;
  font-weight: 600;
  color: #444444;
}

.pricing-amount .price-label {
  font-size: 2.2rem;
  font-weight: 800;
  color: inherit;
  text-align: center;
  line-height: 1.1;
}

.pricing-amount .price-subtext {
  font-size: 1.1rem;
  opacity: 0.8;
  font-weight: 500;
  color: inherit;
}

.pricing-features {
  margin-bottom: 30px;
  text-align: left;
  color: #2c3e2d;
}

.marketing-pricing-card.featured .pricing-features {
  color: #f5f5f5;
  margin-bottom: 30px;
  text-align: left;
  padding: 0 5px;
}

.marketing-pricing-card.featured .pricing-features .feature-item {
  color: #f5f5f5 !important;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px 18px;
  margin-bottom: 12px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1rem;
}

.marketing-pricing-card.featured .pricing-features .feature-item::before {
  display: none;
}

.marketing-pricing-card.featured .pricing-features .feature-item {
  color: #f5f5f5 !important;
}

.marketing-pricing-card.featured .pricing-plan-name {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: #ffffff;
  text-align: center;
  line-height: 1.2;
}

.marketing-pricing-card.featured .pricing-subtitle {
  color: #f0f0f0;
  font-size: 1.1rem;
  margin-bottom: 25px;
  text-align: center;
  line-height: 1.4;
}

.feature-item {
  padding: 12px 0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  margin-bottom: 8px;
}

/* Override for featured card feature items */
.marketing-pricing-card.featured .feature-item {
  padding: 15px 18px;
  margin-bottom: 15px;
  font-size: 1rem;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.4;
  word-wrap: break-word;
  hyphens: auto;
}

.marketing-pricing-card.featured .pricing-features .feature-item {
  color: #f0f0f0;
  font-size: 1.1rem;
  text-align: center;
  white-space: normal;
  padding: 12px 10px;
  line-height: 1.5;
  word-wrap: break-word;
  overflow: visible;
  text-overflow: unset;
}

.feature-item::before {
  display: none;
}

.credit-packages {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 35px;
  backdrop-filter: blur(10px);
  color: #2c3e2d;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.packages-header {
  font-weight: 800;
  margin-bottom: 20px;
  color: #2c3e2d;
  text-align: center;
  font-size: 1.1rem;
}

.package-option {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 10px;
  padding: 16px 22px;
  margin-bottom: 10px;
  background: rgba(44, 62, 45, 0.05);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  color: #2c3e2d;
  min-height: 50px;
}

.package-option:hover {
  background: rgba(44, 62, 45, 0.08);
  transform: translateX(8px);
  border-color: rgba(44, 62, 45, 0.1);
}

.package-option:last-child {
  margin-bottom: 0;
}

.package-option .package-size {
  font-weight: 800;
  font-size: 1.05rem;
  color: #2c3e2d;
  text-align: center;
  margin: 0 !important;
  padding: 0 !important;
}

.package-option .package-price {
  font-weight: 900;
  font-size: 1.25rem;
  color: #2c3e2d;
  text-align: center;
  min-width: 80px;
  margin: 0 !important;
  padding: 0 !important;
}

.package-discount {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 18px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.basic-package .package-discount {
  background: rgba(108, 117, 125, 0.3);
  color: inherit;
}

.popular-package {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.1);
}

.popular-package .package-discount {
  background: #28a745;
  color: white;
}

.value-package {
  border-color: #fd7e14;
  background: rgba(253, 126, 20, 0.1);
}

.value-package .package-discount {
  background: #fd7e14;
  color: white;
}

.platform-package {
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
}

.platform-package .package-discount {
  background: #dc3545;
  color: white;
}

.marketing-cta-btn {
  width: 100%;
  padding: 18px 35px;
  font-size: 1.15rem;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.primary-cta {
  background: linear-gradient(135deg, #6d4c41, #5d4037);
  color: white;
}

.primary-cta:hover {
  background: linear-gradient(135deg, #5d4037, #4e342e);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(109, 76, 65, 0.4);
}

.secondary-cta {
  background: linear-gradient(135deg, #ff8f00, #ff6f00);
  color: white;
}

.secondary-cta:hover {
  background: linear-gradient(135deg, #ff6f00, #e65100);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 143, 0, 0.5);
}

.pricing-benefits {
  margin-top: 60px;
  text-align: center;
}

.pricing-benefits h3 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #f5f5f5;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(245, 245, 245, 0.1);
  padding: 20px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.benefit-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.benefit-text {
  color: #f5f5f5;
  font-weight: 500;
}

@media screen and (max-width: 768px) {
  .stripe-pricing-container {
    padding: 0 10px;
  }
  
  .marketing-pricing-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  
  .marketing-pricing-card.featured {
    transform: none;
  }
  
  .marketing-pricing-card.featured:hover {
    transform: translateY(-10px);
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .benefit-item {
    text-align: center;
    flex-direction: column;
    gap: 10px;
  }
  
  /* Enhanced credit packages mobile styling */
  .credit-packages {
    padding: 20px 15px;
    margin-bottom: 25px;
  }
  
  .packages-header {
    font-size: 1rem;
    margin-bottom: 15px;
  }
  
  .package-option {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    text-align: center;
    gap: 8px;
    padding: 15px;
    min-height: auto;
  }
  
  .package-option:hover {
    transform: translateY(-2px);
    transform: none; /* Remove slide effect on mobile */
  }
  
  .package-option .package-size {
    font-size: 1.1rem;
    margin-bottom: 5px;
  }
  
  .package-option .package-price {
    font-size: 1.3rem;
    margin-bottom: 5px;
  }
  
  .package-discount {
    margin: 0 auto;
    align-self: center;
  }
  
  /* Improve pricing category badge */
  .pricing-category-badge {
    font-size: 0.9rem;
    padding: 8px 16px;
    margin-bottom: 15px;
  }
  
  /* Better feature items spacing */
  .pricing-features .feature-item,
  .marketing-pricing-card .feature-item {
    padding: 15px 5px;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 12px;
    white-space: normal;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
  }
  
  /* Enhanced featured card feature items for mobile */
  .marketing-pricing-card.featured .feature-item,
  .marketing-pricing-card.featured .pricing-features .feature-item {
    padding: 18px 10px;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #f5f5f5;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

@media screen and (max-width: 768px) {
  /* Pricing Grid Mobile Layout */
  .pricing-grid,
  .marketing-pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
    padding: 0 15px;
  }
  
  /* Pricing Card Mobile Enhancements */
  .pricing-card,
  .marketing-pricing-card {
    padding: 30px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
  }
  
  /* Featured card mobile adjustments */
  .pricing-card.featured,
  .marketing-pricing-card.featured {
    transform: none;
    margin: 10px 0;
  }
  
  .pricing-card.featured:hover,
  .marketing-pricing-card.featured:hover {
    transform: translateY(-5px);
  }
  
  /* Plan Header Mobile */
  .plan-header h3,
  .plan-name {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 15px;
  }
  
  /* Price Display Mobile */
  .plan-price,
  .amount {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 8px;
  }
  
  .currency {
    font-size: 1.2rem;
    margin-top: 5px;
  }
  
  .plan-period,
  .period {
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.4;
  }
  
  /* Features List Mobile */
  .plan-features,
  .features-list {
    margin: 20px 0;
    text-align: left;
  }
  
  .plan-features li,
  .features-list li {
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 10px 0;
    padding-left: 25px;
  }
  
  .plan-features li::before,
  .features-list li::before {
    font-size: 1rem;
    left: 0;
  }
  
  /* Category Badge Mobile */
  .pricing-category-badge {
    font-size: 0.8rem;
    padding: 8px 14px;
    margin-bottom: 15px;
  }
  
  /* Popular Badge Mobile */
  .popular-badge {
    font-size: 0.75rem;
    padding: 6px 16px;
    top: -12px;
  }
}

@media screen and (max-width: 480px) {
  /* Small Mobile Optimizations */
  .pricing-card,
  .marketing-pricing-card {
    padding: 25px 15px;
    margin-bottom: 15px;
  }
  
  /* Extra small mobile plan headers */
  .plan-header h3,
  .plan-name {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  
  /* Extra small mobile pricing */
  .plan-price,
  .amount {
    font-size: 2.2rem;
  }
  
  .currency {
    font-size: 1.1rem;
  }
  
  .plan-period,
  .period {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }
  
  /* Features mobile compact */
  .plan-features li,
  .features-list li {
    font-size: 0.9rem;
    padding: 8px 0;
    padding-left: 22px;
  }
  
  /* CTA Button Small Mobile */
  .cta-button {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.95rem;
    margin: 12px 0;
    min-height: 44px;
    letter-spacing: 0.5px;
  }
  
  /* Credit packages mobile */
  .credit-packages {
    padding: 15px 10px;
    margin-bottom: 20px;
  }
  
  .packages-header {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }
  
  .package-option {
    padding: 12px;
    margin-bottom: 8px;
  }
  
  .package-option .package-size {
    font-size: 1rem;
  }
  
  .package-option .package-price {
    font-size: 1.2rem;
  }
  
  .package-discount {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
  
  .pricing-category-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
  
  .pricing-features .feature-item,
  .marketing-pricing-card .feature-item {
    font-size: 1rem;
    padding: 18px 8px;
    line-height: 1.7;
    margin-bottom: 15px;
    word-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    text-align: center;
  }
  
  /* Enhanced small mobile for featured cards */
  .marketing-pricing-card.featured .feature-item,
  .marketing-pricing-card.featured .pricing-features .feature-item {
    padding: 22px 12px;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 18px;
    color: #ffffff;
    font-weight: 500;
  }
  
  /* Text spacing improvements for small screens */
  .marketing-pricing-card h3,
  .pricing-card h3 {
    word-wrap: break-word;
    hyphens: auto;
  }
  
  /* Ensure proper text readability */
  .pricing-card *,
  .marketing-pricing-card * {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}
