.main-content {
  display: grid;
  place-items: center;   /* horizontal e vertical */
}

.main-content:has(.config-page:not(.config-page-admin)) {
  box-sizing: border-box;
  min-height: calc(100vh - 64px);
}

.config-page {
    display: flex;
    flex-direction: row;
    height: auto;
    min-height: calc(100vh - 112px);
    width: 70%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.config-page-admin {
  box-sizing: border-box;
  align-self: stretch;
  width: min(1100px, 100%);
  height: auto;
  max-height: 85vh;
  min-height: calc(80vh - 112px);
}

.app-layout:has(.config-page-admin) {
  height: auto;
  min-height: 80vh;
  grid-template-rows: 64px auto;
}

.main-content:has(.config-page-admin) {
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  width: 100%;
  overflow: visible;
  place-items: start center;
}

.config-page-admin .config-bar {
  box-sizing: border-box;
  min-height: 0;
  overflow: hidden;
  padding-right: 12px;
}

.config-page-admin .config-header {
  flex: 0 0 auto;
  padding: 22px 0 14px;
}

.config-page-admin .config-tabs {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.config-page-admin .config-list {
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 4px 6px 12px 0;
  gap: 4px;
  justify-content: flex-start;
  overflow: visible;
}

.config-page-admin .config-listLinks {
  box-sizing: border-box;
  width: 100%;
  padding: 11px 14px;
}

.config-page-admin .config-listItens {
  flex: 0 0 auto;
}

.config-page:not(.config-page-admin) {
  align-self: center;
  min-height: 0;
  width: 70%;
}

.config-page:not(.config-page-admin) .config-bar {
  box-sizing: border-box;
  flex: 0 0 39%;
  align-self: flex-start;
  height: auto;
  min-height: 0;
}

.config-page:not(.config-page-admin) .config-header {
  flex: 0 0 auto;
  min-width: 0;
  justify-content: flex-start;
  padding: 32px 0 20px;
  gap: 2px;
}

.config-page:not(.config-page-admin) .config-header h1 {
  margin: 0;
  max-width: 100%;
  min-width: 0;
  font-size: clamp(0.9rem, calc(0.9rem + 0.8vw), 1.5rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.config-page:not(.config-page-admin) .config-header p {
  margin: 0;
  line-height: 1.4;
}

.config-page:not(.config-page-admin) .config-tabs {
  flex: 0 0 auto;
}

.config-page:not(.config-page-admin) .config-list {
  height: auto;
  margin: 0;
  padding-bottom: 24px;
  gap: 4px;
  justify-content: flex-start;
}

.config-bar {
    display: flex;
    flex-direction: column;
    padding-left: clamp(0.8vw, 0.8vw + 25px, 2vw);
    height: 100%;
    width: 35%;
    background-color: rgb(250, 250, 250);
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(22, 2, 54, 0.1);
}

.config-header {
    display: flex;
    flex-direction: column;
    flex: 0 0 20%;
    justify-content: center;
}

.config-tabs {
    display: flex;
    flex-direction: column;
    width: 95%;
    flex: 0 0 80%;
}

.config-header h1 {
    font-size: clamp(1rem, 1rem + 0.8vw, 5rem);
}

.config-list {
    display: flex;
    height: 80%;
    flex-direction: column;
    list-style-type: none;
    justify-content: space-evenly;
    padding-left: 0;
}

.config-listItens {
    border-radius: 30px;
}

.config-listItens:hover {
    background-color: rgb(227, 221, 243);
    transform: scale(1.02);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.config-listItens:active {
    transform: scale(0.99);
    transition: transform 0.1s ease;
}

.config-listItens.active {
    background-color: rgb(227, 221, 243);
}

.config-listLinks {
    display: block;
    padding: 1.5vh;
    width: 90%;
    text-decoration: none;
    font-size: clamp(0.7rem, 0.7rem + 0.5vw, 1rem);
    font-weight: 500;
}

.config-listLinks, .config-listItens\:active, .config-listItens\:hover {
    color: rgb(35, 11, 73);
}


.admin-search-wrap {
    margin: 12px 0 20px;
}

.admin-search-wrap input {
    width: min(420px, 100%);
    padding: 11px 12px;
    border: 1px solid #dfe7e0;
    border-radius: 10px;
    font: inherit;
}

.admin-list {
    display: grid;
    gap: 14px;
}

.admin-list-item {
    border: 1px solid var(--config-line);
    border-radius: 12px;
    background: var(--config-paper);
    overflow: hidden;
}

.admin-main-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
}

.admin-user-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user-head img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #edf2ea;
}

.admin-details {
    padding: 0 18px 18px;
    border-top: 1px solid var(--config-line);
    color: var(--config-ink);
}

.admin-details p {
    margin: 12px 0 0;
}

.admin-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.admin-actions-row button,
.admin-link-btn,
.admin-toggle-details {
    border: 1px solid #d2dccd;
    background: #fff;
    color: var(--config-accent);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
}

.admin-status {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
    color: #183220;
    background: #edf5ee;
}

.admin-status-em-aberto {
    background: #fde6e6;
    color: #7f1d1d;
}

.admin-status-em-analise {
    background: #fff4d6;
    color: #6a4f00;
}

.admin-status-concluida,
.admin-status-desativada {
    background: #e2f7ea;
    color: #14532d;
}

.admin-auditoria-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0 18px;
}

.admin-auditoria-tab {
    border: 1px solid var(--config-line);
    border-radius: 8px;
    background: #fff;
    color: var(--config-accent);
    padding: 8px 12px;
    cursor: pointer;
    font: inherit;
}

.admin-auditoria-tab.is-active {
    background: var(--config-accent);
    color: #fff;
}



/* ======================
   CONFIGURAÇÕES: BASE
   ====================== */
.config-page,
.config-help-center,
.config-help-article {
  --cfg-text: rgb(35, 11, 73);
  --cfg-muted: #6b6280;
  --cfg-accent: rgb(35, 11, 73);
  --cfg-accent-hover: rgb(62, 30, 118);
  --cfg-soft: rgb(227, 221, 243);
  --cfg-border: rgba(35, 11, 73, 0.15);
  --cfg-surface: rgba(255, 255, 255, 0.7);
}

.config-page {
  --cfg-danger: #d6003f;
}

/* Área de conteúdo ao lado da config-bar */
.config-form,
.config-overview {
  flex: 1;
  min-width: 0;                 /* evita estourar o flex */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(12px, 2vh, 20px);
  padding: clamp(16px, 2.5vw, 40px);
  overflow: visible;
  color: var(--cfg-text);
}

.config-page:not(.config-page-admin) .config-form,
.config-page:not(.config-page-admin) .config-overview {
  box-sizing: border-box;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.config-form > *,
.config-overview > * {
  max-width: 520px;
}

.config-form h2,
.config-overview h2 {
  margin: 0;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.6rem);
}

.config-form p,
.config-overview p {
  margin: 0;
  font-size: clamp(0.8rem, 0.75rem + 0.25vw, 0.95rem);
  color: var(--cfg-muted);
}

.config-social-error {
  color: var(--cfg-danger) !important;
}

.config-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cfg-muted);
}

