/* ═══════════════════════════════════════════════════════════
   CONTROLE DE HONORÁRIOS — JÁCOME ADVOCACIA
   style.css
═══════════════════════════════════════════════════════════ */

/* ── RESET & VARIÁVEIS ────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:       #0a1628;
  --navy2:      #0e2040;
  --navy3:      #1a3a6e;
  --gold:       #c9a84c;
  --gold2:      #e6c97a;
  --cream:      #f5f0e8;
  --white:      #ffffff;
  --gray:       #6b7280;
  --gray2:      #9ca3af;
  --lightgray:  #e5e7eb;
  --red:        #dc2626;
  --green:      #16a34a;
  --blue:       #1d4ed8;
  --shadow-sm:  0 2px 8px rgba(10,22,40,.10);
  --shadow:     0 4px 24px rgba(10,22,40,.15);
  --shadow-lg:  0 8px 48px rgba(10,22,40,.22);
  --radius:     12px;
  --radius-sm:  8px;
  --transition: .22s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--navy);
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

a { color: inherit; text-decoration: none; }

/* ── SCROLLBAR ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 99px; }

/* ── SCREENS (roteamento por visibilidade) ────────────────── */
.screen { display: none; }
.screen.active { display: block; }

/* ── CONTAINER ────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════════════════════════════
   LANDING PAGE
══════════════════════════════════════════════════════════ */

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 60%, var(--navy3) 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.045'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  position: relative;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.logo-info { display: flex; flex-direction: column; }
.logo-name  { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; line-height: 1.2; }
.logo-sub   { font-size: 11px; opacity: .55; font-weight: 300; letter-spacing: 2px; text-transform: uppercase; }

.btn-nav {
  background: transparent;
  border: 1.5px solid rgba(201,168,76,.5);
  color: var(--gold);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  letter-spacing: .4px;
  white-space: nowrap;
}

.btn-nav:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ── HERO BODY ────────────────────────────────────────────── */
.hero-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  z-index: 5;
}

.hero-content { max-width: 700px; text-align: center; }

.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,.13);
  border: 1px solid rgba(201,168,76,.3);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 99px;
  margin-bottom: 28px;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(40px, 7vw, 80px);
  color: var(--white);
  line-height: 1.05;
  font-weight: 900;
  margin-bottom: 20px;
}

.hero-title .gold { color: var(--gold); }
.gold { color: var(--gold); }

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,.62);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 44px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--navy);
  padding: 16px 36px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .4px;
  box-shadow: 0 8px 32px rgba(201,168,76,.35);
  transition: all .25s;
}

.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 14px 44px rgba(201,168,76,.5); }

/* ── SYSTEM PREVIEW (mockup) ──────────────────────────────── */
.system-preview {
  margin: 36px auto 32px;
  max-width: 780px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.10),
    0 24px 64px rgba(0,0,0,.55),
    0 4px 16px rgba(201,168,76,.15);
  background: #0e1e3a;
}

