@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   DEVSPROG SYSTEM - Base Premium Multi-tenant
   Estrutura visual remodelada para Admin System
========================================================= */ :root {
  color-scheme: dark;
  --bg: #06120f;
  --bg-soft: #0a1b16;
  --surface: rgba(12, 28, 24, .74);
  --surface-strong: rgba(15, 35, 30, .92);
  --surface-hover: rgba(24, 52, 45, .78);
  --border: rgba(212, 165, 116, .20);
  --border-strong: rgba(52, 211, 153, .28);
  --text: #f7fbf9;
  --muted: #9db2aa;
  --muted-2: #6f857d;
  --primary: #059669;
  --primary-light: #34d399;
  --accent: #d4a574;
  --accent-light: #e8c9a0;
  --danger: #f87171;
  --warning: #fbbf24;
  --info: #60a5fa;
  --success: #34d399;
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, .22);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --sidebar-width: 296px;
  --topbar-height: 88px;
  --transition: 220ms ease;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef7f2;
  --bg-soft: #f8fcfa;
  --surface: rgba(255, 255, 255, .78);
  --surface-strong: rgba(255, 255, 255, .94);
  --surface-hover: rgba(238, 247, 242, .96);
  --border: rgba(14, 70, 52, .12);
  --border-strong: rgba(5, 150, 105, .25);
  --text: #0b1d17;
  --muted: #52665f;
  --muted-2: #75877f;
  --shadow: 0 24px 70px rgba(15, 45, 33, .14);
  --shadow-soft: 0 14px 40px rgba(15, 45, 33, .10);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(52, 211, 153, .16), transparent 34%), var(--bg);
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button, input, select {
  font: inherit;
}
button {
  cursor: pointer;
}
.background, .orb {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
}
.background {
  background:
    linear-gradient(135deg, rgba(5, 150, 105, .11), transparent 36%), radial-gradient(circle at 85% 10%, rgba(212, 165, 116, .16), transparent 30%), linear-gradient(180deg, transparent, rgba(0, 0, 0, .18));
}
.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .76), transparent 90%);
}
.orb {
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(36px);
  opacity: .28;
  z-index: -2;
  animation: floatOrb 14s ease-in-out infinite;
}
.orb-1 {
  left: -90px;
  top: 80px;
  background: var(--primary-light);
}
.orb-2 {
  right: -120px;
  top: 260px;
  background: var(--accent);
  animation-delay: -4s;
}
.orb-3 {
  left: 45%;
  bottom: -160px;
  background: var(--info);
  animation-delay: -8s;
}
@keyframes floatOrb {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(24px, -28px, 0) scale(1.08);
  }
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 18px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  transition: top var(--transition);
}
.skip-link:focus {
  top: 18px;
}
.dashboard {
  min-height: 100vh;
  display: flex;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(180deg, rgba(10, 27, 22, .88), rgba(6, 18, 15, .76));
  border-right: 1px solid var(--border);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  z-index: 100;
  overflow-y: auto;
  transition: transform var(--transition), opacity var(--transition);
}
:root[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, .78);
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-weight: 800;
  letter-spacing: -.05em;
  color: #052016;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  box-shadow: 0 16px 30px rgba(52, 211, 153, .22);
}
.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-copy strong {
  font-size: 1rem;
  letter-spacing: .05em;
}
.brand-copy small {
  color: var(--muted);
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .16em;
}
.icon-button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.icon-button:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}
.icon-button svg {
  width: 20px;
  height: 20px;
}
.sidebar-close {
  display: none;
  font-size: 24px;
  line-height: 1;
}
.system-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-light);
  background: rgba(212, 165, 116, .09);
  border: 1px solid rgba(212, 165, 116, .18);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: .82rem;
}
.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--primary-light);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .56);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}
.nav-menu, .nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.nav-section-title {
  display: block;
  margin: 0 0 8px 12px;
  color: var(--muted-2);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 700;
}
.nav-item {
  margin: 3px 0;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 16px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(52, 211, 153, .16), rgba(212, 165, 116, .08));
  border-color: var(--border-strong);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}
.nav-link.active::before {
  content: "";
  width: 4px;
  height: 24px;
  border-radius: 99px;
  background: var(--primary-light);
  position: absolute;
  left: -2px;
}
.nav-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.nav-badge {
  margin-left: auto;
  font-size: .68rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(52, 211, 153, .16);
  color: var(--primary-light);
  border: 1px solid rgba(52, 211, 153, .2);
}
.sidebar-footer {
  margin-top: auto;
}
.tenant-card-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.tenant-avatar {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(52, 211, 153, .14);
  color: var(--primary-light);
  font-weight: 800;
}
.tenant-card-mini div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.tenant-card-mini small {
  color: var(--muted);
}
.main-content {
  width: 100%;
  min-width: 0;
  margin-left: var(--sidebar-width);
  padding: 24px clamp(18px, 3vw, 34px) 42px;
}
.topbar {
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.mobile-menu-toggle {
  display: none;
}
.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
  margin: 2px 0;
}
.eyebrow, .section-kicker {
  margin: 0;
  color: var(--primary-light);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 800;
}
.page-title {
  margin: 2px 0 0;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  letter-spacing: -.045em;
  line-height: 1;
}
.page-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .96rem;
}
.search-box {
  width: min(360px, 32vw);
  min-width: 210px;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(16px);
}
.search-icon {
  width: 18px;
  color: var(--muted);
}
.search-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
}
.search-input::placeholder {
  color: var(--muted-2);
}
.environment-badge {
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, .2);
  background: rgba(52, 211, 153, .1);
  color: var(--primary-light);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}