/* ======================
   CAMPOS
   ====================== */
.config-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  font-size: clamp(0.8rem, 0.75rem + 0.25vw, 0.95rem);
  font-weight: 500;
}

.config-form input:not([type="radio"]):not([type="file"]) {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 14px;
  font: inherit;
  color: var(--cfg-text);
  background: var(--cfg-surface);
  border: 1px solid var(--cfg-border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.config-form input:focus-visible {
  border-color: var(--cfg-accent);
  box-shadow: 0 0 0 3px var(--cfg-soft);
}

.config-form input::placeholder {
  color: #a9a2b8;
}

/* Links sociais: logo ao lado do nome, input embaixo */
.config-form label:has(.social-logo) {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
}

.config-form label:has(.social-logo) input {
  grid-column: 1 / -1;
}

.social-logo {
  width: clamp(1rem, 1.5vh + 1rem, 2rem);
  aspect-ratio: 1;
}

/* ======================
   BOTÕES
   ====================== */
.config-form > button,
.config-help-button,
.test-alert-button,
.config-alert-action {
  display: inline-block;
  padding: 10px 22px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--cfg-accent);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.alert-test-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.config-form > button:hover,
.config-help-button:hover,
.test-alert-button:hover,
.config-alert-action:hover {
  background: var(--cfg-accent-hover);
  transform: scale(1.02);
}

.config-form > button:active,
.config-help-button:active,
.test-alert-button:active,
.config-alert-action:active {
  transform: scale(0.97);
}

/* Botão de perigo */
.config-overview button {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 22px;
  width: clamp(50px, 100%, 180px);
  font: inherit;
  font-weight: 600;
  color: var(--cfg-danger);
  background: transparent;
  border: 1px solid var(--cfg-danger);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.config-overview button:hover {
  color: #fff;
  background: var(--cfg-danger);
}

.config-overview {
  align-items: flex-start;
}

/* ======================
   PREFERÊNCIAS (details)
   ====================== */
.config-form details {
  width: 100%;
  padding: 12px 16px;
  background: var(--cfg-surface);
  border: 1px solid var(--cfg-border);
  border-radius: 14px;
}

.config-form summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.config-form summary::-webkit-details-marker {
  display: none;
}

.config-form summary::after {
  content: "▾";
  float: right;
  transition: transform 0.2s ease;
}

.config-form details[open] summary::after {
  transform: rotate(180deg);
}

.config-form details[open] summary {
  margin-bottom: 10px;
}

.config-form details label {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
}

.config-form input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--cfg-accent);
}

.theme-toggle-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 8px 0 12px;
  padding: 12px 14px;
  background: var(--cfg-surface);
  border: 1px solid var(--cfg-border);
  border-radius: 12px;
}

