/* Stephane ASTRO — Dialog suppression compte (RGPD + Apple Guideline 5.1.1) */

#sg-delete-account-dialog {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.sg-delete-overlay {
  position: absolute;
  inset: 0;
  background: var(--lx-surfa-7, rgba(11, 16, 32, 0.7));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sg-delete-card {
  position: relative;
  max-width: 520px;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow-y: auto;
  margin: 16px;
  padding: 32px 28px 26px;
  background: #FAF7EE;
  border-radius: 0;
  box-shadow: 0 12px 40px rgba(11, 16, 32, 0.3);
  border: 1px solid #B33B2E;
  color: #2A2419;
}
.sg-delete-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: #8A7E68;
}
.sg-delete-close:hover {
  color: #2A2419;
}
.sg-delete-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 18px;
  color: #B33B2E;
}
.sg-delete-card p {
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 14px;
}
.sg-delete-list {
  margin: 0 0 18px;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.55;
  color: #5A4F3A;
}
.sg-delete-list li {
  margin: 6px 0;
}
.sg-delete-export {
  background: #FFF8E0;
  border-left: 4px solid #B8862E;
  padding: 10px 14px;
  font-size: 13px;
  font-style: italic;
  margin: 18px 0;
}
.sg-delete-export a {
  color: #8E661A;
  font-weight: 600;
}
.sg-delete-card label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8A7E68;
  font-weight: 600;
  margin-top: 14px;
  margin-bottom: 6px;
}
.sg-delete-card input,
.sg-delete-card textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #E2D9BF;
  border-radius: 0;
  background: #FFFFFF;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}
.sg-delete-card input:focus,
.sg-delete-card textarea:focus {
  outline: 3px solid #B33B2E;
  outline-offset: 1px;
  border-color: #B33B2E;
}
.sg-delete-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}
.sg-btn-ghost,
.sg-btn-danger {
  padding: 11px 22px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.sg-btn-ghost {
  background: transparent;
  color: #5A4F3A;
  border-color: #E2D9BF;
}
.sg-btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
}
.sg-btn-danger {
  background: #B33B2E;
  color: white;
  border-color: #B33B2E;
}
.sg-btn-danger:hover:not(:disabled) {
  background: #8E2D21;
}
.sg-btn-danger:disabled {
  background: #DCC3BF;
  cursor: not-allowed;
  border-color: #DCC3BF;
}

.sg-delete-pending,
.sg-delete-success,
.sg-delete-error {
  text-align: center;
  padding: 22px 0;
}
.sg-delete-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid #E2D9BF;
  border-top-color: #B33B2E;
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: sg-delete-spin 0.9s linear infinite;
}
@keyframes sg-delete-spin {
  to { transform: rotate(360deg); }
}
.sg-delete-success {
  color: #2D7A4F;
}
.sg-delete-error {
  color: #B33B2E;
}

@media (max-width: 520px) {
  .sg-delete-card {
    padding: 22px 18px 18px;
    max-height: 95vh;
  }
  .sg-delete-card h2 { font-size: 18px; }
  .sg-delete-actions {
    flex-direction: column-reverse;
  }
  .sg-delete-actions button {
    width: 100%;
  }
}
