*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #050a1e;
  --gold: #c9a84c;
  --gold-dim: rgba(201, 168, 76, 0.15);
}

html, body {
  background: var(--navy);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  color: #e8dfc8;
}

/* Só o login/splash precisa travar o scroll */
body:not(.page) {
  height: 100%;
  overflow: hidden;
}

/* ─── SPLASH ─────────────────────────────────────────── */

#splash {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  z-index: 100;
  /* fade-out controlado pelo JS adicionando .hidden */
  transition: opacity 1s ease;
}

#splash.hidden {
  opacity: 0;
  pointer-events: none;
}

/* #glow não é mais usado — o brilho vive no filter da própria logo */
#glow { display: none; }

/* Logo com brilho que segue o contorno do SS */
#logo {
  position: relative;
  z-index: 1;
  width: clamp(140px, 22vw, 260px);
  opacity: 0;
  animation: logoFadeIn 6s ease forwards;
}

@keyframes logoFadeIn {
  0%   { opacity: 0; filter: drop-shadow(0 0  0px rgba(201,168,76,0))
                             drop-shadow(0 0  0px rgba(201,168,76,0)); }
  15%  { opacity: 0; filter: drop-shadow(0 0  0px rgba(201,168,76,0))
                             drop-shadow(0 0  0px rgba(201,168,76,0)); }
  45%  { opacity: 1; filter: drop-shadow(0 0 12px rgba(201,168,76,0.9))
                             drop-shadow(0 0 28px rgba(201,168,76,0.5))
                             drop-shadow(0 0 50px rgba(201,168,76,0.2)); }
  60%  { opacity: 1; filter: drop-shadow(0 0 12px rgba(201,168,76,0.9))
                             drop-shadow(0 0 28px rgba(201,168,76,0.5))
                             drop-shadow(0 0 50px rgba(201,168,76,0.2)); }
  100% { opacity: 0; filter: drop-shadow(0 0  0px rgba(201,168,76,0))
                             drop-shadow(0 0  0px rgba(201,168,76,0)); }
}

/* ─── LOGIN ─────────────────────────────────────────── */

#login {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

#login.visible {
  opacity: 1;
  pointer-events: auto;
}

#login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  width: min(380px, 90vw);
}

.login-logo {
  width: clamp(80px, 14vw, 130px);
  margin-bottom: 0.5rem;
  animation: logoGlow 3s ease-in-out infinite;
}

.dash-logo {
  height: 36px;
  animation: logoGlow 3s ease-in-out infinite;
}

.header-logo {
  height: 42px;
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 0 3px rgba(201,168,76,0.2));
  }
  50% {
    filter: drop-shadow(0 0 6px rgba(201,168,76,0.4))
            drop-shadow(0 0 14px rgba(201,168,76,0.12));
  }
}

#login-form .brand-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: min(320px, 100%);
  margin-bottom: -0.55rem;
  color: var(--gold);
  font-weight: 300;
  line-height: 1;
  text-transform: uppercase;
}

.brand-name {
  display: block;
  width: 100%;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  letter-spacing: 0.12em;
  text-align: center;
  white-space: nowrap;
}

.brand-service {
  display: block;
  width: 100%;
  margin-top: 0.34rem;
}

.brand-service svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.brand-service text {
  fill: currentColor;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 21px;
  font-weight: 400;
}

.field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.7);
}

.field input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 2px;
  padding: 0.7rem 1rem;
  color: #e8dfc8;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field input::placeholder {
  color: rgba(232, 223, 200, 0.25);
}

.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.12);
}

#login-form button {
  margin-top: 0.4rem;
  width: 100%;
  padding: 0.8rem 1rem;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--gold);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease;
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% {
    box-shadow: 0 0 6px rgba(201,168,76,0.12);
  }
  50% {
    box-shadow: 0 0 12px rgba(201,168,76,0.28);
  }
}

#login-form button:hover {
  background: rgba(201, 168, 76, 0.07);
  animation: none;
  box-shadow: 0 0 10px rgba(201,168,76,0.22);
}

#login-form button:active {
  background: rgba(201, 168, 76, 0.15);
}

/* ─── TROCA DE SENHA ─────────────────────────────────── */

#troca-senha {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

#troca-senha.visible {
  opacity: 1;
  pointer-events: auto;
}