.preview-bar {
  background: #1a2a4a;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.preview-dots { display: flex; gap: 6px; flex-shrink: 0; }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c840; }

.preview-url {
  flex: 1;
  background: rgba(255,255,255,.07);
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 11px;
  color: rgba(255,255,255,.45);
  letter-spacing: .3px;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.preview-body { background: #f5f0e8; overflow: hidden; }

.preview-app-header {
  background: #0a1628;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-app-logo {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  color: #fff;
  font-weight: 700;
}

.preview-app-user {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.55);
  font-size: 11px;
}

.preview-avatar {
  width: 24px; height: 24px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: var(--navy);
}

.preview-tabs {
  background: #fff;
  padding: 8px 18px 0;
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #e5e7eb;
}

.preview-tab {
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 6px 6px 0 0;
  color: #6b7280;
  cursor: default;
  white-space: nowrap;
}

.preview-tab-active {
  background: #f5f0e8;
  color: #0a1628;
  font-weight: 600;
  border-bottom: 2px solid var(--gold);
}

.preview-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px 18px;
  background: #f5f0e8;
}

.preview-kpi {
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
}

.preview-kpi-label {
  font-size: 9px; color: #6b7280;
  text-transform: uppercase; letter-spacing: 1px;
  font-weight: 600; margin-bottom: 4px;
}

.preview-kpi-value {
  font-family: 'Playfair Display', serif;
  font-size: 14px; font-weight: 700; color: #0a1628;
}

.preview-table {
  margin: 0 18px 16px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.preview-thead {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 8px;
  background: #0a1628;
  padding: 7px 12px;
  font-size: 9px;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.preview-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 8px;
  padding: 9px 12px;
  font-size: 11px;
  color: #0a1628;
  align-items: center;
  border-bottom: 1px solid #f3f4f6;
  transition: background var(--transition);
}

.preview-row:last-child { border-bottom: none; }
.preview-row:hover { background: rgba(201,168,76,.04); }

.preview-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 600;
}

.preview-badge-blue { background: #dbeafe; color: #1d4ed8; }
.preview-badge-red  { background: #fee2e2; color: #dc2626; }

.preview-prog-wrap {
  display: block;
  background: #e5e7eb;
  border-radius: 99px;
  height: 5px;
  overflow: hidden;
}

.preview-prog {
  display: block;
  height: 100%;
  border-radius: 99px;
}

@media (max-width: 640px) {
  .preview-kpis { grid-template-columns: repeat(2, 1fr); }
  .preview-thead,
  .preview-row { grid-template-columns: 2fr 1fr 1fr; }
  .preview-thead span:nth-child(4),
  .preview-thead span:nth-child(5),
  .preview-row  span:nth-child(4),
  .preview-row  span:nth-child(5) { display: none; }
  .preview-url { display: none; }
}

@media (max-width: 420px) {
  .system-preview { border-radius: 10px; }
  .preview-kpis { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px 12px; }
  .preview-table { margin: 0 12px 12px; }
}

/* ── HERO STATS ───────────────────────────────────────────── */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 60px;
  padding-top: 44px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.stat { text-align: center; }
.stat-n { display: block; font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 700; color: var(--gold); }
.stat-l { display: block; font-size: 12px; color: rgba(255,255,255,.45); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 5px; }

/* ── SECTIONS ─────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-white  { background: var(--white); }
.section-cream  { background: var(--cream); }
.section-dark   { background: var(--navy); }

.section-label {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 600;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--gray);
  line-height: 1.7;
  max-width: 580px;
}

/* ── FEATURES GRID ────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 52px;
}

.feat-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--lightgray);
  transition: all var(--transition);
}

.feat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.feat-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.feat-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; font-family: 'DM Sans', sans-serif; }
.feat-desc  { font-size: 14px; color: var(--gray); line-height: 1.65; }

/* ── DEPOIMENTOS ──────────────────────────────────────────── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.testi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--lightgray);
  transition: box-shadow var(--transition);
}

.testi-card:hover { box-shadow: var(--shadow); }

.testi-stars { color: var(--gold); font-size: 16px; margin-bottom: 14px; }

.testi-text {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 18px;
  font-style: italic;
}

.testi-author { display: flex; align-items: center; gap: 12px; }

.testi-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.testi-name { font-weight: 600; font-size: 14px; }
.testi-role { font-size: 12px; color: var(--gray); }

/* ── RODAPÉ ───────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.5);
  padding: 52px 0 32px;
  text-align: center;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-tagline { font-size: 13px; margin-bottom: 20px; }

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.footer-links a {
  color: rgba(255,255,255,.45);
  font-size: 13px;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 11px; opacity: .35; }

/* ══════════════════════════════════════════════════════════
   LOGIN
══════════════════════════════════════════════════════════ */
.login-wrap {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy3) 60%, #1a0a00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: var(--white);
  border-radius: 24px;
  padding: 40px 40px 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 40px 100px rgba(0,0,0,.45);
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo-img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.18));
}

