* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg: #f6f7f2;
  --surface: #ffffff;
  --surface-soft: #f1f5ed;
  --text: #152018;
  --muted: #647067;
  --line: #e2e8dc;
  --primary: #2f7d4f;
  --primary-strong: #245f3d;
  --accent: #e9f5df;
  --danger: #c2413b;
  --success: #2f7d4f;
  --warning: #d38b18;
  --shadow: 0 10px 26px rgba(21, 32, 24, .08);
  --radius: 22px;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(47, 125, 79, .12), transparent 30%),
    var(--bg);
  color: var(--text);
}

.topbar {
  height: 68px;
  padding: 0 16px;
  background: rgba(246, 247, 242, .92);
  backdrop-filter: blur(10px);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(226, 232, 220, .8);
}

.topbar h1 {
  font-size: 19px;
  margin: 0;
  letter-spacing: -.3px;
}

.icon-btn,
.user-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  font-size: 22px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(21, 32, 24, .06);
}

.icon-btn:active,
.user-icon:active,
button:active,
.action-card:active {
  transform: scale(.98);
}

.sidebar {
  position: fixed;
  top: 0;
  left: -88%;
  width: 88%;
  max-width: 340px;
  height: 100vh;
  background: var(--surface);
  padding: 22px;
  z-index: 30;
  transition: .28s ease;
  overflow-y: auto;
  border-radius: 0 28px 28px 0;
  box-shadow: 18px 0 40px rgba(21, 32, 24, .16);
}

.sidebar.active {
  left: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  margin-bottom: 22px;
  padding: 14px;
  border-radius: 20px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.sidebar-user p {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 14px;
}

.avatar {
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  display: block;
  font-size: 30px;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 10px;
  margin-bottom: 4px;
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  font-weight: 600;
}

.sidebar a:active,
.sidebar a:hover {
  background: var(--accent);
}

#overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(21, 32, 24, .42);
  z-index: 20;
}

#overlay.active {
  display: block;
}

.container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 16px;
  padding-bottom: 28px;
}

.card,
.welcome-card,
.action-card,
.login-card {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(226, 232, 220, .9);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.welcome-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(47, 125, 79, .12), rgba(255, 255, 255, .95) 55%),
    var(--surface);
}

.welcome-card::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: -8px;
  font-size: 70px;
  opacity: .12;
}

.welcome-card h2 {
  margin: 4px 0;
  font-size: 28px;
  letter-spacing: -.5px;
}

.grid-actions {
  display: grid;
  gap: 12px;
}

.action-card {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  box-shadow: none;
  border-left: 5px solid transparent;
}

.action-card:nth-child(1) {
  border-left-color: #2f7d4f;
}

.action-card:nth-child(2) {
  border-left-color: #4f7dbd;
}

.action-card:nth-child(3) {
  border-left-color: #d38b18;
}

.action-card:nth-child(4) {
  border-left-color: #8f5cc0;
}

.action-card:nth-child(5) {
  border-left-color: #c2413b;
}

.action-card span {
  font-size: 31px;
  min-width: 38px;
  background: transparent;
  border: none;
  box-shadow: none;
  line-height: 1;
}

.action-card h3 {
  margin: 0 0 5px;
  font-size: 18px;
  letter-spacing: -.2px;
}

.action-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
  font-size: 14px;
}

form {
  margin-top: 12px;
}

label {
  display: block;
  margin-top: 12px;
  font-weight: bold;
  font-size: 14px;
}

input,
select,
button,
textarea {
  width: 100%;
  padding: 15px;
  margin-top: 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  font-size: 16px;
  background: var(--surface);
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(47, 125, 79, .18);
  border-color: var(--primary);
}

button {
  background: var(--primary);
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(47, 125, 79, .2);
}

button.secondary {
  background: #eef2e9;
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--line);
}

.button-row {
  display: grid;
  gap: 10px;
  margin: 10px 0;
}

.login-page {
  min-height: 100vh;
  padding: 20px;
  background:
    radial-gradient(circle at top, rgba(47, 125, 79, .25), transparent 32%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 100%;
  max-width: 390px;
  background: rgba(255, 255, 255, .96);
}

.login-logo {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: inherit;
  display: block;
  font-size: 44px;
  margin-bottom: 10px;
}

.login-card h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -.5px;
}

.login-card p {
  color: var(--muted);
}

.small {
  font-size: 13px;
  line-height: 1.35;
}

.muted {
  color: var(--muted);
  margin-top: 0;
}

.badge {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eef2e9;
  font-size: 13px;
  font-weight: bold;
}

.badge.danger {
  color: white;
  background: var(--danger);
}

.badge.warning {
  color: #2d1b00;
  background: #f6d69b;
}

.badge.success {
  color: white;
  background: var(--success);
}

.danger {
  color: var(--danger);
  font-weight: bold;
}

.success {
  color: var(--success);
  font-weight: bold;
}

.produto-img {
  width: 100%;
  max-height: 190px;
  object-fit: contain;
  margin-top: 10px;
  border-radius: 18px;
  background: #f8faf5;
  border: 1px solid var(--line);
}

#reader {
  width: 100%;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

#reader video {
  border-radius: 18px;
}

#preview-foto,
#produto-preview {
  margin-top: 12px;
}

.card-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.btn-danger {
  background: var(--danger);
  box-shadow: 0 10px 18px rgba(194, 65, 59, .18);
}

@media (min-width: 768px) {
  .grid-actions {
    grid-template-columns: 1fr 1fr;
  }

  .button-row {
    grid-template-columns: 1fr 1fr;
  }
}


.api-status {
  display: inline-block;
  margin: 0 0 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 700;
}

.produto-encontrado {
  border-left: 5px solid var(--success);
}


.resumo-vencimentos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.resumo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.resumo-card span {
  font-size: 27px;
  line-height: 1;
}

.resumo-card strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.resumo-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.danger-soft {
  background: #fff1f1;
}

.warning-soft {
  background: #fff7e8;
}

.alert-soft {
  background: #fffbe8;
}

.ok-soft {
  background: #edf8ef;
}

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

.section-title h2 {
  margin: 0 0 4px;
}

.section-title span {
  font-size: 30px;
}

.lembrete-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.lembrete-item:first-child {
  border-top: none;
}

.lembrete-foto {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  overflow: hidden;
  background: #f8faf5;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lembrete-foto img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lembrete-foto span {
  font-size: 28px;
}

.lembrete-info h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.lembrete-info p {
  margin: 2px 0;
  font-size: 13px;
}

.lembrete-item .badge {
  grid-column: 1 / -1;
  justify-self: start;
}

.empty-state {
  text-align: center;
  padding: 18px 10px;
  color: var(--muted);
}

.empty-state span {
  display: block;
  font-size: 40px;
  margin-bottom: 8px;
}

@media (min-width: 520px) {
  .resumo-vencimentos {
    grid-template-columns: repeat(4, 1fr);
  }

  .lembrete-item {
    grid-template-columns: 64px 1fr auto;
  }

  .lembrete-item .badge {
    grid-column: auto;
  }
}


.cookie-banner {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 100;
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(21, 32, 24, .18);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.cookie-banner strong {
  display: block;
  margin-bottom: 4px;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.cookie-banner button {
  margin-top: 0;
}

@media (min-width: 768px) {
  .cookie-banner {
    left: 50%;
    right: auto;
    width: min(520px, calc(100% - 28px));
    transform: translateX(-50%);
    grid-template-columns: 1fr 130px;
    align-items: center;
  }
}


select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% + 1px),
    calc(100% - 16px) calc(50% + 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.produto-encontrado h3 {
  margin-bottom: 8px;
}

.produto-encontrado p {
  margin: 6px 0;
}


#reader {
  position: relative;
  min-height: 220px;
}

#reader::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 50%;
  height: 2px;
  background: rgba(47, 125, 79, .8);
  box-shadow: 0 0 14px rgba(47, 125, 79, .45);
  transform: translateY(-50%);
  pointer-events: none;
}

.scanner-ajuda {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.scanner-ajuda p {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--text);
}

.scanner-ajuda small {
  display: block;
  color: var(--muted);
  line-height: 1.35;
}

#scanner-status.scanner-lendo {
  color: var(--warning);
}

#scanner-status.scanner-ok {
  color: var(--success);
}

#scanner-status.scanner-erro {
  color: var(--danger);
}


/* Site público */
.public-page {
  background:
    radial-gradient(circle at top left, rgba(47, 125, 79, .16), transparent 30%),
    var(--bg);
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  padding: 0 16px;
  background: rgba(246, 247, 242, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
}

.brand span {
  font-size: 25px;
}

.public-nav {
  display: none;
  gap: 18px;
}

.public-nav a,
.public-footer a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.login-link,
.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 800;
  text-decoration: none;
}

.login-link,
.primary-link {
  background: var(--primary);
  color: white;
}

.secondary-link {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 16px 24px;
  display: grid;
  gap: 24px;
}

.hero-content h1 {
  font-size: clamp(34px, 8vw, 64px);
  line-height: .96;
  letter-spacing: -1.8px;
  margin: 8px 0 16px;
}

.hero-content p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 17px;
}

.eyebrow {
  color: var(--primary-strong);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  margin: 0;
}

.hero-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.hero-card {
  display: flex;
  justify-content: center;
}

