/* ===== Account deletion page ===== */

.account-delete-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  overflow-x: hidden;
}

.account-delete-page .header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.account-delete-page .logo {
  gap: 8px;
}

.account-delete-page .logo-text {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.account-delete-page .logo-img {
  height: 36px;
  width: auto;
}

.delete-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 112px 16px 48px;
  width: 100%;
  box-sizing: border-box;
}

.delete-main > .container {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0;
}

.delete-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 36px 28px 32px;
  overflow: visible;
  box-sizing: border-box;
}

.delete-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 20px;
  flex-shrink: 0;
}

.delete-card h1 {
  text-align: center;
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  line-height: 1.25;
}

.delete-lead {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 24px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.delete-info {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
}

.delete-info h2 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.delete-info h2 + ul {
  margin: 0 0 16px;
}

.delete-info ul:last-child {
  margin-bottom: 0;
}

.delete-info ul {
  padding-left: 1.15rem;
  color: var(--text);
  font-size: 0.92rem;
  margin: 0;
}

.delete-info li {
  margin-bottom: 6px;
  line-height: 1.45;
}

.delete-info li:last-child {
  margin-bottom: 0;
}

.delete-form {
  margin: 0;
}

.delete-form > label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 10px;
  color: var(--text);
}

.phone-row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-row:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-weight: 600;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  font-size: 1rem;
}

.phone-row input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 14px 16px;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-family: inherit;
  background: transparent;
  color: var(--text);
}

.delete-form input[type="text"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  letter-spacing: 0.35em;
  text-align: center;
  font-weight: 700;
  font-size: 1.35rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.delete-form input[type="text"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.field-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 10px 0 20px;
  line-height: 1.4;
}

.btn-block {
  width: 100%;
  justify-content: center;
  display: inline-flex;
}

.account-delete-page .btn-primary {
  min-height: 48px;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: #dc2626;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.btn-danger:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
}

.btn-danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.confirm-check {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  line-height: 1.45;
  cursor: pointer;
}

.confirm-check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #dc2626;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-actions .btn {
  flex: 1;
  justify-content: center;
  min-width: 140px;
}

.sent-to {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 20px;
  font-size: 0.95rem;
}

.link-resend {
  display: block;
  width: 100%;
  margin-top: 16px;
  text-align: center;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.link-resend:hover {
  text-decoration: underline;
}

.link-resend:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: none;
}

.delete-alert {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.4;
}

.delete-alert.error {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.delete-alert.success {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.delete-success {
  text-align: center;
  padding: 12px 0;
}

.success-icon {
  font-size: 3rem;
  color: #16a34a;
  margin-bottom: 16px;
}

.delete-success h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 10px;
}

.delete-success p {
  color: var(--text-muted);
  margin: 0 0 24px;
}

.delete-footer {
  padding: 20px 16px 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.delete-footer a {
  color: var(--primary);
  font-weight: 600;
}

.hidden {
  display: none !important;
}

@media (max-width: 560px) {
  .delete-main {
    padding: 96px 12px 32px;
  }

  .delete-card {
    padding: 28px 18px 24px;
    border-radius: 14px;
  }

  .delete-icon {
    width: 56px;
    height: 56px;
    font-size: 1.35rem;
    margin-bottom: 16px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }
}