.login-title { font-size: 24px; color: var(--navy); margin-bottom: 4px; }

.login-sub {
  font-size: 13px;
  color: var(--gray2);
}

/* ── Auth Tabs ─────────────────────────────────────────────── */
.auth-tabs {
  display: flex;
  background: var(--cream);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  padding: 10px 0;
  border: none;
  border-radius: 9px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--gray);
  transition: all .2s ease;
  letter-spacing: .2px;
}

.auth-tab.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.auth-tab:hover:not(.active) {
  color: var(--navy);
  background: rgba(255,255,255,.5);
}

/* ── Auth Panels ───────────────────────────────────────────── */
.auth-panel { display: none; }
.auth-panel.active { display: block; }

/* ── Eye button ───────────────────────────────────────────── */
.input-eye-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-eye-wrap input {
  flex: 1;
  padding-right: 42px !important;
}

.eye-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  opacity: .6;
  transition: opacity .2s;
  line-height: 1;
}

.eye-btn:hover { opacity: 1; }

/* ── Success message ───────────────────────────────────────── */
.login-success {
  color: #166534;
  font-size: 13px;
  margin-bottom: 12px;
  text-align: center;
  background: #dcfce7;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #bbf7d0;
}

/* Select no login */
.login-field select {
  border: 1.5px solid var(--lightgray);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--navy);
  outline: none;
  transition: border-color var(--transition);
  background: var(--cream);
  width: 100%;
  cursor: pointer;
}

.login-field select:focus { border-color: var(--gold); background: var(--white); }

.login-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }

.login-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .6px;
  text-transform: uppercase;
}

.login-field input {
  border: 1.5px solid var(--lightgray);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--navy);
  outline: none;
  transition: border-color var(--transition);
  background: var(--cream);
}

.login-field input:focus { border-color: var(--gold); background: var(--white); }

.login-error {
  color: var(--red);
  font-size: 13px;
  margin-bottom: 12px;
  text-align: center;
  background: #fee2e2;
  padding: 10px;
  border-radius: var(--radius-sm);
}

.btn-login {
  width: 100%;
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  color: var(--white);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  margin-top: 8px;
  letter-spacing: .3px;
}

.btn-login:hover { opacity: .9; transform: translateY(-2px); }

.login-demo {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--gray2);
}

.login-back {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
}

.login-back a { color: var(--gray); transition: color var(--transition); }
.login-back a:hover { color: var(--navy); }

/* ══════════════════════════════════════════════════════════
   APP — ESTRUTURA
══════════════════════════════════════════════════════════ */
.app-header {
  background: var(--navy);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(10,22,40,.25);
}

.app-logo {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  color: var(--white);
  font-weight: 700;
}

.app-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.65);
  font-size: 13px;
  cursor: pointer;
  transition: color var(--transition);
}

.app-user:hover { color: var(--gold); }

.app-avatar {
  width: 34px;
  height: 34px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--navy);
  font-size: 13px;
  flex-shrink: 0;
}

/* ── TABS ─────────────────────────────────────────────────── */
.tabs-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--lightgray);
  padding: 12px 24px 0;
  position: sticky;
  top: 57px;
  z-index: 90;
}

.tabs {
  display: flex;
  gap: 4px;
  max-width: 1100px;
  margin: 0 auto;
}

.tab {
  flex: 1;
  max-width: 220px;
  padding: 10px 16px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  transition: all var(--transition);
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  border-bottom: 3px solid transparent;
}

.tab:hover  { color: var(--navy); background: var(--cream); }
.tab.active { color: var(--navy); background: var(--cream); border-bottom-color: var(--gold); font-weight: 600; }

/* ── PANELS ───────────────────────────────────────────────── */
.panel { display: none; max-width: 1100px; margin: 0 auto; padding: 24px; }
.panel.active { display: block; }

