.delete-account-main {
  background:
    radial-gradient(circle at top right, rgba(15, 159, 120, 0.10), transparent 34rem),
    var(--color-background, #f7faf8);
}

.delete-account-hero {
  padding: clamp(56px, 9vw, 104px) 0 42px;
}

.delete-account-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 48px;
}

.delete-account-hero h1 {
  max-width: 760px;
  margin: 10px 0 18px;
  font-size: clamp(2.35rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.delete-account-intro {
  max-width: 680px;
  margin: 0;
  color: var(--color-text-muted, #53615b);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.privacy-badge {
  display: flex;
  gap: 15px;
  padding: 22px;
  border: 1px solid rgba(15, 159, 120, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 45px rgba(15, 45, 35, 0.08);
  backdrop-filter: blur(12px);
}

.privacy-badge > span {
  font-size: 1.45rem;
}

.privacy-badge strong {
  display: block;
  margin-bottom: 6px;
}

.privacy-badge p {
  margin: 0;
  color: var(--color-text-muted, #53615b);
  line-height: 1.55;
}

.delete-account-section {
  padding: 0 0 clamp(72px, 10vw, 120px);
}

.delete-account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.72fr);
  align-items: start;
  gap: 28px;
}

.delete-account-card,
.info-card,
.success-card {
  border: 1px solid var(--color-border, #dfe9e4);
  background: var(--color-surface, #fff);
  box-shadow: 0 24px 60px rgba(21, 45, 36, 0.08);
}

.delete-account-card {
  padding: clamp(26px, 5vw, 48px);
  border-radius: 28px;
}

.delete-account-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.delete-account-card-header h2,
.info-card h2,
.success-card h2 {
  margin: 0;
}

.danger-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #fff0f0;
  color: #b42318;
  font-size: 1.35rem;
  font-weight: 900;
}

.danger-eyebrow {
  color: #b42318;
}

.deletion-summary {
  margin-bottom: 32px;
  padding: 22px 24px;
  border: 1px solid #f3cbc7;
  border-radius: 18px;
  background: #fff8f7;
}

.deletion-summary h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.deletion-summary ul {
  margin: 0;
  padding-left: 20px;
  color: #5f3b37;
  line-height: 1.8;
}

.form-field {
  margin-bottom: 22px;
}

.form-field label {
  display: block;
  margin-bottom: 9px;
  font-weight: 750;
}

.form-field input[type="text"],
.form-field input[type="password"] {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid var(--color-border, #cad9d1);
  border-radius: 13px;
  background: #fff;
  color: var(--color-text, #17231e);
  font: inherit;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.form-field input:focus {
  outline: none;
  border-color: var(--color-primary, #0f9f78);
  box-shadow: 0 0 0 4px rgba(15, 159, 120, 0.13);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 92px !important;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  padding: 7px 9px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--color-primary-dark, #08785a);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  cursor: pointer;
}

.field-help {
  margin: 7px 0 0;
  color: var(--color-text-muted, #66746e);
  font-size: 0.9rem;
  line-height: 1.5;
}

.inline-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--color-primary-dark, #08785a);
  font-weight: 700;
  text-underline-offset: 3px;
}

.confirmation-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 2px 0 24px;
  padding: 17px;
  border-radius: 14px;
  background: #f7faf8;
  color: #405049;
  line-height: 1.55;
  cursor: pointer;
}

.confirmation-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #b42318;
}

.danger-button {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 12px 20px;
  border: 1px solid #b42318;
  border-radius: 14px;
  background: #b42318;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    opacity 160ms ease;
}

.danger-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #912018;
}

.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.button-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: delete-account-spin 700ms linear infinite;
}

.danger-button.is-loading .button-spinner {
  display: block;
}

.form-message {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 13px;
  line-height: 1.55;
}

.form-message.is-error {
  border: 1px solid #efc2bd;
  background: #fff3f1;
  color: #8f1d14;
}

.form-message.is-info {
  border: 1px solid #b9dbd0;
  background: #effaf6;
  color: #16624d;
}

.delete-account-aside {
  display: grid;
  gap: 18px;
}

.info-card {
  padding: 24px;
  border-radius: 20px;
}

.info-card h2 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.info-card p {
  margin: 0;
  color: var(--color-text-muted, #596760);
  line-height: 1.65;
}

.info-card .button {
  margin-top: 18px;
}

.deletion-success {
  padding: 0 0 100px;
}

.success-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(34px, 7vw, 64px);
  border-radius: 28px;
  text-align: center;
}

.success-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  background: #e9f8f2;
  color: #08785a;
  font-size: 1.8rem;
  font-weight: 900;
}

.success-card p:not(.eyebrow) {
  max-width: 560px;
  margin: 16px auto 25px;
  color: var(--color-text-muted, #596760);
  line-height: 1.7;
}

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

@media (max-width: 860px) {
  .delete-account-hero-inner,
  .delete-account-layout {
    grid-template-columns: 1fr;
  }

  .delete-account-hero-inner {
    gap: 28px;
  }
}

@media (max-width: 620px) {
  .delete-account-hero {
    padding-top: 42px;
  }

  .delete-account-card {
    border-radius: 22px;
  }

  .delete-account-card-header {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .danger-button,
  .form-field input {
    transition: none;
  }

  .button-spinner {
    animation-duration: 1.4s;
  }
}
