/* =============================================
   PJzen™ — Sistema de Indicação
   Custom Stylesheet v1.0
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* === VARIÁVEIS === */
:root {
  --pj-primary:       #4B5563;
  --pj-primary-dark:  #374151;
  --pj-primary-mid:   #9CA3AF;
  --pj-primary-light: #F3F4F6;
  --pj-primary-xlight:#F9FAFB;

  --pj-accent:        #3B82F6;
  --pj-accent-dark:   #2563EB;

  --pj-bg:            #F8F9FA;
  --pj-surface:       #FFFFFF;
  --pj-border:        #E5E7EB;
  --pj-border-light:  #F3F4F6;

  --pj-text:          #1F2937;
  --pj-text-muted:    #6B7280;
  --pj-text-light:    #9CA3AF;

  --pj-success:       #22C55E;
  --pj-warning:       #F59E0B;
  --pj-danger:        #EF4444;
  --pj-info:          #3B82F6;

  --pj-radius-sm:     8px;
  --pj-radius:        12px;
  --pj-radius-lg:     16px;
  --pj-radius-xl:     24px;

  --pj-shadow-sm:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --pj-shadow:        0 4px 16px rgba(0,0,0,.08);
  --pj-shadow-lg:     0 8px 32px rgba(0,0,0,.10);

  --pj-transition:    all .2s ease;
}

/* === BASE === */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--pj-bg);
  color: var(--pj-text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--pj-text);
}

a { color: var(--pj-primary); text-decoration: none; }
a:hover { color: var(--pj-primary-dark); }

/* === LOGO === */
.pj-logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--pj-text);
  line-height: 1;
}
.pj-logo .zen { color: var(--pj-primary); }
.pj-logo .tm {
  font-size: .55rem;
  vertical-align: super;
  font-weight: 500;
  color: var(--pj-text-muted);
}

/* === NAVBAR === */
.pj-navbar {
  background: transparent;
  padding: 0 0;
  height: 64px;
  align-items: flex-start;
  position: sticky;
  top: 0;
  z-index: 998;
  margin-left: 240px;
  transition: margin-left .2s ease;
}
body.pj-sb-collapsed .pj-navbar { margin-left: 64px; }

.pj-topbar-actions {
  background: var(--pj-surface);
  border-radius: 100px;
  padding: .55rem .85rem .55rem 1.5rem;
  border: 1px solid var(--pj-border);
  box-shadow: none;
  margin-top: 1rem;
  align-self: flex-start;
}

/* Desktop: logo no sidebar — esconde da topbar */
@media (min-width: 992px) {
  .pj-navbar .navbar-brand { display: none !important; }
}
.pj-navbar .navbar-nav .nav-link {
  color: var(--pj-text-muted);
  font-size: .9rem;
  font-weight: 500;
  padding: .5rem .75rem;
  border-radius: var(--pj-radius-sm);
  transition: var(--pj-transition);
}
.pj-navbar .navbar-nav .nav-link:hover,
.pj-navbar .navbar-nav .nav-link.active {
  color: var(--pj-primary);
  background: var(--pj-primary-xlight);
}
.pj-navbar .navbar-nav .nav-link.active {
  font-weight: 600;
}