.notification-button {
  position: relative;
}
.notification-dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--danger);
  border: 2px solid var(--surface-strong);
}
.icon-moon {
  display: none;
}
:root[data-theme="light"] .icon-sun {
  display: none;
}
:root[data-theme="light"] .icon-moon {
  display: block;
}
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
  margin-bottom: 22px;

}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr);
  gap: 22px;
  margin-bottom: 22px;
}
.dashboard-hero-grid {
  grid-template-columns: minmax(0, 1fr);
}
.hero-card {
  min-height: 420px;
  padding: clamp(24px, 4vw, 38px);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .8fr);
  gap: 26px;
  overflow: hidden;
  position: relative;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(52, 211, 153, .16), transparent 42%, rgba(212, 165, 116, .14));
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
}
.status-chip, .health-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  margin: 10px 0px 10px 0px;
}
.status-chip.success {
  color: var(--success);
  border-color: rgba(52, 211, 153, .24);
  background: rgba(52, 211, 153, .1);
}
.status-chip.warning {
  color: var(--warning);
  border-color: rgba(251, 191, 36, .24);
  background: rgba(251, 191, 36, .1);
}
.status-chip.info {
  color: var(--info);
  border-color: rgba(96, 165, 250, .24);
  background: rgba(96, 165, 250, .1);
}
.status-chip.muted {
  color: var(--muted);
  background: rgba(148, 163, 184, .1);
}
.hero-card h2 {
  max-width: 780px;
  margin: 18px 0 14px;
  font-size: clamp(2rem, 4.6vw, 4.35rem);
  line-height: .93;
  letter-spacing: -.07em;
}
.hero-card p {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}
.hero-actions, .actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: rgba(52, 211, 153, .45);
  color: #04140f;
  box-shadow: 0 16px 34px rgba(5, 150, 105, .28);
}
.btn-ghost {
  background: rgba(255, 255, 255, .04);
}
.btn-ghost2 {
  background: rgba(255, 255, 255, .04);
  margin-top: 7px;
}
.btn-mini {
  padding: 8px 12px;
  font-size: .8rem;
  margin-top: 10px;

}
.btn-full {
  width: 100%;
}
.hero-visual {
  position: relative;
  min-height: 320px;
  align-self: center;
  display: grid;
  place-items: center;
}
.system-core {
  width: 154px;
  height: 154px;
  border-radius: 44px;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, rgba(52, 211, 153, .95), rgba(212, 165, 116, .9));
  color: #06120f;
  box-shadow: 0 30px 80px rgba(52, 211, 153, .24);
  z-index: 2;
}
.system-core span {
  display: block;
  font-size: .7rem;
  letter-spacing: .2em;
  margin-top: 4px;
}
.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  animation: spin 22s linear infinite;
}
.orbit-a {
  width: 320px;
  height: 220px;
  transform: rotate(-16deg);
}
.orbit-b {
  width: 380px;
  height: 270px;
  transform: rotate(24deg);
  animation-duration: 30s;
}
@keyframes spin {
  to {
    rotate: 360deg;
  }
}
.node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% + var(--node-x, 0px)), calc(-50% + var(--node-y, 0px)));
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
  z-index: 3;
}
.node-a {
  --node-x: 0px;
  --node-y: -135px;
}
.node-b {
  --node-x: 160px;
  --node-y: 0px;
}
.node-c {
  --node-x: -90px;
  --node-y: 135px;
}
.node-d {
  --node-x: -160px;
  --node-y: 10px;
}
.architecture-card {
  padding: 24px;
}
.architecture-card h3 {
  margin: 8px 0 22px;
  font-size: 1.7rem;
  letter-spacing: -.04em;
}
.architecture-flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.architecture-flow div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
}
.architecture-flow strong, .architecture-flow small {
  display: block;
}
.architecture-flow small {
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.45;
}
.architecture-flow > span {
  color: var(--primary-light);
  font-size: 1.4rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.stats-grid.compact {
  margin-top: 0;
}
.stat-card {
  padding: 20px;
}
.stat-card-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.stat-label {
  display: block;
  color: var(--muted);
  font-size: .86rem;
  margin-bottom: 8px;
}
.stat-value {
  display: block;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -.055em;
  line-height: 1;
}
.stat-change {
  display: inline-flex;
  margin-top: 10px;
  font-weight: 800;
  font-size: .82rem;
}
.stat-change.positive, .stat-icon.positive {
  color: var(--success);
}
.stat-change.warning, .stat-icon.warning {
  color: var(--warning);
}
.stat-change.info, .stat-icon.info {
  color: var(--info);
}
.stat-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  font-weight: 900;
}
.stat-desc {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}
.content-grid {
  display: grid;
  gap: 22px;
  margin-bottom: 22px;
}
.two-columns {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.section-header h3 {
  margin: 4px 0 0;
  font-size: 1.35rem;
  letter-spacing: -.035em;
}
.link-arrow {
  color: var(--primary-light);
  font-weight: 800;
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  padding: 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--border);
}
.timeline-item > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, .05);
  font-weight: 900;
}
.timeline-item strong, .timeline-item small {
  display: block;
}
.timeline-item small {
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.45;
}
.timeline-item.completed > span, .timeline-item.active > span {
  background: rgba(52, 211, 153, .16);
  color: var(--primary-light);
}
.timeline-item.active {
  border-color: var(--border-strong);
}
.system-chart {
  width: 100%;
  display: block;
}
.health-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.health-grid div {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
}
.health-grid strong, .health-grid small {
  display: block;
}
.health-grid small {
  color: var(--muted);
}
.module-preview {
  padding: 22px;
}
.module-preview span {
  color: var(--accent-light);
  font-weight: 900;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.module-preview h3 {
  margin: 12px 0 8px;
  font-size: 1.25rem;
}
.module-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.page-actions {
  padding: 24px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.page-actions h2 {
  margin: 4px 0 6px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -.05em;
}
.page-actions p {
  margin: 0;
  color: var(--muted);
  max-width: 800px;
  line-height: 1.6;
}
.tenant-grid, .niche-grid, .role-grid, .pricing-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}
.tenant-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.niche-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.role-grid, .pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tenant-card, .niche-card, .role-card, .pricing-card {
  padding: 20px;
  transition: transform var(--transition), border-color var(--transition);
}
.tenant-card:hover, .niche-card:hover, .role-card:hover, .pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}
.tenant-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.tenant-logo, .niche-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(52, 211, 153, .2), rgba(212, 165, 116, .14));
  color: var(--primary-light);
  border: 1px solid var(--border-strong);
}
.tenant-card h3, .niche-card h3, .role-card h3, .pricing-card h3 {
  margin: 0 0 6px;
  letter-spacing: -.03em;
}
.tenant-card p, .niche-card p, .role-card p, .pricing-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.tenant-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: .84rem;
  margin: 16px 0;
}
.tenant-modules {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.tenant-modules span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: var(--muted);
  font-size: .75rem;
  border: 1px solid var(--border);
}
.niche-card small {
  color: var(--primary-light);
  display: block;
  margin: 12px 0 16px;
  line-height: 1.4;
}
.table-card {
  padding: 22px;
  margin-bottom: 22px;
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.data-table th {
  color: var(--muted-2);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  text-align: left;
  padding: 0 12px 12px;
}
.data-table td {
  padding: 15px 12px;
  border-top: 1px solid var(--border);
  vertical-align: middle;
  color: var(--muted);
}
.data-table td strong {
  color: var(--text);
  display: block;
}
.data-table td small {
  color: var(--muted-2);
  display: block;
  margin-top: 3px;
}
.filter-field {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .9rem;
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}
.auth-shell.compact-auth-shell {
  width: 100%;
  max-width: 640px;
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
}
.password-card {
  width: 100%;
}

.filter-field select, .form-input {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--text);
  padding: 12px 13px;
  outline: none;
  width: 100%;
  margin-top: 7px;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-list.inline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.feature-list div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .035);
}
.feature-list span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(52, 211, 153, .14);
  color: var(--primary-light);
  font-weight: 900;
}
.feature-list strong, .feature-list small {
  display: block;
}
.feature-list small {
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.45;
}
.code-card {
  padding: 22px;
  overflow: hidden;
}
pre {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(3, 9, 7, .54);
  border: 1px solid var(--border);
  overflow: auto;
  color: #d9fff1;
  line-height: 1.6;
}
:root[data-theme="light"] pre {
  background: rgba(5, 20, 15, .9);
}
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .86rem;
}
.switch {
  display: inline-flex;
  align-items: center;
}
.switch input {
  position: absolute;
  opacity: 0;
}
.switch span {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .24);
  border: 1px solid var(--border);
  position: relative;
  transition: background var(--transition);
}
.switch span::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--text);
  left: 3px;
  top: 2px;
  transition: transform var(--transition);
}
.switch input:checked + span {
  background: rgba(52, 211, 153, .32);
}
.switch input:checked + span::after {
  transform: translateX(20px);
  background: var(--primary-light);
}
.kanban-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.kanban-column {
  padding: 18px;
  min-height: 320px;
}
.kanban-column h3 {
  margin: 0 0 14px;
}
.lead-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .04);
  margin-bottom: 12px;
}
.lead-card strong, .lead-card span {
  display: block;
}
.lead-card span {
  color: var(--primary-light);
  font-size: .82rem;
  margin-top: 4px;
}
.lead-card p {
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.5;
}
.lead-card.success {
  border-color: rgba(52, 211, 153, .24);
}
.automation-list {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}
.automation-rule {
  padding: 18px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
}
.rule-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(52, 211, 153, .14);
  color: var(--primary-light);
  font-weight: 900;
}
.automation-rule h3 {
  margin: 0 0 4px;
}
.automation-rule p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.donut-wrap {
  display: grid;
  place-items: center;
}
.donut-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: .86rem;
}
.donut-legend span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
}
.pricing-card span {
  color: var(--primary-light);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
}
.pricing-card strong {
  display: block;
  margin: 12px 0;
  font-size: 1.8rem;
  letter-spacing: -.05em;
}
.pricing-card ul {
  color: var(--muted);
  padding-left: 18px;
  line-height: 1.8;
  margin: 12px 0 0;
}
.pricing-card.featured {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(52, 211, 153, .13), var(--surface));
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.settings-panel {
  padding: 22px;
}
.settings-panel h3 {
  margin: 0 0 16px;
}
.settings-panel label {
  display: block;
  margin: 14px 0;
  color: var(--muted);
}
.form-grid .full-width {
  grid-column: 1 / -1;
}
.two-factor-setup-grid {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 22px;
}
.two-factor-qr-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, .035);
}
.two-factor-qr-card h3,
.two-factor-confirm-panel h3 {
  margin: 0 0 14px;
}
.two-factor-qr-target {
  width: 248px;
  min-height: 248px;
  max-width: 100%;
  display: grid;
  place-items: center;
  padding: 12px;
  margin: 18px auto;
  border-radius: 18px;
  background: #fff;
}
.two-factor-qr-target canvas,
.two-factor-qr-target svg {
  display: block;
  width: 224px;
  height: 224px;
  max-width: 100%;
}
.two-factor-qr-error {
  color: #6b1720;
  text-align: center;
  font-weight: 700;
}
.security-confirm-form {
  margin-top: 22px;
}
.security-code-field {
  display: block;
  max-width: 420px;
  color: var(--muted);
}
.security-code-field .form-input {
  margin-top: 8px;
  font-size: 1.15rem;
  letter-spacing: .2em;
}
.security-confirm-actions {
  display: flex;
  margin-top: 16px;
}
.security-confirm-actions .btn {
  width: auto;
  min-width: 190px;
}
.two-factor-manual {
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .025);
}
.two-factor-manual summary {
  cursor: pointer;
  color: var(--primary-light);
  font-weight: 700;
}
.two-factor-manual p {
  color: var(--muted);
}
.two-factor-manual-key,
.two-factor-provisioning-uri {
  display: block;
  padding: 12px;
  margin-top: 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .2);
  overflow-wrap: anywhere;
  user-select: all;
}
.check-row {
  display: flex !important;
  align-items: center;
  gap: 9px;
}
.check-row input {
  accent-color: var(--primary);
}
.muted-text {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.modal {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  max-width: min(720px, calc(100vw - 28px));
}
.modal::backdrop {
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(8px);
}
.modal-card {
  position: relative;
  padding: 24px;
  border-radius: 28px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.modal-card h3 {
  margin: 8px 0 18px;
  font-size: 1.5rem;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  font-size: 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.form-grid label {
  color: var(--muted);
}
/* Auth */
.auth-page {
  display: grid;
  place-items: center;
  height: 100vh;
}
.auth-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1.05fr .75fr;
  gap: 22px;
  align-items: stretch;
}
.compact-auth {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}
.auth-visual, .auth-card {
  padding: clamp(24px, 4vw, 38px);
}
.auth-visual {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}
.auth-visual::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: -150px;
  border-radius: 120px;
  background: linear-gradient(135deg, rgba(52, 211, 153, .25), rgba(212, 165, 116, .14));
  rotate: 18deg;
  z-index: -1;
}
.brand-large {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: .08em;
}
.brand-large span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  color: #06120f;
}
.auth-visual h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: .94;
  letter-spacing: -.07em;
}
.auth-visual p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 620px;
  line-height: 1.65;
}
.auth-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  position: relative;
  z-index: 1;
}
.auth-metrics div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
}
.auth-metrics strong, .auth-metrics small {
  display: block;
}
.auth-metrics small {
  color: var(--muted);
}
.auth-card {
  align-self: center;
}
.auth-brand {
  margin-bottom: 26px;
}
.auth-card h2 {
  margin: 0 0 8px;
  font-size: 2rem;
  letter-spacing: -.045em;
}
.auth-card p {
  margin: 0 0 22px;
  color: var(--muted);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.auth-form label {
  color: var(--muted);
  font-weight: 700;
}
.password-field {
  display: block;
  position: relative;
  width: 100%;
  margin-top: 7px;
}
.password-field .form-input {
  display: block;
  margin-top: 0;
  padding-right: 52px;
}
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 11px;
  background: rgba(255, 255, 255, .025);
  color: var(--muted);
  width: 38px;
  height: 38px;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.password-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .07);
  border-color: var(--border);
}
.password-toggle:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}
.password-eye {
  width: 21px;
  height: 21px;
}
.password-eye-closed {
  display: none;
}
.password-toggle.is-password-visible .password-eye-open {
  display: none;
}
.password-toggle.is-password-visible .password-eye-closed {
  display: block;
}
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: .9rem;
}
.auth-row a, .auth-note a {
  color: var(--primary-light);
  font-weight: 800;
}
.auth-note {
  margin-top: 18px !important;
  text-align: center;
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .48);
  backdrop-filter: blur(5px);
  z-index: 90;
}
[data-search-item].is-hidden {
  display: none !important;
}
/* Responsive */
@media (max-width: 1220px) {
  .hero-grid, .hero-card {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 260px;
  }
  .node-a {
    --node-y: -105px;
  }
  .node-b {
    --node-x: 185px;
  }
  .node-c {
    --node-x: -100px;
    --node-y: 105px;
  }
  .node-d {
    --node-x: -185px;
  }
  .stats-grid, .niche-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tenant-grid, .role-grid, .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .three-columns, .feature-list.inline {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 980px) {
  .sidebar {
    transform: translateX(-105%);
    opacity: .6;
  }
  body.sidebar-open .sidebar {
    transform: translateX(0);
    opacity: 1;
  }
  body.sidebar-open .sidebar-backdrop {
    display: block;
  }
  .sidebar-close, .mobile-menu-toggle {
    display: grid;
  }
  .main-content {
    margin-left: 0;
    padding: 18px;
  }
  .topbar {
    align-items: flex-start;
  }
  .topbar-right {
    margin-left: auto;
  }
  .search-box, .environment-badge {
    display: none;
  }
  .two-columns, .kanban-grid, .settings-grid, .auth-shell {
    grid-template-columns: 1fr;
  }
  .two-factor-setup-grid {
    grid-template-columns: 1fr;
  }
  .auth-visual {
    min-height: 420px;
  }
}
@media (max-width: 680px) {
  :root {
    --radius-xl: 22px;
  }
  .main-content {
    padding: 14px;
  }
  .topbar {
    min-height: auto;
    margin-bottom: 16px;
  }
  .topbar-left {
    align-items: flex-start;
  }
  .page-subtitle {
    font-size: .88rem;
  }
  .hero-card, .page-actions, .table-card, .glass-card {
    border-radius: 22px;
  }
  .hero-card {
    padding: 22px;
    min-height: auto;
  }
  .hero-card h2 {
    font-size: 2.1rem;
  }
  .hero-visual {
    display: none;
  }
  .stats-grid, .tenant-grid, .niche-grid, .role-grid, .pricing-grid, .health-grid, .form-grid {
    grid-template-columns: 1fr;
  }
  .page-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .section-header {
    flex-direction: column;
  }
  .automation-rule {
    grid-template-columns: 1fr;
  }
  .auth-page {
    padding: 14px;
  }
  .auth-visual {
    display: none;
  }
  .auth-card {
    padding: 22px;
  }
  .auth-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .two-factor-qr-card {
    padding: 16px;
  }
  .two-factor-qr-target {
    width: min(248px, 100%);
  }
  .security-confirm-actions .btn {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
/* Functional SYSTEM additions */
.flash-message {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(52, 211, 153, .24);
  background: rgba(52, 211, 153, .1);
  color: var(--text);
}
.flash-message.error {
  border-color: rgba(248, 113, 113, .28);
  background: rgba(248, 113, 113, .1);
}
.flash-message.warning {
  border-color: rgba(251, 191, 36, .28);
  background: rgba(251, 191, 36, .1);
}
.status-chip.warning {
  color: var(--warning);
  border-color: rgba(251, 191, 36, .24);
  background: rgba(251, 191, 36, .1);
}
.status-chip.error {
  color: var(--danger);
  border-color: rgba(248, 113, 113, .24);
  background: rgba(248, 113, 113, .1);
}
.module-check-grid {
  max-height: 240px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  padding: 14px;
  margin-top: 10px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .035);
}
.inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.form-input.compact {
  padding: 8px 10px;
  min-width: 150px;
}
.tenant-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.stat-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(52, 211, 153, .14);
  color: var(--primary-light);
  font-weight: 900;
}
.stat-icon.success {
  color: var(--success);
  background: rgba(52, 211, 153, .14);
}
.stat-icon.info {
  color: var(--info);
  background: rgba(96, 165, 250, .14);
}
.stat-icon.warning {
  color: var(--warning);
  background: rgba(251, 191, 36, .12);
}
.modal-card .hero-actions {
  margin-top: 18px;
}
@media (max-width:680px) {
  .module-check-grid {
    grid-template-columns: 1fr;
    max-height: 300px;
  }
  .inline-form {
    align-items: stretch;
  }
  .form-input.compact {
    width: 100%;
  }
}
/* Admin System CRUD stabilization */
.admin-edit-grid {
  align-items: start;
}
.tenant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.stack-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.stack-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .035);
}
.stack-item strong {
  color: var(--text);
  display: block;
}
.stack-item small {
  color: var(--muted-2);
  display: block;
  margin-top: 4px;
  line-height: 1.4;
}
.link-stack {
  color: inherit;
}
.link-stack.active {
  border-color: rgba(52, 211, 153, .36);
  background: rgba(52, 211, 153, .09);
}
.module-permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.module-permission-group {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .035);
}
.module-permission-group h4 {
  margin: 0 0 12px;
  color: var(--text);
}
.module-toggle-row {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.module-toggle-row:first-of-type {
  border-top: 0;
}
.module-toggle-row input {
  margin-top: 4px;
  accent-color: var(--primary);
}
.module-toggle-row > span {
  min-width: 0;
}
.module-toggle-row strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}
.module-toggle-row small {
  color: var(--muted-2);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.form-input.wide {
  min-width: min(360px, 100%);
}
.form-check-line {
  padding: 12px 0;
}
.api-create-form {
  margin: 0 0 18px;
}
.user-edit-panel {
  max-width: 960px;
}
.module-admin-table td:nth-child(3) {
  min-width: 280px;
}
@media (max-width: 1024px) {
  .module-permission-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .stack-item {
    align-items: flex-start;
    flex-direction: column;
  }
  .tenant-actions {
    flex-direction: column;
  }
  .tenant-actions .btn,
  .stack-item .btn,
  .api-create-form .btn,
  .inline-form .btn {
    width: 100%;
  }
}

/* Admin do Tenant - módulos operacionais iniciais */
.quick-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 22px;
}
.quick-module-card {
  padding: 20px;
  display: grid;
  gap: 8px;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.quick-module-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}
