/* DGL Motion 4.3 — camada sobre o V4.1: vidro fumê, cards flutuantes, barras de pagamento e transições.
   Carregado por último. Preto/grafite/branco continuam a base; verde/vermelho seguem semânticos. */
:root {
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.075);
  --glass-line: rgba(255, 255, 255, 0.1);
  --glass-line-hi: rgba(255, 255, 255, 0.2);
  --glass-blur: blur(22px) saturate(140%);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 1px 0 0 rgba(255, 255, 255, 0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  --light: #f4f4f7;
  --light-grad: linear-gradient(90deg, #7d7d88, #d9d9e0 60%, #ffffff);
  --ok: #34c785;
  --ok-hi: #6ee7a8;
  --due: #e5484d;
  --due-hi: #ff7b7f;
  --float: 0 24px 50px -28px #000e, 0 2px 8px -3px #0007, var(--glass-edge);
  --float-hover: 0 34px 64px -30px #000, 0 6px 16px -6px #0009, inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
}

/* ---------- Fundo com luz ambiente (o vidro precisa de algo atrás) ---------- */
html {
  background: #060607 !important;
}
body {
  background: transparent !important;
}
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(34% 30% at 78% 10%, rgba(255, 255, 255, 0.16), transparent 70%),
    radial-gradient(28% 34% at 12% 88%, rgba(190, 205, 255, 0.11), transparent 70%),
    radial-gradient(24% 22% at 50% 58%, rgba(255, 255, 255, 0.06), transparent 70%),
    radial-gradient(20% 26% at 96% 70%, rgba(255, 235, 225, 0.06), transparent 70%),
    #060607;
  animation: ambient 26s ease-in-out infinite alternate;
}
.workspace-main {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008)) !important;
  border-color: var(--glass-line) !important;
  backdrop-filter: blur(30px) saturate(130%);
  -webkit-backdrop-filter: blur(30px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.app-sidebar {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 55%) !important;
  border-color: var(--glass-line) !important;
  backdrop-filter: blur(30px) saturate(130%);
  -webkit-backdrop-filter: blur(30px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ---------- Superfícies flutuantes ---------- */
.workspace .panel,
.workspace .metric,
.pulse-card,
.cash-card,
.quick-actions .button {
  box-shadow: var(--float);
  background: linear-gradient(160deg, var(--glass-strong), var(--glass) 45%, rgba(255, 255, 255, 0.02)) !important;
  border-color: var(--glass-line) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.workspace .metric,
.pulse-card,
.cash-card,
.quick-actions .button,
.lift {
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background-color 0.35s var(--ease);
}
.pulse-card:hover,
.cash-card:hover,
.quick-actions .button:hover,
.workspace .metric:hover,
.lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--float-hover);
  border-color: var(--glass-line-hi) !important;
}
.button {
  transition:
    background 0.2s,
    transform 0.2s var(--ease),
    box-shadow 0.2s,
    border-color 0.2s;
}
.button.light {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--glass-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.button.light:hover {
  border-color: var(--glass-line-hi);
  background: rgba(255, 255, 255, 0.1);
}
.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px #fff6;
}
.side-home,
.app-sidebar .admin-link {
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s var(--ease);
}
.side-home:not(.active):hover,
.app-sidebar .admin-link:not(.active):hover {
  transform: translateX(3px);
}
.side-home.active,
.app-sidebar .admin-link.active {
  position: relative;
}
.side-home.active::before,
.app-sidebar .admin-link.active::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 25%;
  bottom: 25%;
  width: 3px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* ---------- Backstage em vidro ---------- */
.backstage-card {
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--glass-line-hi) !important;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 55%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025) 60%) !important;
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow:
    0 20px 40px -26px #000,
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
.backstage-card::before {
  /* reflexo de vidro */
  content: "";
  position: absolute;
  z-index: -1;
  width: 180px;
  height: 180px;
  right: -60px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 65%);
  filter: blur(6px);
}
.backstage-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.12) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: shine 8s var(--ease) 1.2s infinite;
}
.backstage-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #fff !important;
  opacity: 0.85;
}
.backstage-label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  animation: pulse-light 2.6s ease-in-out infinite;
}
.backstage-card > strong {
  color: #fff;
}
.backstage-card small {
  color: rgba(255, 255, 255, 0.62) !important;
}
.glass-word {
  /* "backstage" em vidro: texto com reflexo que corre */
  background: linear-gradient(100deg, #bdbdc8 0%, #ffffff 25%, #a9a9b6 45%, #ffffff 65%, #bdbdc8 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glass-flow 7s ease-in-out infinite;
}

/* ---------- Hero do saldo: vidro fumê ---------- */
.balance-hero {
  background:
    radial-gradient(70% 90% at 92% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02) 55%, rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  color: #fff;
  border: 1px solid var(--glass-line-hi);
  box-shadow:
    0 40px 70px -40px #000,
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.balance-hero:hover {
  transform: translateY(-3px);
  box-shadow:
    0 50px 80px -40px #000,
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}
.balance-hero .hero-topline {
  color: rgba(255, 255, 255, 0.75);
}
.balance-hero .live-dot {
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  animation: pulse-light 2.6s ease-in-out infinite;
}
.balance-hero .hero-count {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.balance-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 9px;
}
.balance-row .balance-label {
  margin: 0;
}
.balance-hero .balance-label,
.balance-hero .balance-note {
  color: rgba(255, 255, 255, 0.58);
}
.balance-hero .balance-value {
  color: #fff;
  min-height: 1.2em;
  text-shadow: 0 2px 30px rgba(255, 255, 255, 0.12);
}
.balance-hero .hero-bottom .primary {
  background: #f4f4f7;
  color: #111114;
  box-shadow: 0 10px 26px -12px rgba(255, 255, 255, 0.5);
}
.balance-hero .hero-bottom .primary:hover {
  background: #fff;
}
.balance-hero .hero-bottom > span {
  color: #fff;
}
.balance-hero .hero-orbit {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 27px rgba(255, 255, 255, 0.015),
    0 0 0 28px rgba(255, 255, 255, 0.07),
    0 0 0 55px rgba(255, 255, 255, 0.01),
    0 0 0 56px rgba(255, 255, 255, 0.05);
  animation: orbit-float 9s ease-in-out infinite;
}
.hero-shine {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, 0.1) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: shine 7s var(--ease) 0.8s infinite;
}
body:not(.hide-money) .hidden-note {
  display: none;
}

/* ---------- Ocultar valores ---------- */
.secret-mask {
  letter-spacing: 0.04em;
  opacity: 0.9;
}
body.hide-money .secret-real,
body:not(.hide-money) .secret-mask {
  display: none;
}
.secret-real {
  animation: reveal-num 0.45s var(--ease);
}
.eye-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s var(--ease),
    border-color 0.2s;
  vertical-align: middle;
}
.eye-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.06);
}
.eye-toggle svg {
  width: 17px;
  height: 17px;
}
.eye-toggle.inline {
  width: 24px;
  height: 24px;
  margin-left: 6px;
  border-color: #ffffff1f;
  color: inherit;
}
.eye-toggle.inline svg {
  width: 13px;
  height: 13px;
}
body.hide-money .eye-toggle .eye-on,
body:not(.hide-money) .eye-toggle .eye-off {
  display: none;
}

