:root {
  --ink: #221934;
  --ink-deep: #150f1f;
  --ink-soft: #2c2140;
  --ink-light: #433357;
  --lime: #c7d630;
  --lime-soft: #e8ef8a;
  --cream: #faf6f0;
  --paper: #f3f4f6;
  --paper-strong: #eceef2;
  --white: #ffffff;
  --pink: #c4487a;
  --green: #39c88f;
  --green-deep: #1e8d65;
  --amber: #e9ad42;
  --red: #e65c72;
  --muted: #81798f;
  --muted-2: #aaa3b3;
  --line: rgba(34, 25, 52, 0.1);
  --line-strong: rgba(34, 25, 52, 0.16);
  --shadow-sm: 0 12px 32px rgba(21, 15, 31, 0.08);
  --shadow: 0 28px 90px rgba(21, 15, 31, 0.15);
  --shadow-dark: 0 30px 100px rgba(7, 3, 13, 0.34);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--paper); }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.app-loading {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 18px;
  text-align: center;
  color: var(--muted);
  background:
    radial-gradient(circle at 50% 42%, rgba(199, 214, 48, 0.12), transparent 18%),
    var(--ink-deep);
}

.splash-mark {
  width: 82px;
  height: 82px;
  margin: 0 auto;
  background: url('/assets/simbolo-oficial.png') center/contain no-repeat;
  filter: drop-shadow(0 12px 30px rgba(199, 214, 48, 0.18));
  animation: pulse-logo 1.9s ease-in-out infinite;
}

.splash-mark span { display: none; }
.app-loading p { color: rgba(250, 246, 240, 0.62); letter-spacing: 0.04em; }

@keyframes pulse-logo {
  0%, 100% { transform: scale(0.96); opacity: 0.78; }
  50% { transform: scale(1.03); opacity: 1; }
}

/* Login */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(480px, 0.84fr);
  background: var(--cream);
}

.login-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 44px clamp(42px, 5.5vw, 92px) 40px;
  color: var(--cream);
  background:
    radial-gradient(circle at 70% 19%, rgba(199, 214, 48, 0.13), transparent 23%),
    radial-gradient(circle at 12% 88%, rgba(196, 72, 122, 0.12), transparent 25%),
    linear-gradient(145deg, #120b1c 0%, var(--ink-deep) 45%, var(--ink) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(250, 246, 240, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 246, 240, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 80%);
  pointer-events: none;
}

.login-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(250, 246, 240, 0.07);
  pointer-events: none;
}

.orbit-one {
  width: 780px;
  height: 780px;
  right: -245px;
  top: 90px;
  box-shadow: inset 0 0 0 86px rgba(250, 246, 240, 0.018);
}

.orbit-two {
  width: 430px;
  height: 430px;
  right: -20px;
  top: 265px;
  border-color: rgba(199, 214, 48, 0.08);
}

.hero-watermark {
  position: absolute;
  width: 570px;
  height: 570px;
  object-fit: contain;
  right: -78px;
  top: 176px;
  opacity: 0.045;
  filter: blur(0.2px);
  transform: rotate(-10deg);
  pointer-events: none;
}

.login-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 2;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.brand-logo-wrap {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(199, 214, 48, 0.28);
  border-radius: 22px;
  background: rgba(250, 246, 240, 0.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.brand-logo { width: 43px; height: 43px; object-fit: contain; }
.brand-copy small {
  display: block;
  color: var(--lime);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.23em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: clamp(35px, 3.3vw, 52px);
  line-height: 0.95;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand-row.escura .brand-copy strong { color: var(--ink); }

.environment-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(250, 246, 240, 0.13);
  border-radius: 999px;
  background: rgba(250, 246, 240, 0.055);
  color: rgba(250, 246, 240, 0.72);
  font-size: 12px;
  font-weight: 750;
  backdrop-filter: blur(12px);
}

.environment-chip i,
.login-foot i,
.central-status-box i,
.production-pill i,
.live-badge i,
.hero-kicker i,
.main-health i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(57, 200, 143, 0.11);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 790px;
  padding: 70px 0 46px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border: 1px solid rgba(250, 246, 240, 0.14);
  border-radius: 999px;
  background: rgba(250, 246, 240, 0.055);
  color: rgba(250, 246, 240, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 6px rgba(199, 214, 48, 0.1);
}

.hero-content h1 {
  max-width: 760px;
  margin: 30px 0 24px;
  font-family: var(--serif);
  font-size: clamp(54px, 5.3vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.052em;
  font-weight: 600;
}

.hero-content p {
  max-width: 700px;
  margin: 0;
  color: rgba(250, 246, 240, 0.66);
  font-size: 18px;
  line-height: 1.72;
}

.hero-features {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-feature {
  min-height: 126px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-radius: 22px;
  border: 1px solid rgba(250, 246, 240, 0.1);
  background: linear-gradient(145deg, rgba(250,246,240,0.07), rgba(250,246,240,0.03));
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.feature-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--lime);
  background: rgba(199, 214, 48, 0.08);
  border: 1px solid rgba(199, 214, 48, 0.14);
}

.hero-feature strong { display: block; margin: 2px 0 8px; font-size: 14px; }
.hero-feature span:not(.feature-icon) { color: rgba(250, 246, 240, 0.5); font-size: 12px; line-height: 1.55; }

.login-panel {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 44px clamp(30px, 4vw, 70px);
  background:
    radial-gradient(circle at 85% 10%, rgba(199, 214, 48, 0.14), transparent 19%),
    linear-gradient(150deg, #fbfafb, #f0edf3 70%);
}

.login-panel-decoration {
  position: absolute;
  width: 520px;
  height: 520px;
  border: 80px solid rgba(34, 25, 52, 0.025);
  border-radius: 50%;
  right: -270px;
  bottom: -250px;
}

.login-card {
  position: relative;
  z-index: 2;
  width: min(540px, 100%);
  padding: 40px;
  border: 1px solid rgba(34, 25, 52, 0.1);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92);
}

.login-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.login-symbol {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--ink-deep);
  box-shadow: 0 15px 35px rgba(21, 15, 31, 0.2);
}

.login-symbol img { width: 39px; height: 39px; object-fit: contain; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(199, 214, 48, 0.24);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-card h2 {
  margin: 25px 0 10px;
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.login-intro {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.secure-status {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 13px;
  padding: 14px;
  margin-bottom: 24px;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(34,25,52,0.035), rgba(199,214,48,0.055));
  border: 1px solid var(--line);
}

.secure-status-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--lime);
  background: var(--ink-deep);
}

.secure-status strong { display: block; font-size: 13px; margin-bottom: 4px; }
.secure-status span { color: var(--muted); font-size: 11px; }
.secure-status > i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(57,200,143,0.12); }

.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 12px; font-weight: 850; color: var(--ink); }
.input-wrap { position: relative; }
.input-wrap input {
  width: 100%;
  height: 58px;
  padding: 0 52px 0 52px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(250, 249, 251, 0.9);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input-wrap input::placeholder { color: #ada6b4; }
.input-wrap input:focus {
  border-color: rgba(199, 214, 48, 0.95);
  box-shadow: 0 0 0 4px rgba(199, 214, 48, 0.17);
  background: #fff;
}

.field-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  color: var(--lime);
  pointer-events: none;
}

.input-action {
  position: absolute;
  right: 9px;
  top: 9px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  transition: 140ms ease;
}

.input-action:hover { color: var(--ink); background: rgba(34,25,52,0.055); }

.remember-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin: 4px 0 20px;
  cursor: pointer;
  user-select: none;
}