.phone-mock {
  width: min(100%, 340px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.mock-top {
  padding: 14px;
  border-radius: 20px;
  background: var(--surface-soft);
  font-weight: 900;
  margin-bottom: 12px;
}

.mock-item {
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 20px;
  padding: 14px;
  margin-top: 10px;
}

.mock-item span {
  font-size: 28px;
}

.mock-item p {
  margin: 3px 0 0;
  color: var(--muted);
}

.public-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 34px 16px;
}

.public-section h2 {
  font-size: clamp(26px, 5vw, 42px);
  margin: 8px 0 18px;
  letter-spacing: -.9px;
}

.feature-grid {
  display: grid;
  gap: 14px;
}

.feature-grid article,
.construction-card,
.contato-publico {
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.feature-grid article span,
.construction-card span {
  font-size: 34px;
}

.feature-grid article h3,
.construction-card h3 {
  margin: 10px 0 6px;
}

.feature-grid article p,
.construction-card p,
.contato-publico p {
  color: var(--muted);
  line-height: 1.45;
}

.construction-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.contact-grid a {
  text-decoration: none;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
  font-weight: 800;
}

.public-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 34px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

/* Loja atual */
.loja-atual-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--primary);
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.loja-atual-card > div {
  display: flex;
  gap: 12px;
  align-items: center;
}

.loja-atual-card span {
  font-size: 30px;
}

.loja-atual-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.loja-atual-card a {
  color: var(--primary-strong);
  text-decoration: none;
  font-weight: 900;
}

.loja-atual-card.compact {
  margin-top: 0;
}

.loja-card h3 {
  margin-top: 0;
}

@media (min-width: 760px) {
  .public-nav {
    display: flex;
  }

  .hero {
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    padding-top: 70px;
  }

  .hero-actions {
    display: flex;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .public-footer {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .loja-atual-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.voltar-site {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--primary-strong);
  text-decoration: none;
  font-weight: 800;
}


/* Apresentação comercial do site público */
.hero-apresentacao {
  min-height: calc(100vh - 72px);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-badges span {
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 800;
  font-size: 13px;
}

.hero-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 540px;
}

.phone-mock.principal {
  width: min(100%, 360px);
  border-radius: 38px;
  padding: 16px;
  border: 8px solid #18251b;
  background: #f6f7f2;
  box-shadow: 0 30px 80px rgba(21, 32, 24, .22);
}

.mock-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 4px 8px 10px;
  font-size: 12px;
  font-weight: 900;
}

.mock-welcome {
  display: grid;
  gap: 3px;
  background: linear-gradient(135deg, rgba(47, 125, 79, .14), #fff);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 12px;
}

.mock-welcome small,
.mock-welcome span {
  color: var(--muted);
}

.mock-welcome strong {
  font-size: 24px;
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mock-box {
  border-radius: 18px;
  padding: 14px;
}

.mock-box strong {
  display: block;
  font-size: 24px;
}

.mock-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mock-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.mock-product {
  display: flex;
  gap: 10px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
}

.mock-product p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.mock-product-img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 3px;
  min-width: 150px;
}

.floating-card span {
  font-size: 28px;
}

.floating-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.card-scan {
  left: 0;
  top: 90px;
}

.card-store {
  right: 0;
  bottom: 110px;
}

.section-intro {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: -6px;
  margin-bottom: 18px;
}

.demo-grid {
  display: grid;
  gap: 16px;
}

.demo-phone {
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.demo-phone-top {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.demo-phone h3 {
  margin: 14px 0 12px;
}

.demo-phone > p {
  color: var(--muted);
  line-height: 1.45;
}

.mini-screen {
  background: #f8faf5;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 14px;
  min-height: 180px;
  display: grid;
  gap: 10px;
  align-content: center;
}

.mini-card,
.produto-mini,
.mini-alert {
  display: flex;
  gap: 10px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
}

.mini-card span,
.produto-foto,
.mini-alert span {
  font-size: 28px;
}

.mini-card p,
.produto-mini p {
  margin: 2px 0;
  color: var(--muted);
  font-size: 12px;
}

.mini-screen button {
  margin: 0;
}

.scanner-preview {
  place-items: center;
}

.scanner-frame {
  width: 100%;
  height: 96px;
  border-radius: 18px;
  background:
    repeating-linear-gradient(90deg, #111 0 4px, transparent 4px 9px),
    white;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.scanner-frame span {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 14px rgba(47, 125, 79, .8);
}

.scanner-preview p {
  color: var(--success);
  font-weight: 900;
  margin: 0;
}

.produto-foto {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-alert {
  justify-content: space-between;
}

.mini-alert em {
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
}

.fluxo-linha {
  display: grid;
  gap: 14px;
}

.fluxo-linha article {
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  position: relative;
  box-shadow: var(--shadow);
}

.fluxo-linha article span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.fluxo-linha article p {
  color: var(--muted);
  line-height: 1.45;
}

.cargo-grid {
  display: grid;
  gap: 14px;
}

.cargo-grid article {
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.cargo-grid article span {
  font-size: 34px;
}

.cargo-grid article p {
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 520px) {
  .hero-showcase {
    min-height: auto;
  }

  .floating-card {
    position: static;
    margin-top: 10px;
    width: min(100%, 360px);
  }
}

@media (min-width: 760px) {
  .demo-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .fluxo-linha {
    grid-template-columns: repeat(5, 1fr);
  }

  .cargo-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .demo-phone {
    min-height: 420px;
  }
}


.grupo-lembrete {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  margin-bottom: 14px;
  background: var(--surface);
}

.grupo-lembrete.danger {
  border-left: 5px solid var(--danger);
}

.grupo-lembrete.warning {
  border-left: 5px solid var(--warning);
}

.grupo-lembrete.success {
  border-left: 5px solid var(--success);
}

.grupo-lembrete-topo {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.grupo-lembrete-topo h3 {
  margin: 0 0 4px;
}

.grupo-lembrete-topo p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.grupo-dias {
  display: grid;
  gap: 10px;
}

.subgrupo-dia {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8faf5;
  overflow: hidden;
}

.subgrupo-dia summary {
  cursor: pointer;
  padding: 12px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.subgrupo-dia summary::-webkit-details-marker {
  display: none;
}

.subgrupo-itens {
  padding: 0 12px 12px;
}

.subgrupo-itens .lembrete-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  margin-top: 8px;
}

.mais-itens {
  margin: 10px 0 0;
  font-size: 13px;
}


/* Correção mobile forte para o site público */
@media (max-width: 759px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .public-header {
    height: 62px;
    padding: 0 12px;
    gap: 8px;
  }

  .brand {
    font-size: 16px;
    min-width: 0;
  }

  .brand span {
    font-size: 22px;
  }

  .public-nav {
    display: none !important;
  }

  .login-link {
    min-height: 40px;
    padding: 0 13px;
    font-size: 14px;
    white-space: nowrap;
  }

  .hero,
  .hero-apresentacao,
  .hero-clean {
    min-height: auto;
    padding: 24px 14px 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-content h1 {
    font-size: 34px;
    line-height: 1.04;
    letter-spacing: -1px;
    margin: 8px 0 12px;
  }

  .hero-content p {
    font-size: 15px;
    line-height: 1.48;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
    min-height: 48px;
  }

  .public-section {
    padding: 26px 14px;
  }

  .public-section h2 {
    font-size: 28px;
    line-height: 1.08;
    margin-bottom: 14px;
  }

  .section-intro {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .feature-grid,
  .contact-grid,
  .workflow-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .feature-grid article,
  .construction-card,
  .contato-publico,
  .workflow-card {
    border-radius: 20px;
    padding: 15px;
  }

  .public-footer {
    padding: 22px 14px 30px;
  }

  .topbar h1 {
    font-size: 16px;
  }

  .container {
    padding: 12px;
  }

  .card,
  .welcome-card,
  .action-card,
  .login-card {
    padding: 15px;
    border-radius: 18px;
  }

  .loja-atual-card {
    padding: 13px;
    border-radius: 18px;
  }

  .lancamento-topo {
    display: grid !important;
    gap: 8px;
  }

  .info-grid {
    display: grid;
    gap: 2px;
  }

  .produto-img {
    max-height: 220px;
    object-fit: contain;
  }
}

/* Cards de lançamento */
.lista-resumo {
  border-left: 5px solid var(--primary);
}

.lancamento-topo {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.lancamento-topo h3 {
  margin: 0;
}

.lancamento-topo p {
  margin: 4px 0 0;
}

.info-grid p {
  margin: 7px 0;
}

.mini-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--primary-strong);
  font-weight: 800;
  text-decoration: none;
}

/* Site público com visual mais profissional */
.clean-public {
  background:
    radial-gradient(circle at top right, rgba(47, 125, 79, .10), transparent 26%),
    linear-gradient(180deg, #f7f8f3, #eef3ea);
}

.clean-brand {
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--primary);
  color: white;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 17px !important;
}

.hero-clean {
  min-height: auto;
  padding-top: 58px;
}

.system-preview {
  display: flex;
  justify-content: center;
  width: 100%;
}

.preview-window {
  width: min(100%, 520px);
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(21, 32, 24, .16);
  overflow: hidden;
}

.preview-window-top {
  height: 42px;
  background: #edf3e7;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
}

.preview-window-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b8c6b5;
}

.preview-header {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.preview-header small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.preview-header strong {
  font-size: 20px;
}

.status-pill {
  background: var(--accent);
  color: var(--primary-strong);
  border: 1px solid #d6e9cf;
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 800;
  font-size: 12px;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 18px 18px;
}

.preview-metrics div {
  background: #f7faf4;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}

.preview-metrics strong {
  display: block;
  font-size: 26px;
}

.preview-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.preview-table {
  margin: 0 18px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.preview-row {
  display: grid;
  grid-template-columns: 1.3fr .8fr .6fr;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.preview-row:last-child {
  border-bottom: 0;
}

.preview-row-head {
  background: #f1f5ed;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 11px;
}

.text-danger {
  color: var(--danger);
  font-weight: 900;
}

.workflow-grid {
  display: grid;
  gap: 14px;
}

.workflow-card {
  background: rgba(255, 255, 255, .95);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.step-number {
  display: inline-flex;
  color: var(--primary-strong);
  background: var(--accent);
  border: 1px solid #d6e9cf;
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 900;
  font-size: 12px;
}

.workflow-card h3 {
  margin: 14px 0 8px;
}

.workflow-card p {
  color: var(--muted);
  line-height: 1.45;
}

.mini-system {
  margin-top: 14px;
  background: #f8faf5;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px;
  display: grid;
  gap: 8px;
}

.mini-line {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  font-size: 13px;
}

.mini-line.strong {
  font-weight: 900;
}

.mini-line.success {
  color: var(--success);
  font-weight: 900;
}

.mini-button {
  background: var(--primary);
  color: white;
  border-radius: 12px;
  padding: 11px;
  text-align: center;
  font-weight: 900;
  font-size: 13px;
}

.barcode-demo {
  height: 72px;
  border-radius: 14px;
  background:
    repeating-linear-gradient(90deg, #1d241f 0 3px, transparent 3px 8px),
    #fff;
  border: 1px solid var(--line);
}

.mini-status {
  border-radius: 12px;
  padding: 10px;
  font-weight: 900;
  border: 1px solid var(--line);
  background: white;
}

.mini-status.danger {
  color: var(--danger);
}

.mini-status.warning {
  color: var(--warning);
}

.mini-status.ok {
  color: var(--success);
}

.clean-grid article span,
.cargo-grid article span,
.construction-card > span {
  display: none !important;
}

.roles-table {
  background: rgba(255,255,255,.95);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.roles-table div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.roles-table div:last-child {
  border-bottom: 0;
}

.roles-table strong {
  font-size: 16px;
}

.roles-table span {
  color: var(--muted);
  line-height: 1.4;
}

@media (min-width: 760px) {
  .workflow-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .roles-table div {
    grid-template-columns: 180px 1fr;
    align-items: center;
  }
}

@media (max-width: 759px) {
  .hero-clean {
    padding-top: 24px;
  }

  .preview-window {
    border-radius: 22px;
  }

  .preview-header {
    padding: 14px;
  }

  .preview-header strong {
    font-size: 17px;
  }

  .preview-metrics {
    grid-template-columns: 1fr;
    padding: 0 14px 14px;
  }

  .preview-table {
    margin: 0 14px 14px;
  }

  .preview-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .preview-row span:nth-child(2)::before {
    content: "Setor: ";
    color: var(--muted);
    font-weight: 700;
  }

  .preview-row span:nth-child(3)::before {
    content: "Prazo: ";
    color: var(--muted);
    font-weight: 700;
  }

  .preview-row-head {
    display: none;
  }
}


/* Home ValiSys bonita, mantendo o estilo anterior sem excesso de emoji */
.valisys-home {
  background:
    radial-gradient(circle at top left, rgba(47, 125, 79, .16), transparent 34%),
    linear-gradient(180deg, #f7f8f3 0%, #edf3ea 100%);
}

.valisys-brand {
  gap: 10px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px !important;
  box-shadow: 0 8px 20px rgba(47, 125, 79, .22);
}

.hero-valisys {
  min-height: calc(100vh - 72px);
  align-items: center;
}

.clean-badges span {
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  color: var(--text);
}

.app-showcase {
  position: relative;
  min-height: 540px;
}

.valisys-phone {
  border: 8px solid #17251b;
  background: #f7f9f4;
  position: relative;
  overflow: hidden;
}

.phone-speaker {
  width: 70px;
  height: 5px;
  border-radius: 99px;
  background: #d7dfd2;
  margin: 2px auto 14px;
}

.clean-mock-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.clean-mock-top span {
  font-weight: 900;
}

.clean-mock-top small {
  color: var(--muted);
  font-weight: 800;
}

.simple-img {
  background: linear-gradient(135deg, #edf5e8, #ffffff);
  border: 1px solid var(--line);
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 900;
}

.soft-float {
  min-width: 180px;
}

.float-label {
  font-size: 12px !important;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.soft-float strong {
  font-size: 15px;
}

.valisys-demo-card {
  min-height: 430px;
}

.valisys-demo-card .demo-phone-top {
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: 8px 11px;
  background: var(--accent);
  color: var(--primary-strong);
  border: 1px solid #d6e9cf;
}

.clean-mini {
  background: #f7faf4;
}

.mini-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent);
  border: 1px solid #d6e9cf;
  color: var(--primary-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.valisys-flow article span {
  background: var(--accent);
  color: var(--primary-strong);
  border: 1px solid #d6e9cf;
}

.valisys-feature-grid article span,
.valisys-construction > span {
  display: none !important;
}

.valisys-construction {
  display: block;
}

.valisys-contact {
  background:
    linear-gradient(135deg, rgba(47, 125, 79, .08), rgba(255,255,255,.94)),
    var(--surface);
}

@media (max-width: 759px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .public-header {
    height: 62px;
    padding: 0 12px;
  }

  .public-nav {
    display: none !important;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
  }

  .login-link {
    min-height: 40px;
    padding: 0 13px;
    font-size: 14px;
  }

  .hero-valisys {
    min-height: auto;
    padding: 26px 14px 20px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-content h1 {
    font-size: 36px;
    line-height: 1.02;
    letter-spacing: -1px;
  }

  .hero-content p {
    font-size: 15px;
    line-height: 1.48;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .app-showcase {
    min-height: auto;
    display: grid;
    justify-items: center;
  }

  .valisys-phone {
    width: min(100%, 350px);
    border-width: 6px;
    border-radius: 32px;
  }

  .soft-float {
    position: static;
    width: min(100%, 350px);
    margin-top: 10px;
  }

  .public-section {
    padding: 28px 14px;
  }

  .public-section h2 {
    font-size: 29px;
    line-height: 1.08;
  }

  .demo-grid,
  .feature-grid,
  .fluxo-linha,
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .valisys-demo-card {
    min-height: auto;
  }

  .mini-screen {
    min-height: 150px;
  }
}


/* Loja, filtros, retirada e notificações */
.loja-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.btn-outline {
  background: transparent !important;
  border: 1px solid currentColor !important;
}

.btn-warning {
  background: var(--warning);
  color: white;
}

.badges-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.badge.neutral {
  background: #e8ece5;
  color: #445044;
}

.lista-filtros {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.stack-actions {
  display: grid;
  gap: 8px;
}

.item-retirado {
  opacity: .76;
  border-left: 5px solid #8b948b;
}

.item-retirado h3 {
  text-decoration: line-through;
}

.notificacao-card {
  border-left: 5px solid var(--warning);
}

.notificacao-lida {
  opacity: .75;
  border-left-color: #9aa49a;
}

@media (min-width: 700px) {
  .lista-filtros {
    grid-template-columns: 1fr 1fr;
  }

  .loja-card {
    display: grid;
    grid-template-columns: 1fr 190px;
    gap: 12px;
    align-items: center;
  }

  .loja-actions {
    margin-top: 0;
  }

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

@media (max-width: 520px) {
  .badges-line {
    justify-content: flex-start;
  }
}


/* Funcionários da loja */
.funcionario-card {
  border-left: 5px solid var(--primary);
}

.btn-secondary-login {
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.login-card .btn-secondary-login {
  margin-top: 4px;
}

@media (min-width: 700px) {
  .funcionario-card {
    display: grid;
    grid-template-columns: 1fr 210px;
    gap: 12px;
    align-items: center;
  }
}


/* Usuários com funcionários integrados */
#area-cadastro-funcionario {
  border-left: 5px solid var(--primary);
}

#area-usuarios-sistema {
  margin-top: 18px;
}


/* Ajustes camera alta resolucao */
#reader {
  min-height: 260px;
}

#reader video,
#reader canvas {
  width: 100% !important;
  min-height: 260px;
  object-fit: cover;
  image-rendering: auto;
}

#reader__scan_region {
  background: rgba(0, 0, 0, .02);
}

#reader__dashboard_section_csr button,
#reader__dashboard button {
  border-radius: 14px;
}

.btn-danger,
button.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.btn-danger.btn-outline,
button.btn-danger.btn-outline {
  background: #fff;
  color: var(--danger);
  border: 1px solid rgba(194, 65, 59, .45);
  box-shadow: none;
}

.btn-danger.btn-outline:hover,
button.btn-danger.btn-outline:hover {
  background: rgba(194, 65, 59, .08);
}

button[disabled] {
  opacity: .65;
  cursor: not-allowed;
}


/* Remove barra visual do leitor */
#reader {
  min-height: 280px;
  background: #fff;
}

#reader video,
#reader canvas {
  width: 100% !important;
  min-height: 280px;
  object-fit: cover;
}

#reader__scan_region {
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  background: transparent !important;
}

#reader__scan_region img {
  display: none !important;
}

#qr-shaded-region,
#qr-shaded-region * {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

#reader div[style*="border"],
#reader span[style*="border"] {
  border: 0 !important;
  box-shadow: none !important;
}

#reader__dashboard_section,
#reader__dashboard_section_csr,
#reader__camera_selection {
  display: none !important;
}


/* Camera fullscreen real */
body.camera-aberta {
  overflow: hidden;
}

body.camera-aberta #reader {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9998 !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #000 !important;
  overflow: hidden !important;
}

body.camera-aberta #reader video,
body.camera-aberta #reader canvas {
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}

body.camera-aberta #btn-parar-camera {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 10000;
  width: auto;
  min-height: 54px;
  border-radius: 18px;
  background: #ffffff;
  color: #111;
  border: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}

body.camera-aberta .scanner-ajuda {
  position: fixed;
  left: 16px;
  right: 16px;
  top: calc(16px + env(safe-area-inset-top));
  z-index: 10000;
  color: #fff;
  background: rgba(0, 0, 0, .42);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
}

body.camera-aberta .scanner-ajuda p,
body.camera-aberta .scanner-ajuda small {
  color: #fff;
}

/* Remove qualquer barra, linha ou moldura desenhada pelo html5-qrcode */
#reader__scan_region,
#reader__scan_region *,
#reader__scan_region img,
#qr-shaded-region,
#qr-shaded-region *,
body.camera-aberta #reader div[style*="border"],
body.camera-aberta #reader span[style*="border"],
body.camera-aberta #reader div[style*="box-shadow"],
body.camera-aberta #reader span[style*="box-shadow"] {
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  background: transparent !important;
}

#reader__scan_region img {
  display: none !important;
}

body.camera-aberta #reader__dashboard_section,
body.camera-aberta #reader__dashboard_section_csr,
body.camera-aberta #reader__camera_selection,
body.camera-aberta #reader__dashboard {
  display: none !important;
}


.mini-info-card {
  padding: 12px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  margin: 14px 0;
  color: var(--text);
}

.mini-info-card:empty {
  display: none;
}

.mini-info-card strong {
  display: block;
  margin-bottom: 4px;
}

.mini-info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}


/* Logo/imagem da loja */
.loja-card-com-logo {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: start;
}

.loja-card-info h3 {
  margin-top: 0;
}

.loja-logo {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: .5px;
  border: 1px solid rgba(47, 125, 79, .22);
  box-shadow: 0 10px 24px rgba(21, 32, 24, .10);
  flex: 0 0 auto;
}

.loja-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loja-logo-iniciais {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, .28), transparent 42%),
    linear-gradient(135deg, var(--primary), var(--primary-strong));
  font-size: 20px;
}

.loja-logo-card {
  grid-row: span 2;
}

.loja-logo-dashboard {
  width: 58px;
  height: 58px;
  border-radius: 18px;
}

.loja-logo-mini {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  font-size: 15px;
}

.loja-atual-info,
.mini-info-loja {
  display: flex;
  align-items: center;
  gap: 12px;
}

.loja-preview {
  margin: 10px 0 14px;
}

.loja-preview-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.loja-preview-box img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
}

.btn-file {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 16px;
  text-align: center;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.btn-file input {
  display: none;
}

@media (max-width: 520px) {
  .loja-card-com-logo {
    grid-template-columns: 58px 1fr;
    gap: 12px;
  }

  .loja-logo {
    width: 54px;
    height: 54px;
    border-radius: 17px;
  }

  .loja-actions {
    grid-column: 1 / -1;
  }
}


.admin-resumo {
  margin-bottom: 16px;
}


/* Status e filtros da Dashboard Admin */
.loja-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.loja-title-row h3 {
  margin: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-ativo {
  background: rgba(47, 125, 79, .12);
  color: var(--primary-strong);
  border: 1px solid rgba(47, 125, 79, .22);
}

.status-inativo {
  background: rgba(194, 65, 59, .10);
  color: var(--danger);
  border: 1px solid rgba(194, 65, 59, .22);
}

.loja-inativa {
  opacity: .78;
}

.btn-warning {
  background: var(--warning);
  color: #2d1b00;
  box-shadow: 0 10px 18px rgba(211, 139, 24, .18);
}

button.secondary[disabled],
button[disabled].secondary {
  background: #eef2e9;
  color: var(--muted);
  border: 1px solid var(--line);
  box-shadow: none;
}


/* Dashboard Admin avançada */
.admin-hero {
  overflow: hidden;
}

.admin-quick-actions,
.admin-current-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.quick-admin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(47, 125, 79, .18);
  box-shadow: 0 10px 20px rgba(47, 125, 79, .14);
}

.quick-admin-btn:active {
  transform: scale(.98);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.bar-chart {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  gap: 6px;
}

.bar-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.bar-row-top span {
  color: var(--text);
  font-weight: 700;
}

.bar-row-top strong {
  color: var(--primary-strong);
}

.bar-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #eef2e9;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 220, .9);
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-strong));
}

.admin-current-store {
  display: grid;
  gap: 12px;
}

.admin-current-store-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.admin-current-store-card strong {
  display: block;
  margin-bottom: 4px;
}

.admin-current-store-card p {
  margin: 2px 0;
  color: var(--muted);
  font-size: 13px;
}

.empty-admin-store {
  padding: 14px;
  border-radius: 18px;
  border: 1px dashed var(--line);
  background: var(--surface-soft);
}

.empty-admin-store p {
  margin-top: 0;
}

@media (min-width: 768px) {
  .admin-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-quick-actions {
    grid-template-columns: repeat(5, 1fr);
  }

  .admin-current-actions {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* Admin profissional: pizza, porcentagens e cor da rede */
input[type="color"] {
  width: 100%;
  height: 48px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.admin-percent-card {
  background:
    radial-gradient(circle at top left, rgba(47, 125, 79, .10), transparent 34%),
    var(--surface);
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.admin-kpi {
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.admin-kpi span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.admin-kpi strong {
  display: block;
  font-size: 30px;
  letter-spacing: -1px;
  color: var(--primary-strong);
}

.admin-kpi p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.pie-chart-wrap {
  display: grid;
  gap: 16px;
  align-items: center;
}

.pie-chart {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  margin: 8px auto 0;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 30px rgba(21, 32, 24, .10);
  border: 1px solid rgba(226, 232, 220, .8);
}

.pie-hole {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
  align-content: center;
  box-shadow: inset 0 0 0 1px var(--line);
}

.pie-hole strong {
  font-size: 26px;
  line-height: 1;
  color: var(--text);
}

.pie-hole span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.pie-legend {
  display: grid;
  gap: 8px;
}

.pie-legend-item {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.pie-legend-item p {
  margin: 0;
  color: var(--text);
}

.pie-legend-item strong {
  color: var(--primary-strong);
}

.pie-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.color-mini {
  display: inline-block;
  width: 22px;
  height: 14px;
  border-radius: 6px;
  border: 1px solid rgba(21, 32, 24, .18);
  vertical-align: middle;
  margin-left: 4px;
}

.card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
  border-color: rgba(47, 125, 79, .22);
}

.admin-grid .card,
.admin-percent-card,
.admin-current-store-card {
  box-shadow: 0 12px 28px rgba(21, 32, 24, .07);
}

@media (min-width: 768px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pie-chart-wrap {
    grid-template-columns: 210px 1fr;
  }

  .pie-chart {
    margin: 0 auto;
  }
}


/* Seleção de loja direta */
.loja-card-clickable {
  cursor: pointer;
  position: relative;
}

.loja-card-clickable:hover,
.loja-card-clickable:focus {
  transform: translateY(-1px);
  border-color: rgba(47, 125, 79, .32);
  box-shadow: 0 14px 30px rgba(21, 32, 24, .10);
  outline: none;
}

.loja-enter-indicator {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 44px;
  border-radius: 15px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Acesso admin separado */
.topbar-spacer {
  width: 44px;
  height: 44px;
  display: block;
}

.admin-access-card {
  margin-top: 28px;
  display: grid;
  gap: 14px;
  border-style: dashed;
}

.admin-login-btn {
  background: var(--surface-soft);
  color: var(--text);
  box-shadow: none;
}

@media (min-width: 720px) {
  .admin-access-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .admin-login-btn {
    min-width: 210px;
  }
}


/* ValiSys refinamento final: modais, animações e loja com logo */
@keyframes fadeUpSoft {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleInSoft {
  from {
    opacity: 0;
    transform: scale(.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmerSoft {
  0% {
    background-position: -180px 0;
  }

  100% {
    background-position: 180px 0;
  }
}

.card,
.welcome-card,
.loja-atual-card,
.resumo-card,
.login-card,
.admin-grid .card {
  animation: fadeUpSoft .32s ease both;
}

.loja-card-clickable,
.action-card,
.quick-admin-btn,
button,
.user-icon,
.icon-btn {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.loja-card-clickable:hover,
.action-card:hover,
.quick-admin-btn:hover,
button:hover,
.user-icon:hover,
.icon-btn:hover {
  transform: translateY(-1px);
}

.loja-inline-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
  font-weight: 800;
}

.loja-inline-small {
  font-weight: 700;
}

.loja-logo-inline {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  font-size: 11px;
  box-shadow: none;
}

.loja-atual-card.compact > div {
  align-items: center;
}

.loja-atual-card.compact strong .loja-inline-info {
  font-size: 16px;
}

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.site-modal.active {
  display: flex;
}

.site-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 32, 24, .38);
  backdrop-filter: blur(5px);
}

.site-modal-box {
  position: relative;
  width: min(430px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(21, 32, 24, .24);
  animation: scaleInSoft .22s ease both;
}

.site-modal-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--primary-strong);
  border: 1px solid rgba(47, 125, 79, .18);
  font-weight: 900;
  font-size: 22px;
  margin-bottom: 10px;
}

.site-modal-icon.modal-perigo {
  color: var(--danger);
  border-color: rgba(194, 65, 59, .24);
}

.site-modal-icon.modal-sucesso {
  color: var(--success);
  border-color: rgba(47, 125, 79, .24);
}

.site-modal-box h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.site-modal-box p {
  margin: 0;
  color: var(--muted);
  white-space: pre-line;
  line-height: 1.45;
}

.site-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.site-modal-actions button {
  min-width: 110px;
}

.admin-access-details {
  margin: 28px auto 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 13px;
}

.admin-access-details summary {
  width: max-content;
  cursor: pointer;
  list-style: none;
  border-bottom: 1px dashed currentColor;
  margin-left: auto;
}

.admin-access-details summary::-webkit-details-marker {
  display: none;
}

.admin-access-panel {
  margin-top: 10px;
  margin-left: auto;
  max-width: 420px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .56);
  animation: fadeUpSoft .2s ease both;
}

.admin-access-panel p {
  margin: 0 0 8px;
}

.admin-login-text-link {
  color: var(--primary-strong);
  font-weight: 800;
  text-decoration: none;
}

.section-title > span,
.resumo-card > span,
.action-card > span,
.mock-box > span,
.lembrete-foto > span {
  background: transparent !important;
  box-shadow: none !important;
  filter: saturate(.82);
}

.loading-shimmer {
  background: linear-gradient(90deg, var(--surface-soft), rgba(255,255,255,.9), var(--surface-soft));
  background-size: 360px 100%;
  animation: shimmerSoft 1.2s linear infinite;
}

.edit-store-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.edit-store-grid label {
  font-weight: 800;
  font-size: 13px;
}

.edit-store-grid input {
  margin-top: 5px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 520px) {
  .site-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-modal-actions button {
    width: 100%;
  }
}


/* Navbar admin, gestão loja e produtos completos */
.admin-navbar {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
  margin-top: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.admin-navbar a {
  flex: 0 0 auto;
  padding: 10px 13px;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  background: var(--surface-soft);
  border: 1px solid transparent;
}

.admin-navbar a:hover,
.admin-navbar a:active {
  border-color: rgba(47, 125, 79, .24);
  background: var(--accent);
}

.loja-gestao-navbar {
  margin-bottom: 14px;
}

.form-grid-2,
.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  font: inherit;
  resize: vertical;
  background: var(--surface);
  color: var(--text);
  outline: none;
}

textarea:focus {
  border-color: rgba(47, 125, 79, .55);
  box-shadow: 0 0 0 3px rgba(47, 125, 79, .10);
}

.produto-card-completo {
  overflow: hidden;
}

.produto-card-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.produto-card-header h3 {
  margin-top: 0;
}

.produto-img-mini {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.produto-sem-foto {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.produto-detalhes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 12px;
}

.produto-detalhes-grid p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid rgba(226, 232, 220, .68);
  font-size: 13px;
}

.produto-detalhes-grid .produto-campo-longo,
.info-grid .wide {
  grid-column: 1 / -1;
}

.mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.mini-row:first-child {
  border-top: none;
}

.mini-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.gestao-actions {
  margin-top: 12px;
}

@media (min-width: 680px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .produto-detalhes-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* Cor da loja sem trocar tema global */
:root {
  --loja-cor: #2f7d4f;
  --loja-cor-strong: #245f3d;
  --loja-cor-soft: rgba(47, 125, 79, .10);
}

.loja-atual-card {
  border-left: 5px solid var(--loja-cor);
}

.loja-logo-iniciais {
  background: var(--loja-cor-soft);
  color: var(--loja-cor-strong);
  border-color: color-mix(in srgb, var(--loja-cor) 28%, transparent);
}

.loja-inline-info .loja-logo-iniciais,
.loja-logo-dashboard.loja-logo-iniciais,
.loja-logo-card.loja-logo-iniciais {
  background: var(--loja-cor-soft);
  color: var(--loja-cor-strong);
}

.admin-current-store-card {
  border-left: 5px solid var(--loja-cor);
}

.loja-card-com-logo {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}


/* Catálogo interno de produtos */
.catalogo-busca-box {
  margin: 14px 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.input-action-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.catalogo-resultados {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.catalogo-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.catalogo-item p {
  margin: 4px 0;
  color: var(--muted);
}

.catalogo-item small {
  color: var(--muted);
}

@media (min-width: 620px) {
  .input-action-row {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}


.code-block {
  overflow-x: auto;
  white-space: pre;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-size: 12px;
}


/* Popup cadastro básico de produto */
.produto-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
  background: rgba(21, 32, 24, .56);
  backdrop-filter: blur(8px);
}

.produto-popup-overlay.active {
  display: flex;
}

.produto-popup-card {
  width: 100%;
  max-width: 560px;
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
  animation: scaleInSoft .18s ease both;
}

.produto-popup-card h2 {
  margin: 4px 42px 8px 0;
}

.produto-popup-fechar {
  float: right;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--line);
  font-size: 24px;
  line-height: 1;
}

@media (min-width: 720px) {
  .produto-popup-overlay {
    align-items: center;
  }
}


/* Ícones SVG profissionais */
.svg-icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.18em;
  margin-right: .42em;
  flex: 0 0 auto;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: currentColor;
}

.icon-btn .svg-icon,
.user-icon .svg-icon,
.login-logo .svg-icon,
.avatar .svg-icon {
  margin-right: 0;
}

.icon-btn .svg-icon,
.user-icon .svg-icon {
  width: 22px;
  height: 22px;
}

.login-logo .svg-icon {
  width: 46px;
  height: 46px;
}

.avatar .svg-icon {
  width: 30px;
  height: 30px;
}

.sidebar a .svg-icon {
  width: 20px;
  height: 20px;
  margin-right: .25em;
}

.action-card > .svg-icon,
.action-card > span .svg-icon,
.resumo-card > .svg-icon,
.resumo-card > span .svg-icon,
.section-title > .svg-icon,
.section-title > span .svg-icon {
  width: 32px;
  height: 32px;
  margin-right: 0;
}

button .svg-icon {
  width: 19px;
  height: 19px;
  margin-right: .42em;
}

select option {
  font-family: Arial, sans-serif;
}


/* Correção SVG admin */
.sidebar-user .avatar {
  color: var(--primary-strong);
}

.sidebar-user .avatar .svg-icon {
  stroke-width: 1.8;
}


/* Notificação flutuante discreta */
.notificacao-flutuante {
  position: fixed;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 11000;
  display: none;
  align-items: center;
  gap: 10px;
  max-width: min(340px, calc(100vw - 28px));
  padding: 12px 14px;
  border-radius: 20px;
  text-decoration: none;
  background: rgba(255, 255, 255, .96);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 14px 38px rgba(21, 32, 24, .20);
  backdrop-filter: blur(10px);
}

.notificacao-flutuante.active {
  display: flex;
  animation: scaleInSoft .18s ease both;
}

.notif-floating-icon {
  display: flex;
  color: var(--primary);
}

.notif-floating-icon .svg-icon {
  margin: 0;
  width: 24px;
  height: 24px;
}

.notif-floating-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.notif-floating-text strong,
.notif-floating-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-floating-text small {
  color: var(--muted);
}

.notif-floating-count {
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.toast-notificacao-simples {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 12000;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  pointer-events: none;
  max-width: min(420px, calc(100vw - 28px));
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(21, 32, 24, .94);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .24);
  transition: .2s ease;
}

.toast-notificacao-simples.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* Seleção de setores no admin */
.setores-selecao {
  display: grid;
  gap: 10px;
  margin: 8px 0 12px;
}

.setor-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  cursor: pointer;
  font-weight: 700;
}

.setor-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.setor-check span {
  flex: 1;
}

.setor-outro-area {
  padding: 12px;
  border-radius: 18px;
  border: 1px dashed var(--line-strong, var(--line));
  background: var(--surface-soft);
  margin: 8px 0 12px;
}

@media (min-width: 720px) {
  .setores-selecao {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   ValiSys - Site público reestilizado
   ========================================================= */

body.valisys-public-redesign {
  --public-bg: #f5f2ec;
  --public-bg-2: #ebe5d8;
  --public-text: #172019;
  --public-muted: #667065;
  --public-line: rgba(23, 32, 25, .12);
  --public-surface: rgba(255, 255, 255, .78);
  --public-green: #2f7d4f;
  --public-green-dark: #183e2a;
  --public-gold: #c8a24d;
  min-height: 100vh;
  margin: 0;
  color: var(--public-text);
  background:
    radial-gradient(circle at 16% 12%, rgba(47, 125, 79, .13), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(200, 162, 77, .20), transparent 34%),
    linear-gradient(135deg, #fbfaf6 0%, var(--public-bg) 45%, var(--public-bg-2) 100%);
  overflow-x: hidden;
}

body.valisys-public-redesign::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(rgba(23, 32, 25, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 25, .055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
  z-index: -2;
}

.redesign-header {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  position: sticky;
  top: 14px;
  z-index: 30;
  border: 1px solid var(--public-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 20px 50px rgba(23, 32, 25, .08);
  backdrop-filter: blur(18px);
}

.redesign-brand .brand-icon {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.5), transparent 35%),
    linear-gradient(135deg, var(--public-green), var(--public-green-dark));
  color: #fff;
  box-shadow: 0 14px 28px rgba(47, 125, 79, .24);
}

.redesign-brand strong {
  letter-spacing: -.04em;
  font-size: 20px;
}

.redesign-nav a {
  color: var(--public-muted);
  font-weight: 800;
  font-size: 13px;
}

.redesign-nav a:hover {
  color: var(--public-green-dark);
}

.redesign-login {
  background: var(--public-text);
  color: #fff !important;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(23, 32, 25, .16);
}

.public-hero-redesign {
  width: min(1180px, calc(100% - 32px));
  margin: 48px auto 0;
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 44px;
  padding: 34px 0 60px;
}

.hero-copy-redesign {
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(47, 125, 79, .18);
  border-radius: 999px;
  background: rgba(47, 125, 79, .08);
  color: var(--public-green-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-copy-redesign h1,
.section-heading-redesign h2,
.workflow-redesign h2,
.split-card-redesign h2,
.cta-redesign h2 {
  margin: 18px 0 0;
  color: var(--public-text);
  font-size: clamp(44px, 6vw, 82px);
  line-height: .94;
  letter-spacing: -.075em;
  max-width: 760px;
}

.hero-copy-redesign p {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.65;
  color: var(--public-muted);
}

.redesign-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.redesign-actions .primary-link,
.redesign-actions .secondary-link {
  min-height: 52px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
}

.redesign-actions .primary-link {
  color: #fff;
  background: linear-gradient(135deg, var(--public-green), var(--public-green-dark));
  box-shadow: 0 16px 36px rgba(47, 125, 79, .26);
}

.redesign-actions .secondary-link {
  color: var(--public-text);
  background: rgba(255, 255, 255, .74);
  border: 1px solid var(--public-line);
}

.hero-metrics {
  margin-top: 30px;
  display: grid;
  gap: 10px;
  max-width: 540px;
}

.hero-metrics span {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--public-muted);
  font-weight: 700;
}

.hero-metrics strong {
  color: var(--public-green-dark);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.coverflow-area {
  position: relative;
  min-height: 600px;
  display: grid;
  align-items: center;
  justify-items: center;
}

.coverflow-stage {
  position: relative;
  width: min(820px, 100%);
  height: 520px;
  perspective: 1300px;
  transform-style: preserve-3d;
}

.coverflow-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 84%;
  height: 70px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(23, 32, 25, .22), transparent 68%);
  filter: blur(12px);
  opacity: .62;
}

.coverflow-slide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(640px, 84vw);
  aspect-ratio: 16 / 10;
  transform-style: preserve-3d;
  transform-origin: center;
  transition:
    transform .82s cubic-bezier(.2, .75, .22, 1),
    opacity .82s ease,
    filter .82s ease;
  cursor: pointer;
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
}

.coverflow-slide.active {
  z-index: 8;
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
  transform: translate(-50%, -50%) translateX(0) translateZ(130px) scale(1) rotateY(0deg);
}

.coverflow-slide.right-1 {
  z-index: 6;
  opacity: .86;
  filter: blur(1.2px) saturate(.94);
  pointer-events: auto;
  transform: translate(-50%, -50%) translateX(165px) translateZ(10px) scale(.88) rotateY(-22deg);
}

.coverflow-slide.right-2 {
  z-index: 4;
  opacity: .50;
  filter: blur(3px) saturate(.84);
  pointer-events: auto;
  transform: translate(-50%, -50%) translateX(286px) translateZ(-90px) scale(.75) rotateY(-30deg);
}

.coverflow-slide.left-1 {
  z-index: 6;
  opacity: .86;
  filter: blur(1.2px) saturate(.94);
  pointer-events: auto;
  transform: translate(-50%, -50%) translateX(-165px) translateZ(10px) scale(.88) rotateY(22deg);
}

.coverflow-slide.left-2 {
  z-index: 4;
  opacity: .50;
  filter: blur(3px) saturate(.84);
  pointer-events: auto;
  transform: translate(-50%, -50%) translateX(-286px) translateZ(-90px) scale(.75) rotateY(30deg);
}

.coverflow-slide.hidden {
  z-index: 1;
  opacity: 0;
  transform: translate(-50%, -50%) translateX(0) translateZ(-220px) scale(.62);
}

.coverflow-window {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .62);
  background: rgba(255, 255, 255, .86);
  box-shadow:
    0 34px 80px rgba(23, 32, 25, .22),
    inset 0 1px 0 rgba(255, 255, 255, .7);
}

.browser-bar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  background: rgba(255, 255, 255, .66);
  border-bottom: 1px solid rgba(23, 32, 25, .08);
  backdrop-filter: blur(10px);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-flex;
}

.browser-bar span:nth-child(1) { background: #ff6b5f; }
.browser-bar span:nth-child(2) { background: #ffc84d; }
.browser-bar span:nth-child(3) { background: #58c86a; }

.browser-bar em {
  margin-left: 8px;
  width: 42%;
  height: 16px;
  display: inline-flex;
  align-items: center;
  padding-left: 12px;
  border-radius: 999px;
  background: rgba(23, 32, 25, .06);
  color: rgba(23, 32, 25, .46);
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
}

.panel-content {
  height: calc(100% - 44px);
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel-content small {
  color: rgba(255, 255, 255, .74);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
}

.panel-content h3 {
  margin: 10px 0 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -.06em;
  color: #fff;
}

.panel-dashboard {
  background:
    linear-gradient(135deg, rgba(24, 62, 42, .80), rgba(23, 32, 25, .42)),
    radial-gradient(circle at 78% 25%, rgba(200, 162, 77, .58), transparent 28%),
    linear-gradient(135deg, #173a28, #64876a);
}

.panel-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.panel-grid b {
  padding: 14px 10px;
  border-radius: 18px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
  font-size: 28px;
}

.panel-grid small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: rgba(255, 255, 255, .74);
}

.panel-list {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.panel-list p,
.panel-note {
  color: rgba(255, 255, 255, .82);
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.panel-list span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-flex;
  margin-right: 8px;
  background: var(--public-gold);
}

.panel-scanner {
  background:
    linear-gradient(135deg, rgba(23, 32, 25, .82), rgba(47, 125, 79, .52)),
    linear-gradient(145deg, #111b14, #2f7d4f);
}

.scanner-visual {
  margin: 28px 0 18px;
  height: 150px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 22px;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(255,255,255,.08) 12% 14%, transparent 14% 25%),
    rgba(255,255,255,.08);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.scanner-visual i {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 3px;
  border-radius: 999px;
  background: #8cffbd;
  box-shadow: 0 0 20px rgba(140,255,189,.7);
  animation: scannerLinePublic 2.2s ease-in-out infinite alternate;
}

@keyframes scannerLinePublic {
  from { transform: translateY(-54px); }
  to { transform: translateY(54px); }
}

.panel-products {
  background:
    linear-gradient(135deg, rgba(106, 67, 42, .82), rgba(216, 160, 78, .32)),
    linear-gradient(135deg, #7b5536, #f3d09a);
}

.product-preview {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
}

.product-preview div {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.88);
  color: #6a432a;
  font-weight: 900;
}

.product-preview p {
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 13px;
}

.product-preview strong {
  color: #fff;
  font-size: 16px;
}

.panel-sectors {
  background:
    linear-gradient(135deg, rgba(31, 49, 73, .86), rgba(46, 124, 151, .42)),
    linear-gradient(135deg, #1f3149, #71b3c7);
}

.sector-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.sector-chips span {
  padding: 10px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.24);
  font-weight: 900;
  font-size: 12px;
}

.panel-notify {
  background:
    linear-gradient(135deg, rgba(83, 35, 50, .85), rgba(196, 83, 93, .34)),
    linear-gradient(135deg, #532332, #e8a0a0);
}

.notify-bubble {
  margin-top: 28px;
  width: fit-content;
  max-width: 280px;
  padding: 16px 18px;
  border-radius: 22px;
  color: #532332;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 28px rgba(0,0,0,.14);
  font-weight: 900;
}

.coverflow-dots {
  margin-top: -46px;
  display: flex;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 10;
}

.coverflow-dots button {
  width: 10px;
  height: 10px;
  min-height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 32, 25, .22);
  box-shadow: none;
}

.coverflow-dots button.active {
  width: 28px;
  background: var(--public-text);
}

.public-section-redesign,
.workflow-redesign,
.split-redesign,
.cta-redesign {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 76px 0;
}

.section-heading-redesign {
  max-width: 760px;
}

.section-heading-redesign h2,
.workflow-redesign h2,
.split-card-redesign h2,
.cta-redesign h2 {
  font-size: clamp(36px, 4.8vw, 64px);
}

.section-heading-redesign p,
.split-card-redesign p,
.cta-redesign p {
  margin-top: 16px;
  color: var(--public-muted);
  font-size: 18px;
  line-height: 1.7;
}

.feature-grid-redesign {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-grid-redesign article,
.workflow-line article,
.split-card-redesign,
.management-card,
.cta-redesign {
  border: 1px solid var(--public-line);
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(23, 32, 25, .07);
}

.feature-grid-redesign article {
  padding: 24px;
  border-radius: 28px;
  min-height: 240px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--public-text);
  font-weight: 900;
}

.feature-grid-redesign h3 {
  margin: 28px 0 0;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.feature-grid-redesign p {
  margin: 12px 0 0;
  color: var(--public-muted);
  line-height: 1.6;
}

.workflow-redesign {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  align-items: center;
  gap: 26px;
}

.workflow-line {
  display: grid;
  gap: 12px;
}

.workflow-line article {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 24px;
}

.workflow-line strong {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--public-green), var(--public-green-dark));
}

.workflow-line span {
  font-weight: 900;
  color: var(--public-text);
}

.split-redesign {
  display: grid;
  grid-template-columns: .98fr 1.02fr;
  gap: 26px;
  align-items: center;
}

.split-card-redesign {
  padding: 34px;
  border-radius: 34px;
}

.clean-list-redesign {
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.clean-list-redesign li {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(47, 125, 79, .08);
  color: var(--public-green-dark);
  font-weight: 900;
}

.management-preview {
  min-height: 420px;
  position: relative;
}

.management-card {
  position: absolute;
  width: min(420px, 86%);
  padding: 22px;
  border-radius: 28px;
}

.management-card small {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--public-muted);
  font-weight: 900;
}

.management-card strong {
  display: block;
  margin-top: 8px;
  color: var(--public-text);
  font-size: 22px;
  line-height: 1.15;
}

.management-card span {
  margin-top: 14px;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47,125,79,.10);
  color: var(--public-green-dark);
  font-weight: 900;
  font-size: 12px;
}

.m-card-1 {
  top: 18px;
  left: 6%;
  transform: rotate(-4deg);
}

.m-card-2 {
  top: 148px;
  right: 2%;
  transform: rotate(3deg);
}

.m-card-3 {
  bottom: 10px;
  left: 12%;
  transform: rotate(-2deg);
}

.cta-redesign {
  text-align: center;
  border-radius: 42px;
  padding: 68px 26px;
  background:
    radial-gradient(circle at 18% 20%, rgba(47,125,79,.20), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(200,162,77,.22), transparent 28%),
    rgba(255,255,255,.64);
}

.cta-redesign .hero-pill {
  margin-inline: auto;
}

.cta-redesign h2,
.cta-redesign p {
  margin-inline: auto;
}

.center-actions {
  justify-content: center;
}

.redesign-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 28px;
  border-radius: 28px;
  border: 1px solid var(--public-line);
  background: rgba(255,255,255,.54);
  color: var(--public-muted);
}

@media (max-width: 1040px) {
  .public-hero-redesign,
  .workflow-redesign,
  .split-redesign {
    grid-template-columns: 1fr;
  }

  .public-hero-redesign {
    min-height: unset;
    padding-top: 20px;
  }

  .coverflow-area {
    min-height: 520px;
  }

  .feature-grid-redesign {
    grid-template-columns: repeat(2, 1fr);
  }

  .redesign-nav {
    display: none;
  }
}

@media (max-width: 720px) {
  .redesign-header {
    width: calc(100% - 20px);
    top: 10px;
    border-radius: 24px;
  }

  .redesign-login {
    padding: 10px 12px;
    font-size: 12px;
  }

  .public-hero-redesign,
  .public-section-redesign,
  .workflow-redesign,
  .split-redesign,
  .cta-redesign {
    width: calc(100% - 22px);
  }

  .hero-copy-redesign h1 {
    font-size: clamp(40px, 14vw, 58px);
  }

  .coverflow-area {
    min-height: 370px;
  }

  .coverflow-stage {
    height: 330px;
  }

  .coverflow-slide {
    width: 84vw;
  }

  .coverflow-slide.active {
    transform: translate(-50%, -50%) translateX(0) translateZ(90px) scale(.92) rotateY(0deg);
  }

  .coverflow-slide.right-1 {
    transform: translate(-50%, -50%) translateX(84px) translateZ(0) scale(.78) rotateY(-18deg);
  }

  .coverflow-slide.right-2 {
    transform: translate(-50%, -50%) translateX(142px) translateZ(-90px) scale(.64) rotateY(-24deg);
  }

  .coverflow-slide.left-1 {
    transform: translate(-50%, -50%) translateX(-84px) translateZ(0) scale(.78) rotateY(18deg);
  }

  .coverflow-slide.left-2 {
    transform: translate(-50%, -50%) translateX(-142px) translateZ(-90px) scale(.64) rotateY(24deg);
  }

  .coverflow-window {
    border-radius: 18px;
  }

  .browser-bar {
    height: 36px;
    padding: 0 12px;
  }

  .browser-bar em {
    width: 50%;
    font-size: 9px;
  }

  .panel-content {
    padding: 18px;
  }

  .panel-content h3 {
    font-size: 30px;
  }

  .panel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid-redesign {
    grid-template-columns: 1fr;
  }

  .feature-grid-redesign article {
    min-height: unset;
  }

  .management-preview {
    min-height: 500px;
  }

  .management-card {
    position: relative;
    inset: auto;
    width: auto;
    margin: 12px 0;
    transform: none;
  }
}


/* SAC Online público e admin */
.contact-public-actions {
  margin: 28px auto 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.contact-pill {
  min-height: 86px;
  padding: 18px;
  border: 1px solid var(--public-line, var(--line));
  border-radius: 24px;
  background: rgba(255, 255, 255, .68);
  color: var(--public-text, var(--text));
  text-decoration: none;
  display: grid;
  align-content: center;
  gap: 4px;
  box-shadow: 0 18px 42px rgba(23, 32, 25, .08);
  backdrop-filter: blur(12px);
  text-align: left;
}

.contact-pill strong {
  font-size: 15px;
}

.contact-pill span {
  color: var(--public-muted, var(--muted));
  font-size: 13px;
  overflow-wrap: anywhere;
}

.sac-button {
  cursor: pointer;
  font: inherit;
}

.sac-open-inline {
  border: 0;
  cursor: pointer;
}

.sac-modal {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.sac-modal.active {
  display: flex;
}

.sac-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 32, 25, .54);
  backdrop-filter: blur(10px);
}

.sac-box {
  position: relative;
  width: min(560px, 100%);
  max-height: 92dvh;
  overflow-y: auto;
  border-radius: 30px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .58);
  background:
    radial-gradient(circle at 12% 0%, rgba(47, 125, 79, .12), transparent 28%),
    rgba(255, 255, 255, .96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .30);
  animation: scaleInSoft .18s ease both;
}

.sac-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 14px;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(23, 32, 25, .06);
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--line);
  font-size: 24px;
  line-height: 1;
}

.sac-auto-message {
  padding: 14px 48px 14px 4px;
}

.sac-auto-message span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(47, 125, 79, .10);
  color: var(--primary-strong, #183e2a);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.sac-auto-message h3 {
  margin: 14px 0 0;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -.05em;
}

.sac-auto-message p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.sac-form {
  margin-top: 10px;
}

.sac-form textarea {
  resize: vertical;
}

.sac-admin-section {
  margin-top: 22px;
}

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

.sac-admin-list {
  display: grid;
  gap: 14px;
}

.sac-admin-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.sac-admin-card.sac-nova {
  border-color: rgba(245, 158, 11, .35);
  box-shadow: 0 18px 44px rgba(245, 158, 11, .10);
}

.sac-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.sac-card-top h3 {
  margin: 0;
}

.sac-empty {
  padding: 22px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px dashed var(--line);
}

@media (max-width: 720px) {
  .contact-public-actions {
    grid-template-columns: 1fr;
  }

  .sac-admin-header {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Chat SAC Online estilo WhatsApp */
.sac-chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 14000;
  font-family: inherit;
}

.sac-chat-toggle {
  width: 76px;
  height: 76px;
  min-height: 76px;
  border: 0;
  border-radius: 28px;
  display: grid;
  place-items: center;
  gap: 0;
  padding: 10px;
  color: #fff;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,.32), transparent 28%),
    linear-gradient(135deg, var(--public-green, #2f7d4f), var(--public-green-dark, #183e2a));
  box-shadow: 0 20px 44px rgba(24, 62, 42, .28);
  cursor: pointer;
}

.sac-chat-toggle span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.sac-chat-toggle strong {
  margin-top: -8px;
  font-size: 13px;
}

.sac-chat-panel {
  position: absolute;
  right: 0;
  bottom: 90px;
  width: min(390px, calc(100vw - 28px));
  height: min(620px, calc(100dvh - 130px));
  display: none;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 30px;
  background: #f7f3eb;
  box-shadow: 0 26px 90px rgba(0,0,0,.28);
}

.sac-chat-panel.active {
  display: grid;
  grid-template-rows: auto 1fr auto;
  animation: scaleInSoft .18s ease both;
}

.sac-chat-header {
  min-height: 76px;
  padding: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 0%, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(135deg, #183e2a, #2f7d4f);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sac-chat-header strong {
  display: block;
  font-size: 18px;
}

.sac-chat-header span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  opacity: .78;
}

.sac-chat-header button {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.14);
  color: #fff;
  box-shadow: none;
  border: 1px solid rgba(255,255,255,.16);
  font-size: 24px;
}

.sac-chat-body {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(circle at 15% 20%, rgba(47, 125, 79, .10), transparent 25%),
    linear-gradient(135deg, #f8f4ed, #efe7da);
}

.chat-message {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(23,32,25,.07);
  animation: fadeInUp .18s ease both;
}

.chat-message small {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  opacity: .62;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.chat-message p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-message.bot {
  align-self: flex-start;
  color: #172019;
  background: rgba(255,255,255,.94);
  border-bottom-left-radius: 6px;
}

.chat-message.user {
  align-self: flex-end;
  color: #fff;
  background: linear-gradient(135deg, #2f7d4f, #183e2a);
  border-bottom-right-radius: 6px;
}

.sac-chat-form {
  padding: 12px;
  background: rgba(255,255,255,.92);
  border-top: 1px solid rgba(23,32,25,.08);
}

.sac-chat-identificacao {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.sac-chat-identificacao.compacto {
  display: none;
}

.sac-chat-identificacao input {
  min-height: 42px;
  border-radius: 16px;
  font-size: 14px;
}

.sac-chat-send {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.sac-chat-send textarea {
  min-height: 44px;
  max-height: 110px;
  resize: none;
  border-radius: 18px;
  padding: 12px 14px;
  font-size: 14px;
}

.sac-chat-send button {
  min-height: 44px;
  border-radius: 16px;
  padding: 0 14px;
}

.chat-admin-layout {
  display: grid;
  grid-template-columns: minmax(250px, .78fr) minmax(0, 1.22fr);
  gap: 14px;
  align-items: stretch;
}

.chat-admin-conversas {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: 650px;
  overflow-y: auto;
}

.chat-conversa-item {
  width: 100%;
  min-height: unset;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  box-shadow: none;
  display: grid;
  gap: 8px;
  position: relative;
}

.chat-conversa-item.active {
  border-color: rgba(47,125,79,.38);
  box-shadow: 0 16px 34px rgba(47,125,79,.10);
}

.chat-conversa-item strong {
  display: block;
  font-size: 15px;
}

.chat-conversa-item small {
  color: var(--muted);
  font-size: 12px;
}

.chat-conversa-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-conversa-item em {
  position: absolute;
  right: 12px;
  top: 12px;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #ef4444;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.chat-admin-painel {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-soft);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.chat-admin-empty {
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

.chat-admin-top {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.chat-admin-top h3 {
  margin: 0;
}

.chat-admin-mensagens {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 440px;
}

.chat-admin-form {
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.chat-admin-form textarea {
  resize: vertical;
  min-height: 48px;
  border-radius: 18px;
}

.chat-admin-form button {
  min-height: 48px;
  border-radius: 18px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .sac-chat-widget {
    right: 14px;
    bottom: 14px;
  }

  .sac-chat-panel {
    right: -2px;
    bottom: 86px;
    width: calc(100vw - 24px);
    height: min(620px, calc(100dvh - 112px));
  }

  .chat-admin-layout {
    grid-template-columns: 1fr;
  }

  .chat-admin-form {
    grid-template-columns: 1fr;
  }

  .chat-admin-top {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Animações públicas e seção com tela travada */
.scroll-reveal {
  opacity: 0;
  transform: translateY(26px) scale(.985);
  filter: blur(8px);
  transition:
    opacity .72s ease,
    transform .72s cubic-bezier(.2, .75, .22, 1),
    filter .72s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.coverflow-area {
  animation: heroFloatSoft 7s ease-in-out infinite alternate;
}

.coverflow-slide.active .coverflow-window {
  animation: activePanelBreath 4.8s ease-in-out infinite alternate;
}

.management-card {
  animation: managementFloat 6s ease-in-out infinite alternate;
}

.m-card-2 {
  animation-delay: .8s;
}

.m-card-3 {
  animation-delay: 1.4s;
}

@keyframes heroFloatSoft {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-10px);
  }
}

@keyframes activePanelBreath {
  from {
    box-shadow:
      0 34px 80px rgba(23, 32, 25, .22),
      inset 0 1px 0 rgba(255, 255, 255, .7);
  }

  to {
    box-shadow:
      0 42px 105px rgba(23, 32, 25, .30),
      inset 0 1px 0 rgba(255, 255, 255, .7);
  }
}

@keyframes managementFloat {
  from {
    translate: 0 0;
  }

  to {
    translate: 0 -12px;
  }
}

.importance-pin-section {
  width: 100%;
  min-height: 320vh;
  margin: 20px 0 0;
  position: relative;
}

.importance-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr .74fr;
  gap: 24px;
  align-items: center;
  padding: 72px 0;
}

.importance-copy h2 {
  margin: 18px 0 0;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: .96;
  letter-spacing: -.065em;
  color: var(--public-text, var(--text));
}

.importance-copy p {
  margin: 18px 0 0;
  color: var(--public-muted, var(--muted));
  line-height: 1.7;
  font-size: 17px;
}

.importance-scene {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.importance-scene::before {
  content: "";
  position: absolute;
  width: 92%;
  height: 92%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(47, 125, 79, .16), transparent 58%),
    radial-gradient(circle at 80% 10%, rgba(200, 162, 77, .20), transparent 28%);
  filter: blur(20px);
  animation: importanceGlow 6s ease-in-out infinite alternate;
}

@keyframes importanceGlow {
  from {
    transform: scale(.96);
    opacity: .72;
  }

  to {
    transform: scale(1.04);
    opacity: 1;
  }
}

.importance-phone {
  position: relative;
  z-index: 2;
  width: min(360px, 86vw);
  min-height: 470px;
  padding: 18px;
  border-radius: 38px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.26);
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.18), transparent 30%),
    linear-gradient(145deg, #172019, #183e2a);
  box-shadow:
    0 38px 95px rgba(23,32,25,.30),
    inset 0 1px 0 rgba(255,255,255,.20);
  overflow: hidden;
  transition:
    background .45s ease,
    transform .45s ease;
}

.importance-phone::after {
  content: "";
  position: absolute;
  inset: auto -18% -18% auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  filter: blur(8px);
}

.importance-phone[data-impact="danger"] {
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.18), transparent 30%),
    linear-gradient(145deg, #331d1d, #7f1d1d);
}

.importance-phone[data-impact="warning"] {
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.18), transparent 30%),
    linear-gradient(145deg, #33240f, #9a6715);
}

.importance-phone[data-impact="success"] {
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.18), transparent 30%),
    linear-gradient(145deg, #113025, #2f7d4f);
}

.importance-phone[data-impact="control"] {
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.18), transparent 30%),
    linear-gradient(145deg, #1d2738, #3b5f9a);
}

.importance-phone-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.importance-phone-top span {
  font-weight: 900;
  letter-spacing: -.04em;
}

.importance-phone-top strong {
  max-width: 170px;
  text-align: right;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .78;
}

.importance-main-card {
  position: relative;
  z-index: 2;
  margin-top: 70px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.importance-status {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  color: #172019;
  background: rgba(255,255,255,.90);
  font-size: 12px;
  font-weight: 900;
}

.importance-main-card h3 {
  margin: 18px 0 0;
  font-size: 38px;
  line-height: .96;
  letter-spacing: -.06em;
}

.importance-main-card p {
  min-height: 44px;
  margin: 12px 0 0;
  color: rgba(255,255,255,.78);
  line-height: 1.55;
}

.importance-progress {
  margin-top: 26px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
}

.importance-progress i {
  display: block;
  height: 100%;
  width: 8%;
  border-radius: inherit;
  background: rgba(255,255,255,.92);
  transition: width .25s ease;
}

.importance-mini-list {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.importance-mini-list span {
  height: 48px;
  border-radius: 18px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.12);
}

.importance-floating {
  position: absolute;
  z-index: 3;
  width: 178px;
  padding: 14px;
  border-radius: 22px;
  color: var(--public-text, var(--text));
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(255,255,255,.64);
  box-shadow: 0 20px 50px rgba(23,32,25,.14);
  backdrop-filter: blur(14px);
  opacity: .45;
  transform: scale(.92);
  transition:
    opacity .35s ease,
    transform .35s ease,
    box-shadow .35s ease;
}

.importance-floating strong {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--public-text, #172019);
  font-size: 12px;
}

.importance-floating span {
  display: block;
  font-weight: 900;
  line-height: 1.25;
}

.importance-floating.active {
  opacity: 1;
  transform: scale(1.04);
  box-shadow: 0 28px 70px rgba(23,32,25,.22);
}

.importance-alert {
  left: 2%;
  top: 12%;
}

.importance-notify {
  right: 0;
  top: 22%;
}

.importance-check {
  left: 5%;
  bottom: 15%;
}

.importance-profit {
  right: 4%;
  bottom: 8%;
}

.importance-steps {
  display: grid;
  gap: 12px;
}

.importance-steps button {
  min-height: unset;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--public-line, var(--line));
  background: rgba(255,255,255,.58);
  color: var(--public-text, var(--text));
  box-shadow: 0 18px 44px rgba(23,32,25,.07);
  text-align: left;
  cursor: pointer;
  transition:
    transform .25s ease,
    background .25s ease,
    border-color .25s ease;
}

.importance-steps button:hover,
.importance-steps button.active {
  transform: translateX(-8px);
  background: rgba(255,255,255,.88);
  border-color: rgba(47,125,79,.34);
}

.importance-steps strong {
  display: block;
  font-size: 16px;
}

.importance-steps span {
  display: block;
  margin-top: 6px;
  color: var(--public-muted, var(--muted));
  line-height: 1.45;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .importance-sticky {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 62px 0;
  }

  .importance-pin-section {
    min-height: auto;
  }

  .importance-sticky {
    position: relative;
  }

  .importance-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .importance-steps button:hover,
  .importance-steps button.active {
    transform: translateY(-4px);
  }
}

@media (max-width: 720px) {
  .importance-sticky {
    width: calc(100% - 22px);
    padding: 44px 0;
  }

  .importance-copy h2 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .importance-scene {
    min-height: 520px;
  }

  .importance-phone {
    min-height: 430px;
  }

  .importance-main-card {
    margin-top: 54px;
  }

  .importance-floating {
    width: 138px;
    padding: 12px;
  }

  .importance-alert {
    left: 0;
    top: 5%;
  }

  .importance-notify {
    right: 0;
    top: 13%;
  }

  .importance-check {
    left: 0;
    bottom: 8%;
  }

  .importance-profit {
    right: 0;
    bottom: 4%;
  }

  .importance-steps {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal.visible,
  .coverflow-area,
  .coverflow-slide.active .coverflow-window,
  .management-card,
  .importance-scene::before,
  .scanner-visual i,
  .sac-chat-panel.active {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }

  .importance-sticky {
    position: relative;
  }

  .importance-pin-section {
    min-height: auto;
  }
}


/* ===== Slider público com telas reais empilhadas ===== */
.real-screens-showcase {
  min-height: 720px;
}

.phone-stack-stage {
  width: min(900px, 100%);
  height: 660px;
}

.phone-stack-stage::before {
  bottom: 8px;
  width: 66%;
  height: 52px;
  background: radial-gradient(ellipse, rgba(21, 32, 24, .28), transparent 70%);
}

.phone-stack-stage .coverflow-slide {
  width: min(330px, 34vw);
  aspect-ratio: 709 / 1536;
  filter: blur(7px) saturate(.85);
}

.phone-stack-stage .coverflow-slide.active {
  transform: translate(-50%, -50%) translateX(0) translateZ(160px) scale(1.02) rotateY(0deg);
}

.phone-stack-stage .coverflow-slide.right-1 {
  transform: translate(-50%, -50%) translateX(110px) translateY(6px) translateZ(40px) scale(.92) rotateY(-18deg);
}

.phone-stack-stage .coverflow-slide.right-2 {
  transform: translate(-50%, -50%) translateX(200px) translateY(12px) translateZ(-50px) scale(.84) rotateY(-24deg);
}

.phone-stack-stage .coverflow-slide.left-1 {
  transform: translate(-50%, -50%) translateX(-110px) translateY(6px) translateZ(40px) scale(.92) rotateY(18deg);
}

.phone-stack-stage .coverflow-slide.left-2 {
  transform: translate(-50%, -50%) translateX(-200px) translateY(12px) translateZ(-50px) scale(.84) rotateY(24deg);
}

.phone-window {
  position: relative;
  padding: 14px;
  border-radius: 42px;
  background: linear-gradient(180deg, #151919, #0f1111);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow:
    0 30px 80px rgba(23, 32, 25, .28),
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -10px 24px rgba(0,0,0,.36);
}

.phone-notch {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 34%;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 0 0 16px 16px;
  background: rgba(0,0,0,.76);
  z-index: 4;
}

.phone-screen {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  object-fit: cover;
  object-position: center top;
  background: #f2f2ee;
}

.screen-meta {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 4;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(11, 14, 12, .08), rgba(11, 14, 12, .65));
  color: #fff;
  backdrop-filter: blur(14px);
}

.screen-meta strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
}

.screen-meta span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.82);
  font-size: 12px;
}

@media (max-width: 1180px) {
  .real-screens-showcase {
    min-height: 640px;
  }

  .phone-stack-stage {
    height: 580px;
  }

  .phone-stack-stage .coverflow-slide {
    width: min(300px, 42vw);
  }
}

@media (max-width: 900px) {
  .real-screens-showcase {
    min-height: 560px;
  }

  .phone-stack-stage {
    height: 520px;
  }

  .phone-stack-stage .coverflow-slide {
    width: min(252px, 56vw);
  }

  .phone-stack-stage .coverflow-slide.right-1 {
    transform: translate(-50%, -50%) translateX(78px) translateY(10px) translateZ(36px) scale(.9) rotateY(-15deg);
  }

  .phone-stack-stage .coverflow-slide.right-2 {
    transform: translate(-50%, -50%) translateX(136px) translateY(14px) translateZ(-34px) scale(.82) rotateY(-21deg);
  }

  .phone-stack-stage .coverflow-slide.left-1 {
    transform: translate(-50%, -50%) translateX(-78px) translateY(10px) translateZ(36px) scale(.9) rotateY(15deg);
  }

  .phone-stack-stage .coverflow-slide.left-2 {
    transform: translate(-50%, -50%) translateX(-136px) translateY(14px) translateZ(-34px) scale(.82) rotateY(21deg);
  }
}

@media (max-width: 640px) {
  .real-screens-showcase {
    min-height: 500px;
  }

  .phone-stack-stage {
    height: 470px;
  }

  .phone-stack-stage .coverflow-slide {
    width: min(220px, 62vw);
  }

  .phone-window {
    padding: 10px;
    border-radius: 34px;
  }

  .phone-screen {
    border-radius: 24px;
  }

  .phone-notch {
    height: 16px;
    top: 8px;
  }

  .screen-meta {
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 12px 14px;
  }

  .screen-meta strong {
    font-size: 14px;
  }

  .screen-meta span {
    font-size: 11px;
  }

  .phone-stack-stage .coverflow-slide.active {
    transform: translate(-50%, -50%) translateX(0) translateZ(100px) scale(1) rotateY(0deg);
  }

  .phone-stack-stage .coverflow-slide.right-1 {
    transform: translate(-50%, -50%) translateX(58px) translateY(12px) translateZ(20px) scale(.88) rotateY(-14deg);
  }

  .phone-stack-stage .coverflow-slide.right-2 {
    transform: translate(-50%, -50%) translateX(102px) translateY(18px) translateZ(-26px) scale(.78) rotateY(-18deg);
  }

  .phone-stack-stage .coverflow-slide.left-1 {
    transform: translate(-50%, -50%) translateX(-58px) translateY(12px) translateZ(20px) scale(.88) rotateY(14deg);
  }

  .phone-stack-stage .coverflow-slide.left-2 {
    transform: translate(-50%, -50%) translateX(-102px) translateY(18px) translateZ(-26px) scale(.78) rotateY(18deg);
  }
}


/* Correções SAC chat: polling sem piscar e ícone SVG fixo */
.sac-card-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--public-green, #2f7d4f), var(--public-green-dark, #183e2a));
  box-shadow: 0 12px 26px rgba(47, 125, 79, .18);
}

.sac-card-icon svg {
  width: 23px;
  height: 23px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sac-chat-toggle {
  width: 72px;
  height: 72px;
  min-height: 72px;
  border-radius: 24px;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  gap: 3px;
  padding: 11px 8px 9px;
}

.sac-chat-toggle-icon {
  width: 30px;
  height: 30px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sac-chat-toggle span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1;
}

.sac-chat-body {
  overflow-anchor: none;
}

.chat-message {
  will-change: transform, opacity;
}

.chat-message.sac-auto-msg {
  opacity: .96;
}

.sac-chat-send button[disabled] {
  opacity: .72;
  cursor: wait;
}

@media (max-width: 760px) {
  .sac-chat-toggle {
    width: 66px;
    height: 66px;
    min-height: 66px;
    border-radius: 22px;
  }

  .sac-chat-toggle-icon {
    width: 27px;
    height: 27px;
  }
}


/* Correção coverflow ativo + assumir atendimento no SAC */
.phone-stack-stage .coverflow-slide.active,
.phone-stack-stage .coverflow-slide.active .coverflow-window,
.phone-stack-stage .coverflow-slide.active .phone-screen {
  filter: blur(0) saturate(1) !important;
  opacity: 1;
}

.phone-stack-stage .coverflow-slide.active .phone-screen {
  image-rendering: auto;
}

.chat-admin-top-assumir {
  align-items: flex-start;
}

.chat-assumir-box {
  width: min(520px, 100%);
  display: grid;
  gap: 10px;
}

.chat-assumir-box label {
  margin: 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.chat-assumir-box input {
  min-height: 42px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
}

.chat-assumir-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-assumir-actions button {
  min-height: 42px;
  border-radius: 16px;
}

@media (max-width: 760px) {
  .chat-admin-top-assumir {
    align-items: stretch;
  }

  .chat-assumir-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}


/* ===== Ajustes extras da vitrine pública ===== */
.phone-window {
  overflow: hidden;
}

.phone-window .phone-screen {
  object-position: center top;
}

.phone-stack-stage .coverflow-slide {
  transition: transform .45s ease, filter .45s ease, opacity .45s ease;
}

.phone-stack-stage .coverflow-slide:not(.active) .coverflow-window {
  box-shadow: 0 22px 52px rgba(23, 32, 25, .16);
}

/* Corrige a seção de fluxo no mobile para não quebrar e não sobrepor o SAC */
@media (max-width: 760px) {
  .importance-pin-section {
    min-height: auto;
    overflow: hidden;
  }

  .importance-sticky {
    position: relative;
    top: auto;
    width: calc(100% - 20px);
    min-height: auto;
    display: block;
    padding: 34px 0 28px;
  }

  .importance-copy h2 {
    font-size: clamp(30px, 9vw, 44px);
    line-height: 1.02;
    letter-spacing: -.045em;
  }

  .importance-copy p {
    font-size: 15px;
    line-height: 1.6;
  }

  .importance-scene {
    min-height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
  }

  .importance-scene::before {
    inset: 4% 6%;
    width: auto;
    height: auto;
    border-radius: 32px;
    filter: blur(18px);
  }

  .importance-phone {
    grid-column: 1 / -1;
    width: min(100%, 400px);
    min-height: 400px;
    margin: 0 auto;
  }

  .importance-main-card h3 {
    font-size: 32px;
  }

  .importance-floating {
    position: static;
    width: auto;
    min-height: 104px;
    opacity: 1;
    transform: none;
    box-shadow: 0 16px 34px rgba(23,32,25,.10);
  }

  .importance-floating.active {
    transform: none;
    box-shadow: 0 18px 42px rgba(23,32,25,.16);
  }

  .importance-steps {
    margin-top: 14px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .phone-stack-stage {
    height: 455px;
  }

  .phone-stack-stage .coverflow-slide {
    width: min(208px, 62vw);
  }

  .screen-meta {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 10px 12px;
  }

  .screen-meta strong {
    font-size: 13px;
  }

  .screen-meta span {
    font-size: 10px;
  }

  .importance-scene {
    grid-template-columns: 1fr;
  }

  .importance-phone {
    min-height: 380px;
    padding: 16px;
  }

  .importance-main-card {
    margin-top: 48px;
    padding: 18px;
  }

  .importance-main-card h3 {
    font-size: 28px;
  }

  .importance-phone-top strong {
    max-width: 142px;
    font-size: 11px;
  }

  .importance-floating {
    min-height: auto;
  }

  .sac-chat-widget {
    bottom: 14px;
    right: 14px;
  }
}


/* Logo pública ValiSys */
.public-logo-link {
  gap: 0;
  min-width: fit-content;
}

.public-logo-img {
  width: 154px;
  height: auto;
  display: block;
}

@media (max-width: 720px) {
  .public-logo-img {
    width: 128px;
  }
}


/* ===== PWA / Notificações push ===== */
.push-widget {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 1300;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.push-widget-toggle {
  width: 58px;
  height: 58px;
  min-height: 58px;
  border: 0;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #153B2A, #23764D);
  color: #fff;
  box-shadow: 0 18px 46px rgba(21, 59, 42, .28);
  font-size: 23px;
  cursor: pointer;
  pointer-events: auto;
}

.push-widget-card {
  width: min(330px, calc(100vw - 34px));
  padding: 16px;
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(21,59,42,.12);
  box-shadow: 0 24px 70px rgba(21, 32, 24, .18);
  backdrop-filter: blur(18px);
  display: none;
  gap: 14px;
  pointer-events: auto;
}

.push-widget.open .push-widget-card {
  display: grid;
}

.push-widget-card strong {
  display: block;
  color: var(--text, #172019);
  font-size: 16px;
}

.push-widget-card p {
  margin: 6px 0 0;
  color: var(--muted, #6e746f);
  font-size: 13px;
  line-height: 1.45;
}

.push-widget-card button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 16px;
  background: #153B2A;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.push-widget-card button:disabled {
  opacity: .7;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .push-widget {
    left: 14px;
    bottom: 14px;
  }

  .push-widget-toggle {
    width: 54px;
    height: 54px;
    min-height: 54px;
    border-radius: 18px;
    font-size: 21px;
  }
}


/* Ajuste pedido: reorganização visual do scanner */
#reader::after {
  content: none !important;
  display: none !important;
}

#reader {
  display: none;
  min-height: 0 !important;
  height: 0;
  overflow: hidden;
  background: transparent !important;
}

body.camera-aberta #reader {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 9998 !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #000 !important;
  overflow: hidden !important;
}


/* ===== Ajuste de performance visual + dashboard compacto ===== */
.resumo-vencimentos {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 10px 0 12px !important;
}

.resumo-card {
  min-height: 58px;
  padding: 10px 12px !important;
  border-radius: 16px !important;
  gap: 8px !important;
}

.resumo-card > span,
.resumo-card > .svg-icon {
  font-size: 20px !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
}

.resumo-card strong {
  font-size: 19px !important;
}

.resumo-card p {
  margin-top: 2px !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  white-space: nowrap;
}

.push-widget-saindo {
  opacity: 0;
  transform: translateY(12px) scale(.96);
  transition: .28s ease;
  pointer-events: none !important;
}

@media (max-width: 760px) {
  .resumo-vencimentos {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .resumo-card {
    min-width: 0;
    min-height: 66px;
    padding: 8px 4px !important;
    border-radius: 14px !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 3px !important;
  }

  .resumo-card > span,
  .resumo-card > .svg-icon {
    font-size: 16px !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 0 auto;
  }

  .resumo-card strong {
    font-size: 18px !important;
  }

  .resumo-card p {
    font-size: 10px !important;
    letter-spacing: -.02em;
  }

  .push-widget {
    z-index: 900;
  }
}


/* ===== Correção final: seção de impacto no mobile + logo oficial ===== */
.public-logo-img {
  width: 176px !important;
  max-height: 52px;
  object-fit: contain;
}

@media (max-width: 720px) {
  .public-logo-img {
    width: 146px !important;
    max-height: 44px;
  }
}

@media (max-width: 760px) {
  .importance-pin-section {
    min-height: auto !important;
    margin: 18px 0 0 !important;
    padding: 0 14px 82px !important;
    overflow: visible !important;
  }

  .importance-sticky {
    position: relative !important;
    top: auto !important;
    min-height: auto !important;
    width: 100% !important;
    padding: 18px 0 26px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    align-items: stretch !important;
  }

  .importance-copy h2 {
    font-size: clamp(28px, 9vw, 38px) !important;
    line-height: 1.02 !important;
    letter-spacing: -.055em !important;
  }

  .importance-copy p {
    font-size: 15px !important;
    line-height: 1.58 !important;
    margin-top: 12px !important;
  }

  .importance-scene {
    min-height: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    place-items: stretch !important;
    overflow: visible !important;
  }

  .importance-scene::before {
    width: 100% !important;
    height: 330px !important;
    inset: 54px 0 auto 0 !important;
    filter: blur(18px) !important;
    opacity: .72 !important;
  }

  .importance-phone {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-height: auto !important;
    padding: 16px !important;
    border-radius: 30px !important;
    transform: none !important;
    overflow: hidden !important;
  }

  .importance-phone-top span {
    font-size: 22px !important;
  }

  .importance-phone-top strong {
    max-width: 128px !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  .importance-main-card {
    margin-top: 42px !important;
    padding: 18px !important;
    border-radius: 24px !important;
  }

  .importance-status {
    padding: 7px 10px !important;
    font-size: 11px !important;
  }

  .importance-main-card h3 {
    margin-top: 16px !important;
    font-size: clamp(30px, 10vw, 40px) !important;
    line-height: 1 !important;
  }

  .importance-main-card p {
    min-height: auto !important;
    font-size: 15px !important;
    line-height: 1.42 !important;
  }

  .importance-progress {
    margin-top: 18px !important;
  }

  .importance-mini-list {
    margin-top: 14px !important;
    gap: 8px !important;
  }

  .importance-mini-list span {
    height: 38px !important;
    border-radius: 16px !important;
  }

  .importance-floating {
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    min-height: 96px !important;
    padding: 12px !important;
    border-radius: 20px !important;
    opacity: 1 !important;
    transform: none !important;
    display: grid !important;
    align-content: start !important;
    gap: 8px !important;
  }

  .importance-floating.active {
    transform: none !important;
  }

  .importance-floating strong {
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    border-radius: 13px !important;
    font-size: 11px !important;
  }

  .importance-floating span {
    font-size: 14px !important;
    line-height: 1.18 !important;
  }

  .importance-steps {
    display: none !important;
  }

  .sac-chat-widget {
    right: 14px !important;
    bottom: 14px !important;
    z-index: 1200 !important;
  }
}


/* ===== Correção final dos cards de vencimento no dashboard ===== */
@media (max-width: 760px) {
  .resumo-vencimentos {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin: 10px 0 12px !important;
  }

  .resumo-card {
    min-width: 0 !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 7px 3px !important;
    border-radius: 14px !important;
    display: grid !important;
    place-items: center !important;
    text-align: center !important;
    gap: 0 !important;
  }

  .resumo-card > span,
  .resumo-card > .svg-icon,
  .resumo-card > span .svg-icon {
    display: none !important;
  }

  .resumo-card > div {
    min-width: 0 !important;
    width: 100% !important;
    display: grid !important;
    place-items: center !important;
    gap: 2px !important;
  }

  .resumo-card strong {
    display: block !important;
    font-size: 20px !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  .resumo-card p {
    display: block !important;
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
    letter-spacing: -.03em !important;
  }
}


/* ===== Logo oficial enviada pelo usuário ===== */
.public-logo-img {
  width: 168px !important;
  max-height: 48px !important;
  object-fit: contain !important;
  display: block !important;
}

@media (max-width: 720px) {
  .public-logo-img {
    width: 142px !important;
    max-height: 42px !important;
  }
}


/* ===== Comunicados da equipe no dashboard ===== */
.comunicado-equipe-card {
  position: relative;
  overflow: hidden;
  margin: 14px 0;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(47, 125, 79, .16);
  background:
    radial-gradient(circle at top right, rgba(47,125,79,.14), transparent 34%),
    rgba(255,255,255,.90);
  box-shadow: 0 18px 48px rgba(23, 32, 25, .08);
}

.comunicado-topo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.comunicado-label {
  display: inline-flex;
  margin-bottom: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(47,125,79,.10);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 900;
}

.comunicado-topo h2 {
  margin: 0;
  font-size: clamp(22px, 5vw, 32px);
  line-height: 1.04;
  letter-spacing: -.04em;
  color: var(--text);
}

.comunicado-icone {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 28px rgba(47,125,79,.24);
}

.comunicado-mensagem {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.52;
}

.comunicado-autor {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.comunicado-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  gap: 10px;
}

.comunicado-form label {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.comunicado-form textarea {
  min-height: 92px;
  resize: vertical;
}

.comunicado-form-actions {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 10px;
}

.comunicado-form-actions input,
.comunicado-form-actions button {
  min-height: 46px;
}

@media (max-width: 760px) {
  .comunicado-equipe-card {
    margin: 12px 0;
    padding: 16px;
    border-radius: 22px;
  }

  .comunicado-form-actions {
    grid-template-columns: 1fr;
  }

  .comunicado-mensagem {
    font-size: 15px;
  }
}


/* ===== Design novo mobile: cartas empilhadas no impacto ===== */
.impact-card-stack-mobile {
  display: none;
}

@media (max-width: 760px) {
  .importance-pin-section {
    display: none !important;
  }

  .impact-card-stack-mobile {
    display: block;
    padding: 22px 14px 92px;
    margin: 0;
    background:
      radial-gradient(circle at 10% 0%, rgba(47, 125, 79, .18), transparent 34%),
      radial-gradient(circle at 100% 30%, rgba(122, 217, 160, .13), transparent 30%),
      #09150f;
    color: #fff;
    overflow: visible;
  }

  .impact-stack-intro {
    margin: 0 0 24px;
  }

  .impact-stack-intro .hero-pill {
    background: rgba(255,255,255,.10);
    color: #d9ffe6;
    border-color: rgba(255,255,255,.14);
  }

  .impact-stack-intro h2 {
    margin: 14px 0 0;
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.02;
    letter-spacing: -.065em;
    color: #fff;
  }

  .impact-stack-intro p {
    margin: 12px 0 0;
    color: rgba(255,255,255,.72);
    line-height: 1.58;
    font-size: 15px;
  }

  .impact-stack-area {
    position: relative;
    display: grid;
    gap: 18px;
    padding-bottom: 92px;
  }

  .impact-stack-card {
    position: sticky;
    top: 78px;
    min-height: 284px;
    padding: 22px 18px;
    border-radius: 26px;
    overflow: hidden;
    color: #fff;
    background:
      radial-gradient(circle at 100% 0%, rgba(122, 217, 160, .22), transparent 34%),
      linear-gradient(160deg, #123624 0%, #07110c 100%);
    border: 1px solid rgba(255,255,255,.13);
    box-shadow:
      0 26px 70px rgba(0,0,0,.36),
      inset 0 1px 0 rgba(255,255,255,.10);
  }

  .impact-stack-card::after {
    content: "";
    position: absolute;
    inset: auto -18% -26% auto;
    width: 210px;
    height: 210px;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    filter: blur(5px);
    pointer-events: none;
  }

  .impact-stack-card:nth-child(1) {
    z-index: 1;
    top: 76px;
  }

  .impact-stack-card:nth-child(2) {
    z-index: 2;
    top: 96px;
    background:
      radial-gradient(circle at 100% 0%, rgba(255, 210, 120, .24), transparent 34%),
      linear-gradient(160deg, #3b270c 0%, #0f0b06 100%);
  }

  .impact-stack-card:nth-child(3) {
    z-index: 3;
    top: 116px;
    background:
      radial-gradient(circle at 100% 0%, rgba(116, 170, 255, .25), transparent 34%),
      linear-gradient(160deg, #12243d 0%, #070c13 100%);
  }

  .impact-stack-card:nth-child(4) {
    z-index: 4;
    top: 136px;
    background:
      radial-gradient(circle at 100% 0%, rgba(122, 217, 160, .24), transparent 34%),
      linear-gradient(160deg, #173d2b 0%, #07100c 100%);
  }

  .impact-card-number {
    position: absolute;
    right: 14px;
    top: 14px;
    font-size: 92px;
    font-weight: 1000;
    line-height: .78;
    letter-spacing: -.08em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,.15);
    opacity: .9;
    pointer-events: none;
  }

  .impact-card-icon {
    position: relative;
    z-index: 2;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 16px 34px rgba(0,0,0,.18);
    font-size: 23px;
  }

  .impact-stack-card h3 {
    position: relative;
    z-index: 2;
    max-width: 82%;
    margin: 0 0 12px;
    font-size: 27px;
    line-height: 1.05;
    letter-spacing: -.045em;
    color: #fff;
  }

  .impact-stack-card p {
    position: relative;
    z-index: 2;
    max-width: 94%;
    margin: 0;
    color: rgba(255,255,255,.74);
    font-size: 15px;
    line-height: 1.62;
  }
}

@media (min-width: 761px) {
  .impact-card-stack-mobile {
    display: none !important;
  }
}


/* ===== Aviso da equipe: dentro do card Controle do mercado ===== */
.comunicado-equipe-card {
  display: none !important;
}

.comunicado-dashboard-inline {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(47, 125, 79, .14);
  background:
    radial-gradient(circle at top right, rgba(47,125,79,.12), transparent 38%),
    rgba(47, 125, 79, .055);
}

.comunicado-inline-topo {
  display: grid;
  gap: 4px;
}

.comunicado-inline-topo span {
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .01em;
}

.comunicado-inline-topo strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
}

.comunicado-dashboard-inline p {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.comunicado-dashboard-inline small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.gestao-comunicado-card {
  border: 1px solid rgba(47,125,79,.14);
  background:
    radial-gradient(circle at top right, rgba(47,125,79,.10), transparent 36%),
    var(--card);
}

.gestao-comunicado-form {
  display: grid;
  gap: 10px;
}

.gestao-comunicado-form label {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.gestao-comunicado-form textarea {
  min-height: 110px;
  resize: vertical;
}

.gestao-comunicado-form button {
  min-height: 48px;
}

@media (max-width: 760px) {
  .comunicado-dashboard-inline {
    margin-top: 14px;
    padding: 12px;
    border-radius: 16px;
  }
}


/* ===== Gerenciar usuário: edição global ===== */
.editor-funcionario-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 18, 13, .58);
  backdrop-filter: blur(10px);
}

.editor-funcionario-modal {
  width: min(720px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 20px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 28px 90px rgba(0,0,0,.28);
}

.editor-funcionario-topo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.editor-funcionario-topo h2 {
  margin: 10px 0 4px;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.form-editar-funcionario {
  display: grid;
  gap: 10px;
}

.form-editar-funcionario label {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
}

.editor-alerta {
  margin-top: 4px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 176, 32, .12);
  border: 1px solid rgba(255, 176, 32, .22);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.editor-funcionario-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  margin-top: 8px;
}

.funcionario-card .card-actions button {
  width: 100%;
}

@media (max-width: 760px) {
  .editor-funcionario-overlay {
    padding: 10px;
    align-items: end;
  }

  .editor-funcionario-modal {
    max-height: 94vh;
    border-radius: 24px 24px 0 0;
  }

  .editor-funcionario-actions {
    grid-template-columns: 1fr;
  }
}


/* ===== Visual completo: Gerenciar usuário ===== */
.gerenciar-usuario-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(47,125,79,.20), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(238,247,241,.96));
  border: 1px solid rgba(47,125,79,.14);
}

.gerenciar-usuario-banner h2 {
  margin: 10px 0 8px;
  font-size: clamp(24px, 6vw, 38px);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.gerenciar-usuario-banner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 680px;
}

.gerenciar-usuario-banner-icon {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 32px;
  box-shadow: 0 20px 46px rgba(47,125,79,.22);
}

.funcionario-gerenciavel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(47,125,79,.14);
  background:
    radial-gradient(circle at top right, rgba(47,125,79,.10), transparent 32%),
    var(--card);
}

.funcionario-gerenciavel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--primary), rgba(122,217,160,.9));
}

.funcionario-gerenciavel-topo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-left: 4px;
}

.funcionario-avatar-admin {
  width: 58px;
  height: 58px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.35), transparent 34%),
    var(--primary);
  color: #fff;
  font-size: 24px;
  font-weight: 1000;
  box-shadow: 0 16px 34px rgba(47,125,79,.20);
}

.funcionario-status-pill {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(47,125,79,.10);
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 1000;
  margin-bottom: 7px;
}

.funcionario-gerenciavel-topo h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.025em;
}

.funcionario-gerenciavel-topo p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
}

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

.funcionario-detalhes-grid p {
  margin: 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(15, 23, 42, .035);
  border: 1px solid rgba(15, 23, 42, .06);
}

.funcionario-detalhes-grid strong {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.funcionario-detalhes-grid span {
  display: block;
  color: var(--text);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.funcionario-gerenciar-alerta {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 176, 32, .12);
  border: 1px solid rgba(255, 176, 32, .22);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.funcionario-card-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
}

.btn-gerenciar-usuario {
  background:
    linear-gradient(135deg, var(--primary), var(--primary-strong)) !important;
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(47,125,79,.22);
}

.editor-funcionario-overlay {
  animation: editorFadeIn .18s ease both;
}

.editor-funcionario-modal {
  background:
    radial-gradient(circle at 100% 0%, rgba(47,125,79,.13), transparent 28%),
    var(--card);
}

.editor-funcionario-topo {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.editor-funcionario-topo .icon-btn {
  background: rgba(15, 23, 42, .06);
  color: var(--text);
}

.form-editar-funcionario input,
.form-editar-funcionario select,
.form-editar-funcionario textarea {
  background: rgba(255,255,255,.92);
}

@keyframes editorFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .gerenciar-usuario-banner {
    align-items: flex-start;
    padding: 16px;
  }

  .gerenciar-usuario-banner-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    font-size: 24px;
  }

  .funcionario-detalhes-grid {
    grid-template-columns: 1fr;
  }

  .funcionario-card-actions {
    grid-template-columns: 1fr;
  }

  .funcionario-gerenciavel-topo {
    align-items: flex-start;
  }
}


/* ===== Animação dos cards públicos estilo Aluro/Webflow ===== */
[data-card-motion] {
  --card-y: 34px;
  --card-rx: 0deg;
  --card-ry: 0deg;
  --card-scale: .965;
  --card-opacity: 0;
  transform:
    translate3d(0, var(--card-y), 0)
    rotateX(var(--card-rx))
    rotateY(var(--card-ry))
    scale(var(--card-scale));
  opacity: var(--card-opacity);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transition:
    transform .82s cubic-bezier(.16, 1, .3, 1),
    opacity .68s ease,
    box-shadow .42s ease,
    border-color .42s ease;
}

[data-card-motion].card-in-view {
  --card-y: 0px;
  --card-scale: 1;
  --card-opacity: 1;
}

[data-card-motion].card-hovered {
  box-shadow:
    0 28px 80px rgba(0,0,0,.16),
    0 0 0 1px rgba(47,125,79,.10);
  border-color: rgba(47,125,79,.24) !important;
}

.feature-grid-redesign article[data-card-motion],
.workflow-line article[data-card-motion],
.split-card-redesign[data-card-motion],
.management-card[data-card-motion] {
  transition-delay: calc(var(--motion-index, 0) * 70ms);
}

@media (prefers-reduced-motion: reduce) {
  [data-card-motion] {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}

/* Mobile: cards empilhados com animação de baralho */
@media (max-width: 760px) {
  .impact-card-stack-mobile {
    perspective: 1100px;
  }

  .impact-stack-area {
    transform-style: preserve-3d;
  }

  .impact-stack-card[data-card-motion] {
    --card-opacity: 1;
    --card-scale: 1;
    --card-y: 0px;
    transform:
      translate3d(0, var(--stack-y, 0px), var(--stack-z, 0px))
      rotateX(var(--stack-rx, 0deg))
      rotateZ(var(--stack-rz, 0deg))
      scale(var(--stack-scale, 1));
    transition:
      transform .26s linear,
      box-shadow .32s ease,
      border-color .32s ease;
    transform-origin: center top;
    backface-visibility: hidden;
  }

  .impact-stack-card[data-card-motion]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(255,255,255,var(--shine, .09)), transparent 38%),
      radial-gradient(circle at var(--mx, 70%) var(--my, 10%), rgba(255,255,255,.16), transparent 24%);
    opacity: var(--shine-opacity, .24);
    mix-blend-mode: screen;
  }

  .impact-stack-card.card-stacked-active {
    box-shadow:
      0 30px 86px rgba(0,0,0,.45),
      inset 0 1px 0 rgba(255,255,255,.12);
  }

  .impact-stack-card.card-passed {
    filter: saturate(.88) brightness(.84);
  }
}

/* Desktop: micro-interação 3D nos cards */
@media (min-width: 761px) {
  [data-card-motion].tilt-card {
    transform:
      translate3d(0, var(--card-y), 0)
      rotateX(var(--tilt-x, 0deg))
      rotateY(var(--tilt-y, 0deg))
      scale(var(--tilt-scale, var(--card-scale)));
  }

  [data-card-motion].card-in-view.tilt-card {
    --tilt-scale: 1;
  }

  [data-card-motion].card-in-view.tilt-card.card-hovered {
    --tilt-scale: 1.018;
  }
}

/* ===== Ajustes: gramagem, caixa e lembretes escondidos ===== */
.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(47,125,79,.07);
  border: 1px solid rgba(47,125,79,.13);
  font-weight: 800;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
}

.lembretes-collapse {
  padding: 0;
  overflow: hidden;
}

.lembretes-collapse summary {
  cursor: pointer;
  list-style: none;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.lembretes-collapse summary::-webkit-details-marker {
  display: none;
}

.lembretes-collapse summary h2 {
  margin: 0;
}

.lembretes-collapse summary > span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47,125,79,.10);
  color: var(--primary-strong);
  font-weight: 900;
  font-size: 12px;
}

.lembretes-collapse[open] summary > span {
  font-size: 0;
}

.lembretes-collapse[open] summary > span::after {
  content: "Esconder";
  font-size: 12px;
}

.lembretes-collapse #lembretes-vencimento {
  padding: 0 18px 18px;
}


/* ===== Checkbox no padrão visual do ValiSys ===== */
.checkbox-line {
  position: relative;
  display: grid !important;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  margin: 4px 0 10px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(47,125,79,.08), transparent 34%),
    var(--card);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .045);
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    background .22s ease;
}

.checkbox-line:hover {
  transform: translateY(-1px);
  border-color: rgba(47,125,79,.24);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .07);
}

