
:root {
  --bg: #060a0d;
  --bg-2: #0b1217;
  --sidebar: rgba(5, 9, 12, 0.82);
  --panel: linear-gradient(180deg, rgba(11, 18, 24, 0.92) 0%, rgba(7, 12, 17, 0.96) 100%);
  --panel-strong: linear-gradient(180deg, rgba(16, 28, 22, 0.94) 0%, rgba(8, 15, 13, 0.98) 100%);
  --panel-2: rgba(14, 23, 31, 0.92);
  --border: rgba(119, 255, 171, 0.11);
  --border-soft: rgba(255, 255, 255, 0.06);
  --text: #edf8f0;
  --muted: #92a19a;
  --muted-2: #6f7d77;
  --green: #74ff9f;
  --green-2: #39d46d;
  --green-soft: rgba(116, 255, 159, 0.12);
  --red: #ff667e;
  --yellow: #ffcf66;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(38, 92, 63, 0.28) 0%, transparent 28%),
    radial-gradient(circle at top right, rgba(30, 95, 65, 0.18) 0%, transparent 25%),
    linear-gradient(180deg, #0b1115 0%, #070b0d 35%, #040607 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .18;
  pointer-events: none;
  z-index: 0;
  animation: floatOrb 16s ease-in-out infinite;
}
.orb-1 { width: 260px; height: 260px; background: #28ff7a; top: -40px; left: -60px; }
.orb-2 { width: 320px; height: 320px; background: #1db954; right: -80px; top: 120px; animation-delay: -6s; }
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(255,255,255,.45), transparent 75%);
}

.layout {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky; top: 0; height: 100vh;
  padding: 22px 18px;
  background: var(--sidebar);
  backdrop-filter: blur(18px);
  border-right: 1px solid rgba(255,255,255,.05);
}
.brand-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  color: #d7ffe2; background: rgba(116,255,159,.08); border: 1px solid rgba(116,255,159,.14);
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.brand-block h1 {
  margin: 14px 0 8px; font-size: 28px; line-height: 1.02; letter-spacing: -.04em;
}
.brand-block p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.sidebar-nav { display: grid; gap: 8px; margin-top: 24px; }
.nav-link {
  position: relative;
  text-decoration: none; color: var(--text); padding: 13px 14px; border-radius: 14px;
  border: 1px solid transparent; font-size: 14px; font-weight: 700;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.nav-link:hover, .nav-link.active {
  transform: translateX(4px);
  border-color: rgba(116,255,159,.18);
  background: linear-gradient(90deg, rgba(116,255,159,.12), rgba(116,255,159,.03));
  box-shadow: inset 0 0 0 1px rgba(116,255,159,.05);
}
.sidebar-mini-card {
  margin-top: 22px; padding: 16px; border-radius: 18px; background: var(--panel);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.sidebar-mini-card span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.sidebar-mini-card strong { display: block; font-size: 28px; color: var(--green); margin-bottom: 6px; }
.sidebar-mini-card small { color: var(--muted-2); }

.content { padding: 22px; display: grid; gap: 18px; }
.hero-header {
  padding: 8px 2px 4px;
}
.eyebrow {
  display: inline-block; margin-bottom: 8px; color: var(--green); font-size: 12px; font-weight: 900;
  letter-spacing: .16em; text-transform: uppercase;
}
.hero-header h2 { margin: 0; font-size: 34px; line-height: 1; letter-spacing: -.04em; }
.hero-subtitle { margin: 10px 0 0; color: var(--muted); max-width: 720px; line-height: 1.55; }
.section-header, .panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-kicker {
  display: inline-block; margin-bottom: 8px; font-size: 11px; text-transform: uppercase;
  letter-spacing: .12em; color: var(--green);
}
.panel-header h3 { margin: 0; font-size: 18px; }
.refresh-btn, button {
  border: 0; border-radius: 14px; padding: 12px 18px; cursor: pointer;
  font-size: 13px; font-weight: 800; color: #07110a;
  background: linear-gradient(135deg, #72ff9d, #2fd96d);
  box-shadow: 0 14px 30px rgba(47,217,109,.22);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.refresh-btn:hover, button:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(47,217,109,.3); }
button:active { transform: translateY(0); }

.cards {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.card, .panel, .sub-panel {
  position: relative; overflow: hidden; border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
}
.card::before, .panel::before, .sub-panel::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(116,255,159,.07), transparent 38%);
}
.card {
  padding: 18px; min-height: 124px;
  transform: translateY(22px); opacity: 0;
  animation: revealUp .7s ease forwards;
}
.card:nth-child(2) { animation-delay: .05s; }
.card:nth-child(3) { animation-delay: .1s; }
.card:nth-child(4) { animation-delay: .15s; }
.card:nth-child(5) { animation-delay: .2s; }
.card:nth-child(6) { animation-delay: .25s; }
.card:nth-child(7) { animation-delay: .3s; }
.metric-topline {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px;
}
.metric-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.metric-icon {
  width: 36px; height: 36px; border-radius: 12px; flex: 0 0 auto;
  border: 1px solid rgba(116,255,159,.16);
  background: rgba(116,255,159,.08);
  box-shadow: inset 0 0 24px rgba(116,255,159,.04);
}
.metric-value {
  display: block; font-size: 34px; line-height: 1; font-weight: 900; letter-spacing: -.05em; margin-bottom: 8px;
}
.metric-note { color: var(--muted-2); font-size: 12px; line-height: 1.4; }
.metric-accent {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: 11px; font-weight: 700; color: var(--green);
  padding: 6px 10px; border-radius: 999px; background: rgba(116,255,159,.08); border: 1px solid rgba(116,255,159,.12);
}
.metric-accent.is-danger { color: #ff93a4; background: rgba(255,102,126,.08); border-color: rgba(255,102,126,.14); }
.metric-accent.is-warning { color: #ffe39a; background: rgba(255,207,102,.08); border-color: rgba(255,207,102,.14); }

.insights-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
.insight-card {
  padding: 16px 18px; border-radius: 20px; background: var(--panel-strong);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transform: translateY(18px); opacity: 0; animation: revealUp .7s ease forwards;
}
.insight-card:nth-child(2) { animation-delay: .08s; }
.insight-card:nth-child(3) { animation-delay: .16s; }
.insight-title { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.insight-value { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.insight-bar {
  height: 9px; border-radius: 999px; background: rgba(255,255,255,.05); overflow: hidden; position: relative;
}
.insight-bar > i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #8fffaf, #1db954);
  border-radius: inherit; transition: width .9s ease;
}
.insight-note { margin-top: 10px; color: var(--muted-2); font-size: 12px; }

.premium-charts { display: grid; grid-template-columns: 1.3fr .9fr; gap: 14px; }
.panel, .chart-panel { padding: 18px; }
.chart-topbar { margin-bottom: 6px; }
.live-pill {
  padding: 8px 12px; border-radius: 999px; background: rgba(116,255,159,.08); border: 1px solid rgba(116,255,159,.16);
  color: var(--green); font-size: 12px; font-weight: 800;
}
.legend-dot-group { display: flex; gap: 8px; flex-wrap: wrap; }
.legend-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; border: 1px solid rgba(255,255,255,.08);
}
.legend-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chip-green::before { background: #65f49a; }
.chip-red::before { background: #ff6b83; }
.chart-canvas-wrap { position: relative; height: 360px; }
.donut-wrap { height: 360px; }

.form-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
input, select {
  width: 100%; border-radius: 14px; border: 1px solid rgba(255,255,255,.06);
  background: var(--panel-2); color: var(--text); padding: 14px 15px; outline: none;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
input:focus, select:focus {
  border-color: rgba(116,255,159,.45); box-shadow: 0 0 0 4px rgba(116,255,159,.08); transform: translateY(-1px);
}
.checkbox-premium {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 15px;
  border-radius: 14px; background: var(--panel-2); border: 1px solid rgba(255,255,255,.06);
}
.checkbox-premium input { width: auto; transform: scale(1.15); accent-color: #1db954; }
.form-actions { display: flex; align-items: end; }
.form-actions-full { grid-column: 1 / -1; }

.positions-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sub-panel { padding: 16px; }
.sub-panel h4 { margin: 0 0 14px; font-size: 14px; }
.positions-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.position-badge {
  min-width: 44px; padding: 9px 10px; border-radius: 12px; text-align: center; font-size: 12px; font-weight: 800;
  background: rgba(116,255,159,.1); color: #9effb9; border: 1px solid rgba(116,255,159,.12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.position-badge:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.occupied-grid .position-badge {
  background: rgba(255,102,126,.1); color: #ff95a5; border-color: rgba(255,102,126,.14);
}

.table-wrapper { overflow: auto; border-radius: 16px; }
table { width: 100%; border-collapse: collapse; min-width: 1040px; }
th, td {
  padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.05); text-align: left; vertical-align: top; font-size: 13px;
}
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
tr { transition: background .2s ease; }
tbody tr:hover { background: rgba(116,255,159,.03); }
.status {
  display: inline-flex; align-items: center; padding: 8px 11px; border-radius: 999px; font-size: 11px; font-weight: 900;
}
.status-ok { background: rgba(116,255,159,.12); color: #a9ffc2; }
.status-bad { background: rgba(255,102,126,.11); color: #ffb0bd; }
.mini-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.mini-actions button { padding: 8px 10px; font-size: 11px; border-radius: 10px; }
.secondary-btn {
  color: var(--text); background: linear-gradient(135deg, #28333c, #182127); box-shadow: none;
}

.panel-subtitle { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.pricing-settings-form { display: grid; gap: 16px; }
.pricing-multipliers { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 14px; }
.pricing-table-shell {
  border: 1px solid rgba(255,255,255,.06); border-radius: 18px; background: rgba(8,14,18,.7); overflow: hidden;
}
.pricing-table-head, .pricing-range-row {
  display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr 1fr; gap: 14px; align-items: center;
}
.pricing-table-head {
  padding: 14px 16px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; background: rgba(255,255,255,.03);
}
.pricing-ranges { display: grid; }
.pricing-range-row { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.05); }
.pricing-range-row:first-child { border-top: 0; }
.range-title { display: grid; gap: 4px; }
.range-title strong { font-size: 13px; }
.range-title small { color: var(--muted-2); font-size: 11px; }
.range-chip {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border-radius: 12px;
  background: rgba(116,255,159,.07); border: 1px solid rgba(116,255,159,.11); color: #c9f9d5; font-size: 12px; font-weight: 800;
}
.price-preview { color: var(--text); font-size: 13px; font-weight: 800; }
.price-preview span { display: block; color: var(--muted-2); font-size: 11px; font-weight: 500; margin-top: 4px; }
.pricing-range-row input { min-width: 0; }
.pricing-note { color: var(--muted-2); font-size: 12px; }
.pricing-actions { justify-content: flex-end; }

.toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  background: rgba(6, 10, 13, 0.96); border: 1px solid rgba(116,255,159,.16); padding: 13px 16px;
  border-radius: 14px; color: white; font-size: 13px; opacity: 0; transform: translateY(20px); pointer-events: none; transition: .25s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.muted { color: var(--muted); }

.reveal-section, .reveal-card {
  opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease;
}
.reveal-section.is-visible, .reveal-card.is-visible { opacity: 1; transform: translateY(0); }

@keyframes revealUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatOrb { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(24px) translateX(10px); } }

@media (max-width: 1380px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .insights-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1180px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.05); }
  .sidebar-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cards, .premium-charts, .form-grid, .positions-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .hero-header h2 { font-size: 26px; }
  .pricing-table-head { display: none; }
  .pricing-range-row { grid-template-columns: 1fr; gap: 10px; }
  .pricing-multipliers { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .content { padding: 14px; }
  .sidebar-nav, .cards, .premium-charts, .form-grid, .positions-wrapper { grid-template-columns: 1fr; }
  .chart-canvas-wrap, .donut-wrap { height: 290px; }
  .section-header, .panel-header { flex-direction: column; align-items: stretch; }
  .refresh-btn, button { width: 100%; }
}


.executive-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 14px;
}

.executive-main-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.exec-card,
.exec-mini-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}

.exec-card {
  min-height: 104px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(15, 28, 24, 0.98) 0%, rgba(10, 19, 17, 0.98) 100%);
}

.exec-card::before,
.exec-mini-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(116,255,159,.08), transparent 42%);
}

.exec-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.exec-card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #edf8f0;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 800;
}

.exec-card-heading strong {
  font-size: 20px;
  color: #ffffff;
  line-height: 1;
}

.exec-card-amount {
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.04em;
}

.exec-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
}

.exec-card-success .exec-card-amount,
.exec-mini-success strong {
  color: #72ffb1;
}

.exec-card-success .exec-card-icon {
  color: #72ffb1;
  background: rgba(114,255,177,.12);
  border-color: rgba(114,255,177,.16);
}

.exec-card-danger {
  background: linear-gradient(180deg, rgba(30, 14, 16, 0.98) 0%, rgba(18, 10, 11, 0.98) 100%);
  border-color: rgba(255,107,131,.14);
}

.exec-card-danger::before,
.exec-mini-danger::before {
  background: linear-gradient(135deg, rgba(255,107,131,.12), transparent 42%);
}

.exec-card-danger .exec-card-amount,
.exec-mini-danger strong {
  color: #ff788f;
}

.exec-card-danger .exec-card-icon {
  color: #ff96a8;
  background: rgba(255,107,131,.14);
  border-color: rgba(255,107,131,.2);
}

.exec-card-neutral .exec-card-amount,
.exec-mini-neutral strong {
  color: #ecf5ef;
}

.exec-card-neutral .exec-card-icon {
  color: #dfe7e2;
  background: rgba(255,255,255,.11);
}

.exec-mini-card {
  min-height: 47px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(12, 23, 21, 0.98) 0%, rgba(8, 16, 15, 0.98) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.exec-mini-card span {
  font-size: 11px;
  font-weight: 800;
  color: #edf8f0;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.exec-mini-card strong {
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
}

@media (max-width: 1380px) {
  .executive-board {
    grid-template-columns: 1fr;
  }

  .executive-side-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .executive-main-grid {
    grid-template-columns: 1fr;
  }

  .executive-side-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .executive-side-grid {
    grid-template-columns: 1fr;
  }

  .exec-card-amount {
    font-size: 22px;
  }
}


/* Ajuste de espaçamento do dashboard para não ficar grudado */
.dashboard-shell,
.dashboard-premium,
.dashboard-stack {
  display: grid;
  gap: 18px;
}

.cards,
.insights-grid,
.premium-charts {
  align-content: start;
}

.insights-grid {
  margin-top: 4px;
}

.premium-charts {
  margin-top: 8px;
}

.card,
.insight-card,
.panel,
.sub-panel {
  isolation: isolate;
}

@media (min-width: 1181px) {
  .cards,
  .insights-grid,
  .premium-charts {
    gap: 18px;
  }
}

@media (max-width: 760px) {
  .insights-grid,
  .premium-charts {
    margin-top: 10px;
  }
}


/* Destaque especial para o card de inadimplência */
.card-danger {
  background: linear-gradient(180deg, rgba(34, 10, 14, 0.96) 0%, rgba(18, 6, 9, 0.98) 100%);
  border: 1px solid rgba(255, 102, 126, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 102, 126, 0.05), 0 0 26px rgba(255, 102, 126, 0.08);
}

.card-danger::before {
  background:
    radial-gradient(circle at top right, rgba(255, 102, 126, 0.16) 0%, transparent 26%),
    linear-gradient(135deg, rgba(255, 102, 126, 0.14), transparent 42%);
}

.card-danger .metric-label {
  color: #ffb1be;
}

.card-danger .metric-value {
  color: #ffd7de;
  text-shadow: 0 0 18px rgba(255, 102, 126, 0.12);
}

.card-danger .metric-note {
  color: #d39ba5;
}

.card-danger .metric-icon {
  background: rgba(255, 102, 126, 0.12);
  border: 1px solid rgba(255, 102, 126, 0.24);
  box-shadow: inset 0 0 24px rgba(255, 102, 126, 0.08);
}

.card-danger .metric-accent,
.card-danger .metric-accent.is-danger {
  color: #ffc2cc;
  background: rgba(255, 102, 126, 0.13);
  border-color: rgba(255, 102, 126, 0.22);
}

.card-danger.active-alert {
  animation:
    revealUp .7s ease forwards,
    pulseDanger 2.2s ease-in-out infinite 0.8s;
}

@keyframes pulseDanger {
  0%, 100% {
    box-shadow:
      0 24px 60px rgba(0, 0, 0, 0.34),
      0 0 0 0 rgba(255, 102, 126, 0.00),
      0 0 0 1px rgba(255, 102, 126, 0.05);
  }
  50% {
    box-shadow:
      0 24px 60px rgba(0, 0, 0, 0.34),
      0 0 0 1px rgba(255, 102, 126, 0.10),
      0 0 26px rgba(255, 102, 126, 0.18);
  }
}


/* AJUSTE REAL: resumo executivo menor e mais compacto */
.executive-board {
  grid-template-columns: minmax(0, 1fr) 180px !important;
  gap: 10px !important;
}

.executive-main-grid {
  gap: 10px !important;
}

.executive-side-grid {
  gap: 8px !important;
}

.exec-card {
  min-height: 78px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
}

.exec-card-top {
  margin-bottom: 8px !important;
  gap: 8px !important;
}

.exec-card-heading {
  gap: 8px !important;
  font-size: 11px !important;
}

.exec-card-heading strong {
  font-size: 15px !important;
}

.exec-card-amount {
  font-size: 18px !important;
}

.exec-card-icon {
  width: 32px !important;
  height: 32px !important;
  font-size: 15px !important;
}

.exec-mini-card {
  min-height: 38px !important;
  padding: 8px 10px !important;
  border-radius: 12px !important;
}

.exec-mini-card span {
  font-size: 10px !important;
}

.exec-mini-card strong {
  font-size: 15px !important;
}

@media (max-width: 1380px) {
  .executive-board {
    grid-template-columns: 1fr !important;
  }
}


.action-edit-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: none;
}

.action-delete-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: none;
}

.hidden {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 8, 12, 0.72);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-card {
  width: min(860px, 100%);
  background: linear-gradient(180deg, rgba(12, 22, 27, 0.98) 0%, rgba(8, 15, 18, 0.98) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  padding: 18px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
}

.modal-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(135deg, #26323d, #182127);
  color: #fff;
  box-shadow: none;
}

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

.modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

@media (max-width: 760px) {
  .modal-form {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    flex-direction: column;
  }
}


/* Bordas e brilho mais próximos da referência */
.panel,
.card,
.sub-panel,
.exec-card,
.exec-mini-card,
.sidebar-mini-card,
.nav-link.active {
  box-shadow:
    0 20px 48px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.04),
    inset 0 0 0 1px rgba(90, 255, 151, .05);
}

.panel,
.card,
.sub-panel {
  border-color: rgba(100, 255, 170, 0.12);
}

.panel::after,
.card::after,
.exec-card::after,
.exec-mini-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

.chart-panel,
.client-panel {
  background:
    linear-gradient(180deg, rgba(8, 20, 28, 0.98) 0%, rgba(5, 12, 18, 0.99) 100%);
}

/* Faturamento por cliente */
.client-revenue-list {
  display: grid;
  gap: 14px;
  padding-top: 6px;
}

.client-row {
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(12, 27, 21, 0.34) 0%, rgba(8, 16, 14, 0.18) 100%);
  border: 1px solid rgba(118,255,169,0.08);
}