.remember-option input { position: absolute; opacity: 0; pointer-events: none; }
.checkmark {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  color: transparent;
  background: #fff;
  transition: 150ms ease;
}

.remember-option input:checked + .checkmark {
  color: var(--ink-deep);
  background: var(--lime);
  border-color: var(--lime);
}

.remember-option strong { display: block; font-size: 12px; margin-bottom: 2px; }
.remember-option small { color: var(--muted); font-size: 10px; line-height: 1.4; }

.primary-button {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 0;
  border-radius: 17px;
  color: var(--cream);
  background: linear-gradient(135deg, #0d0814, var(--ink-deep));
  font-weight: 850;
  box-shadow: 0 14px 30px rgba(21, 15, 31, 0.22);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.primary-button:hover { transform: translateY(-1px); box-shadow: 0 18px 38px rgba(21,15,31,0.27); }
.primary-button:disabled { opacity: 0.64; cursor: wait; transform: none; }

.button-loader {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: girar 0.7s linear infinite;
}

@keyframes girar { to { transform: rotate(360deg); } }

.form-message {
  min-height: 0;
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 700;
}

.form-message.visible { display: flex; }
.form-message.error { color: #8a2437; background: #fff0f3; border: 1px solid #f4c3ce; }
.form-message.success { color: #176647; background: #ecfff6; border: 1px solid #b6efd6; }

.login-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.login-foot span:last-child { display: inline-flex; align-items: center; gap: 8px; }

/* Dashboard shell */
.dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  background: var(--paper);
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 100vh;
  padding: 24px 18px 20px;
  display: flex;
  flex-direction: column;
  color: var(--cream);
  background:
    radial-gradient(circle at 25% 0%, rgba(199,214,48,0.08), transparent 22%),
    linear-gradient(180deg, #120c1b, var(--ink-deep));
  box-shadow: 18px 0 60px rgba(21, 15, 31, 0.08);
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: auto -90px -80px auto;
  width: 280px;
  height: 280px;
  border: 48px solid rgba(250,246,240,0.018);
  border-radius: 50%;
  pointer-events: none;
}

.sidebar-brand { position: relative; display: flex; align-items: center; justify-content: space-between; }
.brand-row.compacta { gap: 13px; padding: 2px 8px 24px; }
.brand-row.compacta .brand-logo-wrap { width: 46px; height: 46px; border-radius: 15px; }
.brand-row.compacta .brand-logo { width: 29px; height: 29px; }
.brand-row.compacta .brand-copy strong { font-size: 30px; }
.brand-row.compacta .brand-copy small { font-size: 8px; letter-spacing: 0.18em; }
.sidebar-close { display: none; }

.sidebar-nav { overflow-y: auto; padding-right: 2px; scrollbar-width: thin; scrollbar-color: rgba(250,246,240,0.15) transparent; }
.nav-label {
  padding: 0 12px;
  margin: 17px 0 8px;
  color: rgba(250,246,240,0.31);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-item {
  position: relative;
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  color: rgba(250,246,240,0.61);
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 730;
  transition: 150ms ease;
}

.nav-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: rgba(250,246,240,0.48);
  background: rgba(250,246,240,0.035);
  transition: 150ms ease;
}

.nav-item:hover { color: var(--cream); background: rgba(250,246,240,0.055); }
.nav-item:hover .nav-icon { color: var(--lime); background: rgba(199,214,48,0.07); }
.nav-item.active { color: var(--ink-deep); background: var(--lime); box-shadow: 0 10px 30px rgba(199,214,48,0.12); }
.nav-item.active .nav-icon { color: var(--ink-deep); background: rgba(21,15,31,0.09); }
.nav-active-indicator { position: absolute; right: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-deep); }

.sidebar-bottom { position: relative; z-index: 2; margin-top: auto; display: grid; gap: 10px; padding-top: 18px; }
.central-status-box,
.user-box {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 15px;
  background: rgba(250,246,240,0.045);
  border: 1px solid rgba(250,246,240,0.07);
}

.central-status-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--lime);
  background: rgba(199,214,48,0.08);
}

.central-status-box strong,
.user-box strong { display: block; font-size: 11px; margin-bottom: 3px; }
.central-status-box span,
.user-box span { color: rgba(250,246,240,0.42); font-size: 9px; }
.central-status-box div span { display: flex; align-items: center; gap: 7px; }
.central-status-box i { width: 6px; height: 6px; box-shadow: 0 0 0 4px rgba(57,200,143,0.08); }

.user-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--ink-deep) !important;
  background: var(--lime);
  font-weight: 900;
  font-size: 10px !important;
}