/* ---------- Transição entre telas ---------- */
@media (prefers-reduced-motion: no-preference) {
  .main-inner.view-enter > * {
    animation: rise 0.5s var(--ease) both;
  }
  .main-inner.view-enter > *:nth-child(2) {
    animation-delay: 0.05s;
  }
  .main-inner.view-enter > *:nth-child(3) {
    animation-delay: 0.1s;
  }
  .main-inner.view-enter > *:nth-child(4) {
    animation-delay: 0.15s;
  }
  .main-inner.view-enter > *:nth-child(n + 5) {
    animation-delay: 0.2s;
  }
  .view-enter :is(.metrics, .ops-cards, .camp-grid, .group-grid, .cash-grid, .overview-side, .quick-actions) > * {
    animation: rise 0.55s var(--ease) both;
  }
  .view-enter :is(.metrics, .ops-cards, .camp-grid, .group-grid, .cash-grid, .overview-side, .quick-actions) > :nth-child(2) {
    animation-delay: 0.06s;
  }
  .view-enter :is(.metrics, .ops-cards, .camp-grid, .group-grid, .cash-grid, .overview-side, .quick-actions) > :nth-child(3) {
    animation-delay: 0.12s;
  }
  .view-enter :is(.metrics, .ops-cards, .camp-grid, .group-grid, .cash-grid, .overview-side, .quick-actions) > :nth-child(4) {
    animation-delay: 0.18s;
  }
  .view-enter :is(.metrics, .ops-cards, .camp-grid, .group-grid, .cash-grid, .overview-side, .quick-actions) > :nth-child(n + 5) {
    animation-delay: 0.24s;
  }
  .view-enter :is(.pay-bar, .dlv-bar) {
    animation: bar-reveal 1.1s var(--ease) 0.25s both;
  }
  .overlay {
    animation: fade 0.2s ease-out;
  }
}