.client-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.client-name {
  font-size: 13px;
  font-weight: 800;
  color: #edf8f0;
}

.client-amount {
  font-size: 14px;
  font-weight: 900;
  color: #7cffb6;
}

.client-meta {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.client-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  overflow: hidden;
}

.client-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(73,237,139,0.88), rgba(149,255,188,0.96));
  box-shadow: 0 0 18px rgba(73,237,139,0.18);
}

.client-panel .panel-header {
  margin-bottom: 10px;
}


/* ===== VISUAL MAIS PRÓXIMO DA REFERÊNCIA ===== */
body {
  background:
    radial-gradient(circle at 8% 0%, rgba(38, 92, 63, 0.22) 0%, transparent 22%),
    radial-gradient(circle at 100% 14%, rgba(41, 120, 76, 0.18) 0%, transparent 24%),
    linear-gradient(180deg, #0a1014 0%, #060b0e 36%, #030507 100%) !important;
}

.bg-grid {
  opacity: .55;
  background-image:
    linear-gradient(rgba(120,255,170,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,255,170,.025) 1px, transparent 1px) !important;
  background-size: 30px 30px !important;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(5, 10, 12, 0.92) 0%, rgba(4, 8, 10, 0.96) 100%) !important;
  border-right: 1px solid rgba(120,255,170,.08) !important;
  box-shadow: inset -1px 0 0 rgba(255,255,255,.02);
}