/* === BOTÕES === */
.btn-pj {
  background: var(--pj-accent);
  color: #fff;
  border: none;
  border-radius: var(--pj-radius-sm);
  font-weight: 600;
  font-size: .9rem;
  padding: .6rem 1.4rem;
  transition: var(--pj-transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-pj:hover {
  background: var(--pj-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}
.btn-pj:active { transform: translateY(0); }

.btn-pj-outline {
  background: transparent;
  color: var(--pj-accent);
  border: 1.5px solid var(--pj-accent);
  border-radius: var(--pj-radius-sm);
  font-weight: 600;
  font-size: .9rem;
  padding: .55rem 1.35rem;
  transition: var(--pj-transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-pj-outline:hover {
  background: var(--pj-accent-dark);
  border-color: var(--pj-accent-dark);
  color: #fff;
}

.btn-pj-ghost {
  background: transparent;
  color: var(--pj-text-muted);
  border: none;
  border-radius: var(--pj-radius-sm);
  font-weight: 500;
  font-size: .9rem;
  padding: .55rem 1rem;
  transition: var(--pj-transition);
}
.btn-pj-ghost:hover {
  background: rgba(59,130,246,.08);
  color: var(--pj-accent);
}

.btn-pj-lg {
  padding: .85rem 2rem;
  font-size: 1rem;
  border-radius: var(--pj-radius);
}

/* === CARDS === */
.pj-card {
  background: var(--pj-surface);
  border-radius: var(--pj-radius-lg);
  padding: 1.5rem;
  transition: var(--pj-transition);
}

.pj-card-flat {
  background: var(--pj-surface);
  border-radius: var(--pj-radius-lg);
  padding: 1.5rem;
}

/* === STAT CARDS === */
.stat-card {
  background: var(--pj-surface);
  border-radius: var(--pj-radius-lg);
  padding: 1.25rem 1.5rem;
  transition: var(--pj-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--pj-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--pj-text);
}
.stat-card .stat-label {
  font-size: .8rem;
  color: var(--pj-text-muted);
  font-weight: 500;
  margin-top: .25rem;
}
.stat-card .stat-delta {
  font-size: .78rem;
  font-weight: 600;
}
.stat-compare {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: auto;
  padding-top: .6rem;
  border-top: 1px solid var(--pj-border-light);
  font-size: .75rem;
}
.stat-compare .compare-val {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .1rem;
}
.stat-compare .compare-val.up   { color: var(--pj-success); }
.stat-compare .compare-val.down { color: var(--pj-danger); }
.stat-compare .compare-ref {
  color: var(--pj-text-light);
  font-weight: 400;
}

/* === BADGES DE STATUS === */
.pj-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .76rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: 100px;
  line-height: 1;
}
.pj-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pj-badge-pending {
  background: #FEF3C7;
  color: #92400E;
}
.pj-badge-pending::before { background: #F59E0B; }

.pj-badge-contact {
  background: #DBEAFE;
  color: #1E40AF;
}
.pj-badge-contact::before { background: #3B82F6; }

.pj-badge-converted {
  background: #DCFCE7;
  color: #166534;
}
.pj-badge-converted::before { background: #22C55E; }

.pj-badge-lost {
  background: #F3F4F6;
  color: #6B7280;
}
.pj-badge-lost::before { background: #9CA3AF; }

.pj-badge-new {
  background: var(--pj-primary-light);
  color: var(--pj-primary);
}
.pj-badge-new::before { background: var(--pj-primary); }

.pj-badge-soon {
  background: #EFF6FF;
  color: #1D4ED8;
}
.pj-badge-soon::before { background: #3B82F6; }

.pj-badge-nf {
  background: #FEF3C7;
  color: #92400E;
}
.pj-badge-nf::before { background: #F59E0B; }

.pj-badge-paid {
  background: #DCFCE7;
  color: #166534;
}
.pj-badge-paid::before { background: #22C55E; }

.pj-badge-expired {
  background: #FEE2E2;
  color: #991B1B;
}
.pj-badge-expired::before { background: #EF4444; }

.pj-badge-noreturn {
  background: #FFF7ED;
  color: #9A3412;
}
.pj-badge-noreturn::before { background: #FB923C; }

.pj-badge-select { font-size: .78rem; font-weight: 600; padding: .25rem 1.6rem .25rem .6rem; border-radius: 999px; border: none; cursor: pointer; }

.pj-admin-badge { font-size: .68rem; font-weight: 700; letter-spacing: .034em; color: var(--pj-text-muted); background: #F5F5F5; padding: .2rem .55rem; border-radius: 999px; }

/* === DROPDOWN DE STATUS (badges coloridos em menu flutuante) === */
.pj-status-btn { border: none; cursor: pointer; }
.pj-status-btn i { font-size: .65rem; margin-left: .15rem; opacity: .7; }
.pj-status-menu { list-style: none; margin: 0; padding: .5rem; border-radius: var(--pj-radius); border: 1px solid var(--pj-border); box-shadow: var(--pj-shadow); min-width: 190px; }
.pj-status-menu li { list-style: none; margin-bottom: .3rem; display: block; }
.pj-status-menu li:last-child { margin-bottom: 0; }
.pj-status-option {
  display: flex !important;
  align-items: center;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100%;
  border: none;
  cursor: pointer;
  text-align: left;
}
.pj-status-option:hover { filter: brightness(.96); }
.pj-status-option.selected { box-shadow: 0 0 0 1.5px rgba(0,0,0,.12) inset; }

/* === ALERTA INFO === */
.pj-alert-info {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--pj-radius);
  padding: .9rem 1.1rem;
  font-size: .85rem;
  color: #1E40AF;
}
.pj-alert-info i { font-size: 1rem; flex-shrink: 0; margin-top: .05rem; }

/* === FORM CONTROLS === */
.pj-form-group { margin-bottom: 1.1rem; }

.pj-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--pj-text);
  margin-bottom: .4rem;
}
.pj-label .optional {
  font-weight: 400;
  color: var(--pj-text-light);
  margin-left: .25rem;
}

.pj-input {
  width: 100%;
  background: var(--pj-surface);
  border: 1.5px solid var(--pj-border);
  border-radius: var(--pj-radius-sm);
  padding: .65rem 1rem;
  font-size: .9rem;
  font-family: 'Inter', sans-serif;
  color: var(--pj-text);
  transition: var(--pj-transition);
  outline: none;
  appearance: none;
}
.pj-input::placeholder { color: var(--pj-text-light); }
.pj-input:focus {
  border-color: var(--pj-accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.14);
}
.pj-input:disabled {
  background: var(--pj-border-light);
  cursor: not-allowed;
}

.pj-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.pj-textarea { resize: vertical; min-height: 100px; }

.pj-input-icon-wrap { position: relative; }
.pj-input-icon-wrap .pj-input { padding-left: 2.5rem; }
.pj-input-icon-wrap .pj-input-icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pj-text-muted);
  font-size: .95rem;
  pointer-events: none;
}

/* === SIDEBAR === */
.pj-sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--pj-surface);
  height: 100vh;
  padding: 0 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  transition: width .2s ease, min-width .2s ease, padding .2s ease;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}

/* Sidebar — estado recolhido */
.pj-sidebar.collapsed {
  width: 64px;
  min-width: 64px;
  padding: 0 .35rem 1.5rem;
}
.pj-sidebar.collapsed .sidebar-section-label,
.pj-sidebar.collapsed .sidebar-link-text { display: none; }
.pj-sidebar.collapsed .sidebar-link {
  justify-content: center;
  padding: .6rem;
}

/* Botão toggle legado — escondido (substituído pelo logo row) */
.sidebar-toggle { display: none !important; }

/* === SIDEBAR LOGO ROW === */
.sidebar-logo-row {
  height: 64px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 .5rem 0 .85rem;
  margin: 0 -1rem .5rem;
  flex-shrink: 0;
}
.pj-sidebar.collapsed .sidebar-logo-row {
  padding: 0 .25rem;
  justify-content: center;
  margin: 0 -.35rem .5rem;
}

.sidebar-logo-full {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}
.pj-sidebar.collapsed .sidebar-logo-full { display: none; }

.sidebar-logo-icon-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  border-radius: var(--pj-radius-sm);
  transition: var(--pj-transition);
  flex-shrink: 0;
}
.pj-sidebar.collapsed .sidebar-logo-icon-btn { display: flex; }
.sidebar-logo-icon-btn:hover { background: var(--pj-border-light); }

/* Botão recolher (visível quando expandido) */
.sidebar-collapse-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--pj-radius-sm);
  background: transparent;
  border: 1.5px solid var(--pj-border);
  color: var(--pj-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .82rem;
  flex-shrink: 0;
  transition: var(--pj-transition);
}
.sidebar-collapse-btn:hover { background: var(--pj-border-light); color: var(--pj-text); border-color: var(--pj-text-muted); }
.pj-sidebar.collapsed .sidebar-collapse-btn { display: none; }

/* Tooltip "Abrir barra lateral" — injetado via JS */
.pj-sidebar-tooltip {
  position: fixed;
  z-index: 9999;
  background: #1F2937;
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
  padding: .4rem .9rem;
  border-radius: 100px;
  pointer-events: none;
  font-family: 'Inter', sans-serif;
  transition: opacity .15s ease;
}

.pj-sidebar .sidebar-section-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--pj-text-light);
  padding: .5rem .75rem .25rem;
  margin-top: .5rem;
}

.pj-sidebar .sidebar-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem .75rem;
  border-radius: var(--pj-radius-sm);
  color: var(--pj-text-muted);
  font-size: .88rem;
  font-weight: 500;
  transition: var(--pj-transition);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  text-decoration: none;
}
.pj-sidebar .sidebar-link:hover {
  background: var(--pj-primary-xlight);
  color: var(--pj-primary);
}
.pj-sidebar .sidebar-link.active {
  background: var(--pj-primary-light);
  color: var(--pj-primary);
  font-weight: 600;
}
.pj-sidebar .sidebar-link .sidebar-icon { font-size: 1rem; flex-shrink: 0; }

/* === AVATAR === */
.pj-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pj-primary-light);
  color: var(--pj-primary);
  font-weight: 700;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pj-avatar-lg {
  width: 52px;
  height: 52px;
  font-size: 1.1rem;
}

/* === LINK BOX (para compartilhar link) === */
.pj-link-box {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--pj-primary-xlight);
  border: 1.5px solid var(--pj-primary-light);
  border-radius: var(--pj-radius-sm);
  padding: .65rem 1rem;
}
.pj-link-box .link-text {
  flex: 1;
  font-size: .85rem;
  color: var(--pj-primary-dark);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === TABELA === */
.pj-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.pj-table thead th {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--pj-text-muted);
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--pj-border);
  background: transparent;
  white-space: nowrap;
}
.pj-table tbody tr {
  transition: var(--pj-transition);
}
.pj-table tbody tr:hover td { background: var(--pj-primary-xlight); }
.pj-table tbody td {
  padding: 1rem;
  border-bottom: 1px solid var(--pj-border-light);
  font-size: .88rem;
  color: var(--pj-text);
  vertical-align: middle;
}
.pj-table tbody tr:last-child td { border-bottom: none; }