.theme-toggle-inline {
  margin-left: auto;
}

/* ======================
   NOTIFICAÇÕES
   ====================== */
.notification-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  background: var(--cfg-surface);
  border: 1px solid var(--cfg-border);
  border-radius: 14px;
}

.notification-row strong {
  font-size: clamp(0.85rem, 0.8rem + 0.25vw, 1rem);
}

.notification-row p {
  margin-top: 2px;
  font-size: 0.8rem;
}

.notification-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
  padding: 0;
  background: #cfc9dc;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.notification-toggle span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.notification-toggle.is-on {
  background: var(--cfg-accent);
}

.notification-toggle.is-on span {
  transform: translateX(20px);
}

.notification-toggle:focus-visible {
  outline: 3px solid var(--cfg-soft);
  outline-offset: 2px;
}

/* ======================
   CONTAS BLOQUEADAS
   ====================== */
.blocked-empty {
  padding: 20px;
  text-align: center;
  background: var(--cfg-surface);
  border: 1px dashed var(--cfg-border);
  border-radius: 14px;
}

.blocked-account-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.blocked-account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--cfg-surface);
  border: 1px solid var(--cfg-border);
  border-radius: 14px;
}

.blocked-account-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: var(--cfg-text);
}

.blocked-account-item img {
  flex: 0 0 auto;
  width: 40px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.blocked-account-item strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.unblock-account {
  flex: 0 0 auto;
  padding: 6px 14px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cfg-accent);
  background: transparent;
  border: 1px solid var(--cfg-accent);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.unblock-account:hover {
  color: #fff;
  background: var(--cfg-accent);
}

/* ======================
   MODAIS (foto, desativar, alerta)
   ====================== */
.deactivate-account-modal,
.config-alert-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(13, 2, 43, 0.45);
  backdrop-filter: blur(4px);
}

/* Sem isto, o display:flex acima anula o atributo hidden */
.deactivate-account-modal[hidden],
.config-alert-modal[hidden] {
  display: none;
}

.deactivate-account-dialog,
.config-alert-dialog {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(420px, 100%);
  max-height: 90dvh;
  overflow-y: auto;
  padding: clamp(20px, 3vw, 32px);
  color: rgb(35, 11, 73);
  background: #fdfcff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(22, 2, 54, 0.25);
}

.deactivate-account-dialog h2,
.config-alert-dialog h2 {
  margin: 0;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
}

.deactivate-account-dialog p,
.config-alert-dialog p {
  margin: 0;
  font-size: 0.9rem;
  color: #6b6280;
}

.deactivate-account-dialog label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 500;
}

.deactivate-account-dialog input[type="password"]{
  box-sizing: border-box;
  width: 100%;
  padding: 10px 14px;
  font: inherit;
  background: #fff;
  border: 1px solid rgba(35, 11, 73, 0.15);
  border-radius: 12px;
}

/* Botão X */
.deactivate-account-close,
.config-alert-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: rgb(35, 11, 73);
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.deactivate-account-close:hover,
.config-alert-close:hover {
  background: rgb(227, 221, 243);
}