/* ---------- Barras: pagamento (verde/vermelho) e entregas (dourado) ---------- */
.pay-track,
.dlv-track {
  margin: 14px 0;
}
.pay-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  color: #b9b9c3;
  margin-bottom: 7px;
}
.pay-head b {
  color: #f1f1f4;
  font-weight: 600;
}
.pay-bar,
.dlv-bar {
  display: flex;
  height: 8px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
  gap: 2px;
}
.pay-bar i,
.dlv-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  min-width: 0;
}
.pay-bar i[style*="width:0%"],
.dlv-bar i[style*="width:0%"] {
  display: none;
}
.pay-ok {
  background: linear-gradient(90deg, #1f9e63, var(--ok) 60%, var(--ok-hi));
  box-shadow: 0 0 12px -2px #34c78599;
}
.pay-due {
  background: linear-gradient(90deg, #b8333a, var(--due) 55%, var(--due-hi));
  box-shadow: 0 0 12px -3px #e5484d88;
}
.pay-free {
  background: repeating-linear-gradient(135deg, #3a3a42 0 6px, #303037 6px 12px);
}
.pay-track.free .pay-head b {
  color: #b9b9c3;
}
.pay-track.done .pay-head b {
  color: var(--ok-hi);
}
.pay-legend {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  margin-top: 7px;
}
.pay-legend .ok {
  color: var(--ok-hi);
}
.pay-legend .due {
  color: var(--due-hi);
}
.pay-track.big .pay-bar,
.camp-hero .dlv-bar {
  height: 12px;
}
.pay-track.big .pay-legend {
  font-size: 12px;
}
.dlv-ok {
  background: var(--light-grad);
  box-shadow: 0 0 12px -3px rgba(255, 255, 255, 0.55);
}
.dlv-review {
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.32) 0 5px, rgba(255, 255, 255, 0.12) 5px 10px);
}
.dlv-track.done .pay-head b {
  color: #fff;
}
.pay-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 1px;
}
.pay-dot.ok {
  background: var(--ok);
  box-shadow: 0 0 8px #34c78599;
}
.pay-dot.due {
  background: var(--due);
  box-shadow: 0 0 8px #e5484d88;
}
.workspace .metric.paid strong {
  color: var(--ok-hi) !important;
}
.workspace .metric.count.alert strong {
  color: var(--due-hi);
}
.workspace .metric.count.warn strong {
  color: #f3d58a;
}
.progress-panel {
  display: grid;
  gap: 4px;
}
.pay-rows {
  display: grid;
  gap: 10px;
}
.pay-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) 2fr;
  gap: 22px;
  align-items: center;
  text-align: left;
  padding: 6px 16px;
  border-radius: 16px;
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.25s var(--ease);
}
.pay-row:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--glass-line-hi);
  transform: translateX(3px);
}
.pay-row-id strong {
  display: block;
  font-size: 13px;
}
.pay-row-id small {
  font-size: 10px;
  color: #9a9aa4;
}