.panel,
.card,
.sub-panel,
.sidebar-mini-card,
.exec-card,
.exec-mini-card,
.client-row,
.modal-card {
  border-color: rgba(120,255,170,.10) !important;
  box-shadow:
    0 22px 50px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.035),
    inset 0 0 0 1px rgba(120,255,170,.03) !important;
}

.panel,
.card,
.sub-panel {
  background:
    linear-gradient(180deg, rgba(7, 17, 24, 0.96) 0%, rgba(4, 10, 16, 0.99) 100%) !important;
}

.panel::before,
.card::before,
.sub-panel::before,
.exec-card::before,
.exec-mini-card::before {
  background:
    linear-gradient(135deg, rgba(116,255,159,.07), transparent 36%),
    radial-gradient(circle at top right, rgba(116,255,159,.045), transparent 24%) !important;
}

.hero-header {
  padding-bottom: 10px !important;
}

.hero-header h2 {
  font-size: 32px !important;
  text-shadow: 0 2px 18px rgba(0,0,0,.25);
}

.executive-board {
  gap: 12px !important;
}

.exec-card {
  background:
    linear-gradient(180deg, rgba(10, 24, 18, 0.98) 0%, rgba(8, 16, 14, 0.98) 100%) !important;
  border-radius: 18px !important;
}