/* Ações do modal de desativar */
.deactivate-account-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.deactivate-account-cancel,
.deactivate-account-confirm {
  padding: 10px 20px;
  font: inherit;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.deactivate-account-cancel {
  color: rgb(35, 11, 73);
  background: transparent;
  border: 1px solid rgba(35, 11, 73, 0.25);
}

.deactivate-account-cancel:hover {
  background: rgb(227, 221, 243);
}

.deactivate-account-confirm {
  color: #fff;
  background: #d6003f;
  border: 1px solid #d6003f;
}

.deactivate-account-confirm:hover {
  background: #a80032;
}

.config-alert-action {
  align-self: flex-start;
  color: #fff;
  background: var(--cfg-accent, rgb(35, 11, 73));
  border: 0;
}

.config-alert-action:hover {
  background: var(--cfg-accent-hover, rgb(62, 30, 118));
}

/* ======================
   CENTRAL DE AJUDA
   ====================== */
.public-help-body {
  min-height: 100vh;
  background: linear-gradient(to bottom, #bbb9e9, #fefdff);
}

.public-help-page {
  display: flex;
  min-height: 100vh;
}

.config-help-center,
.config-help-article {
  box-sizing: border-box;
  align-self: stretch;
  width: min(1100px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px);
  color: var(--cfg-text);
}

.config-help-center {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}

.config-help-button {
  box-sizing: border-box;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.config-help-back {
  position: absolute;
  top: 18px;
  left: clamp(16px, 3vw, 38px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.config-help-back img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.config-help-center-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.config-help-center-eyebrow {
  margin-bottom: 8px;
  color: var(--cfg-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.config-help-center-header h1,
.config-help-article-header h1 {
  margin: 0;
  color: var(--cfg-text);
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem);
}

.config-help-center-header > p {
  margin: 10px 0 24px;
  color: var(--cfg-muted);
  font-size: 0.98rem;
}

.config-help-search {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(560px, 100%);
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--cfg-border);
  border-radius: 16px;
  background: var(--cfg-surface);
  box-shadow: 0 8px 24px rgba(22, 2, 54, 0.06);
}

.config-help-search svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--cfg-muted);
  stroke-linecap: round;
  stroke-width: 2;
}

.config-help-search input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--cfg-text);
  font: inherit;
}

.config-help-search input::placeholder {
  color: #a9a2b8;
}

.config-help-search:focus-within {
  border-color: var(--cfg-accent);
  box-shadow: 0 0 0 3px var(--cfg-soft);
}

.config-help-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(760px, 100%);
  margin: 0 auto;
}

.config-help-category {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--cfg-border);
  border-radius: 18px;
  background: var(--cfg-surface);
  color: var(--cfg-text);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(22, 2, 54, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.config-help-category:hover,
.config-help-category:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(35, 11, 73, 0.32);
  box-shadow: 0 14px 30px rgba(22, 2, 54, 0.12);
}

.config-help-category[hidden],
.config-help-categories[hidden],
.config-help-no-results[hidden],
.config-help-search-results[hidden],
.config-help-search-result[hidden] {
  display: none;
}