.user-box div { min-width: 0; }
.user-box div span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 165px; }
.logout-button {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(250,246,240,0.08);
  border-radius: 13px;
  color: rgba(250,246,240,0.54);
  background: transparent;
  font-size: 11px;
  font-weight: 750;
  transition: 140ms ease;
}
.logout-button:hover { color: var(--cream); background: rgba(230,92,114,0.08); border-color: rgba(230,92,114,0.18); }

.main { min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 112px;
  padding: 22px clamp(24px, 3.5vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
}

.topbar-title { min-width: 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 700; margin-bottom: 5px; }
.breadcrumb i { width: 4px; height: 4px; border-radius: 50%; background: var(--lime); }
.topbar h1 { margin: 0; font-family: var(--serif); font-size: clamp(32px, 3vw, 43px); line-height: 1; letter-spacing: -0.035em; }
.topbar p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.production-pill,
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(199,214,48,0.18);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.production-pill i,
.live-badge i { width: 7px; height: 7px; box-shadow: 0 0 0 4px rgba(57,200,143,0.1); }

.refresh-button,
.secondary-button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 7px 20px rgba(21,15,31,0.04);
  transition: 140ms ease;
}
.refresh-button:hover,
.secondary-button:hover { transform: translateY(-1px); border-color: rgba(199,214,48,0.7); }
.refresh-button:disabled { opacity: 0.6; cursor: wait; transform: none; }
.refresh-button:disabled svg { animation: girar 0.8s linear infinite; }
.mobile-menu-button { display: none; }
.mobile-backdrop { display: none; }

.content { padding: 34px clamp(24px, 3.5vw, 52px) 60px; }
.dashboard-hero {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  padding: 42px 46px;
  border-radius: 30px;
  color: var(--cream);
  background:
    radial-gradient(circle at 83% 35%, rgba(199,214,48,0.12), transparent 21%),
    linear-gradient(135deg, var(--ink-deep), var(--ink-soft));
  box-shadow: var(--shadow-sm);
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 44%, rgba(250,246,240,0.025));
  pointer-events: none;
}

.dashboard-hero-copy { position: relative; z-index: 2; max-width: 760px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; color: rgba(250,246,240,0.58); font-size: 10px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-kicker i { background: var(--lime); box-shadow: 0 0 0 5px rgba(199,214,48,0.08); }
.dashboard-hero h2 { margin: 22px 0 15px; font-family: var(--serif); font-size: clamp(43px, 4.2vw, 66px); line-height: 1.02; letter-spacing: -0.045em; max-width: 760px; }
.dashboard-hero p { max-width: 660px; margin: 0; color: rgba(250,246,240,0.59); font-size: 15px; line-height: 1.7; }
.hero-status-line { display: flex; align-items: center; gap: 18px; margin-top: 26px; color: rgba(250,246,240,0.38); font-size: 10px; }
.main-health { display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 999px; color: rgba(250,246,240,0.82); background: rgba(250,246,240,0.06); border: 1px solid rgba(250,246,240,0.08); font-weight: 750; }
.main-health.warning i { background: var(--amber); box-shadow: 0 0 0 5px rgba(233,173,66,0.1); }

.dashboard-hero-visual { position: relative; min-height: 220px; display: grid; place-items: center; }
.dashboard-hero-visual img { position: relative; z-index: 2; width: 155px; opacity: 0.9; filter: drop-shadow(0 22px 40px rgba(0,0,0,0.22)); }
.visual-orbit { position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(250,246,240,0.07); box-shadow: inset 0 0 0 52px rgba(250,246,240,0.018); }
.visual-orbit::after { content: ""; position: absolute; width: 12px; height: 12px; top: 36px; right: 43px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 30px rgba(199,214,48,0.7); }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.metric-card {
  min-height: 190px;
  padding: 22px;
  border-radius: 23px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-sm);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.metric-card:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(21,15,31,0.1); }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 23px; }