/* === EMPTY STATE === */
.pj-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}
.pj-empty .empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--pj-primary-xlight);
  color: var(--pj-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.pj-empty h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pj-text);
  margin-bottom: .35rem;
}
.pj-empty p {
  font-size: .875rem;
  color: var(--pj-text-muted);
  max-width: 280px;
  margin: 0 auto .75rem;
}

/* === HERO (landing) === */
.pj-hero {
  background: var(--pj-surface);
  border-bottom: 1px solid var(--pj-border);
  padding: 5rem 0 4rem;
}
.pj-hero .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--pj-primary-light);
  color: var(--pj-primary);
  font-size: .78rem;
  font-weight: 700;
  padding: .35rem .85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.pj-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.5px;
  margin-bottom: 1rem;
}
.pj-hero h1 .highlight { color: var(--pj-primary); }
.pj-hero .hero-sub {
  font-size: 1.1rem;
  color: var(--pj-text-muted);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 2rem;
}

/* === STEPS === */
.step-card {
  background: var(--pj-surface);
  border: 1px solid var(--pj-border);
  border-radius: var(--pj-radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  position: relative;
}
.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pj-primary);
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.step-card h5 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.step-card p { font-size: .85rem; color: var(--pj-text-muted); margin: 0; }

/* === BENEFIT CARD === */
.benefit-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--pj-surface);
  border: 1px solid var(--pj-border);
  border-radius: var(--pj-radius);
}
.benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--pj-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: var(--pj-primary-light);
  color: var(--pj-primary);
}
.benefit-card h6 { font-size: .9rem; font-weight: 700; margin-bottom: .2rem; }
.benefit-card p { font-size: .82rem; color: var(--pj-text-muted); margin: 0; }