.config-help-category svg,
.config-help-article-header > svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: var(--cfg-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.config-help-category h2 {
  margin: 14px 0 6px;
  font-size: 1.05rem;
}

.config-help-category p,
.config-help-article-header p {
  margin: 0;
  color: var(--cfg-muted);
  line-height: 1.6;
}

.config-help-no-results {
  margin: 0;
  color: var(--cfg-muted);
  text-align: center;
}

.config-help-search-results {
  display: grid;
  gap: 14px;
  width: min(760px, 100%);
  margin: 0 auto;
}

.config-help-search-result {
  padding: 20px;
  border: 1px solid var(--cfg-border);
  border-radius: 16px;
  background: var(--cfg-surface);
  box-shadow: 0 8px 24px rgba(22, 2, 54, 0.06);
}

.config-help-search-context {
  display: block;
  margin-bottom: 8px;
  color: var(--cfg-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.config-help-search-result h2 {
  margin: 0 0 10px;
  color: var(--cfg-text);
  font-size: 1rem;
  line-height: 1.5;
}

.config-help-search-result .config-help-answer {
  padding: 0;
}

.config-help-article {
  position: relative;
  padding-top: 72px;
}

.config-help-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 42px;
  color: var(--cfg-muted);
  font-size: 0.9rem;
}

.config-help-breadcrumb a {
  color: var(--cfg-accent);
  text-decoration: none;
}

.config-help-breadcrumb a:hover {
  text-decoration: underline;
}

.config-help-article-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
  margin-bottom: 30px;
}

.config-help-article-header h1 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.config-help-article-header p {
  grid-column: 2;
  margin-top: 6px;
}

.config-help-article-list {
  display: grid;
  gap: 12px;
}

.config-help-article-section {
  margin: 28px 0 4px;
  color: var(--cfg-text);
  font-size: 1.15rem;
}

.config-help-article-item {
  border: 1px solid var(--cfg-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.config-help-article-item summary {
  position: relative;
  padding: 18px 48px 18px 20px;
  color: var(--cfg-text);
  font-weight: 650;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}

.config-help-article-item summary::-webkit-details-marker {
  display: none;
}

.config-help-article-item summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  content: '+';
  transform: translateY(-50%);
  color: var(--cfg-accent);
  font-size: 1.4rem;
}

.config-help-article-item[open] summary::after {
  content: '−';
}

.config-help-article-item summary:focus-visible {
  outline: 3px solid var(--cfg-soft);
  outline-offset: 2px;
}

.config-help-answer {
  padding: 0 20px 18px;
  color: var(--cfg-muted);
  line-height: 1.65;
}

.config-help-answer p {
  margin: 0 0 10px;
}

.config-help-answer p:last-child {
  margin-bottom: 0;
}

.config-help-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(13, 2, 43, 0.45);
  backdrop-filter: blur(4px);
}

.config-help-modal[hidden] {
  display: none;
}

.config-help-dialog {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(420px, 100%);
  max-height: 90dvh;
  overflow-y: auto;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 20px;
  background: #fdfcff;
  color: rgb(35, 11, 73);
  box-shadow: 0 10px 40px rgba(22, 2, 54, 0.25);
}

.config-help-dialog h2 {
  margin: 0;
  padding-right: 28px;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
}

.config-help-label {
  margin-bottom: -8px;
  color: #6b6280;
  font-size: 0.85rem;
  font-weight: 600;
}

.config-help-field {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(35, 11, 73, 0.15);
  border-radius: 12px;
  background: rgba(35, 11, 73, 0.03);
}

.config-help-field input {
  box-sizing: border-box;
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 4px;
  border: 0;
  background: transparent;
  color: rgb(35, 11, 73);
  font: inherit;
}

.config-help-field input:focus {
  outline: none;
}

.config-help-copy {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: rgb(35, 11, 73);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.config-help-copy:hover {
  transform: scale(1.02);
  background: rgb(62, 30, 118);
}

.config-help-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgb(35, 11, 73);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.config-help-close:hover {
  background: rgb(227, 221, 243);
}

/* ======================
   RESPONSIVO
   ====================== */
@media (max-width: 640px) {
  .main-content:has(.config-page:not(.config-page-admin)) {
    min-height: calc(100vh - 56px);
  }

  .app-layout:has(.config-page-admin) {
    grid-template-rows: 56px auto;
  }

  .main-content:has(.config-page-admin) {
    height: auto;
    padding: 10px;
    overflow: visible;
  }

  .config-page-admin {
    width: 100%;
    max-height: none;
    min-height: calc(100vh - 130px);
  }

  .config-page-admin .config-bar {
    width: 42%;
    padding-left: 10px;
    padding-right: 6px;
  }

  .config-page-admin .config-header {
    padding: 14px 0 8px;
  }

  .config-page-admin .config-header p {
    font-size: 0.75rem;
  }

  .config-page-admin .config-listLinks {
    padding: 10px 8px;
    font-size: 0.72rem;
  }

  .config-help-center {
    justify-content: flex-start;
    padding: 112px 16px 32px;
  }

  .config-help-article {
    padding: 24px 16px 32px;
  }

  .config-help-breadcrumb {
    margin-bottom: 32px;
  }

  .config-help-article-header {
    margin-bottom: 24px;
  }

  .config-help-center-header > p {
    max-width: 340px;
  }

  .config-help-categories {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .config-help-category {
    min-height: 0;
    padding: 20px;
  }

  .config-form,
  .config-overview {
    padding: 16px;
  }

  .config-page:not(.config-page-admin) .config-form,
  .config-page:not(.config-page-admin) .config-overview {
    max-height: calc(100vh - 152px);
  }

  .deactivate-account-actions {
    flex-direction: column-reverse;
  }

  .deactivate-account-actions button {
    width: 100%;
  }

}
