/* ==========================
   Background Canvas
   ========================== */
#particle-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #8C99C8 30%, #FFE8CC 100%);
}

/* ==========================
   Base
   ========================== */
body, html {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, sans-serif;
}

/* ==========================
   Subscription layout
   ========================== */
.subscription {
  min-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  box-sizing: border-box;

  padding: 50px;
}

/* ==========================
   Card + color states
   ========================== */
.subscription-card {
  max-width: 420px;
  max-height: 390px;
  width: 100%;
  padding: 48px 24px;
  border-radius: 20px;
  text-align: center;
  color: #7870B0;
  background: rgba(162,170,219,0.8);
  backdrop-filter: blur(10px);
  transition: background 0.5s ease, color 0.5s ease;
  box-shadow: 0 40px 80px rgba(0,0,0,.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  border: 1px solid rgba(200,200,255,0.3);
  box-sizing: border-box;
}

-subscription-title{
    font-size: 2.8em;
    line-height: 1.4em;
    margin: 10px;
}

.subscription-card[data-card="idle"] {
  color: #7870B0;
  background: linear-gradient(135deg, #A2AADB, #FFF2E0);
}

.subscription-card[data-card="active"] {
  color: #FFFFFF;
  background: linear-gradient(135deg, #898AC4, #B2B3F0);
}

.subscription-card[data-card="success"] {
  color: #7870B0;
  background: linear-gradient(135deg, #C0C9EE, #F5F6FF);
}

.subscription-card h2,
.subscription-card p.subscription-text {
  transition: color 0.5s ease, opacity 0.4s ease;
  margin-top: 0 !important;
}

p.subscription-text {
  margin-bottom: 40px;
}

/* ==========================
   Container
   ========================== */
.subscription-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  max-width: 100%;

  max-height: 190px;
  min-height: 2px;

  box-sizing: border-box;
}

/* ==========================
   Shared states
   ========================== */
.subscribe-btn,
.subscription-form,
.subscription-confirmation {
  position: absolute;
  opacity: 0;
  transform: scale(.85);
  pointer-events: none;
  transition: all .45s ease;
}

.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* ==========================
   Subscribe button
   ========================== */
.subscribe-btn {
  padding: 16px 36px;
  border-radius: 999px;
  border: 1px solid rgba(200,200,255,0.5);
  background: #FFF2E0;
  color: #898AC4;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 12px rgba(0,0,0,0.15);
  animation: float 3s ease-in-out infinite;
}

.subscribe-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 24px rgba(0,0,0,0.2);
}

/* ==========================
   Float animation
   ========================== */
@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* ==========================
   Form
   ========================== */
.subscription-form {
  display: flex;
  gap: 10px;

  width: 100%;
  max-width: 360px;

  justify-content: center;
  box-sizing: border-box;
}

.subscription-form input {
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(200,200,255,0.5);
  background: #FFF2E0;
  color: #898AC4;

  min-width: 200px;
  max-width: 100%;

  transition: all 0.3s ease;
  box-sizing: border-box;
}

.subscription-form input:focus {
  outline: none;
  box-shadow: 0 0 12px rgba(192,201,238,0.6);
  transform: scale(1.02);
}

.subscription-form button {
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid rgba(200,200,255,0.5);
  background: #C0C9EE;
  color: #898AC4;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.subscription-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* ==========================
   Confirmation
   ========================== */
.subscription-confirmation {
  position: relative;
  text-align: center;
  padding: 20px;
  color: #7870B0;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.success-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
  color: #898AC4;
  animation: bounce 1s ease forwards;
}

@keyframes bounce {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* ==========================
   Hide content helper
   ========================== */
.hide-content {
  opacity: 0 !important;
  display: none !important;
}

/* ==========================
   Responsive
   ========================== */
@media (max-width: 500px) {
  .subscription {
    padding: 24px;
  }

  .subscription-card {
    padding: 36px 16px;
    margin: 0 auto;
  }

  .subscription-form {
    flex-direction: column;
    max-width: 100%;
  }

  .subscription-form input {
    width: 100%;
    min-width: 0;
  }

  .subscription-form button {
    width: 100%;
  }
}

/* ==========================
   Reset button
   ========================== */
.reset-btn {
  display: block;
  width: fit-content;
  margin: 12px auto 0;
  background: none;
  border: 0;
  padding: 10px;
  text-align: center;
  text-decoration: underline;
  color: #7870B0;
  cursor: pointer;

  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity .2s ease, transform .2s ease;
}

.reset-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}