.checkbox-line input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 48px;
  height: 28px;
  margin: 0;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 999px;
  background: rgba(15,23,42,.08);
  position: relative;
  cursor: pointer;
  transition:
    background .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.checkbox-line input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 14px rgba(15,23,42,.20);
  transition: transform .22s cubic-bezier(.16, 1, .3, 1);
}

.checkbox-line input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(47,125,79,.24);
}

.checkbox-line input[type="checkbox"]:checked::before {
  transform: translateX(20px);
}

.checkbox-line input[type="checkbox"]:focus-visible {
  outline: 3px solid rgba(47,125,79,.22);
  outline-offset: 3px;
}

.checkbox-line span {
  display: block;
  line-height: 1.25;
  color: var(--text);
}

.checkbox-line:has(input[type="checkbox"]:checked) {
  border-color: rgba(47,125,79,.28);
  background:
    radial-gradient(circle at top right, rgba(47,125,79,.16), transparent 34%),
    rgba(47,125,79,.06);
}

/* Caixa do lançamento fica mais integrada ao formulário */
.area-caixa-lancamento.checkbox-line {
  margin-top: 2px;
  margin-bottom: 6px;
}

@media (max-width: 760px) {
  .checkbox-line {
    grid-template-columns: 44px 1fr;
    min-height: 54px;
    padding: 11px 12px;
    border-radius: 16px;
  }

  .checkbox-line input[type="checkbox"] {
    width: 44px;
    height: 26px;
  }

  .checkbox-line input[type="checkbox"]::before {
    width: 18px;
    height: 18px;
  }

  .checkbox-line input[type="checkbox"]:checked::before {
    transform: translateX(18px);
  }
}