.exec-card-danger {
  background:
    linear-gradient(180deg, rgba(44, 12, 18, 0.98) 0%, rgba(24, 8, 11, 0.98) 100%) !important;
  border-color: rgba(255,107,131,.18) !important;
  box-shadow:
    0 22px 50px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.03),
    inset 0 0 0 1px rgba(255,107,131,.04),
    0 0 0 1px rgba(255,107,131,.04) !important;
}

.exec-card-success {
  box-shadow:
    0 22px 50px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.03),
    inset 0 0 0 1px rgba(120,255,170,.04),
    0 0 0 1px rgba(120,255,170,.04) !important;
}

.chart-panel,
.client-panel {
  background:
    linear-gradient(180deg, rgba(6, 14, 20, 0.98) 0%, rgba(3, 9, 13, 0.99) 100%) !important;
  border-radius: 24px !important;
}

.client-revenue-list {
  gap: 12px !important;
}

.client-row {
  padding: 14px 16px !important;
  border-radius: 16px !important;
  background:
    linear-gradient(180deg, rgba(11, 25, 20, 0.50) 0%, rgba(6, 12, 11, 0.35) 100%) !important;
  border: 1px solid rgba(118,255,169,0.10) !important;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease !important;
}

.client-row:hover {
  transform: translateY(-2px);
  border-color: rgba(118,255,169,0.20) !important;
  box-shadow:
    0 16px 30px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.03),
    0 0 0 1px rgba(118,255,169,.04) !important;
}