.metric-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: var(--lime); background: var(--ink-deep); box-shadow: 0 10px 25px rgba(21,15,31,0.12); }
.metric-status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 999px; font-size: 8px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; background: #eefbf6; color: var(--green-deep); }
.metric-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.metric-status.warning { color: #a56c10; background: #fff8e9; }
.metric-status.offline { color: #a73349; background: #fff0f3; }
.metric-label { display: block; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.metric-value { display: block; margin: 8px 0 8px; font-family: var(--serif); font-size: 31px; line-height: 1; letter-spacing: -0.035em; }
.metric-detail { color: var(--muted); font-size: 10px; line-height: 1.5; }

.dashboard-main-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr); gap: 18px; margin-top: 20px; }
.panel-card {
  padding: 26px;
  border-radius: 25px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow-sm);
}
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-eyebrow { display: block; margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.panel-heading h3,
.section-title-row h3 { margin: 0; font-family: var(--serif); font-size: 27px; letter-spacing: -0.035em; }
.live-badge { color: var(--green-deep); background: #eefbf6; letter-spacing: 0; text-transform: none; }

.service-list { display: grid; gap: 8px; }
.service-item { min-height: 70px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 16px; background: #f8f8fa; border: 1px solid rgba(34,25,52,0.045); }
.service-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--ink); background: #fff; border: 1px solid var(--line); }
.service-info strong { display: block; font-size: 12px; margin-bottom: 4px; }
.service-info span { color: var(--muted); font-size: 9px; word-break: break-word; }
.service-value { padding: 7px 9px; border-radius: 999px; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; }
.service-value.success { color: var(--green-deep); background: #eafbf4; }
.service-value.warning { color: #a56c10; background: #fff7e6; }
.service-value.neutral { color: var(--ink); background: #eeedf1; }

.quick-actions { display: grid; gap: 9px; }
.quick-actions button {
  min-height: 67px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--ink);
  background: #f8f8fa;
  text-align: left;
  transition: 145ms ease;
}
.quick-actions button > span:first-child { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--lime); background: var(--ink-deep); }
.quick-actions button > svg { color: var(--muted-2); }
.quick-actions strong { display: block; font-size: 11px; margin-bottom: 4px; }
.quick-actions small { color: var(--muted); font-size: 9px; }
.quick-actions button:hover { transform: translateX(3px); border-color: rgba(199,214,48,0.5); background: #fff; }
.quick-actions button:hover > svg { color: var(--ink); }

.module-section { margin-top: 28px; }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-note { color: var(--muted); font-size: 10px; }
.module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.module-card {
  position: relative;
  min-height: 245px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 23px;
  color: var(--ink);
  background: rgba(255,255,255,0.94);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.module-card::after { content: ""; position: absolute; width: 150px; height: 150px; right: -80px; bottom: -95px; border: 25px solid rgba(34,25,52,0.025); border-radius: 50%; }
.module-card:hover { transform: translateY(-3px); border-color: rgba(199,214,48,0.72); box-shadow: 0 20px 45px rgba(21,15,31,0.11); }
.module-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: var(--lime); background: var(--ink-deep); margin-bottom: 22px; }
.module-chip { position: absolute; top: 22px; right: 20px; padding: 6px 8px; border-radius: 999px; color: #6e7710; background: rgba(199,214,48,0.2); font-size: 7px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.module-chip.neutral { color: var(--muted); background: #efedf1; }
.module-card strong { font-family: var(--serif); font-size: 22px; letter-spacing: -0.025em; }
.module-card p { margin: 10px 0 18px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.module-link { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 9px; font-weight: 850; }

.security-banner { min-height: 86px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 15px; margin-top: 20px; padding: 17px 20px; border-radius: 20px; color: rgba(250,246,240,0.82); background: var(--ink-deep); }
.security-banner-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: var(--lime); background: rgba(199,214,48,0.08); }
.security-banner strong { display: block; margin-bottom: 4px; font-size: 12px; }
.security-banner div span { color: rgba(250,246,240,0.43); font-size: 9px; line-height: 1.5; }
.security-version { padding: 8px 10px; border-radius: 999px; color: var(--lime); background: rgba(199,214,48,0.08); font-size: 8px; font-weight: 900; }

.page-placeholder {
  min-height: calc(100vh - 210px);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  align-items: center;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.placeholder-visual { position: relative; min-height: 100%; display: grid; place-items: center; background: var(--ink-deep); overflow: hidden; }
.placeholder-visual::before { content: ""; position: absolute; width: 500px; height: 500px; border: 70px solid rgba(250,246,240,0.025); border-radius: 50%; }
.placeholder-visual img { width: 180px; position: relative; z-index: 1; }
.placeholder-copy { padding: 50px; }
.placeholder-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 25px 0 18px; border-radius: 18px; color: var(--lime); background: var(--ink-deep); }
.placeholder-copy h2 { margin: 0 0 15px; font-family: var(--serif); font-size: 48px; letter-spacing: -0.04em; }
.placeholder-copy p { max-width: 560px; color: var(--muted); line-height: 1.7; }
.placeholder-copy .secondary-button { margin-top: 15px; }

@media (max-width: 1320px) {
  .login-page { grid-template-columns: minmax(0, 1fr) minmax(450px, 0.82fr); }
  .hero-features { grid-template-columns: 1fr; max-width: 570px; }
  .hero-feature { min-height: 88px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1050px) {
  .login-page { grid-template-columns: 1fr; }
  .login-hero { min-height: auto; padding-bottom: 56px; }
  .hero-content { padding: 65px 0 45px; }
  .hero-features { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
  .login-panel { min-height: auto; padding: 60px 25px; }

  .dashboard-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -300px; width: 286px; transition: left 180ms ease; }
  .dashboard-shell.menu-open .sidebar { left: 0; }
  .mobile-backdrop { position: fixed; inset: 0; z-index: 35; border: 0; background: rgba(9,5,14,0.55); backdrop-filter: blur(2px); }
  .dashboard-shell.menu-open .mobile-backdrop { display: block; }
  .sidebar-close { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 12px; color: rgba(250,246,240,0.6); background: rgba(250,246,240,0.06); }
  .mobile-menu-button { display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #fff; }
  .dashboard-main-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .login-hero { padding: 28px 22px 36px; }
  .login-hero-top { align-items: flex-start; }
  .environment-chip { display: none; }
  .brand-logo-wrap { width: 54px; height: 54px; border-radius: 17px; }
  .brand-logo { width: 34px; height: 34px; }
  .brand-copy strong { font-size: 36px; }
  .hero-content h1 { font-size: 48px; }
  .hero-content p { font-size: 15px; }
  .hero-features { grid-template-columns: 1fr; }
  .login-panel { padding: 30px 15px; }
  .login-card { padding: 28px 22px; border-radius: 26px; }
  .login-card h2 { font-size: 45px; }

  .topbar { min-height: 92px; padding: 15px 18px; }
  .topbar-title p, .breadcrumb { display: none; }
  .topbar h1 { font-size: 30px; }
  .production-pill { display: none; }
  .refresh-button span { display: none; }
  .refresh-button { width: 43px; padding: 0; }
  .content { padding: 20px 15px 40px; }
  .dashboard-hero { grid-template-columns: 1fr; padding: 30px 25px; border-radius: 24px; }
  .dashboard-hero-visual { display: none; }
  .dashboard-hero h2 { font-size: 42px; }
  .hero-status-line { align-items: flex-start; flex-direction: column; gap: 10px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 170px; }
  .module-grid { grid-template-columns: 1fr; }
  .section-title-row { align-items: flex-start; flex-direction: column; }
  .section-note { display: none; }
  .service-item { grid-template-columns: 42px minmax(0,1fr); }
  .service-value { grid-column: 2; justify-self: start; }
  .security-banner { grid-template-columns: 48px minmax(0,1fr); }
  .security-version { display: none; }
  .page-placeholder { grid-template-columns: 1fr; }
  .placeholder-visual { min-height: 260px; }
  .placeholder-copy { padding: 32px 24px; }
}

/* =========================================================
   Módulos centrais de produção — Etapa 32.4
   ========================================================= */

.business-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.dashboard-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.data-card,
.table-card,
.module-summary,
.release-card,
.audit-banner {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.data-card {
  min-width: 0;
  padding: 26px;
  border-radius: 26px;
}

.card-heading,
.release-card-top,
.module-toolbar,
.audit-banner,
.modal-card > header,
.modal-card > form > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.card-heading {
  margin-bottom: 20px;
}

.card-heading h3,
.release-card h3,
.module-summary h2,
.modal-card h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  letter-spacing: -0.035em;
}

.card-heading h3,
.release-card h3 {
  font-size: 28px;
}

.section-eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 0;
  border: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  background: transparent;
}

.text-action:hover { color: var(--pink); }

.compact-list {
  display: grid;
  gap: 12px;
}

.compact-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  border: 1px solid rgba(34, 25, 52, 0.07);
  border-radius: 17px;
  background: #faf9fb;
}

.compact-row > div { min-width: 0; }
.compact-row strong,
.compact-row small { display: block; }
.compact-row strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compact-row small {
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--muted);
  background: #ece9f0;
}

.compact-icon.online {
  color: var(--green-deep);
  background: rgba(57, 200, 143, 0.13);
}

.channel-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 1px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--line);
  box-shadow: var(--shadow-sm);
}

.channel-strip > div,
.channel-strip > button {
  min-height: 92px;
  padding: 20px 23px;
  border: 0;
  background: #fff;
}

.channel-strip span,
.channel-strip strong { display: block; }
.channel-strip span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.channel-strip strong {
  margin-top: 7px;
  color: var(--ink);
  font-size: 18px;
}
.channel-strip > button {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--cream);
  font-size: 13px;
  font-weight: 850;
  background: var(--ink);
}
.channel-strip > button:hover { background: var(--ink-light); }

.module-summary {
  min-height: 178px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 32px 36px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 15%, rgba(199, 214, 48, 0.16), transparent 26%),
    #fff;
}