/* ===== Campo de gramagem no lançamento ===== */
#gramagemProduto {
  font-weight: 800;
}

#gramagemProduto::placeholder {
  color: rgba(100, 116, 139, .82);
}


/* ===== Setor em lista com opção manual ===== */
.setor-manual-area {
  margin-top: -2px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(47,125,79,.14);
  background:
    radial-gradient(circle at top right, rgba(47,125,79,.08), transparent 34%),
    rgba(47,125,79,.045);
}

.setor-manual-area label {
  margin-top: 0;
}

.setor-manual-area input {
  margin-bottom: 6px;
}


/* ===== Lista completa: filtro e edição de setor ===== */
.lista-filtros {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.setor-editor-lista {
  margin: 14px 0 0;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(47,125,79,.14);
  background:
    radial-gradient(circle at top right, rgba(47,125,79,.08), transparent 34%),
    rgba(47,125,79,.045);
}

.setor-editor-lista label {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text);
}

.setor-editor-row {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 10px;
  align-items: end;
}

.setor-editor-row select,
.setor-editor-row button,
.setor-manual-lista-area input {
  margin-top: 0;
}

.setor-manual-lista-area {
  margin-top: 10px;
}

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

  .setor-editor-row {
    grid-template-columns: 1fr;
  }
}