.client-name {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #eef8f1 !important;
}

.client-amount {
  color: #75ffb0 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  text-shadow: 0 0 10px rgba(117,255,176,.10);
}

.client-meta {
  color: #9aac9f !important;
  font-size: 12px !important;
}

.client-bar {
  height: 11px !important;
  background: rgba(255,255,255,.04) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
}

.client-bar i {
  background: linear-gradient(90deg, #46e48c, #7dffc0) !important;
  box-shadow: 0 0 14px rgba(70,228,140,.22) !important;
  border-radius: inherit !important;
}

.live-pill,
.metric-accent,
.legend-chip,
.range-chip,
.position-badge {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.card-danger {
  background:
    linear-gradient(180deg, rgba(38, 9, 16, 0.97) 0%, rgba(20, 5, 8, 0.99) 100%) !important;
  border-color: rgba(255, 102, 126, 0.20) !important;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255,255,255,.025),
    inset 0 0 0 1px rgba(255,102,126,.04),
    0 0 0 1px rgba(255,102,126,.04),
    0 0 30px rgba(255,102,126,.07) !important;
}

.metric-value,
.exec-card-amount {
  text-shadow: 0 2px 12px rgba(0,0,0,.18);
}

@media (min-width: 1200px) {
  .premium-charts {
    grid-template-columns: 1.15fr .85fr !important;
    gap: 18px !important;
  }

  .client-panel {
    min-height: 520px;
  }

  .small-chart {
    min-height: 520px;
  }
}


.hidden { display: none !important; }
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  z-index: 10;
}
.login-card {
  width: min(440px, 100%);
  padding: 28px 26px 24px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid rgba(116,255,159,.14);
  box-shadow: 0 24px 60px rgba(0,0,0,.36);
}
.login-card h1 {
  margin: 18px 0 10px;
  font-size: 34px;
  line-height: .98;
  letter-spacing: -.05em;
}
.login-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.login-card form {
  display: grid;
  gap: 14px;
}
.error {
  color: #ff9daf;
  font-size: 12px;
  font-weight: 700;
}