#troca-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  width: min(380px, 90vw);
}

.form-subtitulo {
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(201, 168, 76, 0.65);
  text-align: center;
  letter-spacing: 0.06em;
}

.form-erro {
  min-height: 1.1rem;
  font-size: 0.82rem;
  color: #e07070;
  letter-spacing: 0.04em;
  text-align: center;
}

#troca-form button {
  margin-top: 0.4rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--gold);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease;
}

#troca-form button:hover  { background: rgba(201, 168, 76, 0.1); }
#troca-form button:active { background: rgba(201, 168, 76, 0.2); }
#troca-form button:disabled,
#login-form button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ─── BASE páginas internas ──────────────────────────── */

body.page {
  overflow: auto;
  height: auto;
  min-height: 100vh;
}

.btn-logout {
  background: transparent;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 2px;
  color: rgba(201, 168, 76, 0.7);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  min-height: 44px;
}

.btn-logout:hover { border-color: var(--gold); color: var(--gold); }

/* ─── DASHBOARD ──────────────────────────────────────── */

body.dash-page {
  display: block;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(201,168,76,0.055) 0%, transparent 42%),
    radial-gradient(ellipse at 88% 100%, rgba(232,223,200,0.035) 0%, transparent 44%),
    linear-gradient(145deg, #050a1e 0%, #060c22 52%, #050a1e 100%);
  color: #e8dfc8;
}

/* Cabeçalho */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  position: sticky;
  top: 0;
  background: rgba(5, 10, 30, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
}


/* Saudação hero */
.dash-greeting {
  padding: 3rem 1.5rem 2.35rem;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.dash-greeting::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(232,223,200,0.08), rgba(201,168,76,0.32), transparent);
}

.greeting-nome {
  font-size: clamp(2.2rem, 7vw, 3rem);
  font-weight: 300;
  color: #e8dfc8;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.greeting-nome span {
  color: var(--gold);
  font-weight: 500;
}

.greeting-subtitle {
  max-width: 30rem;
  color: rgba(232,223,200,0.68);
  font-size: clamp(1rem, 4vw, 1.18rem);
  font-style: italic;
  line-height: 1.55;
}

/* Conteúdo principal */
.dash-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 6rem;
  width: 100%;
}

.dash-section {
  padding: 2.5rem 1.5rem;
  position: relative;
}

.dash-section + .dash-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(232,223,200,0.06), rgba(201,168,76,0.24), transparent);
}

.dash-section.no-divider::before {
  display: none;
}

.dash-section-title {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.68);
  margin-bottom: 2.2rem;
}

.dash-section-note {
  max-width: 34rem;
  margin: -1.2rem 0 1.8rem;
  color: rgba(232,223,200,0.66);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.55;
}

.dash-section-note.no-title {
  margin-top: 0;
}

/* ─── Etapa atual (card único) ───────────────────────── */

.etapa-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(201,168,76,0.08), transparent 46%),
    linear-gradient(145deg, rgba(10,18,43,0.96) 0%, rgba(5,10,30,0.98) 52%, rgba(4,8,24,1) 100%);
  border: 1px solid rgba(201,168,76,0.46);
  border-radius: 16px;
  padding: 2rem 1.6rem 1.9rem;
  text-align: center;
  backdrop-filter: blur(6px);
  margin-bottom: 1rem;
  box-shadow:
    0 0 0 1px rgba(201,168,76,0.06) inset,
    0 18px 38px rgba(0,0,0,0.2),
    0 0 26px rgba(201,168,76,0.18),
    0 0 68px rgba(201,168,76,0.12);
  position: relative;
  overflow: hidden;
}

.etapa-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255,240,184,0.16), transparent) top / 100% 1px no-repeat,
    radial-gradient(circle at 50% 0%, rgba(201,168,76,0.16), transparent 46%);
}

.etapa-card-num {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.5);
  margin-bottom: 1rem;
}

.etapa-card-titulo {
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.etapa-card-desc {
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  font-style: italic;
  color: rgba(232,223,200,0.76);
  line-height: 1.7;
}

/* Linha do tempo */
.historico-processo {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
}

.history-toggle {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(201,168,76,0.18);
  border-bottom: 1px solid rgba(201,168,76,0.18);
  border-radius: 0;
  color: var(--gold);
  cursor: pointer;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.06rem, 4vw, 1.2rem);
  letter-spacing: 0.03em;
  line-height: 1.2;
  min-height: 54px;
  padding: 0.95rem 0.15rem;
  text-align: left;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.history-toggle:hover,
.history-toggle[aria-expanded="true"] {
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.13), transparent);
  border-color: rgba(201,168,76,0.38);
  color: #e0c86d;
}

