.newsletter-container {
  display: none; /* Initially hidden for pop-up */
  width: 80%;
  max-width: 500px;
  margin: 100px auto;
  background: linear-gradient(135deg, #2b5876, #4e4376);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(255, 255, 255, 0.1);
  transform: scale(1);
  animation: popIn 1s ease-in-out;
}

@keyframes popIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.machine-header h1 {
  font-size: 2.5rem;
  color: #ffcc00;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(255, 204, 0, 0.8);
  animation: glowText 2s infinite alternate;
}

@keyframes glowText {
  0% { text-shadow: 0 0 10px rgba(255, 204, 0, 0.8); }
  100% { text-shadow: 0 0 20px rgba(255, 204, 0, 1); }
}

.machine-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

input[type="email"] {
  padding: 15px;
  font-size: 1.2rem;
  border: 2px solid #ffcc00;
  border-radius: 10px;
  background: linear-gradient(135deg, #000, #333);
  color: #fff;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

input[type="email"]:focus {
  outline: none;
  border-color: #00ffcc;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.8);
}

button {
  padding: 15px 25px;
  font-size: 1.2rem;
  color: #000;
  background: linear-gradient(135deg, #ffcc00, #ff9900);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(255, 153, 0, 0.5);
  transition: all 0.3s ease, transform 0.3s ease;
}

button:hover {
  background: linear-gradient(135deg, #ff9900, #ff6600);
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 102, 0, 0.7);
}

.machine-footer {
  margin-top: 20px;
  animation: fadeIn 2s;
}

.status-message {
  font-size: 1rem;
  font-style: italic;
  opacity: 0.9;
  animation: textPulse 2s infinite;
}

@keyframes textPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.loading-bar {
  height: 8px;
  width: 100%;
  background: #444;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.loading-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, #00ffcc, #0099cc);
  animation: loading 2s infinite;
}

@keyframes loading {
  0% { left: -20%; }
  50% { left: 50%; width: 30%; }
  100% { left: 100%; width: 20%; }
}

.coffee-button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coffee-button img {
  width: 150px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coffee-button:hover img {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(255, 223, 0, 0.5);
}