.quick-module-card span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(52, 211, 153, .14);
  color: var(--primary-light);
  font-weight: 900;
}
.quick-module-card strong {
  font-size: 1.08rem;
}
.quick-module-card small {
  color: var(--muted);
  line-height: 1.45;
}
.stat-value.money {
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  letter-spacing: -.04em;
}
.span-2 {
  grid-column: 1 / -1;
}
textarea.form-input {
  min-height: 112px;
  resize: vertical;
}
.operational-kanban .lead-card small {
  display: block;
  color: var(--muted-2);
  margin-top: 10px;
}
.operational-timeline .timeline-item {
  grid-template-columns: 52px minmax(0, 1fr);
}
.compact-row {
  margin-top: 12px;
}
.amount-positive {
  color: var(--success) !important;
}
.amount-negative {
  color: var(--warning) !important;
}
@media (max-width: 1220px) {
  .quick-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .quick-module-grid {
    grid-template-columns: 1fr;
  }
  .stat-value.money {
    font-size: 1.35rem;
  }
  .operational-timeline .timeline-item {
    grid-template-columns: 1fr;
  }
}

/* Patch v20260601_1 — estado de tenant indisponível */
.auth-shell-single {
    grid-template-columns: minmax(280px, 620px);
    justify-content: center;
}
.tenant-unavailable-card {
    max-width: 620px;
    margin-inline: auto;
}
.tenant-unavailable-details {
    display: grid;
    gap: .85rem;
    margin: 1rem 0 1.25rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, .05);
}
.tenant-unavailable-details p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}
@media (max-width: 767.98px) {
    .auth-shell-single {
        grid-template-columns: 1fr;
    }
    .tenant-unavailable-card {
        max-width: none;
    }
}