.history-toggle-text {
  flex: 1;
}

.history-toggle-icon {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.25s ease, border-color 0.2s ease, background 0.2s ease;
}

.history-toggle[aria-expanded="true"] .history-toggle-icon {
  transform: rotate(180deg);
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.5);
}

.linha-tempo {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0.2rem auto 0;
  max-width: 540px;
  width: 100%;
}

.linha-tempo[hidden] {
  display: none;
}

.timeline-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 1.05rem;
  position: relative;
  padding-bottom: 1.55rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 20px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(201,168,76,0.72), rgba(232,223,200,0.14));
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-marker {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  margin: 3px auto 0;
  background: #050a1e;
  border: 1px solid rgba(201,168,76,0.65);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.06);
}

.timeline-item.atual .timeline-marker {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(201,168,76,0.11);
}

.timeline-content {
  padding-bottom: 0.1rem;
}

.timeline-data {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.72);
  margin-bottom: 0.3rem;
}

.timeline-titulo {
  font-size: 1.15rem;
  font-weight: 500;
  color: rgba(232,223,200,0.88);
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

.timeline-item.atual .timeline-titulo {
  color: var(--gold);
}

.timeline-desc {
  font-size: 0.98rem;
  color: rgba(232,223,200,0.62);
  line-height: 1.55;
}

/* ─── Documentos ─────────────────────────────────────── */

.docs-grid {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.3rem 1.5rem;
  background: rgba(5,10,30,0.42);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 12px;
  color: #e8dfc8;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-align: left;
  width: 100%;
  min-height: 76px;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
  backdrop-filter: blur(4px);
}

.doc-card:hover {
  border-color: rgba(201,168,76,0.5);
  background: rgba(201, 168, 76, 0.06);
  transform: translateY(-1px);
}

.doc-card:active { transform: translateY(0); }

.doc-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(201,168,76,0.4));
}

.doc-card-label { flex: 1; }

.doc-card-arrow {
  font-size: 1.6rem;
  color: rgba(201, 168, 76, 0.4);
  line-height: 1;
}

/* ─── WhatsApp ───────────────────────────────────────── */

.whats-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-textarea {
  width: 100%;
  background: rgba(5,10,30,0.44);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  color: #e8dfc8;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.admin-textarea::placeholder { color: rgba(232,223,200,0.2); }
.admin-textarea:focus { border-color: rgba(201,168,76,0.5); }

.whats-textarea {
  width: 100%;
  background: rgba(5, 10, 30, 0.46);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  color: #e8dfc8;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.6;
  letter-spacing: 0.03em;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.whats-textarea::placeholder {
  color: rgba(232, 223, 200, 0.25);
}

.whats-textarea:focus {
  border-color: rgba(201, 168, 76, 0.55);
}

.whats-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.1rem 1.4rem;
  background: rgba(5, 10, 30, 0.48);
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: var(--gold);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  min-height: 64px;
  width: 100%;
  transition: background 0.2s;
}

.whats-btn:hover {
  background: rgba(201, 168, 76, 0.1);
  transform: translateY(-1px);
}

.whats-btn:active { transform: translateY(0); }

.whats-icon {
  display: flex;
  align-items: center;
}

/* Footer */
.dash-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: rgba(232, 223, 200, 0.15);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════
   ADMIN  (desktop-first)
═══════════════════════════════════════════════════════ */

body.admin-page {
  background:
    radial-gradient(ellipse at 8% 0%,   rgba(201,168,76,0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 92% 100%, rgba(201,168,76,0.04) 0%, transparent 45%),
    #0d1b3e;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
}

/* ── Header ──────────────────────────────────────────── */

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2.4rem;
  border-bottom: 1px solid rgba(201,168,76,0.12);
  background: rgba(10,22,52,0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
  height: 60px;
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-header-text { display: flex; flex-direction: column; }

.admin-header-title {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.3;
}

.admin-header-sub {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: rgba(232,223,200,0.28);
  text-transform: uppercase;
}

/* ── Layout ──────────────────────────────────────────── */

.admin-body {
  display: flex;
  flex: 1;
  min-height: 0;
  height: calc(100vh - 60px);
}

/* ── Sidebar ─────────────────────────────────────────── */

.admin-sidebar {
  width: 280px;
  flex-shrink: 0;
  border-right: 1px solid rgba(201,168,76,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(9,19,48,0.5);
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid rgba(201,168,76,0.07);
}

.sidebar-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.45);
}

.btn-novo {
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 5px;
  color: var(--gold);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-novo:hover { background: rgba(201,168,76,0.14); }

.sidebar-search {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(201,168,76,0.07);
}

.sidebar-search-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 6px;
  padding: 0.45rem 0.8rem;
  color: #e8dfc8;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.sidebar-search-input::placeholder { color: rgba(232,223,200,0.2); }
.sidebar-search-input:focus { border-color: rgba(201,168,76,0.4); }

.sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.4rem 0;
}
.sidebar-list::-webkit-scrollbar { width: 2px; }
.sidebar-list::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.18); border-radius: 2px; }