/* === AUTH (login) === */
.pj-auth-panel {
  background: var(--pj-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.pj-auth-panel::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.pj-auth-panel::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}

.pj-auth-form-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--pj-bg);
}

.auth-tab-btn {
  flex: 1;
  padding: .65rem;
  font-size: .88rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--pj-text-muted);
  border-radius: var(--pj-radius-sm);
  cursor: pointer;
  transition: var(--pj-transition);
}
.auth-tab-btn.active {
  background: var(--pj-surface);
  color: var(--pj-primary);
  box-shadow: var(--pj-shadow-sm);
}

/* === ALERT / TOAST === */
.pj-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  min-width: 280px;
  background: var(--pj-text);
  color: #fff;
  border-radius: var(--pj-radius);
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .88rem;
  font-weight: 500;
  box-shadow: var(--pj-shadow-lg);
  animation: toastIn .25s ease;
}
.pj-toast.success { background: var(--pj-primary); }
.pj-toast.warning { background: var(--pj-warning); color: #1A2E22; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === PROGRESS / STEPS TRACKER === */
.pj-progress-steps {
  display: flex;
  gap: 0;
  align-items: center;
  margin-bottom: 1.5rem;
}
.pj-progress-steps .ps-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--pj-text-muted);
}
.pj-progress-steps .ps-item.active { color: var(--pj-primary); }
.pj-progress-steps .ps-item .ps-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pj-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.pj-progress-steps .ps-item.active .ps-dot {
  background: var(--pj-primary);
  color: #fff;
}
.pj-progress-steps .ps-item.done .ps-dot {
  background: var(--pj-primary);
  color: #fff;
}
.pj-progress-steps .ps-line {
  flex: 1;
  height: 1px;
  background: var(--pj-border);
  margin: 0 .5rem;
}