/* ===== Correção final: modal Gerenciar usuário sólido no mobile ===== */
:root {
  --card: #ffffff;
}

.editor-funcionario-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: grid !important;
  place-items: center !important;
  padding: 16px !important;
  background: rgba(12, 24, 18, .72) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.editor-funcionario-modal {
  position: relative !important;
  width: min(720px, calc(100vw - 24px)) !important;
  max-height: calc(100vh - 32px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 20px !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(47,125,79,.10), transparent 28%),
    #ffffff !important;
  color: #152018 !important;
  border: 1px solid rgba(226, 232, 220, .95) !important;
  box-shadow: 0 28px 90px rgba(0,0,0,.38) !important;
}

.editor-funcionario-topo {
  position: sticky;
  top: -20px;
  z-index: 2;
  padding: 0 0 14px;
  margin: 0 0 16px;
  background:
    linear-gradient(180deg, #ffffff 78%, rgba(255,255,255,.88));
  border-bottom: 1px solid rgba(226,232,220,.95);
}

.editor-funcionario-topo h2,
.editor-funcionario-topo p,
.editor-funcionario-topo .muted,
.form-editar-funcionario label,
.editor-alerta {
  color: #152018 !important;
}

.editor-funcionario-topo h2 {
  font-size: clamp(26px, 7vw, 40px) !important;
  line-height: 1.02 !important;
  margin: 10px 0 6px !important;
  letter-spacing: -.055em !important;
}

.editor-funcionario-topo .icon-btn {
  flex: 0 0 auto !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 16px !important;
  background: #f4f7f2 !important;
  color: #152018 !important;
  border: 1px solid #dfe8da !important;
  box-shadow: none !important;
  font-size: 28px !important;
  line-height: 1 !important;
}

.form-editar-funcionario {
  display: grid !important;
  gap: 12px !important;
}

.form-editar-funcionario input,
.form-editar-funcionario select,
.form-editar-funcionario textarea {
  background: #ffffff !important;
  color: #152018 !important;
  border: 1px solid #dfe8da !important;
  box-shadow: inset 0 0 0 9999px rgba(255,255,255,.01) !important;
}

.form-editar-funcionario input:focus,
.form-editar-funcionario select:focus {
  border-color: #2f7d4f !important;
  outline: 3px solid rgba(47,125,79,.16) !important;
}

.editor-alerta {
  background: rgba(255, 176, 32, .14) !important;
  border: 1px solid rgba(255, 176, 32, .30) !important;
}

@media (max-width: 760px) {
  .editor-funcionario-overlay {
    align-items: end !important;
    padding: 8px !important;
  }

  .editor-funcionario-modal {
    width: 100% !important;
    max-height: 92vh !important;
    padding: 18px !important;
    border-radius: 24px 24px 0 0 !important;
  }

  .editor-funcionario-topo {
    top: -18px;
  }

  .editor-funcionario-actions {
    grid-template-columns: 1fr !important;
    position: sticky;
    bottom: -18px;
    padding-top: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,.75), #ffffff);
  }
}