/* Patch v20260601_2 — CRUD operacional completo */
.table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
}
.table-actions .inline-form {
    margin: 0;
}
.table-actions .btn,
.timeline-actions .btn {
    white-space: nowrap;
}
.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .9rem;
}
.pagination-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
}
.pagination-actions strong {
    color: var(--text);
    font-size: .88rem;
}
.btn.disabled,
.btn.disabled:hover {
    opacity: .45;
    pointer-events: none;
    transform: none;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
    margin-top: 1rem;
}
.detail-grid p {
    margin: 0;
    padding: .85rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, .045);
}
.detail-grid strong,
.detail-grid span {
    display: block;
}
.detail-grid strong {
    margin-bottom: .35rem;
    color: var(--muted-2);
    font-size: .76rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.detail-grid span {
    color: var(--text);
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.timeline-actions {
    margin-top: .85rem;
}
@media (max-width: 1024px) {
    .pagination-bar {
        align-items: flex-start;
        flex-direction: column;
    }
}
@media (max-width: 767.98px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .table-actions,
    .timeline-actions,
    .pagination-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }
    .table-actions .btn,
    .table-actions .inline-form,
    .timeline-actions .btn,
    .timeline-actions .inline-form,
    .pagination-actions .btn {
        width: 100%;
    }
}

/* Patch v20260601_3 — módulos globais de conteúdo */
.content-module-hero {
    overflow: hidden;
    position: relative;
}
.content-module-hero::after {
    content: "";
    position: absolute;
    right: -72px;
    bottom: -92px;
    width: 220px;
    height: 220px;
    border-radius: 42px;
    background: linear-gradient(135deg, rgba(52, 211, 153, .16), rgba(212, 165, 116, .12));
    transform: rotate(18deg);
    pointer-events: none;
}
.content-module-hero > * {
    position: relative;
    z-index: 1;
}
.data-table a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}
.data-table a:hover {
    text-decoration: underline;
}
.modal-card .span-2,
.detail-grid .span-2 {
    grid-column: 1 / -1;
}
@media (max-width: 767.98px) {
    .content-module-hero {
        align-items: stretch;
    }
    .content-module-hero .btn {
        width: 100%;
    }
}

