*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #1a56db;
  --blue-dark:  #1740a8;
  --blue-light: #eff4ff;
  --blue-mid:   #c7d7fa;

  --gold:       #d97706;
  --gold-light: #fffbeb;
  --gold-mid:   #fde68a;

  --red:        #dc2626;
  --red-dark:   #b91c1c;
  --red-light:  #fef2f2;
  --red-mid:    #fecaca;

  --green:       #16a34a;
  --green-light: #f0fdf4;
  --green-mid:   #bbf7d0;

  --bg: #ffffff;
  --bg-card: #ffffff;
  --bg-alt: #f9fafb;
  --border-color: #e5e7eb;
  --shadow-color: rgba(0, 0, 0, 0.10);
  --overlay-color: rgba(0, 0, 0, 0.5);
  --footer-bg: #111827;
  --nav-bg: rgba(255, 255, 255, 0.92);

  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-350: #c4c9d4;
  --gray-400: #9ca3af;
  --gray-600: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
}

[data-theme="dark"] {
  --blue:       #4c7dff;
  --blue-dark:  #6d94ff;
  --blue-light: #16233f;
  --blue-mid:   #2a3c63;

  --gold:       #f5b83d;
  --gold-light: #2a2110;
  --gold-mid:   #7a5a12;

  --red:        #f87171;
  --red-dark:   #ef4444;
  --red-light:  #3f1d1d;
  --red-mid:    #7f1d1d;

  --green:       #22c55e;
  --green-light: #113321;
  --green-mid:   #14532d;

  --bg: #0f1420;
  --bg-card: #161c2c;
  --bg-alt: #161c2c;
  --border-color: #2a3242;
  --shadow-color: rgba(0, 0, 0, 0.40);
  --overlay-color: rgba(0, 0, 0, 0.65);
  --footer-bg: #05070c;
  --nav-bg: rgba(15, 20, 32, 0.92);

  --gray-50:  #161c2c;
  --gray-100: #1c2333;
  --gray-200: #2a3242;
  --gray-300: #3a4358;
  --gray-350: #4b5566;
  --gray-400: #6b7280;
  --gray-600: #9ca3af;
  --gray-700: #d1d5db;
  --gray-900: #f3f4f6;
}

body, nav, .config-card, .btn-mini, .btn-danger, .btn-outline, .btn-primary,
.input-wrap input, .modal-box, .theme-toggle, .senha-form,
.nav-user-btn, .nav-user-dropdown {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--gray-900);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── NAV (mesmo padrão usado em principal.html) ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
}

.nav-logo-text {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  color: var(--gray-600);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.theme-toggle:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-ghost {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.15s;
}

.btn-ghost:hover {
  background: var(--gray-100);
}

/* escopado em "nav" para não conflitar com o .btn-primary usado nos
   modais/formulário de senha, que tem outro layout (largura total) */
nav .btn-primary {
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}

nav .btn-primary:hover {
  background: var(--blue-dark);
}

.nav-auth-guest {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-user-menu {
  position: relative;
}

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: border-color 0.15s, color 0.15s;
}

.nav-user-btn span {
  white-space: nowrap;
}

.nav-user-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.nav-user-btn i.ti-chevron-down {
  font-size: 13px;
  transition: transform 0.2s;
}

.nav-user-btn.aberto i.ti-chevron-down { transform: rotate(180deg); }

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 8px 24px var(--shadow-color);
  width: 100%;
  min-width: 150px;
  box-sizing: border-box;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 1000;
}