/* === SECTION HEADER === */
.section-header {
  margin-bottom: 2.5rem;
  text-align: center;
}
.section-header .section-tag {
  display: inline-block;
  background: var(--pj-primary-light);
  color: var(--pj-primary);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .3rem .85rem;
  border-radius: 100px;
  margin-bottom: .85rem;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.3px;
}
.section-header p {
  font-size: .95rem;
  color: var(--pj-text-muted);
  max-width: 480px;
  margin: .5rem auto 0;
}

/* === DIVIDER === */
.pj-divider {
  border: none;
  border-top: 1px solid var(--pj-border);
  margin: 1.25rem 0;
}

/* === PAGE WRAPPER (dashboard) === */
.pj-layout {
  display: flex;
  min-height: calc(100vh - 64px);
  margin-left: 240px;
  transition: margin-left .2s ease;
}
body.pj-sb-collapsed .pj-layout { margin-left: 64px; }

.pj-main {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

/* === RESPONSIVE === */
@media (max-width: 991.98px) {
  .pj-sidebar { display: none; }
  .pj-navbar { margin-left: 0 !important; }
  .pj-layout { margin-left: 0 !important; }
  .pj-navbar .navbar-brand { display: flex !important; }
  .pj-auth-panel { display: none; }
  .pj-hero h1 { font-size: 2rem; }
}

@media (max-width: 767.98px) {
  .pj-main { padding: 1.25rem; }
  .pj-hero { padding: 3rem 0 2.5rem; }
  .pj-hero h1 { font-size: 1.75rem; }
}

/* === MODAL DE NOTIFICAÇÕES === */
.pj-notif-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.pj-notif-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.pj-notif-modal-box {
  background: var(--pj-surface);
  border-radius: var(--pj-radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: min(90vh, 640px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--pj-shadow-lg);
  transform: translateY(14px);
  transition: transform .2s ease;
}
.pj-notif-overlay.active .pj-notif-modal-box {
  transform: translateY(0);
}

.pj-notif-modal-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--pj-border);
  flex-shrink: 0;
}
.pj-notif-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--pj-text);
  font-size: 1.1rem;
  padding: .2rem;
  border-radius: var(--pj-radius-sm);
  line-height: 1;
  display: flex;
  align-items: center;
  transition: var(--pj-transition);
}
.pj-notif-back-btn:hover { background: var(--pj-border-light); }
.pj-notif-modal-title {
  flex: 1;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.pj-notif-mark-all {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--pj-accent);
  font-size: .82rem;
  font-weight: 600;
  padding: 0;
  white-space: nowrap;
  font-family: inherit;
  transition: var(--pj-transition);
}
.pj-notif-mark-all:hover { color: var(--pj-accent-dark); }