.public-layout .refresh-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.position-chip.reserved { border-color: rgba(255, 207, 102, .35); color: var(--yellow); background: rgba(255, 207, 102, .08); }
.position-chip small { display: block; margin-top: 4px; font-size: 9px; color: var(--muted); font-weight: 700; }
textarea { width: 100%; border: 1px solid rgba(255,255,255,.08); background: rgba(4,8,10,.72); color: var(--text); border-radius: 14px; padding: 13px 14px; font: inherit; resize: vertical; }
button:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
.position-chip {
  min-width: 54px;
  padding: 9px 10px;
  border-radius: 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  background: rgba(116,255,159,.1);
  color: #9effb9;
  border: 1px solid rgba(116,255,159,.12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.position-chip:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.position-chip.occupied { background: rgba(255,102,126,.1); color: #ff95a5; border-color: rgba(255,102,126,.14); }

/* Checkout PIX premium - novo painel público */
.pix-checkout {
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(116,255,159,.16);
  background:
    radial-gradient(circle at 12% 0%, rgba(116,255,159,.12), transparent 34%),
    linear-gradient(145deg, rgba(7,18,21,.96), rgba(3,8,11,.98));
  box-shadow: 0 28px 70px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}
.pix-checkout-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.pix-checkout-header h4 {
  margin: 6px 0 8px;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: -.04em;
}
.pix-checkout-header p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.pix-status-badge {
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(116,255,159,.22);
  background: rgba(116,255,159,.09);
  color: #8fffaf;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.pix-status-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}
.pix-payment-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 280px;
  gap: 14px;
  align-items: stretch;
}
.pix-qr-card,
.pix-copy-card,
.pix-instructions-card {
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(4,10,13,.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.pix-qr-card {
  padding: 14px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
}
.pix-qr-frame {
  width: 178px;
  height: 178px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(0,0,0,.3);
}
.pix-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.pix-qr-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.pix-copy-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.pix-copy-card textarea {
  min-height: 104px;
  max-height: 128px;
  resize: none;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-all;
  background: rgba(2,7,9,.78);
}
.pix-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pix-actions button,
.pix-actions .refresh-btn {
  min-height: 48px;
  border-radius: 14px;
  font-size: 13px;
}
.pix-instructions-card {
  padding: 16px 16px 14px;
}
.pix-instructions-card h5 {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: -.02em;
}
.pix-instructions-card ol {
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.pix-instructions-card li + li { margin-top: 6px; }
@media (max-width: 1180px) {
  .pix-payment-grid { grid-template-columns: 210px 1fr; }
  .pix-instructions-card { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .pix-checkout { padding: 14px; border-radius: 20px; }
  .pix-checkout-header { display: grid; gap: 12px; }
  .pix-status-badge { width: 100%; min-width: 0; }
  .pix-payment-grid { grid-template-columns: 1fr; }
  .pix-qr-frame { width: 168px; height: 168px; }
  .pix-actions { grid-template-columns: 1fr; }
}

.pix-actions.pix-actions-single {
  grid-template-columns: minmax(220px, 420px);
}
.payment-success-box {
  margin-top: 18px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(116,255,159,.22);
  background:
    radial-gradient(circle at 12% 0%, rgba(116,255,159,.18), transparent 34%),
    linear-gradient(145deg, rgba(8,32,22,.96), rgba(3,10,10,.98));
  box-shadow: 0 24px 60px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.04);
  display: flex;
  align-items: center;
  gap: 16px;
}
.payment-success-box.hidden { display: none !important; }
.payment-success-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #05120b;
  background: linear-gradient(135deg, #79ff9e, #22df76);
  font-size: 34px;
  font-weight: 1000;
  box-shadow: 0 14px 34px rgba(34,223,118,.24);
}
.payment-success-box h4 {
  margin: 5px 0 7px;
  font-size: 22px;
  letter-spacing: -.04em;
}
.payment-success-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
@media (max-width: 760px) {
  .pix-actions.pix-actions-single { grid-template-columns: 1fr; }
  .payment-success-box { align-items: flex-start; padding: 18px; }
  .payment-success-icon { width: 48px; height: 48px; flex-basis: 48px; font-size: 28px; }
}

/* Logs e alertas do dashboard */
.alerts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.alert-panel { min-height: 360px; }
.log-panel-title {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}
.log-panel-title h4 { margin:0; }
.log-panel-title span {
  min-width:34px;
  height:34px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(116,255,159,.12);
  border:1px solid rgba(116,255,159,.28);
  font-weight:800;
}
.alert-list { display:flex; flex-direction:column; gap:10px; }
.alert-item {
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
}
.alert-item strong { display:block; margin-bottom:5px; }
.alert-item span { color:var(--muted, #9fb0aa); font-size:.83rem; }
.alert-success { border-color:rgba(116,255,159,.24); }
.alert-warning { border-color:rgba(255,204,102,.26); }
.alert-error { border-color:rgba(255,102,126,.32); }
.empty-alert {
  color:var(--muted, #9fb0aa);
  border:1px dashed rgba(255,255,255,.12);
  border-radius:18px;
  padding:18px;
}
.logs-actions { display:flex; gap:10px; flex-wrap:wrap; }
.logs-toolbar {
  display:grid;
  grid-template-columns: 180px 180px minmax(220px, 1fr);
  gap:12px;
  margin:18px 0;
}
.logs-toolbar label {
  display:flex;
  flex-direction:column;
  gap:8px;
  color:var(--muted, #9fb0aa);
  font-weight:700;
  font-size:.82rem;
}
.logs-toolbar select,
.logs-toolbar input {
  width:100%;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.22);
  color:inherit;
  border-radius:14px;
  padding:12px 14px;
  outline:none;
}
.logs-summary {
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-bottom:16px;
}
.logs-summary > div {
  border:1px solid rgba(116,255,159,.16);
  background:rgba(116,255,159,.055);
  border-radius:18px;
  padding:14px;
}
.logs-summary strong { display:block; font-size:1.35rem; }
.logs-summary span { color:var(--muted, #9fb0aa); font-size:.82rem; }
.logs-table-wrapper { max-height: 620px; overflow:auto; }
.logs-table th { position:sticky; top:0; z-index:2; }
.log-badge,
.log-level {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:6px 10px;
  font-size:.76rem;
  font-weight:800;
  white-space:nowrap;
}
.log-badge { background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); }
.log-cat-compra, .log-cat-pix, .log-cat-pagamento { background:rgba(116,255,159,.09); border-color:rgba(116,255,159,.2); }
.log-cat-erro { background:rgba(255,102,126,.1); border-color:rgba(255,102,126,.24); }
.log-level-success { background:rgba(116,255,159,.12); border:1px solid rgba(116,255,159,.24); }
.log-level-info { background:rgba(96,165,250,.10); border:1px solid rgba(96,165,250,.22); }
.log-level-warning { background:rgba(255,204,102,.11); border:1px solid rgba(255,204,102,.25); }
.log-level-error { background:rgba(255,102,126,.12); border:1px solid rgba(255,102,126,.28); }
.log-details { display:flex; flex-direction:column; gap:4px; max-width:520px; }
.log-details code {
  white-space:normal;
  word-break:break-word;
  color:var(--muted, #9fb0aa);
}
@media (max-width: 900px) {
  .alerts-grid, .logs-summary, .logs-toolbar { grid-template-columns:1fr; }
  .logs-actions { width:100%; }
  .logs-actions button { flex:1; }
}