.module-summary h2 {
  margin-top: 7px;
  font-size: clamp(34px, 3.4vw, 48px);
}

.module-summary p {
  max-width: 740px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.summary-numbers {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex: 0 0 auto;
}

.summary-numbers span {
  min-width: 122px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 17px 20px;
  border: 1px solid rgba(34, 25, 52, 0.08);
  border-radius: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-align: center;
  background: rgba(255,255,255,0.78);
}

.summary-numbers strong {
  margin-bottom: 3px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
}

.segmented-tabs {
  width: fit-content;
  display: flex;
  gap: 5px;
  margin-top: 24px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(21, 15, 31, 0.05);
}

.segmented-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  background: transparent;
}

.segmented-tabs button.active {
  color: var(--cream);
  background: var(--ink);
  box-shadow: 0 9px 24px rgba(21, 15, 31, 0.18);
}

.module-toolbar {
  margin: 18px 0;
}

.search-box {
  width: min(520px, 100%);
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--muted);
  background: #fff;
  box-shadow: 0 6px 20px rgba(21, 15, 31, 0.04);
}

.search-box:focus-within {
  border-color: rgba(199, 214, 48, 0.75);
  box-shadow: 0 0 0 4px rgba(199, 214, 48, 0.13);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.search-box input::placeholder { color: var(--muted-2); }

.toolbar-actions,
.row-actions,
.audit-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.primary-action,
.secondary-action,
.danger-action,
.success-action,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 850;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.primary-action {
  color: var(--ink-deep);
  background: var(--lime);
  box-shadow: 0 12px 28px rgba(199, 214, 48, 0.18);
}

.secondary-action {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.danger-action {
  color: #9e3149;
  border-color: rgba(230, 92, 114, 0.22);
  background: rgba(230, 92, 114, 0.08);
}

.success-action {
  color: var(--green-deep);
  border-color: rgba(57, 200, 143, 0.22);
  background: rgba(57, 200, 143, 0.09);
}

.primary-action:hover,
.secondary-action:hover,
.danger-action:hover,
.success-action:hover,
.icon-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(21, 15, 31, 0.1);
}

.icon-button {
  width: 39px;
  min-height: 39px;
  padding: 0;
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.table-card {
  overflow: hidden;
  border-radius: 24px;
}

.responsive-table {
  width: 100%;
  overflow-x: auto;
}

.responsive-table table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
}

.responsive-table th,
.responsive-table td {
  padding: 16px 17px;
  border-bottom: 1px solid rgba(34, 25, 52, 0.075);
  text-align: left;
  vertical-align: middle;
}

.responsive-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  background: #f8f7f9;
}

.responsive-table tbody tr:last-child td { border-bottom: 0; }
.responsive-table tbody tr:hover { background: rgba(199, 214, 48, 0.035); }
.responsive-table td {
  color: var(--ink);
  font-size: 12px;
}

.responsive-table td > strong,
.responsive-table td > small {
  display: block;
}