.sidebar-empty {
  padding: 2rem 1.4rem;
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(232,223,200,0.2);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background 0.15s, border-color 0.2s;
}
.sidebar-item:hover { background: rgba(201,168,76,0.04); }
.sidebar-item.active {
  background: rgba(201,168,76,0.07);
  border-left-color: var(--gold);
}

.si-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(201,168,76,0.09);
  border: 1px solid rgba(201,168,76,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold);
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.si-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.si-nome {
  font-size: 0.97rem;
  color: #e8dfc8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.si-user {
  font-size: 0.72rem;
  color: rgba(232,223,200,0.3);
  letter-spacing: 0.03em;
}

.si-etapa {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: rgba(201,168,76,0.45);
  white-space: nowrap;
}

/* ── Main ────────────────────────────────────────────── */

.admin-main {
  flex: 1;
  overflow-y: auto;
  position: relative;
}
.admin-main::-webkit-scrollbar { width: 3px; }
.admin-main::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.13); border-radius: 3px; }

/* Estado vazio */
.admin-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.empty-logo { width: 72px; opacity: 0.18; }

.admin-empty p {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232,223,200,0.18);
}

/* ── Painel do cliente ───────────────────────────────── */

.client-panel {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0;
  height: 100%;
}

/* Cabeçalho do painel */
.panel-top {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.6rem 2.4rem 1.4rem;
  border-bottom: 1px solid rgba(201,168,76,0.1);
  background: rgba(255,255,255,0.01);
  flex-shrink: 0;
}

.panel-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold);
  flex-shrink: 0;
}

.panel-identity h2 {
  font-size: 1.45rem;
  font-weight: 400;
  color: #e8dfc8;
  line-height: 1.2;
}

.panel-identity p {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(201,168,76,0.45);
  margin-top: 0.18rem;
}

/* Alerta senha temp */
.senha-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 2.4rem;
  background: rgba(201,168,76,0.05);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  flex-shrink: 0;
}

.senha-alert-body { display: flex; align-items: center; gap: 1rem; }

.senha-alert-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.5);
}

.senha-alert strong {
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  font-weight: 500;
}

.btn-copiar {
  background: transparent;
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 5px;
  color: var(--gold);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-copiar:hover { background: rgba(201,168,76,0.1); }

/* Corpo do painel — grade 2 colunas */
.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.8rem 2.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 1.2rem;
  align-content: start;
}
.panel-body::-webkit-scrollbar { width: 3px; }
.panel-body::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.12); border-radius: 3px; }

/* Cartões */
.panel-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  backdrop-filter: blur(4px);
}

.panel-card.full-width {
  grid-column: 1 / -1;
}

.panel-card-label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.5);
}

/* Etapas */
.etapa-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.etapa-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.2rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-family: 'Cormorant Garamond', Georgia, serif;
}
.etapa-btn:hover { background: rgba(201,168,76,0.05); border-color: rgba(201,168,76,0.28); }
.etapa-btn.done  { background: rgba(201,168,76,0.05); border-color: rgba(201,168,76,0.22); }
.etapa-btn.active { background: rgba(201,168,76,0.09); border-color: rgba(201,168,76,0.55); }

