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

:root {
  --blue:      #1a56db;
  --blue-dark: #1447b8;
  --blue-light:#eff6ff;
  --gold:      #f59e0b;
  --gold-light:#fffbeb;
  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-200:  #e5e7eb;
  --gray-400:  #9ca3af;
  --gray-600:  #6b7280;
  --gray-700:  #374151;
  --gray-900:  #111827;
  --green:     #16a34a;

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

[data-theme="dark"] {
  --blue:      #4c7dff;
  --blue-dark: #6d94ff;
  --blue-light:#16233f;
  --gold:      #f5b83d;
  --gold-light:#2a2110;
  --green:     #22c55e;

  --gray-50:   #161c2c;
  --gray-100:  #1c2333;
  --gray-200:  #2a3242;
  --gray-400:  #6b7280;
  --gray-600:  #9ca3af;
  --gray-700:  #d1d5db;
  --gray-900:  #f3f4f6;

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

body, nav, .notif-card, .nav-mobile-panel,
.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 ── */
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 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  transition: background 0.15s, color 0.15s;
}

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

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(--gray-50);
  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: 170px;
  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;
  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 ── */
.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;
}

.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;
  line-height: normal;
  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);
}

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

@media (max-width: 1080px) {
  nav { padding: 0 4%; }
  .nav-links { display: none; }
  .nav-cta { gap: 8px; margin-right: 10px; }
  .btn-ghost, .nav-cta .btn-primary { padding: 8px 14px; font-size: 13px; }
  .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-logo { margin-right: auto; }
  .nav-user-menu { position: relative; top: 2px; }
}

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

/* ── CONTEÚDO ── */
.page-content {
  flex: 1;
}

.notif-content {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  width: 100%;
}

.notif-title {
  text-align: center;
  margin-bottom: 36px;
}

.notif-title h1 {
  font-family: 'Sora', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.notif-title p {
  font-size: 15px;
  color: var(--gray-600);
}

/* ── CARD DE NOTIFICAÇÃO ── */
.notif-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px 24px 22px;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px var(--shadow-color);
}

.notif-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.notif-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.notif-icon.gold {
  background: var(--gold-light);
  color: var(--gold);
}

.notif-body {
  flex: 1;
}

.notif-card-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.notif-date {
  font-size: 12.5px;
  color: var(--gray-400);
  margin-bottom: 10px;
}

.notif-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--gray-600);
}

.notif-text strong {
  color: var(--gray-900);
}

.notif-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-light);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  margin-top: 14px;
}

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

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 40px var(--shadow-color);
}

.modal-icon-info {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

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

.modal-box p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-600);
}

.modal-box p a {
  color: var(--blue);
  text-decoration: none;
}

.modal-box p a:hover {
  text-decoration: underline;
}

.modal-contatos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 4px;
}

/* botão do WhatsApp — mesma cor/tamanho do planos.html */
.btn-contato {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--gray-200);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-contato.whatsapp {
  background: #f0fdf4;
  color: #16a34a;
  border-color: #bbf7d0;
}

.btn-contato.whatsapp:hover {
  background: #dcfce7;
}

[data-theme="dark"] .btn-contato.whatsapp {
  background: #113321;
  color: #22c55e;
  border-color: #14532d;
}

.btn-fechar {
  margin-top: 18px;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--gray-600);
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-fechar:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

/* ── FOOTER (mesmo padrão de planos.html / principal.html) ── */
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);
}

.footer-inmetro {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

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

  .notif-title h1 {
    font-size: 24px;
  }

  .notif-title p {
    font-size: 14px;
  }

  .notif-card {
    padding: 20px 18px 18px;
  }

  .modal-box {
    padding: 26px 22px;
  }
}