/* ── KPI ──────────────────────────────────────────────────── */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  border: 1px solid var(--lightgray);
  transition: box-shadow var(--transition);
}

.kpi:hover { box-shadow: var(--shadow-sm); }

.kpi-label {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}

.kpi-value {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.kpi-value.green { color: var(--green); }
.kpi-value.red   { color: var(--red); }
.kpi-value.gold  { color: var(--gold); }

/* ── TOOLBAR ──────────────────────────────────────────────── */
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.search-bar {
  position: relative;
  flex: 1;
  max-width: 340px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
}

.search-bar input {
  border: 1.5px solid var(--lightgray);
  border-radius: var(--radius-sm);
  padding: 10px 14px 10px 38px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: border-color var(--transition);
  background: var(--white);
}

.search-bar input:focus { border-color: var(--gold); }

/* ── TABLE ────────────────────────────────────────────────── */
.tbl-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--lightgray);
  background: var(--white);
}

table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 600px; }

thead th {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 13px 16px;
  text-align: left;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}

tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--lightgray);
  color: var(--navy);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--transition); }
tbody tr:hover td { background: rgba(201,168,76,.05); }

.cell-name  { font-weight: 600; }
.cell-small { font-size: 11px; color: var(--gray); display: block; }

/* ── BADGE ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .4px;
  white-space: nowrap;
}

.badge-green  { background: #dcfce7; color: var(--green); }
.badge-red    { background: #fee2e2; color: var(--red); }
.badge-yellow { background: #fef9c3; color: #a16207; }
.badge-blue   { background: #dbeafe; color: var(--blue); }

/* ── PROGRESS BAR ─────────────────────────────────────────── */
.progress-wrap { min-width: 100px; }
.progress-pct  { font-size: 11px; color: var(--gray); margin-bottom: 4px; }
.progress-bar  { background: var(--lightgray); border-radius: 99px; height: 6px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; transition: width .5s ease; }
.progress-fill.green { background: var(--green); }
.progress-fill.gold  { background: var(--gold); }

/* ── ACTIONS ──────────────────────────────────────────────── */
.actions { display: flex; gap: 6px; flex-wrap: nowrap; }

/* ── EMPTY STATE ──────────────────────────────────────────── */
.empty {
  text-align: center;
  padding: 56px 24px;
  color: var(--gray);
}

.empty-icon { font-size: 48px; margin-bottom: 14px; }
.empty-title { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.empty-sub   { font-size: 14px; }

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  letter-spacing: .3px;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  color: var(--white);
}
.btn-primary:hover { opacity: .9; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--navy);
}
.btn-gold:hover { opacity: .9; }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--lightgray);
  color: var(--navy);
}
.btn-outline:hover { border-color: var(--navy); }

.btn-success { background: var(--green); color: var(--white); }
.btn-success:hover { opacity: .88; }

.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { opacity: .88; }

.btn-sm { padding: 6px 13px; font-size: 12px; }

/* ══════════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,.72);
  backdrop-filter: blur(5px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.32);
  animation: slideUp .28s ease both;
}

.modal-lg { max-width: 780px; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-head {
  padding: 22px 28px;
  border-bottom: 1px solid var(--lightgray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 2;
  border-radius: 16px 16px 0 0;
}

.modal-head h3 { font-size: 20px; color: var(--navy); }

.modal-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--gray);
  padding: 4px 9px;
  border-radius: 6px;
  transition: background var(--transition);
}

.modal-close:hover { background: var(--lightgray); }

.modal-body { padding: 28px; }

.modal-footer {
  padding: 18px 28px;
  border-top: 1px solid var(--lightgray);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── FORM ─────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: span 2; }

.field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .8px;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  border: 1.5px solid var(--lightgray);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--navy);
  background: var(--cream);
  transition: all var(--transition);
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  background: var(--white);
}

.field textarea { resize: vertical; min-height: 80px; }

/* ── PARCELAS ─────────────────────────────────────────────── */
.parcelas-section { margin-top: 28px; }

