.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.container-1 {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items:flex-start;
    padding: 20px;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    /* FIX 2: Ensure container doesn't overflow */
    width: 100%;
    overflow-x: hidden;
    justify-content: center;
}

.main-content {
    flex: 0 0 60%;
    border: none;
    border-radius: 15px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    min-height: 500px;
    position: relative;
    overflow: hidden;
    /* FIX 3: Ensure content fits within container */
    width: 100%;
}

.scroll-animate {
    transition: transform 0.5s ease-in-out 0.3s;
}

.main-content:hover .scroll-animate {
    transform: translateY(-20px);
}

/* FIX 4: Constrain the pseudo-element within bounds */
.main-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

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

.main-content h1 {
    font-size: 3rem;
    color: #1e3a8a;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.main-content p {
    font-size: 1.3rem;
    color: #1e40af;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* From Uiverse.io by vinodjangid07 */ 
.input-wrapper {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
}
.input {
  width: 222px;
  height: 40px;
  outline: none;
  padding-left: 15px;
  font-size: 0.7em;
  opacity: 0.8;
  background-color: #fafaf7;
  border-radius: 6px;
  border: 1px solid #d0d7e1;
}
.Update-btn {
  height: 40px;
  padding: 0 15px;
  border: none;
  border-radius: 6px;
  color: rgb(255, 255, 255);
  cursor:pointer;
  opacity: 1;
  background-color: #292524;
  transition: all 0.3s;
  font-size: 0.7em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.Update-btn:hover {
  color: white;
}
.Update-btn:hover .arrow {
  margin-right: 0;
  animation: jello-vertical 0.9s both;
  transform-origin: left;
}

@keyframes jello-vertical {
  0% {
    transform: scale3d(1, 1, 1);
  }
  30% {
    transform: scale3d(0.75, 1.25, 1);
  }
  40% {
    transform: scale3d(1.25, 0.75, 1);
  }
  50% {
    transform: scale3d(0.85, 1.15, 1);
  }
  65% {
    transform: scale3d(1.05, 0.95, 1);
  }
  75% {
    transform: scale3d(0.95, 1.05, 1);
  }
  100% {
    transform: scale3d(1, 1, 1);
  }
}
.Update-btn:active {
  transform: scale(0.9);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    margin: 50px 0;
    flex-wrap: wrap;
    gap: 30px;
    padding: 30px;
    background: #F7FAFC;
    border-radius: 12px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    flex: 1;
    min-width: 200px;
}

.stat-number {
    font-size: 3em;
    font-weight: bold;
    color: #4A90E2;
    display: block;
    line-height: 1.2;
}

.stat-label {
    color: #4A5568;
    font-size: 1.1em;
    margin-top: 10px;
}

/* Pricing Section */
.pricing-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 50px 0;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid #E2E8F0;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.15);
}

.free-card {
    border-color: #CBD5E0;
}

.premium-card {
    border: 3px solid #4A90E2;
    background: #FAFCFE;
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: #FF5A5F;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    box-shadow: 0 4px 10px rgba(255, 90, 95, 0.3);
}

.price {
    font-size: 3em;
    font-weight: bold;
    color: #4A90E2;
    margin: 20px 0;
}

.price-label {
    font-size: 1.2em;
    color: #4A5568;
    margin-bottom: 10px;
    font-weight: 600;
}

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

.benefits-list li {
    padding: 12px 0 12px 35px;
    border-bottom: 1px solid #E2E8F0;
    position: relative;
    color: #2D3748;
}

.benefits-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4A90E2;
    font-weight: bold;
    font-size: 1.4em;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefits-list li.crossed {
    color: #A0AEC0;
    text-decoration: line-through;
}

.benefits-list li.crossed:before {
    content: "✗";
    color: #FF5A5F;
}

.cta-button {
    display: block;
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.premium-button {
    background: #4A90E2;
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.premium-button:hover {
    background: #357ABD;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.free-button {
    background: white;
    color: #4A90E2;
    border: 2px solid #4A90E2;
}

.free-button:hover {
    background: #EBF8FF;
    border-color: #357ABD;
}

.guarantee-section {
    background: #4A90E2;
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
    text-align: center;
}

.guarantee-section h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.guarantee-section p {
    font-size: 1.1em;
    opacity: 0.95;
}

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

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

/* Mobile Responsive */
@media (max-width: 768px) {
    /* FIX 5: Reduce padding on mobile */
    .container {
        padding: 20px 15px;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 20px;
        padding: 20px 15px;
        margin: 30px 0;
    }

    .stat-item {
        min-width: 100%;
        padding: 15px;
    }

    .pricing-card {
        padding: 30px 20px;
    }

    .price {
        font-size: 2.5em;
    }

    .popular-badge {
        right: 20px;
        font-size: 0.8em;
    }
    
    .container-1 {
        flex-direction: column;
        padding: 15px 10px;
        gap: 15px;
    }

    .main-content {
        flex: 1 1 100%;
        min-height: auto;
        padding: 15px 10px;
    }

    .main-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .main-content p {
        font-size: 1rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    /* FIX 6: Extra small screens */
    .container {
        padding: 15px 10px;
    }
    
    .container-1 {
        padding: 10px 5px;
    }

    .stats-container {
        padding: 15px 10px;
        gap: 15px;
    }

    .hero-section {
        padding: 30px 15px;
    }

    .hero-section h1 {
        font-size: 1.5em;
    }

    .urgency-badge {
        padding: 8px 15px;
        font-size: 0.85em;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .stat-number {
        font-size: 2.5em;
    }

    .cta-button {
        font-size: 1em;
        padding: 15px;
    }
    
    .main-content {
        padding: 10px 5px;
    }
}
/* Add the following CSS into your css/update.css (or main.css) — place near the bottom so it can override earlier rules */

/* Popup Overlay */
.email-popup-overlay {
  position: fixed;
  inset: 0;
  display: none;               /* hidden by default */
  align-items: center;
  justify-content: center;
  background: rgba(12, 18, 30, 0.55);
  z-index: 10000;
  padding: 20px;
}

/* When visible we toggle inline style or JS class; using display:flex to center */
.email-popup-overlay.open {
  display: flex;
}

/* Popup Card */
.email-popup {
  background: #f8fafc;
  border-radius: 14px;
  width: 420px;
  max-width: calc(100% - 48px);
  padding: 24px;
  box-shadow: 0 18px 50px rgba(14,30,70,0.35);
  position: relative;
  border: 2px solid rgba(226,232,240,0.7);
  animation: popupDown 220ms ease;
}

/* Close button */
.email-popup-close {
  position: absolute;
  right: 12px;
  top: 8px;
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #334155;
}

/* Modal title & content */
.popup-title {
  font-size: 1.4rem;
  text-align: center;
  margin: 6px 0 16px;
  color: #0f172a;
}

.popup-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* Make popup input visually consistent but slightly larger */
.popup-input {
  width: 100%;
  height: 44px;
  font-size: 0.95rem;
  padding-left: 14px;
  border-radius: 8px;
  border: 1px solid #d0d7e1;
  background: #ffffff;
  box-sizing: border-box;
}

/* buttons container */
.popup-actions {
  width: 100%;
  display: flex;
  gap: 12px;
  margin-top: 6px;
  justify-content: center;
}

/* ensure Update-btn style works in popup — keep existing .Update-btn rules above */
.email-popup .Update-btn { min-width: 140px; }

/* Error Toast Style */
#error-toast {
    visibility: hidden;
    min-width: 300px;
    background-color: #fff;
    color: #d32f2f; /* Red text */
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-left: 5px solid #d32f2f;
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
    font-size: 14px;
    font-weight: 500;
}

#error-toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px; /* Slight slide up effect */
}

/* small animation */
@keyframes popupDown {
  from { transform: translateY(-8px) scale(0.995); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .email-popup { padding: 18px; width: 92%; }
  .popup-title { font-size: 1.1rem; }
}
