/* Shadcn-inspired tokens for account deletion pages */
.da-page {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 24.6 95% 53.1%;
  --primary: 24.6 95% 53.1%;
  --primary-foreground: 0 0% 100%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --radius: 0.75rem;

  min-height: calc(100vh - 80px);
  background: linear-gradient(180deg, hsl(210 40% 98%) 0%, hsl(0 0% 100%) 40%);
  padding: 2.5rem 1rem 2.5rem;
}

.da-container {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding-top: 1.5rem;
}

@media (min-width: 768px) {
  .da-page {
    padding-top: 3.5rem;
  }

  .da-container {
    padding-top: 2rem;
  }
}

.da-card {
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow:
    0 1px 2px 0 rgb(0 0 0 / 0.05),
    0 8px 24px -12px rgb(15 23 42 / 0.18);
}

.da-card-header {
  padding: 1.25rem 1.25rem 0;
  text-align: center;
}

.da-card-title {
  margin: 0 0 0.375rem;
  font-size: 1.375rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
}

.da-card-description {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}

.da-card-content {
  padding: 1.25rem;
}

.da-card-content-tight {
  padding-top: 0;
}

.da-card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1.25rem 1.25rem;
}

@media (min-width: 480px) {
  .da-card-footer.da-card-footer-row {
    flex-direction: row;
    justify-content: center;
  }
}

.da-form {
  display: grid;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.da-field {
  display: grid;
  gap: 0.5rem;
  text-align: left;
}

.da-label {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  color: hsl(var(--foreground));
}

.da-input {
  display: flex;
  height: 2.75rem;
  width: 100%;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--input));
  background: hsl(var(--background));
  padding: 0 0.875rem;
  font-size: 0.95rem;
  color: hsl(var(--foreground));
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.da-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.da-input:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.18);
}

.da-hint {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.4;
}

.da-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  width: 100%;
}

.da-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.da-button-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.da-button-primary:hover:not(:disabled) {
  background: hsl(24.6 95% 47%);
}

.da-button-outline {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}

.da-button-outline:hover:not(:disabled) {
  background: hsl(var(--muted));
}

.da-button-destructive {
  background: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

.da-button-destructive:hover:not(:disabled) {
  background: hsl(0 84.2% 55%);
}

.da-alert {
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted));
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
  text-align: left;
}

.da-alert-compact {
  margin-top: 0;
  padding: 0.75rem 0.875rem;
}

.da-alert strong {
  color: hsl(var(--foreground));
}

.da-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 0.75rem;
  border-radius: 9999px;
  background: hsl(24.6 95% 53.1% / 0.12);
  color: hsl(var(--primary));
  font-size: 1.125rem;
}

/* Account deletion pages — cleaner header on mobile */
body:has(.da-page) .saastain-header {
  border-bottom: 1px solid hsl(214.3 31.8% 91.4%);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

body:has(.da-page) {
  background: hsl(210 40% 98%);
}