.form-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.parcela-item {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 38px;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  padding: 14px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border: 1px solid var(--lightgray);
}

.parcela-num {
  font-size: 11px;
  color: var(--gray);
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.btn-parcela-del {
  background: none;
  border: 1.5px solid var(--lightgray);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  transition: all var(--transition);
  font-size: 15px;
  align-self: flex-end;
  flex-shrink: 0;
}

.btn-parcela-del:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* ── DETAIL MODAL ─────────────────────────────────────────── */
.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 22px;
}

.detail-info-item {}
.detail-info-label { font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.detail-info-value { font-weight: 600; margin-top: 3px; font-size: 14px; }

.detail-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.detail-kpi {
  background: var(--white);
  border: 1px solid var(--lightgray);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.detail-kpi-label { font-size: 10px; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 4px; }
.detail-kpi-value { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--navy); }
.detail-kpi-value.green { color: var(--green); }
.detail-kpi-value.red   { color: var(--red); }
.detail-kpi-value.gold  { color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   WHATSAPP BUTTON
══════════════════════════════════════════════════════════ */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  z-index: 999;
  transition: all .25s;
  text-decoration: none;
}

.whatsapp-btn:hover { transform: scale(1.12); box-shadow: 0 6px 28px rgba(37,211,102,.6); }

/* ══════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up   { animation: fadeUp .65s ease both; }
.fade-up-2 { animation: fadeUp .65s .15s ease both; }
.fade-up-3 { animation: fadeUp .65s .30s ease both; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVO
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }

  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: span 1; }

  .parcela-item { grid-template-columns: 1fr 1fr; }
  .btn-parcela-del { grid-column: span 2; width: 100%; height: 36px; }

  .detail-info-grid { grid-template-columns: 1fr 1fr; }

  .tabs { overflow-x: auto; }
  .tab { font-size: 13px; padding: 8px 12px; white-space: nowrap; }

  .login-card { padding: 32px 22px; }

  .modal { border-radius: 12px; }
  .modal-footer { justify-content: stretch; }
  .modal-footer .btn { flex: 1; justify-content: center; }

  .kpi-row { grid-template-columns: repeat(2, 1fr); }

  .toolbar { flex-direction: column; align-items: stretch; }
  .search-bar { max-width: 100%; }

  .section { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 16px; }
  .stat-n { font-size: 28px; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .detail-info-grid { grid-template-columns: 1fr; }
  .detail-kpi-row { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════════
   POLÍTICA DE PRIVACIDADE
══════════════════════════════════════════════════════════ */

/* Card destaque (hero) */
.privacy-hero-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 28px;
  color: var(--white);
}

.privacy-hero-icon {
  font-size: 38px;
  flex-shrink: 0;
  margin-top: 2px;
  filter: drop-shadow(0 2px 8px rgba(201,168,76,.5));
}

.privacy-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 8px;
}

.privacy-hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
}

.privacy-hero-sub strong { color: var(--gold2); }

/* Grid de cards */
.privacy-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.privacy-card {
  background: var(--cream);
  border: 1px solid var(--lightgray);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.privacy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--gold2));
  border-radius: 3px 0 0 3px;
  opacity: 0;
  transition: opacity var(--transition);
}

.privacy-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.privacy-card:hover::before { opacity: 1; }

.privacy-card-icon {
  font-size: 26px;
  margin-bottom: 12px;
  display: block;
}

.privacy-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.privacy-card-text {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
}

.privacy-card-text strong { color: var(--navy); font-weight: 600; }
.privacy-card-text em { font-style: normal; color: var(--blue); font-weight: 500; }

/* Bloco de aviso */
.privacy-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fef9c3;
  border: 1px solid #fde047;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 13px;
  color: #713f12;
  line-height: 1.65;
  margin-bottom: 20px;
}

