.alert {
  padding: 1.25rem 1.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.95rem;
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 500px;
  box-shadow: 0 4px 12px rgba(31, 39, 51, 0.1);
  line-height: 1.5;
}

.alert-error {
  border-color: rgba(196, 69, 54, 0.35);
  background: rgba(196, 69, 54, 0.08);
  color: #8f342a;
}

.alert p {
  margin: 0;
  padding: 0;
}

.alert p + p {
  margin-top: 0.75rem;
}

.alert-success {
  border-color: rgba(31, 122, 103, 0.35);
  background: rgba(31, 122, 103, 0.12);
  color: #1d5f51;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-heading {
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-title {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.page-subtitle {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  white-space: nowrap;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.feed-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  margin: 0 auto;
}

.feed-toggle__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition:
    background-color 140ms ease,
    color 140ms ease;
}

.feed-toggle__link:hover {
  color: var(--accent);
  background: rgba(15, 173, 185, 0.08);
}

.feed-toggle__link.is-active {
  color: var(--accent);
  background: rgba(15, 173, 185, 0.16);
  font-weight: 600;
}

.confirmation-card {
  text-align: center;
  padding: 3rem 2rem;
}

.confirmation-success,
.confirmation-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.confirmation-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 0.5rem;
  animation: confirmationPulse 0.6s ease-out;
}

.success-icon {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
}

.error-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
}

.confirmation-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.confirmation-message {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 480px;
}

.confirmation-help {
  text-align: left;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
  max-width: 480px;
}

.confirmation-help h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.confirmation-help ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}

.confirmation-help li {
  margin-bottom: 0.5rem;
}

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.svg-icon {
  margin-right: 8px;
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 8px;
  transition: all 140ms ease;
}

.button-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 173, 185, 0.3);
}

.button-secondary {
  background: var(--surface-subtle);
}

@media (max-width: 640px) {
  .alert {
    padding: 1rem 1.25rem;
    margin: 0 auto 2rem;
    max-width: 100%;
    font-size: 0.9rem;
  }
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

@keyframes confirmationPulse {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.resend-verification {
  text-align: center;
  padding: 2rem 0;
}

.resend-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.3);
  animation: confirmationPulse 0.6s ease-out;
}

.resend-title {
  margin: 0 0 1rem 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.resend-message {
  margin: 0 0 2rem 0;
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.resend-form {
  max-width: 400px;
  margin: 0 auto 2rem;
  text-align: left;
}

.resend-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.resend-form input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-size: 1rem;
  color: var(--text);
  transition: all 140ms ease;
  margin-bottom: 1.5rem;
}

.resend-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 173, 185, 0.22);
}

.resend-help {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: left;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.resend-help h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.resend-help ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}

.resend-help li {
  margin-bottom: 0.5rem;
}

.resend-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-actions {
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .feed-toggle {
    width: 100%;
    justify-content: flex-start;
    gap: 0.4rem;
  }

  .feed-toggle__link {
    flex: 0 0 auto;
  }

  .confirmation-card {
    padding: 2rem 1.5rem;
  }

  .confirmation-title {
    font-size: 1.75rem;
  }

  .confirmation-message {
    font-size: 1rem;
  }

  .confirmation-actions {
    flex-direction: column;
    width: 100%;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
    justify-content: center;
  }
}