.etapa-num {
  font-size: 0.95rem;
  color: rgba(201,168,76,0.28);
  font-weight: 500;
}
.etapa-btn.done  .etapa-num  { color: rgba(201,168,76,0.55); }
.etapa-btn.active .etapa-num { color: var(--gold); }

.etapa-nome {
  font-size: 0.6rem;
  letter-spacing: 0.02em;
  text-align: center;
  color: rgba(232,223,200,0.25);
  line-height: 1.3;
}
.etapa-btn.done  .etapa-nome  { color: rgba(201,168,76,0.4); }
.etapa-btn.active .etapa-nome { color: rgba(201,168,76,0.75); }

/* Toggles documentos */
.doc-toggles { display: flex; flex-direction: column; gap: 0.6rem; }

.doc-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(201,168,76,0.09);
  border-radius: 8px;
  transition: border-color 0.2s;
}
.doc-toggle-row:has(input:checked) { border-color: rgba(201,168,76,0.22); }

.doc-toggle-info { display: flex; flex-direction: column; gap: 0.15rem; }

.doc-toggle-nome { font-size: 0.95rem; color: #e8dfc8; }

.doc-toggle-status {
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  color: rgba(232,223,200,0.28);
  transition: color 0.2s;
}

.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.25s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(232,223,200,0.35);
  left: 3px;
  top: 3px;
  transition: transform 0.25s, background 0.25s;
}
.toggle input:checked + .toggle-slider { background: rgba(201,168,76,0.22); }
.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: var(--gold);
}

/* Upload */
.upload-list { display: flex; flex-direction: column; gap: 0.6rem; }

.upload-row { display: flex; align-items: center; gap: 0.9rem; }

.upload-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 7px;
  color: rgba(201,168,76,0.7);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.upload-label:hover { background: rgba(201,168,76,0.05); border-color: rgba(201,168,76,0.38); }
.upload-icon { font-size: 1rem; }

input[type="file"] { display: none; }

.upload-status {
  font-size: 0.72rem;
  color: rgba(232,223,200,0.35);
}

/* Barra de ações — rodapé do painel */
.panel-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.4rem 1.2rem;
  border-top: 1px solid rgba(201,168,76,0.08);
  background: rgba(9,19,48,0.3);
  flex-shrink: 0;
}

#panel-erro {
  flex: 1;
  font-size: 0.78rem;
  color: #e07070;
  min-height: 1rem;
}

.btn-salvar {
  padding: 0.65rem 1.8rem;
  background: rgba(201,168,76,0.08);
  border: 1px solid var(--gold);
  border-radius: 7px;
  color: var(--gold);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-salvar:hover   { background: rgba(201,168,76,0.15); transform: translateY(-1px); }
.btn-salvar:active  { transform: translateY(0); }
.btn-salvar:disabled { opacity: 0.4; cursor: default; transform: none; }

.btn-reset {
  padding: 0.65rem 1.3rem;
  background: transparent;
  border: 1px solid rgba(224,112,112,0.35);
  border-radius: 7px;
  color: rgba(224,112,112,0.7);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-reset:hover    { background: rgba(224,112,112,0.06); border-color: rgba(224,112,112,0.6); }
.btn-reset:disabled { opacity: 0.4; cursor: default; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal {
  background: linear-gradient(145deg, #0f2350, #0d1b3e);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 16px;
  padding: 2rem;
  width: min(440px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: 0 28px 60px rgba(0,0,0,0.5), 0 0 40px rgba(201,168,76,0.04);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.modal-close {
  background: transparent;
  border: none;
  color: rgba(232,223,200,0.35);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  transition: color 0.2s;
}
.modal-close:hover { color: #e8dfc8; }

.modal .field input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: #e8dfc8;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}
.modal .field input:focus { border-color: rgba(201,168,76,0.5); }

.field-hint {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.65rem;
  color: rgba(201,168,76,0.38);
  letter-spacing: 0.04em;
}

.modal-actions { display: flex; justify-content: flex-end; }

#modal-erro {
  font-size: 0.78rem;
  color: #e07070;
  min-height: 1rem;
  line-height: 1.6;
}

.msg-sucesso {
  font-size: 0.78rem;
  color: #8dd98d;
  line-height: 1.6;
}