.nav-user-dropdown.aberto {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-user-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 13.5px;
  line-height: 1.6; /* FIX: style_principal.css define line-height:1.6 no
                        body, e esses itens herdam esse valor lá. Aqui o
                        body não define line-height (fica no padrão do
                        navegador, ~1.2), então os itens ficavam com
                        menos altura de linha e pareciam mais "grudados".
                        Definindo explicitamente, o espaçamento fica igual
                        em todas as páginas, independente do line-height
                        do body. */
  color: var(--gray-600);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-user-dropdown a:hover {
  background: var(--gray-50);
  color: #dc2626;
}

/* ── BOTÃO HAMBÚRGUER ── */
.nav-burger {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  color: var(--gray-700);
  transition: background 0.15s, border-color 0.15s;
}

.nav-burger:hover {
  background: var(--gray-100);
}

.nav-burger.ativo {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

/* ── PAINEL MOBILE (dropdown dos links) ── */
.nav-mobile-panel {
  display: none;
  flex-direction: column;
  position: sticky;
  top: 64px;
  z-index: 99;
  background: var(--bg-card);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 8px 24px var(--shadow-color);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

/* FIX: 260px cortava o último item (o painel tem 6 itens: tema + 4 links +
   "Fazer pesquisa"). Alinhado com o valor usado em principal.html. */
.nav-mobile-panel.aberto {
  max-height: 420px;
}

.nav-mobile-panel a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.15s, color 0.15s;
}

.nav-mobile-panel a:last-child {
  border-bottom: none;
}

.nav-mobile-panel a:hover {
  background: var(--blue-light);
  color: var(--blue);
}

/* ── ATIVA O HAMBÚRGUER NO BREAKPOINT ──
   FIX: era 1180px, divergindo do breakpoint padrão (1080px) usado no
   resto do site para este mesmo conjunto de links. */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .nav-mobile-panel {
    display: flex;
  }

  .nav-cta > .theme-toggle {
    display: none;
  }

  .nav-mobile-panel a.nav-mobile-theme {
    gap: 10px;
  }

  .nav-mobile-theme-spacer {
    width: 18px;
    visibility: hidden;
  }

  .nav-logo {
    margin-right: auto;
  }

  .nav-cta {
    margin-right: 10px;
  }

  .nav-user-menu {
    position: relative;
    top: 2px;
  }
  
  .nav-cta {
    margin-right: 10px;   
  }

  nav {
    padding: 0 4%;
  }
}

@media (max-width: 680px) {
  .nav-logo-text {
    font-size: 15px;
  }
}

/* ── CONTEÚDO ── */
.config-content {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 48px 16px 64px;
}

.config-wrap {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.config-title {
  margin-bottom: 4px;
}

.config-title h1 {
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.config-title p {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
}

/* ── CARD ── */
.config-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 12px var(--shadow-color);
}

.config-card.danger {
  border-color: var(--red-mid);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.card-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.card-header-icon.danger {
  background: var(--red-light);
  color: var(--red);
}

.card-header-title {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
}

.card-header-sub {
  font-size: 12.5px;
  color: var(--gray-400);
  margin-top: 2px;
}

/* ── LINHA DE DADO (nome / email / cpf / senha) ── */
.data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--gray-100);
}

.data-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.data-info {
  min-width: 0;
}

.data-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.data-value {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray-900);
}

.data-value.mono {
  font-family: 'Sora', sans-serif;
  letter-spacing: 0.3px;
}

.btn-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .15s;
}

.btn-mini:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

/* ── FORMULÁRIO DE TROCA DE SENHA (expande dentro do card) ── */
.senha-form {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px dashed var(--gray-200);
}

.senha-form.aberto {
  display: flex;
}

.senha-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.senha-form-actions .btn {
  width: auto;
  padding: 10px 18px;
}

/* ── SEU PLANO ── */

/* linha entre o cabeçalho do card ("Seu plano" / subtítulo) e o conteúdo —
   usada só neste card, via classe extra no card-header */
.card-header--divider {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-100);
}

/* painel que mostra o plano atual — substitui o antigo par
   label + badge solto por um bloco com identidade própria (borda,
   ícone de marca d'água, lista de benefícios e CTA de upgrade) */
.plano-panel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 22px;
  border: 1px solid var(--gray-200);
  background: var(--bg-alt);
}

.plano-panel-icon {
  position: absolute;
  top: -14px;
  right: -10px;
  font-size: 96px;
  color: var(--gray-900);
  opacity: 0.04;
  transform: rotate(-12deg);
  pointer-events: none;
}

.plano-panel.pro .plano-panel-icon {
  color: var(--gold);
  opacity: 0.09;
}

.plano-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.plano-panel-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.plano-panel-nome {
  font-family: 'Sora', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--gray-900);
}

.plano-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 100px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  flex-shrink: 0;
}

.plano-badge i {
  font-size: 12px;
}

.plano-badge.free {
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}

.plano-badge.free i {
  font-size: 7px;
  color: var(--gray-400);
}

.plano-badge.pro {
  background: linear-gradient(135deg, var(--gold) 0%, #f0a020 100%);
  color: #fff;
  border: 1px solid var(--gold);
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.3);
}

/* lista de benefícios inclusos (ou bloqueados) no plano atual */
.plano-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-200);
  position: relative;
  z-index: 1;
}

.plano-features li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--gray-700);
}

.plano-features li i {
  font-size: 15px;
  color: var(--green);
  flex-shrink: 0;
}

.plano-features li.bloqueado {
  color: var(--gray-400);
}

.plano-features li.bloqueado i {
  color: var(--gray-350);
}