.responsive-table td > small {
  max-width: 320px;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-cell {
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.entity-cell > span {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--lime);
  background: var(--ink);
}

.entity-cell div { min-width: 0; }
.entity-cell strong,
.entity-cell small { display: block; }
.entity-cell strong {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.entity-cell small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.status-badge,
.plan-chip,
.version-chip,
.channel-badge,
.channel-chip,
.origin-chip {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-badge { padding: 7px 9px; }
.status-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px currentColor;
  opacity: 0.75;
}
.status-badge.success { color: var(--green-deep); background: rgba(57, 200, 143, 0.12); }
.status-badge.warning { color: #9a6712; background: rgba(233, 173, 66, 0.15); }
.status-badge.danger { color: #a53951; background: rgba(230, 92, 114, 0.12); }
.status-badge.neutral { color: #675f72; background: #eeebf1; }

.plan-chip,
.version-chip,
.channel-chip,
.origin-chip {
  padding: 7px 10px;
  color: var(--ink);
  background: #eeebf1;
}

.version-chip { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.channel-chip { color: #6f7710; background: rgba(199, 214, 48, 0.18); }
.origin-chip { color: #675f72; }

.online-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.online-dot i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
}
.online-dot.online { color: var(--green-deep); }
.online-dot.online i {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(57, 200, 143, 0.12);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  letter-spacing: -0.02em;
}

.mini-metrics {
  display: flex;
  gap: 7px;
}
.mini-metrics span {
  min-width: 44px;
  padding: 6px 8px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  background: #f0edf2;
}
.mini-metrics strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

.empty-state,
.module-loading,
.module-error {
  min-height: 310px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 45px;
  color: var(--muted);
  text-align: center;
}

.empty-state { min-height: 220px; }
.empty-state > span,
.module-error > span {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 20px;
  color: var(--lime);
  background: var(--ink);
}
.empty-state strong,
.module-loading strong,
.module-error strong {
  color: var(--ink);
  font-size: 17px;
}
.empty-state p,
.module-loading p,
.module-error p {
  max-width: 520px;
  margin: 7px 0 0;
  line-height: 1.6;
}
.module-error .secondary-button { margin-top: 18px; }

.large-loader {
  width: 45px;
  height: 45px;
  margin-bottom: 18px;
  border: 4px solid rgba(34, 25, 52, 0.1);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: girar 700ms linear infinite;
}

@keyframes girar { to { transform: rotate(360deg); } }

.release-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.release-card {
  min-width: 0;
  padding: 27px;
  border-radius: 25px;
}

.release-card.featured {
  background:
    radial-gradient(circle at 90% 0%, rgba(199, 214, 48, 0.16), transparent 31%),
    #fff;
}

.channel-badge {
  padding: 8px 11px;
  color: var(--cream);
  background: var(--ink);
  text-transform: uppercase;
}

.channel-badge.beta {
  color: var(--ink);
  background: var(--lime);
}

.release-version {
  margin: 24px 0 18px;
}
.release-version span,
.release-version strong,
.release-version small { display: block; }
.release-version span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.release-version strong {
  margin-top: 5px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 45px;
  line-height: 1;
}
.release-version small {
  margin-top: 9px;
  color: var(--muted);
}

.release-details {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}
.release-details div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(34,25,52,0.1);
  color: var(--muted);
  font-size: 11px;
}
.release-details strong {
  max-width: 60%;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-safety {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid rgba(57, 200, 143, 0.18);
  border-radius: 20px;
  color: var(--green-deep);
  background: rgba(57, 200, 143, 0.07);
}
.update-safety > span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(57, 200, 143, 0.13);
}
.update-safety strong,
.update-safety small { display: block; }
.update-safety small { margin-top: 4px; color: var(--muted); }

.audit-banner {
  align-items: flex-start;
  padding: 27px 30px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 94% 20%, rgba(199, 214, 48, 0.14), transparent 23%),
    #fff;
}
.audit-banner h2 {
  margin: 5px 0 7px;
  font-family: var(--serif);
  font-size: 37px;
  letter-spacing: -0.035em;
}
.audit-banner p { margin: 0; color: var(--muted); }
.audit-filters { margin: 18px 0; }
.audit-filters .search-box { flex: 1 1 340px; }
.audit-filters select {
  height: 48px;
  min-width: 230px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  color: var(--ink);
  background: #fff;
}

/* Modal e formulários */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 25px;
  background: rgba(9, 5, 14, 0.68);
  backdrop-filter: blur(8px);
  animation: modal-fade 160ms ease both;
}

@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  width: min(820px, 100%);
  max-height: min(90vh, 900px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 38px 120px rgba(7, 3, 13, 0.38);
  animation: modal-enter 180ms ease both;
}

@keyframes modal-enter {
  from { opacity: 0; transform: translateY(15px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-card.modal-small { width: min(560px, 100%); }
.modal-card > header {
  padding: 25px 28px 20px;
  border-bottom: 1px solid var(--line);
}
.modal-card h2 { font-size: 34px; }
.modal-card header p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.5;
}
.modal-close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: #faf9fb;
}
.modal-close:hover { color: var(--red); }
.modal-card > form { min-height: 0; }
.modal-body {
  max-height: calc(90vh - 190px);
  overflow-y: auto;
  padding: 25px 28px;
}
.modal-card > form > footer {
  justify-content: flex-end;
  padding: 18px 28px 22px;
  border-top: 1px solid var(--line);
  background: #faf9fb;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.form-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.form-field.full { grid-column: 1 / -1; }
.form-field > span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.form-field input,
.form-field select { height: 47px; padding: 0 13px; }
.form-field textarea { min-height: 105px; padding: 13px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(199, 214, 48, 0.9);
  box-shadow: 0 0 0 4px rgba(199, 214, 48, 0.13);
}
.form-field small { color: var(--muted); line-height: 1.45; }

.confirm-box,
.secure-note,
.renewal-current {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 17px;
  border-radius: 16px;
}
.confirm-box {
  color: var(--ink);
  background: #f1eef3;
}
.confirm-box.danger {
  color: #96354b;
  background: rgba(230, 92, 114, 0.1);
}
.confirm-box p { margin: 0; line-height: 1.55; }
.secure-note {
  margin-top: 18px;
  color: var(--green-deep);
  border: 1px solid rgba(57, 200, 143, 0.18);
  background: rgba(57, 200, 143, 0.08);
  font-size: 12px;
  line-height: 1.55;
}
.secure-note.warning {
  color: #8c6214;
  border-color: rgba(233, 173, 66, 0.22);
  background: rgba(233, 173, 66, 0.1);
}
.renewal-current {
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--muted);
  background: #f2eff4;
}
.renewal-current strong { color: var(--ink); font-size: 18px; }

.activation-code-box {
  display: grid;
  justify-items: center;
  gap: 11px;
  padding: 28px;
  border: 1px solid rgba(199, 214, 48, 0.3);
  border-radius: 22px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(199, 214, 48, 0.2), transparent 47%),
    var(--ink-deep);
}
.activation-code-box span {
  color: rgba(250,246,240,0.6);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.activation-code-box strong {
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(24px, 6vw, 38px);
  letter-spacing: 0.08em;
}
.activation-code-box button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  padding: 10px 14px;
  border: 1px solid rgba(250,246,240,0.12);
  border-radius: 12px;
  color: var(--cream);
  background: rgba(250,246,240,0.07);
}

/* Toast */
#toast-root {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 180;
  pointer-events: none;
}
.toast {
  min-width: min(370px, calc(100vw - 30px));
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 17px;
  color: var(--cream);
  background: var(--ink-deep);
  box-shadow: var(--shadow-dark);
  animation: toast-enter 220ms ease both;
}
.toast > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--ink);
  background: var(--lime);
}
.toast.warning > span { background: var(--amber); }
.toast.error > span { color: #fff; background: var(--red); }
.toast strong { font-size: 12px; line-height: 1.45; }

@keyframes toast-enter {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1320px) {
  .business-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .channel-strip > button { grid-column: 1 / -1; min-height: 58px; justify-content: center; }
}

@media (max-width: 1120px) {
  .dashboard-grid-two,
  .release-grid { grid-template-columns: 1fr; }
  .module-summary { align-items: flex-start; flex-direction: column; gap: 20px; }
  .summary-numbers { width: 100%; }
  .summary-numbers span { flex: 1; }
}

@media (max-width: 760px) {
  .business-metrics { grid-template-columns: 1fr; }
  .dashboard-grid-two { gap: 16px; }
  .data-card { padding: 20px; border-radius: 21px; }
  .compact-row { grid-template-columns: 42px minmax(0, 1fr); }
  .compact-row .status-badge { grid-column: 2; }
  .channel-strip { grid-template-columns: 1fr; }
  .channel-strip > button { grid-column: auto; }
  .module-summary { min-height: auto; padding: 25px 22px; border-radius: 22px; }
  .module-summary h2 { font-size: 36px; }
  .summary-numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .segmented-tabs { width: 100%; }
  .segmented-tabs button { flex: 1; justify-content: center; padding-inline: 10px; }
  .module-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .toolbar-actions { width: 100%; }
  .toolbar-actions > button { flex: 1; }
  .audit-banner { align-items: stretch; flex-direction: column; padding: 23px 21px; }
  .audit-banner .primary-action { width: 100%; }
  .audit-filters { align-items: stretch; flex-direction: column; }
  .audit-filters select,
  .audit-filters button { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .modal-backdrop { align-items: end; padding: 10px; }
  .modal-card {
    max-height: 94vh;
    border-radius: 24px 24px 16px 16px;
  }
  .modal-card > header { padding: 20px 20px 16px; }
  .modal-card h2 { font-size: 29px; }
  .modal-body { max-height: calc(94vh - 180px); padding: 20px; }
  .modal-card > form > footer {
    align-items: stretch;
    flex-direction: column-reverse;
    padding: 15px 20px 20px;
  }
  .modal-card > form > footer button { width: 100%; }
  .update-safety { grid-template-columns: 48px minmax(0, 1fr); }
  .update-safety > :last-child { grid-column: 2; }
  #toast-root { right: 15px; bottom: 15px; left: 15px; }
  .toast { min-width: 0; width: 100%; }
}

/* Ajustes estruturais dos componentes gerados pelo app.js */
.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.mini-metrics > div {
  min-height: 112px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.mini-metrics > div > span {
  grid-row: 1 / 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 15px;
  color: var(--lime);
  background: var(--ink);
}

.mini-metrics > div > strong {
  align-self: end;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1;
}

.mini-metrics > div > small {
  align-self: start;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.entity-cell > span.online-dot {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  padding: 0;
  border-radius: 50%;
  color: transparent;
  background: var(--muted-2);
  box-shadow: 0 0 0 5px rgba(129, 121, 143, 0.1);
}

.entity-cell > span.online-dot.online {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(57, 200, 143, 0.12);
}

.release-card > .release-version {
  display: block;
  margin: 24px 0 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.release-card > p {
  min-height: 50px;
  margin: 0 0 21px;
  color: var(--muted);
  line-height: 1.6;
}

.release-card dl {
  display: grid;
  gap: 0;
  margin: 0 0 22px;
}

.release-card dl > div {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 15px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(34, 25, 52, 0.1);
}

.release-card dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.release-card dd {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-card.estavel .channel-badge {
  color: var(--cream);
  background: var(--ink);
}

.release-card.beta .channel-badge {
  color: var(--ink-deep);
  background: var(--lime);
}

.release-number {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
}

.secondary-button.full { width: 100%; justify-content: center; }

.audit-filters > label.search-box {
  width: auto;
  flex: 1 1 360px;
}

.form-field input[readonly] {
  color: #6f6879;
  background: #f1eef3;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .mini-metrics { grid-template-columns: 1fr; gap: 11px; }
  .mini-metrics > div { min-height: 93px; }
  .release-card { padding: 22px; }
  .release-card > .release-version { font-size: 39px; }
}

/* =========================================================
   Etapa 32.4 — navegação superior e ações administrativas
   ========================================================= */
.dashboard-shell {
  min-height: 100vh;
  display: block;
  background: var(--paper);
}

.central-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 36px rgba(21, 15, 31, 0.08);
  backdrop-filter: blur(22px);
}

.central-header-main {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px clamp(18px, 2.4vw, 38px);
  color: var(--cream);
  background:
    radial-gradient(circle at 16% 0%, rgba(199, 214, 48, 0.1), transparent 22%),
    linear-gradient(90deg, #120c1b, var(--ink-deep) 48%, #261b39);
}

.header-brand {
  flex: 0 0 auto;
  min-width: 218px;
}

.header-brand .brand-row.compacta {
  gap: 10px;
  padding: 0;
}

.header-brand .brand-row.compacta .brand-logo-wrap {
  width: 43px;
  height: 43px;
  border-radius: 14px;
}

.header-brand .brand-row.compacta .brand-logo {
  width: 27px;
  height: 27px;
}

.header-brand .brand-row.compacta .brand-copy strong {
  font-size: 27px;
}

.header-brand .brand-row.compacta .brand-copy small {
  font-size: 7px;
}

.central-nav {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
}

.central-nav::-webkit-scrollbar { display: none; }

.central-nav .nav-item {
  width: auto;
  min-width: max-content;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  gap: 8px;
  border-radius: 13px;
  color: rgba(250, 246, 240, 0.68);
  font-size: 11px;
  white-space: nowrap;
}

.central-nav .nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.central-nav .nav-item.active {
  color: var(--ink-deep);
  background: var(--lime);
  box-shadow: 0 9px 25px rgba(199, 214, 48, 0.14);
}

.central-nav .nav-active-indicator {
  right: 7px;
  top: 8px;
  width: 4px;
  height: 4px;
}

.central-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-status-box,
.header-user-box {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid rgba(250, 246, 240, 0.08);
  border-radius: 13px;
  background: rgba(250, 246, 240, 0.045);
}

.header-status-box > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--lime);
  background: rgba(199, 214, 48, 0.08);
}

.header-status-box strong,
.header-user-box strong {
  display: block;
  color: var(--cream);
  font-size: 9px;
  line-height: 1.25;
  white-space: nowrap;
}

.header-status-box small,
.header-user-box small {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 150px;
  overflow: hidden;
  color: rgba(250, 246, 240, 0.43);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-status-box small i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(57, 200, 143, 0.08);
}

.header-user-box .user-avatar {
  width: 31px;
  height: 31px;
  flex-basis: 31px;
  border-radius: 10px;
}

.header-logout {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(250, 246, 240, 0.08);
  border-radius: 13px;
  color: rgba(250, 246, 240, 0.58);
  background: rgba(250, 246, 240, 0.035);
  font-size: 10px;
  font-weight: 800;
}

.header-logout:hover {
  color: var(--cream);
  border-color: rgba(230, 92, 114, 0.22);
  background: rgba(230, 92, 114, 0.09);
}

.central-header .topbar {
  position: relative;
  top: auto;
  z-index: 1;
  min-height: 98px;
  padding: 18px clamp(24px, 3.5vw, 52px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: none;
}

.main {
  min-width: 0;
}

.icon-button.danger {
  color: #a1354d;
  border-color: rgba(230, 92, 114, 0.2);
  background: rgba(230, 92, 114, 0.065);
}

.icon-button.danger:hover {
  color: #861e37;
  border-color: rgba(230, 92, 114, 0.36);
  background: rgba(230, 92, 114, 0.12);
}

.release-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 9px;
}

.release-card-actions .release-delete {
  width: 44px;
  min-height: 43px;
  padding: 0;
}

.confirmation-field {
  margin-top: 14px;
}

.confirmation-field small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.confirmation-field small strong {
  color: #a1354d;
  font-family: var(--mono);
}

@media (max-width: 1480px) {
  .header-status-box { display: none; }
  .central-nav .nav-item { padding: 0 10px; }
  .central-nav .nav-item span:nth-child(2) { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 1180px) {
  .central-header-main {
    min-height: 70px;
    padding: 9px 18px;
  }

  .header-brand { min-width: 0; margin-right: auto; }
  .header-user-box { display: none; }
  .header-logout span { display: none; }
  .header-logout { width: 43px; padding: 0; }

  .central-header .mobile-menu-button {
    display: grid;
    place-items: center;
    order: 2;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    border: 1px solid rgba(250, 246, 240, 0.1);
    border-radius: 13px;
    color: var(--cream);
    background: rgba(250, 246, 240, 0.06);
  }

  .central-nav {
    position: fixed;
    top: 70px;
    left: 14px;
    right: 14px;
    z-index: 60;
    display: none;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid rgba(250, 246, 240, 0.09);
    border-radius: 18px;
    background: linear-gradient(180deg, #171020, #21162f);
    box-shadow: 0 24px 80px rgba(8, 4, 14, 0.38);
  }

  .dashboard-shell.menu-open .central-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .central-nav .nav-item {
    width: 100%;
    justify-content: flex-start;
    min-width: 0;
    min-height: 48px;
  }

  .central-nav .nav-item span:nth-child(2) { max-width: none; }

  .dashboard-shell.menu-open .mobile-backdrop {
    display: block;
    position: fixed;
    inset: 70px 0 0;
    z-index: 55;
    border: 0;
    background: rgba(9, 5, 14, 0.48);
    backdrop-filter: blur(2px);
  }
}

@media (max-width: 760px) {
  .header-brand .brand-copy small { display: none; }
  .header-brand .brand-row.compacta .brand-copy strong { font-size: 24px; }
  .header-brand .brand-row.compacta .brand-logo-wrap { width: 39px; height: 39px; }
  .header-brand .brand-row.compacta .brand-logo { width: 24px; height: 24px; }
  .central-header-actions { gap: 5px; }
  .central-header .topbar { min-height: 82px; padding: 13px 15px; }
  .dashboard-shell.menu-open .central-nav { grid-template-columns: 1fr; }
  .central-nav { left: 10px; right: 10px; }
  .release-card-actions { grid-template-columns: 1fr 43px; }
}