/* ===== Foto: câmera ou arquivo + dados editáveis ===== */
.foto-opcoes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.foto-opcoes button {
  margin-top: 0;
}

.dados-produto-editaveis {
  margin-top: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(47,125,79,.15);
  background:
    radial-gradient(circle at top right, rgba(47,125,79,.08), transparent 34%),
    rgba(47,125,79,.045);
}

.compact-title {
  margin-bottom: 6px;
}

.compact-title h3 {
  margin: 0 0 4px;
}

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


/* ===== Modo turbo de carregamento ===== */
.lista-modo-turbo {
  border: 1px solid rgba(47,125,79,.16);
  background:
    radial-gradient(circle at top right, rgba(47,125,79,.10), transparent 34%),
    #ffffff;
}

.lista-modo-turbo button {
  margin-top: 12px;
}


/* ===== Carregamento fluido operacional ===== */
.lista-loading-fluido {
  overflow: hidden;
}

.loading-linha {
  height: 16px;
  width: 88%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47,125,79,.08), rgba(47,125,79,.18), rgba(47,125,79,.08));
  background-size: 200% 100%;
  animation: loadingLinha 1.2s linear infinite;
  margin-bottom: 12px;
}

.loading-linha.menor {
  width: 56%;
}

@keyframes loadingLinha {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.aviso-lista-fluida {
  border-left: 5px solid var(--warning);
}

.aviso-lista-fluida p {
  margin: 0 0 10px;
}

.aviso-lista-fluida.warning {
  background: #fff8e8;
}


/* Remoção visual alteração setor */
.setor-editor-lista { display: none !important; }


/* ===== Lista Geral profissional: RPC paginada ===== */
.lista-filtros-profissional {
  align-items: end;
}

.lista-resumo {
  border-left: 5px solid var(--primary);
}

.lista-loading-fluido {
  overflow: hidden;
}

.loading-linha {
  height: 16px;
  width: 88%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47,125,79,.08), rgba(47,125,79,.18), rgba(47,125,79,.08));
  background-size: 200% 100%;
  animation: loadingLinha 1.2s linear infinite;
  margin-bottom: 12px;
}

