body {
  background-color: #f6f6f6;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.card {
  background-color: #d8defb;
  background-image: linear-gradient(to bottom, #d8defb, #f0f0f3);
  margin: 40px auto;
  width: 450px;
  border-radius: 8px;
  padding: 20px 20px;
  overflow: hidden;
  opacity: 0;
}

.card.error {
  background-color: #ffeaea;
  background-image: linear-gradient(to bottom, #ffd6d6 60%, #fff0f0 100%);
}

h1 {
  color: #140040;
  font-size: 25px;
  margin-bottom: 10px;
  font-weight: 700;
}

.card.error h1 {
  color: #b71c1c;
}

p {
  font-size: 16px;
  margin: 10px 0;
}

.spinner {
  margin: 20px auto;
  border: 4px solid #eee;
  border-top: 4px solid #4b3cfa;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 1s ease-in-out infinite;
  opacity: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.section {
  margin-top: 20px;
  opacity: 0;
}

.section-title {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #140040;
}

.card.error .section-title {
  color: #b71c1c;
}

.store-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.store-links a {
  flex: 1;
  max-width: 100px;
  background-color: #fff;
  border-radius: 6px;
  padding: 10px;
  text-decoration: none;
  color: inherit;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: scale(0.9);
  transition: box-shadow 0.2s ease;
}

.store-links a:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.store-links a img {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
}

.note {
  font-size: 13px;
  color: #666;
  margin-top: 20px;
}

.card.error p,
.card.error .note {
  color: #b71c1c;
}

.confirmation-content {
  text-align: center;
  padding: 10px 0;
}

.current-email {
  font-weight: bold;
  color: #4b3cfa;
  margin: 15px 0;
  word-break: break-all;
}

.destination-user {
  margin: 15px 0;
  padding: 12px;
  background-color: rgba(75, 60, 250, 0.1);
  border-radius: 6px;
  border-left: 3px solid #4b3cfa;
}

.destination-email {
  font-weight: bold;
  color: #4b3cfa;
  word-break: break-all;
}

.warning-text {
  font-size: 14px;
  color: #666;
  font-style: italic;
  margin-bottom: 20px;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #181a20;
    color: #e0e0e0;
  }

  .card {
    background-color: #23263a;
    background-image: linear-gradient(
      to bottom,
      #23263a,
      #23263a 60%,
      #2c2f45 100%
    );
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  }

  .card.error {
    background-color: #2a1818;
    background-image: none;
  }

  h1,
  .section-title {
    color: #e0e0e0;
  }

  .card.error h1,
  .card.error .section-title,
  .card.error p,
  .card.error .note {
    color: #fff;
  }

  .store-links a {
    background-color: #23263a;
    color: #e0e0e0;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  }

  .store-links a:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  }

  .note {
    color: #aaa;
  }

  .spinner {
    border: 4px solid #333;
    border-top: 4px solid #4b3cfa;
  }

  .current-email {
    color: #7b6eff;
  }

  .destination-user {
    background-color: rgba(123, 110, 255, 0.15);
    border-left-color: #7b6eff;
  }

  .destination-email {
    color: #7b6eff;
  }

  .warning-text {
    color: #aaa;
  }

}
