/* Container beside Overview */
#launch-countdown {
  text-align: right;
  font-size: 0.9rem;
  line-height: 1.3;
}

/* Compact inline layout */
#timer {
  display: inline-flex;
  justify-content: flex-end;
  gap: 0.25rem;
  margin-top: 0.2rem;
}

/* Small rounded boxes */
#timer .time-box {
  background: #f6f8fa;
  border: 1px solid #e0e3e7;
  border-radius: 0.35rem;
  padding: 0.15rem 0.35rem;
  /* Use flexbox to align number and label horizontally */
  display: flex;
  align-items: center; /* Vertically center the contents */
  justify-content: center; /* Horizontally center the contents */
  min-width: 2.5rem; /* Increased min-width for the side-by-side layout */
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Number text */
#timer .time-box span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2a5bd7;
  /* Ensure it doesn't take up full width, allowing label next to it */
  display: inline;
  margin-right: 0.15rem; /* Small gap between number and unit */
}

/* Unit labels (d, h, m, s) */
#timer .time-box label {
  /* Removed 'display: block;' so it stays on the same line */
  display: inline;
  font-size: 0.6rem;
  color: #555;
  /* Adjusted margin for vertical alignment */
  margin-top: 0;
  line-height: 1; /* Adjust line height for better vertical placement */
}

/* Pulse animation near launch */
#timer.pulse {
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

/* Launched state */
#timer .expired {
  color: #d62828;
  font-weight: 700;
}

/* Newsletter Subscription Styles */
.newsletter-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  color: white;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.newsletter-container::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

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

.newsletter-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.newsletter-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
}

.newsletter-form {
  position: relative;
  z-index: 1;
}

.input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.email-input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  min-width: 250px;
}

.email-input::placeholder {
  color: rgba(255,255,255,0.7);
}

.email-input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}

.subscribe-btn {
  padding: 0.875rem 1.5rem;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.subscribe-btn:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.privacy-note {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0;
}

.success-message {
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  animation: slideIn 0.5s ease-out;
}

.success-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.success-icon {
  font-size: 2rem;
  animation: bounce 0.8s ease-out;
}

.success-content strong {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.success-content p {
  margin: 0;
  opacity: 0.9;
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .newsletter-container {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }
  
  .input-group {
    flex-direction: column;
  }
  
  .email-input {
    min-width: auto;
  }
  
  .success-content {
    flex-direction: column;
    text-align: center;
  }
}