.loading-linha.menor {
  width: 56%;
}

@keyframes loadingLinha {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.aviso-lista-fluida {
  border-left: 5px solid var(--warning);
}

.aviso-lista-fluida.warning {
  background: #fff8e8;
}


/* ===== Fotos leves na Lista Geral ===== */
.lancamento-topo-com-foto {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: start;
}

.produto-thumb-lista {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  background: #eef4ef;
  border: 1px solid rgba(21, 59, 42, .10);
}

.produto-thumb-placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  font-size: .72rem;
  line-height: 1.05;
  color: var(--muted);
  padding: 6px;
}

.lancamento-titulo {
  min-width: 0;
}

.lancamento-titulo h3 {
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .lancamento-topo-com-foto {
    grid-template-columns: 56px 1fr;
  }

  .lancamento-topo-com-foto .badges-line {
    grid-column: 1 / -1;
  }

  .produto-thumb-lista {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }
}


/* ===== Placeholder fixo de foto na Lista Geral ===== */
.foto-box-lista {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: block;
}

.foto-box-lista .produto-thumb-lista {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
}

.produto-thumb-placeholder {
  display: grid;
  place-items: center;
  background: #f3f7f4;
  border: 1px dashed rgba(21, 59, 42, .32);
  color: #5f6f65;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}

@media (max-width: 640px) {
  .foto-box-lista {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .foto-box-lista .produto-thumb-lista {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
  }
}


/* ===== Financeiro: planos e assinatura ===== */
.planos-grid {
  display: grid;
  gap: 14px;
}

.plano-card {
  position: relative;
  overflow: hidden;
}

.plano-card.destaque {
  border-color: rgba(47, 125, 79, .45);
  box-shadow: 0 16px 36px rgba(47, 125, 79, .14);
}

.plano-tag {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.plano-preco {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 18px 0 14px;
}

.plano-preco strong {
  font-size: 32px;
  letter-spacing: -.8px;
}

.plano-preco span {
  color: var(--muted);
  font-size: 14px;
}

.plano-recursos {
  padding-left: 18px;
  margin: 0 0 18px;
  color: var(--text);
}

.plano-recursos li {
  margin-bottom: 8px;
}

.finance-status-card {
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-left: 6px solid var(--primary);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.finance-status-card.pago,
.finance-status-card.ativa {
  border-left-color: var(--success);
}

.finance-status-card.pendente,
.finance-status-card.aguardando {
  border-left-color: var(--warning);
}

.finance-status-card.vencida,
.finance-status-card.cancelada {
  border-left-color: var(--danger);
}

.finance-label {
  display: inline-block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 5px;
}

.finance-info-grid {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.finance-info-grid p {
  margin: 0;
}

.inline-link,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: 12px 15px;
  border-radius: 14px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 800;
  margin-top: 8px;
}

.inline-link {
  background: #eef2e9;
  color: var(--text);
  border: 1px solid var(--line);
}

.cobranca-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  border-left: 5px solid var(--line);
}

.cobranca-card.pago {
  border-left-color: var(--success);
}

.cobranca-card.pendente,
.cobranca-card.aguardando {
  border-left-color: var(--warning);
}

.cobranca-card.vencida {
  border-left-color: var(--danger);
}

.cobranca-card h3 {
  margin: 0 0 6px;
}

.cobranca-meta {
  text-align: right;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.cobranca-meta strong {
  font-size: 22px;
}

.badge-finance {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #eef2e9;
  color: var(--text);
}

.badge-finance.pago {
  background: #e8f6ec;
  color: var(--success);
}

.badge-finance.pendente,
.badge-finance.aguardando {
  background: #fff4dd;
  color: #9b650e;
}

.badge-finance.vencida {
  background: #fdeceb;
  color: var(--danger);
}

.payment-modal {
  position: fixed;
  inset: 0;
  background: rgba(21, 32, 24, .54);
  z-index: 60;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.payment-modal.active {
  display: flex;
}

.payment-modal-card {
  width: 100%;
  max-width: 620px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .24);
}

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

.small-btn {
  width: auto;
  min-width: 96px;
  padding: 12px 14px;
  margin-top: 0;
}

.payment-methods {
  display: grid;
  gap: 10px;
}

.payment-method-btn {
  text-align: left;
  background: #f3f7f4;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.payment-method-btn strong,
.payment-method-btn span {
  display: block;
}

.payment-method-btn span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.payment-details {
  display: grid;
  gap: 10px;
}

.payment-details p {
  margin: 0;
}

.payment-details code {
  word-break: break-all;
  white-space: normal;
}

.payment-details textarea {
  min-height: 96px;
  resize: vertical;
}

.payment-warning {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: #fff8e8;
  border: 1px solid rgba(211, 139, 24, .22);
}

.payment-warning p {
  margin: 6px 0 0;
  color: var(--muted);
}

.no-shadow {
  box-shadow: none;
}

@media (max-width: 640px) {
  .cobranca-card {
    grid-template-columns: 1fr;
  }

  .cobranca-meta {
    text-align: left;
    justify-items: start;
  }

  .payment-modal {
    padding: 10px;
  }

  .payment-modal-card {
    border-radius: 24px 24px 16px 16px;
  }

  .plano-preco strong {
    font-size: 28px;
  }
}


/* ===== Planos no site público ===== */
.public-plans-section {
  padding-top: 72px;
}

.public-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.public-plan-card {
  position: relative;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(226, 232, 220, .95);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 18px 42px rgba(21, 32, 24, .08);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.public-plan-card.destaque {
  border-color: rgba(47, 125, 79, .42);
  transform: translateY(-8px);
  box-shadow: 0 26px 56px rgba(47, 125, 79, .16);
}

.public-plan-kicker {
  color: var(--primary);
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 12px;
}

.public-plan-tag {
  position: absolute;
  right: 18px;
  top: 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.public-plan-card h3 {
  margin: 18px 0 8px;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -1.4px;
}

.public-plan-card h3 span {
  font-size: 15px;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 700;
}

.public-plan-card p {
  color: var(--muted);
  line-height: 1.55;
}

.public-plan-card ul {
  padding-left: 18px;
  margin: 12px 0 24px;
  color: var(--text);
  flex: 1;
}

.public-plan-card li {
  margin-bottom: 9px;
}

.public-plan-card .primary-link,
.public-plan-card .secondary-link {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.public-plans-note {
  margin: 22px auto 0;
  max-width: 760px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  text-align: center;
}

.public-plans-note p {
  margin: 8px 0 0;
  color: var(--muted);
}

.public-plans-note .inline-link {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .public-plans-grid {
    grid-template-columns: 1fr;
  }

  .public-plan-card.destaque {
    transform: none;
  }
}