/* NOVO: contador "Expira em: X dias, Yh" — só aparece pra Pro ativado via
   chave (ver _atualizarExpiracaoPlano() no HTML). Antes não tinha regra
   própria no CSS: herdava a fonte padrão do body e ficava sem gap entre
   o ícone e o texto, por isso destoava do resto do painel. Segue o mesmo
   padrão visual de .plano-features (tamanho, cor, fonte), com um leve
   destaque dourado por se referir ao Pro. */
.plano-expira-info {
  display: none; /* JS troca pra "flex" quando há data de expiração */
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--gold-light);
  border: 1px solid var(--gold-mid);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  position: relative;
  z-index: 1;
}

.plano-expira-info i {
  font-size: 15px;
  flex-shrink: 0;
}

/* CTA de upgrade — só aparece pra quem está no plano Free (controlado via JS) */
.plano-upgrade-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: gap 0.15s;
}

.plano-upgrade-cta:hover {
  gap: 10px;
}

/* separa visualmente o painel do plano do campo de chave de acesso */
.plano-chave-wrap {
  margin-top: 18px;
  padding-top: 0;
  border-top: none;
  margin-bottom: 0;
}

/* campo "Chave de acesso": input e botão lado a lado, economiza altura */
.chave-acesso-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.chave-acesso-row .input-wrap {
  flex: 1;
  min-width: 0;
}

.btn-chave {
  width: auto;
  flex-shrink: 0;
  padding: 0 20px;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .chave-acesso-row {
    flex-direction: column;
  }

  .btn-chave {
    padding: 12px 20px;
  }
}

/* ── ZONA DE RISCO ── */
.danger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--gray-100);
}

.danger-desc {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.6;
  max-width: 380px;
  margin-top: 2px;
}

.btn-danger {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--red);
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, opacity .15s;
}

.btn-danger:hover {
  background: var(--red-dark);
}

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

/* ── CAMPOS (reaproveitados do padrão de login) ── */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-600);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 12px 14px 12px 40px;
  font-size: 14px;
  color: var(--gray-900);
  font-family: 'Inter', sans-serif;
  outline: none;
}

.input-wrap input:focus {
  border-color: var(--blue);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.08);
}

.input-wrap .ico {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--gray-350);
  pointer-events: none;
}

.input-wrap .ico-r {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--gray-350);
  cursor: pointer;
}

.input-wrap .ico-r:hover {
  color: var(--gray-600);
}

.strength-bar {
  height: 3px;
  border-radius: 3px;
  background: var(--gray-100);
  margin-top: 7px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  border-radius: 3px;
  transition: all 0.3s;
  width: 0;
}

.strength-label {
  font-size: 11px;
  margin-top: 4px;
  color: var(--gray-400);
}

.alert {
  display: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 14px;
}

.alert.erro { background: var(--red-light); color: var(--red); border: 1px solid var(--red-mid); }
.alert.ok   { background: var(--green-light); color: var(--green); border: 1px solid var(--green-mid); }

/* ── BOTÕES GERAIS ── */
.btn {
  padding: 13px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}

.btn-outline:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--overlay-color);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-box {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 36px 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px var(--shadow-color);
}

.modal-icon-danger {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red-light);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 16px;
}

.modal-box h2 {
  font-family: 'Sora', sans-serif;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gray-900);
}

.modal-sub {
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 22px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.modal-actions .btn,
.modal-actions .btn-danger {
  flex: 1;
  width: auto;
}

/* ── FOOTER ── */
footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.5);
  padding: 40px 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

@media (min-width: 1300px) {
  footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .footer-inmetro {
    text-align: right;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-icon {
  width: 28px;
  height: 28px;
  background: transparent;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
}

.footer-logo-text {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

/* FIX: estava "right" fixo, desalinhando o texto no mobile/tablet (onde o
   footer é column e tudo mais fica centralizado). Agora fica centralizado
   por padrão e só vira "right" na media query de 1300px acima, igual ao
   padrão de principal.html. */
.footer-inmetro {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

/* ═══════════════════════════════════════════════
   RESPONSIVO
   ═══════════════════════════════════════════════ */
@media (max-width: 700px) {
  .config-content {
    padding: 32px 16px 48px;
  }

  .config-title h1 {
    font-size: 22px;
  }

  .config-card {
    padding: 22px 18px;
  }

  .data-row {
    flex-wrap: wrap;
  }

  .btn-mini {
    width: 100%;
    justify-content: center;
  }

  .danger-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-danger {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .modal-box {
    padding: 28px 22px;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }
}

/* ── BADGE (bolinha) DE NOTIFICAÇÃO NÃO VISTA — sino no dropdown do usuário ── */
.sino-wrap {
  position: relative;
  display: inline-flex;
}

.badge-notificacao {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626;
  border: 1.5px solid var(--bg-card);
}