/* Patch v20260601_5 — módulos jurídicos específicos */
.legal-module-hero {
    position: relative;
    overflow: hidden;
}

.legal-module-hero::after {
    content: '';
    position: absolute;
    inset: auto -12% -45% auto;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(52, 211, 153, .22), transparent 66%);
    pointer-events: none;
}

.legal-form-grid {
    margin-top: 1rem;
}

.status-chip.danger {
    background: rgba(248, 113, 113, .14);
    border-color: rgba(248, 113, 113, .26);
    color: #fecaca;
}

.status-chip.warning {
    background: rgba(251, 191, 36, .14);
    border-color: rgba(251, 191, 36, .26);
    color: #fde68a;
}

.status-chip.info {
    background: rgba(96, 165, 250, .14);
    border-color: rgba(96, 165, 250, .26);
    color: #bfdbfe;
}

@media (max-width: 767.98px) {
    .legal-module-hero {
        align-items: stretch;
    }

    .legal-module-hero .btn {
        width: 100%;
    }
}

/* Patch v20260601_6 — módulos específicos Saúde e Clínicas */
.health-module-hero {
    position: relative;
    overflow: hidden;
}

.health-module-hero::after {
    content: '';
    position: absolute;
    inset: auto -10% -42% auto;
    width: 250px;
    height: 250px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(59, 130, 246, .2), transparent 66%);
    pointer-events: none;
}