/* ---------- Divulgação: abas, grupos, campanhas, páginas ---------- */
.pub-tabs .button {
  flex: 1;
  border-radius: 10px;
  white-space: nowrap;
}
.pub-tabs .button.link {
  color: #b6b6c0;
  min-height: 40px;
}
.pub-tabs .button.link:hover {
  color: #fff;
  background: #ffffff08;
}
.block-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 28px 2px 14px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9a9aa4;
}
.block-label span {
  font-size: 10px;
  letter-spacing: 0;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-line);
  color: #d6d6dd;
}
.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.group-tile {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 16px;
  text-align: left;
  color: inherit;
  cursor: pointer;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--glass-line-hi);
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(255, 255, 255, 0.1), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--float);
  overflow: hidden;
}
.group-tile::before {
  /* aba de pasta em vidro */
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  width: 64px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.5);
}
.group-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  font-size: 22px;
  font-weight: 750;
  color: #fff;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 10px 22px -12px #000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.group-body small,
.group-money small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.8px;
  color: rgba(255, 255, 255, 0.5);
}
.group-body strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.5px;
  margin: 3px 0 4px;
}
.group-body span {
  font-size: 11px;
  color: #a3a3ad;
}
.group-bars {
  grid-column: 1 / -1;
  display: block;
}
.group-bars .pay-track,
.group-bars .dlv-track {
  margin: 10px 0 0;
}
.group-money {
  text-align: right;
}
.group-money b {
  display: block;
  font-size: 15px;
  margin-top: 4px;
  color: var(--ok-hi);
}
.group-money i {
  font-style: normal;
  font-size: 10px;
  color: #9a9aa4;
}
.group-tile > .ui-icon {
  color: #8e8e98;
  transition: transform 0.3s var(--ease);
}
.group-tile:hover > .ui-icon,
.camp-tile:hover .camp-open .ui-icon {
  transform: translateX(4px);
  color: #fff;
}
.camp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.camp-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  color: inherit;
  cursor: pointer;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--glass-line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 60%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--float);
  min-height: 230px;
}
.camp-tile > strong {
  font-size: 17px;
  letter-spacing: -0.4px;
  margin: 14px 0 6px;
  line-height: 1.25;
}
.camp-tile > small {
  font-size: 11px;
  color: #9d9da7;
}
.camp-kpis {
  display: flex;
  gap: 16px;
  margin: 14px 0 0;
  font-size: 11px;
  color: #a5a5ae;
}
.camp-kpis b {
  color: #f2f2f5;
  font-weight: 600;
}
.camp-tile .pay-track,
.camp-tile .dlv-track {
  margin: 12px 0 0;
}
.camp-open {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #dcdce2;
}
.camp-open .ui-icon {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}
.camp-state {
  align-self: flex-start;
  font-size: 9px;
  letter-spacing: 0.5px;
  padding: 5px 9px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-line);
  color: #c9c9d2;
}
.camp-state.active {
  background: #173326;
  color: #8ee6b8;
}
.camp-state.active::before {
  content: "● ";
  font-size: 7px;
  vertical-align: 1px;
}
.camp-state.draft {
  background: #34301f;
  color: #ebd59c;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: -6px 0 18px;
  font-size: 11px;
  color: #8f8f99;
}
.crumbs .button.link {
  font-size: 11px;
  color: #b9b9c3;
  min-height: 0;
}
.crumbs .button.link:hover {
  color: #fff;
}
.crumbs b {
  color: #f1f1f4;
  font-weight: 600;
}
.crumbs i {
  font-style: normal;
  opacity: 0.5;
}
.camp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: center;
  padding: 26px 28px;
  border-radius: 26px;
  border: 1px solid var(--glass-line-hi);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--float), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  margin-bottom: 18px;
}
.camp-hero-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 18px;
}
.camp-hero-kpis span {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}
.camp-hero-kpis strong {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -1px;
}
.camp-hero-kpis em {
  font-style: normal;
  font-size: 15px;
  color: #8f8f99;
  margin-left: 2px;
}
.page-search {
  position: relative;
  display: flex;
  align-items: center;
  margin: 6px 0 4px;
}
.page-search input {
  width: 100%;
  height: 52px;
  padding: 0 110px 0 48px;
  border-radius: 18px;
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.page-search input:focus {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.07);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.search-icon {
  position: absolute;
  left: 17px;
  width: 18px;
  height: 18px;
  color: #8e8e98;
  pointer-events: none;
}
.find-count {
  position: absolute;
  right: 16px;
  font-size: 10px;
  color: #9d9da7;
  padding: 5px 9px;
  border-radius: 20px;
  background: #ffffff0b;
}
.find-empty {
  margin-top: 20px;
}
.pub-cards {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}
[data-find][hidden] {
  display: none !important;
}
.pub-contract {
  display: flex;
  flex-direction: column;
}
.pc-top {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.pc-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #fff;
}
.pc-id h2 {
  font-size: 15px !important;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-id small {
  font-size: 10px;
  color: #9a9aa4;
}
.pc-campaign {
  margin: 10px 0 0;
}
.pc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  color: #9d9da7;
  margin: 4px 0 14px;
}
.pc-meta > span:first-child {
  margin-right: auto;
}
.pc-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: auto;
}
.pub-contract .button {
  margin-right: 0;
}