.pj-notif-filters {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--pj-border);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.pj-notif-tabs { display: flex; gap: .3rem; }
.pj-notif-tab {
  background: none;
  border: 1.5px solid var(--pj-border);
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--pj-text-muted);
  padding: .3rem .9rem;
  cursor: pointer;
  transition: var(--pj-transition);
  font-family: inherit;
}
.pj-notif-tab.active {
  background: var(--pj-text);
  border-color: var(--pj-text);
  color: #fff;
  font-weight: 600;
}
.pj-notif-tab:hover:not(.active) {
  border-color: var(--pj-text-muted);
  color: var(--pj-text);
}
.pj-notif-search-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 1.5px solid var(--pj-border);
  border-radius: var(--pj-radius-sm);
  padding: .3rem .75rem;
  flex: 1;
  min-width: 150px;
  transition: var(--pj-transition);
}
.pj-notif-search-wrap:focus-within { border-color: var(--pj-accent); }
.pj-notif-search-icon { color: var(--pj-text-muted); font-size: .9rem; flex-shrink: 0; }
.pj-notif-search {
  border: none;
  outline: none;
  font-size: .82rem;
  color: var(--pj-text);
  width: 100%;
  background: transparent;
  font-family: inherit;
}
.pj-notif-search::placeholder { color: var(--pj-text-light); }

.pj-notif-list { flex: 1; overflow-y: auto; }

.pj-notif-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .9rem 1.25rem;
  cursor: pointer;
  transition: background .15s;
  border-bottom: 1px solid var(--pj-border-light);
  position: relative;
}
.pj-notif-item:last-child { border-bottom: none; }
.pj-notif-item:hover { background: var(--pj-primary-xlight); }
.pj-notif-item.unread { background: #F0F7FF; }
.pj-notif-item.unread:hover { background: #E5F0FF; }
.pj-notif-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pj-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .95rem;
}
.pj-notif-item-body { flex: 1; min-width: 0; }
.pj-notif-item-title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--pj-text);
  line-height: 1.3;
  margin-bottom: .2rem;
}
.pj-notif-item-text {
  font-size: .8rem;
  color: var(--pj-text-muted);
  line-height: 1.45;
  margin-bottom: .25rem;
}
.pj-notif-item-time { font-size: .72rem; color: var(--pj-text-light); }
.pj-notif-unread-dot {
  width: 8px;
  height: 8px;
  background: var(--pj-accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: .5rem;
}

.pj-notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem;
  color: var(--pj-text-muted);
  text-align: center;
}
.pj-notif-empty i { font-size: 2.5rem; margin-bottom: .75rem; opacity: .3; }
.pj-notif-empty p { font-size: .875rem; margin: 0; }

.pj-notif-modal-footer {
  padding: .85rem 1.25rem;
  border-top: 1px solid var(--pj-border);
  flex-shrink: 0;
}
.pj-notif-load-more {
  width: 100%;
  background: none;
  border: 1.5px solid var(--pj-border);
  border-radius: 100px;
  padding: .55rem 1rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--pj-text);
  cursor: pointer;
  transition: var(--pj-transition);
  font-family: inherit;
}
.pj-notif-load-more:hover {
  border-color: var(--pj-text-muted);
  background: var(--pj-primary-xlight);
}

@media (max-width: 575.98px) {
  .pj-notif-modal-box { max-height: 95vh; border-radius: var(--pj-radius) var(--pj-radius) 0 0; }
  .pj-notif-overlay { align-items: flex-end; padding: 0; }
  .pj-notif-overlay.active .pj-notif-modal-box { transform: translateY(0); }
  .pj-notif-overlay:not(.active) .pj-notif-modal-box { transform: translateY(100%); }
  .pj-notif-filters { gap: .6rem; }
  .pj-notif-search-wrap { min-width: 100%; }
}

/* === UTILIDADES === */
.text-pj         { color: var(--pj-primary) !important; }
.bg-pj-light     { background: var(--pj-primary-light) !important; }
.bg-pj-xlight    { background: var(--pj-primary-xlight) !important; }
.text-muted-pj   { color: var(--pj-text-muted) !important; }
.fw-800          { font-weight: 800 !important; }
.border-pj       { border-color: var(--pj-border) !important; }
.rounded-pj      { border-radius: var(--pj-radius) !important; }
.rounded-pj-lg   { border-radius: var(--pj-radius-lg) !important; }
.shadow-pj       { box-shadow: var(--pj-shadow) !important; }