.health-form-grid {
    margin-top: 1rem;
}

@media (max-width: 767.98px) {
    .health-module-hero {
        align-items: stretch;
    }

    .health-module-hero .btn {
        width: 100%;
    }
}

/* Patch v20260601_7 — módulos específicos Beleza e Estética */
.beauty-module-hero {
    position: relative;
    overflow: hidden;
}

.beauty-module-hero::after {
    content: '';
    position: absolute;
    inset: auto -12% -44% auto;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(236, 72, 153, .18), rgba(212, 165, 116, .12) 42%, transparent 68%);
    pointer-events: none;
}

.beauty-form-grid {
    margin-top: 1rem;
}

@media (max-width: 767.98px) {
    .beauty-module-hero {
        align-items: stretch;
    }

    .beauty-module-hero .btn {
        width: 100%;
    }
}

/* Patch v20260601_9 — módulos específicos Gastronomia */
.gastronomy-module-hero {
    position: relative;
    overflow: hidden;
}

.gastronomy-module-hero::after {
    content: '';
    position: absolute;
    inset: auto -12% -44% auto;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(245, 158, 11, .18), rgba(239, 68, 68, .10) 42%, transparent 68%);
    pointer-events: none;
}

.gastronomy-form-grid {
    margin-top: 1rem;
}

@media (max-width: 767.98px) {
    .gastronomy-module-hero {
        align-items: stretch;
    }

    .gastronomy-module-hero .btn {
        width: 100%;
    }
}

/* Patch v20260601_10 — módulos específicos Serviços Técnicos */
.technical-module-hero {
    position: relative;
    overflow: hidden;
}

.technical-module-hero::after {
    content: '';
    position: absolute;
    inset: auto -12% -44% auto;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(14, 165, 233, .18), rgba(99, 102, 241, .12) 42%, transparent 68%);
    pointer-events: none;
}

.technical-form-grid {
    margin-top: 1rem;
}

@media (max-width: 767.98px) {
    .technical-module-hero {
        align-items: stretch;
    }

    .technical-module-hero .btn {
        width: 100%;
    }
}

/* Patch v20260601_13 — módulos específicos Educação e Treinamentos */
.education-module-hero {
    position: relative;
    overflow: hidden;
}

.education-module-hero::after {
    content: '';
    position: absolute;
    inset: auto -12% -44% auto;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(168, 85, 247, .18), rgba(59, 130, 246, .12) 42%, transparent 68%);
    pointer-events: none;
}