.privacy-notice-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* Rodapé do modal */
.privacy-footer-text {
  text-align: center;
  font-size: 12px;
  color: var(--gray2);
  padding-top: 4px;
}

/* Responsivo */
@media (max-width: 600px) {
  .privacy-hero-card { flex-direction: column; gap: 12px; padding: 20px; }
  .privacy-cards-grid { grid-template-columns: 1fr; }
}
/* ══════════════════════════════════════════════════════════
   MÓDULO: GESTÃO DE EQUIPE
══════════════════════════════════════════════════════════ */

/* ── KPIs da equipe ───────────────────────────────────────── */
.equipe-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 20px 24px 0;
  margin-bottom: 4px;
}

.equipe-kpi {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--lightgray);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: box-shadow var(--transition);
}

.equipe-kpi:hover { box-shadow: var(--shadow-sm); }

.equipe-kpi-icon {
  font-size: 26px;
  flex-shrink: 0;
  line-height: 1;
}

.equipe-kpi-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  font-weight: 600;
  margin-bottom: 3px;
}

.equipe-kpi-value {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

/* ── Célula de usuário ────────────────────────────────────── */
.equipe-user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.equipe-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy3));
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: .5px;
  font-family: 'Playfair Display', serif;
}

.equipe-user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}

.equipe-user-oab {
  font-size: 11px;
  color: var(--gray);
  margin-top: 2px;
}

/* ── Login code ───────────────────────────────────────────── */
.login-code {
  background: var(--cream);
  border: 1px solid var(--lightgray);
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 12px;
  color: var(--navy);
  font-family: monospace;
  letter-spacing: .5px;
}

/* ── Badges de perfil ─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-admin      { background: #ede9fe; color: #6d28d9; }
.badge-advogado   { background: #dbeafe; color: #1d4ed8; }
.badge-assistente { background: #dcfce7; color: #15803d; }
.badge-estagiario { background: #fef9c3; color: #92400e; }
.badge-green      { background: #dcfce7; color: #15803d; }
.badge-gray       { background: #f3f4f6; color: #6b7280; }

/* ── Botões de ação ───────────────────────────────────────── */
.acoes-cell { white-space: nowrap; }

.btn-icon {
  background: none;
  border: 1.5px solid var(--lightgray);
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon-edit:hover { background: #dbeafe; border-color: #93c5fd; }
.btn-icon-del:hover  { background: #fee2e2; border-color: #fca5a5; }

/* ── Modal usuário: avatar preview ───────────────────────── */
.usuario-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 22px;
}

.usuario-avatar-preview {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Playfair Display', serif;
  box-shadow: 0 4px 14px rgba(201,168,76,.4);
}

.usuario-avatar-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.usuario-avatar-sub {
  font-size: 12px;
  color: rgba(255,255,255,.6);
}

/* ── Input password com toggle ────────────────────────────── */
.input-password-wrap {
  position: relative;
  display: flex;
}

.input-password-wrap input {
  flex: 1;
  padding-right: 44px !important;
}

.btn-toggle-pass {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 42px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: color var(--transition);
}

.btn-toggle-pass:hover { color: var(--navy); }

/* ── Tab Equipe destaque ──────────────────────────────────── */
.tab-equipe {
  margin-left: auto;
  border-left: 1px solid var(--lightgray);
  padding-left: 18px !important;
}

/* ── Aviso restrito ───────────────────────────────────────── */
.equipe-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 24px;
  background: #fef9c3;
  border: 1px solid #fde047;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13px;
  color: #713f12;
}

/* ── Responsivo ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .equipe-kpi-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .equipe-kpi-row { grid-template-columns: 1fr 1fr; padding: 14px 16px 0; gap: 10px; }
  .equipe-kpi { padding: 12px 14px; gap: 10px; }
  .equipe-kpi-value { font-size: 22px; }
  .usuario-avatar-wrap { flex-direction: column; text-align: center; }
  .tab-equipe { margin-left: 0; border-left: none; padding-left: 12px !important; }
}