/* ---------- Usuários: nível de acesso à Divulgação ---------- */
.promo-access {
  border: 1px solid var(--glass-line-hi);
  border-radius: 18px;
  padding: 16px 18px;
  margin: 6px 0 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.promo-access legend {
  padding: 0 8px;
  font-size: 11px;
  color: #fff;
}
.promo-campaign-list {
  display: grid;
  gap: 12px;
  max-height: 260px;
  overflow: auto;
  padding: 4px 2px;
}
.promo-group small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}
.promo-chip {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-line);
  color: #fff !important;
}

/* ---------- Animações ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes bar-reveal {
  from {
    clip-path: inset(0 100% 0 0 round 99px);
  }
  to {
    clip-path: inset(0 0 0 0 round 99px);
  }
}
@keyframes reveal-num {
  from {
    opacity: 0;
    filter: blur(6px);
  }
}
@keyframes shine {
  0% {
    transform: translateX(-120%);
  }
  35%,
  100% {
    transform: translateX(120%);
  }
}
@keyframes pulse-light {
  50% {
    opacity: 0.45;
  }
}
@keyframes glass-flow {
  50% {
    background-position: 100% 0;
  }
}
@keyframes ambient {
  to {
    transform: translate(-2%, 2%) scale(1.04);
  }
}
@keyframes orbit-float {
  50% {
    transform: translate(-12px, 10px);
  }
}
@media (prefers-reduced-motion: reduce) {
  body::before,
  .backstage-card::after,
  .hero-shine,
  .glass-word,
  .backstage-label i,
  .balance-hero .live-dot,
  .balance-hero .hero-orbit,
  .secret-real {
    animation: none !important;
  }
  .lift:hover,
  .pulse-card:hover,
  .cash-card:hover,
  .workspace .metric:hover,
  .balance-hero:hover {
    transform: none;
  }
}

/* ---------- Celular ---------- */
@media (max-width: 860px) {
  .camp-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }
  .group-grid,
  .camp-grid,
  .pub-cards {
    grid-template-columns: 1fr;
  }
  .group-tile {
    grid-template-columns: 46px minmax(0, 1fr) 16px;
  }
  .group-mark {
    width: 46px;
    height: 46px;
    font-size: 19px;
  }
  .group-money {
    grid-column: 2 / 4;
    text-align: left;
  }
  .pay-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px 14px 4px;
  }
  .page-search input {
    padding-right: 84px;
  }
  .pub-tabs .button {
    flex: 0 0 auto;
  }
}

.workspace .entry-body a.receipt {
  font-size: 10px;
  margin-top: 4px;
}
.cash-summary strong span,
.metric strong span {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-transform: none;
}

/* ---------- Gaveta (modal) e abas em vidro ---------- */
.overlay {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal,
.modal.wide {
  background: linear-gradient(160deg, rgba(40, 40, 46, 0.82), rgba(20, 20, 23, 0.9)) !important;
  border: 1px solid var(--glass-line-hi) !important;
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  box-shadow:
    0 40px 80px -30px #000,
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}
.finance-tabs {
  background: rgba(255, 255, 255, 0.035) !important;
  border-color: var(--glass-line) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.side-home.active,
.app-sidebar .admin-link.active,
.finance-tabs button.active,
.pub-tabs .button.primary {
  background: linear-gradient(180deg, #ffffff, #e4e4ea) !important;
  box-shadow:
    0 8px 24px -10px rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08) !important;
}