.education-form-grid {
    margin-top: 1rem;
}

@media (max-width: 767.98px) {
    .education-module-hero {
        align-items: stretch;
    }

    .education-module-hero .btn {
        width: 100%;
    }
}

/* Patch v20260601_14 — módulos específicos Portfólio */
.portfolio-module-hero {
    position: relative;
    overflow: hidden;
}

.portfolio-module-hero::after {
    content: '';
    position: absolute;
    inset: auto -10% -48% auto;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(20, 184, 166, .18), rgba(168, 85, 247, .12) 44%, transparent 70%);
    pointer-events: none;
}

.portfolio-form-grid {
    margin-top: 1rem;
}

@media (max-width: 767.98px) {
    .portfolio-module-hero {
        align-items: stretch;
    }

    .portfolio-module-hero .btn {
        width: 100%;
    }
}

/* Patch v20260601_15 — módulos específicos Construção e Projetos */
.construction-module-hero {
    position: relative;
    overflow: hidden;
}

.construction-module-hero::after {
    content: '';
    position: absolute;
    inset: auto -10% -48% auto;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(245, 158, 11, .18), rgba(59, 130, 246, .12) 44%, transparent 70%);
    pointer-events: none;
}

.construction-form-grid {
    margin-top: 1rem;
}

@media (max-width: 767.98px) {
    .construction-module-hero {
        align-items: stretch;
    }

    .construction-module-hero .btn {
        width: 100%;
    }
}

/* Patch v20260609_1 — Alinhamento comercial-operacional ENGINE/SYSTEM */
.contract-preview {
    border: 1px solid rgba(20, 184, 166, .24);
    border-radius: 1.25rem;
    padding: 1rem;
    margin: 1rem 0;
    background: linear-gradient(135deg, rgba(20, 184, 166, .10), rgba(30, 41, 59, .06));
}

.contract-preview h4 {
    margin: .2rem 0 .35rem;
    font-size: 1rem;
}

.contract-preview p {
    margin: 0 0 .85rem;
    color: var(--muted);
    line-height: 1.5;
}

.contract-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
}

.contract-preview-grid > div {
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 1rem;
    padding: .85rem;
    background: rgba(255, 255, 255, .045);
}

.contract-preview-grid strong {
    display: block;
    margin-bottom: .5rem;
    font-size: .82rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.contract-preview-grid ul {
    margin: 0;
    padding-left: 1rem;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.55;
}

.check-row[data-module-row] {
    position: relative;
    align-items: flex-start;
    gap: .55rem;
}

.check-row[data-module-row] small[data-contract-badge] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    min-width: 0;
    border-radius: 999px;
    padding: .14rem .42rem;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.check-row.is-contract-included {
    border-color: rgba(20, 184, 166, .38);
    background: rgba(20, 184, 166, .08);
}

.check-row.is-contract-included small[data-contract-badge] {
    color: #064e3b;
    background: rgba(52, 211, 153, .82);
}

.check-row.is-contract-manual {
    border-color: rgba(96, 165, 250, .36);
    background: rgba(96, 165, 250, .07);
}

.check-row.is-contract-manual small[data-contract-badge] {
    color: #0f172a;
    background: rgba(147, 197, 253, .9);
}

.check-row.is-contract-optional {
    border-color: rgba(245, 158, 11, .38);
    background: rgba(245, 158, 11, .08);
}

.check-row.is-contract-optional small[data-contract-badge] {
    color: #451a03;
    background: rgba(251, 191, 36, .92);
}

@media (max-width: 1024px) {
    .contract-preview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .contract-preview {
        padding: .85rem;
        border-radius: 1rem;
    }

    .contract-preview-grid > div {
        padding: .75rem;
    }

    .check-row[data-module-row] small[data-contract-badge] {
        width: 100%;
        margin-left: 0;
        margin-top: .35rem;
    }
}

/* Patch v20260609_3 — Dashboard premium adaptativo por nicho */
.dashboard-intelligence-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.22fr) minmax(280px, .9fr);
    gap: 1rem;
    align-items: stretch;
    margin: 1rem 0;
}

.dashboard-intelligence-grid-compact {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.35fr);
}

.dashboard-intelligence-grid-compact > :only-child {
    grid-column: 1 / -1;
}

.dashboard-focus-card,
.dashboard-signal-card,
.dashboard-maturity-card,
.dashboard-rhythm-card {
    position: relative;
    overflow: hidden;
}

.dashboard-focus-card::after {
    content: '';
    position: absolute;
    inset: auto -20% -42% auto;
    width: 250px;
    height: 250px;
    border-radius: 999px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(20, 184, 166, .22), rgba(59, 130, 246, .10) 46%, transparent 70%);
}

.dashboard-focus-card.warning::after {
    background: radial-gradient(circle, rgba(245, 158, 11, .24), rgba(20, 184, 166, .10) 46%, transparent 70%);
}

.dashboard-focus-card.danger::after {
    background: radial-gradient(circle, rgba(239, 68, 68, .18), rgba(245, 158, 11, .10) 46%, transparent 70%);
}

.dashboard-focus-card h3 {
    position: relative;
    z-index: 1;
    margin: .25rem 0 .65rem;
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    letter-spacing: -.03em;
}

.dashboard-focus-card p:not(.section-kicker) {
    position: relative;
    z-index: 1;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.dashboard-focus-card .btn {
    position: relative;
    z-index: 1;
}

.section-header.compact {
    margin-bottom: .75rem;
}

.dashboard-signal-list {
    display: grid;
    gap: .65rem;
}

.dashboard-signal-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .1rem .75rem;
    align-items: center;
    padding: .85rem;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 1rem;
    text-decoration: none;
    background: rgba(255, 255, 255, .045);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.dashboard-signal-item:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 184, 166, .34);
    background: rgba(20, 184, 166, .07);
}

.dashboard-signal-item strong {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.1rem;
    height: 3.1rem;
    border-radius: 1rem;
    font-size: 1.05rem;
    color: var(--text);
    background: rgba(20, 184, 166, .12);
    border: 1px solid rgba(20, 184, 166, .22);
}

.dashboard-signal-item.warning strong {
    background: rgba(245, 158, 11, .12);
    border-color: rgba(245, 158, 11, .28);
}

.dashboard-signal-item.success strong {
    background: rgba(34, 197, 94, .12);
    border-color: rgba(34, 197, 94, .28);
}

.dashboard-signal-item.danger strong {
    background: rgba(239, 68, 68, .12);
    border-color: rgba(239, 68, 68, .28);
}

.dashboard-signal-item span {
    color: var(--text);
    font-weight: 800;
}

.dashboard-signal-item small {
    color: var(--muted);
    line-height: 1.45;
}

.maturity-list {
    display: grid;
    gap: .85rem;
}

.maturity-item > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: center;
    margin-bottom: .45rem;
}

.maturity-item strong,
.maturity-item span {
    font-size: .9rem;
}

.maturity-item span {
    color: var(--accent);
    font-weight: 900;
}

.maturity-bar {
    height: .55rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, .18);
    border: 1px solid rgba(148, 163, 184, .12);
}

.maturity-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(20, 184, 166, .9), rgba(59, 130, 246, .86));
}

.maturity-item small {
    display: block;
    margin-top: .4rem;
    color: var(--muted);
    line-height: 1.45;
}

.dashboard-rhythm-card {
    margin: 1rem 0;
}

.dashboard-rhythm-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
}

.dashboard-rhythm-list a {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .95rem;
    border-radius: 1rem;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(255, 255, 255, .045);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.dashboard-rhythm-list a:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 184, 166, .34);
    background: rgba(20, 184, 166, .07);
}

.dashboard-rhythm-list span {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .75rem;
    flex: 0 0 auto;
    background: rgba(20, 184, 166, .12);
    color: var(--accent);
    font-weight: 900;
}

.dashboard-rhythm-list p {
    margin: 0;
}

.dashboard-rhythm-list strong {
    display: block;
    color: var(--text);
    margin-bottom: .25rem;
}

.dashboard-rhythm-list small {
    color: var(--muted);
    line-height: 1.45;
}

@media (max-width: 1199.98px) {
    .dashboard-intelligence-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-maturity-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991.98px) {
    .dashboard-intelligence-grid,
    .dashboard-rhythm-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .dashboard-focus-card h3 {
        font-size: 1.25rem;
    }

    .dashboard-signal-item {
        grid-template-columns: 1fr;
    }

    .dashboard-signal-item strong {
        width: 100%;
        min-width: 0;
        height: auto;
        padding: .65rem;
    }
}

/* Patch v20260609_4 — Correção visual do dashboard premium e API & Segurança */
.api-endpoint-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.1rem;
    margin-bottom: 1.35rem;
}

.api-endpoint-grid .code-card {
    min-width: 0;
}

.api-endpoint-grid .code-card h3,
.api-endpoint-grid .code-card p,
.api-endpoint-grid .code-card pre,
.api-endpoint-grid .code-card code {
    max-width: 100%;
}

.api-endpoint-grid .code-card h3 {
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.api-endpoint-grid .code-card pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: auto;
}

.api-endpoint-grid .code-card code {
    display: block;
    white-space: inherit;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (min-width: 1180px) {
    .api-endpoint-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .api-endpoint-grid .code-card:first-child,
    .api-endpoint-grid .code-card:nth-child(4) {
        grid-column: 1 / -1;
    }
}

.dashboard-focus-card,
.dashboard-signal-card,
.dashboard-maturity-card,
.dashboard-rhythm-card {
    min-width: 0;
    padding: clamp(1rem, 2vw, 1.35rem);
}

.dashboard-focus-card h3,
.dashboard-signal-card h3,
.dashboard-maturity-card h3,
.dashboard-rhythm-card h3,
.dashboard-rhythm-list strong,
.dashboard-signal-item span,
.dashboard-signal-item small,
.maturity-item strong,
.maturity-item small {
    overflow-wrap: anywhere;
}

.dashboard-signal-card .section-header,
.dashboard-maturity-card .section-header,
.dashboard-rhythm-card .section-header {
    min-width: 0;
}

.dashboard-signal-card .section-kicker,
.dashboard-maturity-card .section-kicker,
.dashboard-rhythm-card .section-kicker,
.dashboard-focus-card .section-kicker {
    display: block;
    overflow-wrap: anywhere;
}

.dashboard-signal-item {
    min-width: 0;
}

.dashboard-signal-item > *,
.dashboard-rhythm-list a > *,
.maturity-item > * {
    min-width: 0;
}

.dashboard-rhythm-list a {
    min-width: 0;
}

.dashboard-rhythm-list div,
.dashboard-signal-item span,
.dashboard-signal-item small,
.maturity-item small {
    min-width: 0;
}

@media (max-width: 767.98px) {
    .api-endpoint-grid {
        gap: .85rem;
    }

    .api-endpoint-grid .code-card,
    .dashboard-focus-card,
    .dashboard-signal-card,
    .dashboard-maturity-card,
    .dashboard-rhythm-card {
        padding: .95rem;
        border-radius: 1rem;
    }

    .api-endpoint-grid .code-card pre {
        padding: .85rem;
        border-radius: .85rem;
        font-size: .78rem;
        line-height: 1.55;
    }
}
