@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
  --bg: #27160f;
  --bg2: #543326;
  --surface: #fff9f2;
  --surface-strong: #fffdf8;
  --surface-soft: #f7efe6;
  --line: #d8c5af;
  --line-strong: #c5ac90;
  --text: #271a14;
  --muted: #695447;
  --accent: #2f9a59;
  --accent-2: #3dbb6f;
  --accent-deep: #237341;
  --choco: #5b3322;
  --shadow-soft: 0 8px 30px rgba(34, 20, 14, 0.16);
  --shadow-card: 0 16px 40px rgba(24, 13, 8, 0.2);
  --tab-painel: #5b3322;
  --tab-catalogo: #2f7f9a;
  --tab-operacao: #2f9a59;
  --tab-comercial: #b24545;
  --tab-fiscal: #5e5a2f;
  --tab-admin: #3b6f9e;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 11px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 8%, rgba(89, 57, 42, 0.65) 0, transparent 35%),
    radial-gradient(circle at 88% 92%, rgba(128, 80, 58, 0.52) 0, transparent 36%),
    radial-gradient(circle at 52% 30%, rgba(224, 183, 146, 0.12), transparent 44%),
    repeating-linear-gradient(
      135deg,
      rgba(65, 40, 30, 0.2) 0,
      rgba(65, 40, 30, 0.2) 7px,
      transparent 8px,
      transparent 16px
    ),
    linear-gradient(160deg, var(--bg), var(--bg2));
  min-height: 100vh;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a,
button,
input,
select {
  -webkit-tap-highlight-color: rgba(47, 154, 89, 0.2);
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid rgba(47, 154, 89, 0.45);
  outline-offset: 2px;
}

.wrap {
  max-width: 1520px;
  margin: 0 auto;
  padding: clamp(12px, 1.7vw, 22px);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.hero {
  padding: 22px;
  margin-bottom: 16px;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.92), rgba(247, 236, 223, 0.98)),
    linear-gradient(0deg, rgba(72, 46, 35, 0.1), rgba(72, 46, 35, 0.1));
}

.hero h1 {
  margin: 0 0 7px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  letter-spacing: 0.2px;
  color: var(--choco);
  text-wrap: balance;
}

.hero p {
  margin: 0 0 10px;
  color: var(--muted);
  max-width: 72ch;
}

.brand-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.brand-logo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #d6ecdf;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background: #fff;
}

.brand-kicker {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 800;
}

.hero-actions {
  display: grid;
  grid-template-columns: minmax(300px, 1.15fr) minmax(0, 1.85fr);
  gap: 10px;
  align-items: center;
}

.session-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.session-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(268px, 300px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.app-sidebar {
  position: sticky;
  top: 12px;
  height: calc(100vh - 24px);
  height: calc(100dvh - 24px);
  min-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(210, 193, 174, 0.82);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(247, 238, 226, 0.96)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.68), transparent 46%);
  box-shadow: 0 12px 28px rgba(30, 18, 12, 0.14);
  backdrop-filter: blur(8px);
  isolation: isolate;
}

.sidebar-block {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(215, 198, 179, 0.92);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sidebar-context-block {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.sidebar-eyebrow,
.sidebar-label,
.workspace-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.72rem;
  font-weight: 800;
}

.sidebar-eyebrow,
.workspace-eyebrow {
  color: var(--accent);
}

.sidebar-label {
  color: #7a624f;
}

.sidebar-title {
  margin: 0;
  border: 0;
  padding: 0;
  font-size: 1.16rem;
  color: var(--choco);
}

.sidebar-copy,
.sidebar-context-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.sidebar-context-head {
  display: grid;
  gap: 4px;
}

.sidebar-main-nav,
.section-nav {
  display: grid;
  gap: 7px;
}

.section-nav {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-color: #b89d81 #f7efe5;
}

.section-nav::-webkit-scrollbar {
  width: 9px;
}

.section-nav::-webkit-scrollbar-thumb {
  background: #c3a98f;
  border-radius: 999px;
}

.section-nav::-webkit-scrollbar-track {
  background: #f7efe5;
  border-radius: 999px;
}

.sidebar-main-nav .tab-btn,
.section-btn {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.section-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid #d7c8b4;
  border-radius: 12px;
  background: #fffefb;
  color: #3f3028;
  cursor: pointer;
  font-weight: 700;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.03), 0 2px 8px rgba(40, 27, 20, 0.05);
  transition: transform 130ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.section-btn:hover {
  border-color: #c5af95;
  background: #fefaf4;
  color: #2b4f3a;
}

.section-btn:active {
  transform: translateY(1px);
}

.section-btn.active {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 16px rgba(34, 50, 41, 0.17);
}

.section-btn small {
  display: block;
  color: inherit;
  opacity: 0.84;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.24;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section-btn-text {
  display: grid;
  gap: 2px;
}

.workspace {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.workspace-head {
  padding: 18px 20px;
  display: grid;
  gap: 7px;
  background:
    linear-gradient(145deg, rgba(255, 252, 247, 0.99), rgba(246, 236, 224, 0.96)),
    radial-gradient(circle at top right, rgba(255, 240, 222, 0.88), transparent 42%);
  border-color: rgba(211, 192, 171, 0.95);
}

.workspace-head-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.workspace-progress {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #cfe0d3;
  background: linear-gradient(180deg, #fcfffd, #eef8f1);
  color: #2d6240;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.25px;
  text-transform: uppercase;
}

.workspace-head h2 {
  margin: 0;
  border: 0;
  padding: 0;
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.55rem);
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 13px;
  background: #fffefb;
  color: #30463b;
  border: 1px solid #cdd8d0;
  border-radius: 12px;
  pointer-events: auto;
  cursor: pointer;
  font-weight: 800;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.04), 0 2px 8px rgba(40, 27, 20, 0.06);
  transition: transform 140ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.tab-btn:hover {
  border-color: #a8c6b4;
  color: #223f31;
  background: #f8fcf9;
}

.tab-btn:active {
  transform: translateY(1px);
}

.session-pill {
  align-self: center;
  padding: 9px 12px;
  border: 1px solid #c8d9cb;
  border-radius: 11px;
  background: linear-gradient(180deg, #ffffff, #f6fbf7);
  color: #355243;
  font-size: 0.84rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 4px 10px rgba(24, 45, 33, 0.06);
  letter-spacing: 0.1px;
}

.session-pill-account {
  border-color: #c4d9cb;
}

.session-pill-version {
  border-color: #d5d8de;
  color: #495867;
  background: linear-gradient(180deg, #ffffff, #f5f7fb);
}

.import-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #c6dfcf;
  padding: 9px 14px;
  border-radius: 11px;
  cursor: pointer;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  color: #2c5a41;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.import-label:hover {
  border-color: #9cc9aa;
  color: #214a34;
  box-shadow: 0 4px 12px rgba(42, 70, 50, 0.12);
}

.import-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hero-status-hint {
  margin: 8px 0 0;
  padding: 8px 10px;
  border: 1px solid #d7dfd1;
  border-radius: 10px;
  background: linear-gradient(180deg, #fcfffc, #eef6ef);
}

.hero-status-info {
  border-color: #cde0d2;
  color: #2e6443;
}

.hero-status-success {
  border-color: #beddc6;
  color: #2a6a45;
  background: linear-gradient(180deg, #fafffb, #eaf6ed);
}

.hero-status-warning {
  border-color: #dfd0a9;
  color: #765f24;
  background: linear-gradient(180deg, #fffef8, #f8f2e0);
}

.hero-status-error {
  border-color: #e2c0c0;
  color: #8a2a2a;
  background: linear-gradient(180deg, #fff8f8, #fbecec);
}

.layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.left-col,
.right-col {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
}

.panel {
  padding: 18px;
  container-type: inline-size;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  animation: panel-enter 260ms ease both;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), rgba(61, 187, 111, 0.45));
}

.panel:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

[data-tab="painel"].panel::before {
  background: linear-gradient(90deg, var(--tab-painel), #81513b);
}

[data-tab="catalogo"].panel::before {
  background: linear-gradient(90deg, var(--tab-catalogo), #58abc2);
}

[data-tab="operacao"].panel::before {
  background: linear-gradient(90deg, var(--tab-operacao), #54bc7e);
}

[data-tab="comercial"].panel::before {
  background: linear-gradient(90deg, var(--tab-comercial), #d16f61);
}

[data-tab="fiscal"].panel::before {
  background: linear-gradient(90deg, var(--tab-fiscal), #958f4f);
}

[data-tab="admin"].panel::before {
  background: linear-gradient(90deg, var(--tab-admin), #5f9acb);
}

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

.panel-cockpit {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 240, 222, 0.95), transparent 40%),
    linear-gradient(145deg, rgba(255, 250, 243, 0.98), rgba(245, 235, 220, 0.96));
}

.painel-premium-panel {
  border-color: #dccab6;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 233, 213, 0.84), transparent 40%),
    radial-gradient(circle at 86% 0%, rgba(237, 225, 210, 0.72), transparent 42%),
    linear-gradient(152deg, #fffaf4, #f4eadf);
}

.painel-premium-panel .panel-kicker {
  color: #7a4d32;
}

.painel-premium-panel h2 {
  border-left-color: #a06744;
}

.painel-flow-strip .flow-chip-record {
  border-color: #e0c9af;
  background: linear-gradient(180deg, #fffdf8, #f7efe2);
  color: #7a5231;
}

.painel-flow-strip .flow-chip-launch {
  border-color: #c7ddc8;
  background: linear-gradient(180deg, #fbfffb, #ecf7ed);
  color: #2d6b45;
}

.painel-flow-strip .flow-chip-audit {
  border-color: #ccd8e7;
  background: linear-gradient(180deg, #fbfdff, #edf2fa);
  color: #355f85;
}

.painel-gestao-panel {
  border-color: #d7d2c0;
  background:
    radial-gradient(circle at 84% 0%, rgba(241, 237, 218, 0.74), transparent 40%),
    linear-gradient(152deg, #fffef9, #f5f1e6);
}

.painel-gestao-panel .panel-kicker {
  color: #756438;
}

.painel-gestao-panel h2 {
  border-left-color: #9a874a;
}

.painel-gestao-panel #gestao-mei-summary .summary-box {
  border-color: #d9d8c0;
  background: linear-gradient(180deg, #fffef9, #f5f3e8);
}

.painel-gestao-panel #gestao-vendas-summary .summary-box {
  border-color: #c9ded0;
  background: linear-gradient(180deg, #fbfffc, #edf6ef);
}

.painel-gestao-panel #gestao-caixa-summary .summary-box {
  border-color: #d4d8e5;
  background: linear-gradient(180deg, #fbfdff, #edf3fa);
}

.panel-kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-size: 0.72rem;
  font-weight: 800;
}

.flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.flow-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.flow-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid #d8cfbf;
  background: linear-gradient(180deg, #fffeff, #f7f2e8);
  color: #4a3e35;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  padding: 5px 11px;
}

.flow-chip-record {
  border-color: #d9c6a6;
  background: linear-gradient(180deg, #fffdf8, #f8f0df);
  color: #78532a;
}

.flow-chip-launch {
  border-color: #bfdcc7;
  background: linear-gradient(180deg, #fafffb, #ebf7ef);
  color: #2b6c42;
}

.flow-chip-audit {
  border-color: #c8d6e5;
  background: linear-gradient(180deg, #fbfdff, #edf3fa);
  color: #355f85;
}

.catalog-flow-strip .flow-chip {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.flow-action {
  min-height: 36px;
  font-size: 0.84rem;
  font-weight: 700;
}

.cockpit-actions {
  margin-bottom: 12px;
}

.product-panel {
  border-color: #e2c8ad;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 234, 213, 0.8), transparent 36%),
    linear-gradient(150deg, #fffaf4, #f7ede1);
}

.product-panel .panel-kicker {
  color: #8a5327;
}

.product-panel h2 {
  border-left-color: #cf7d34;
}

.pricing-settings-panel {
  border-color: #c6dccf;
  background:
    radial-gradient(circle at 86% 0%, rgba(209, 237, 220, 0.72), transparent 40%),
    linear-gradient(150deg, #fbfffc, #edf6ef);
}

.pricing-settings-panel .panel-kicker {
  color: #2f7a4a;
}

.pricing-settings-panel h2 {
  border-left-color: #2f9a59;
}

.product-list-panel {
  border-color: #d9d2be;
  background:
    radial-gradient(circle at 84% 0%, rgba(241, 236, 209, 0.72), transparent 40%),
    linear-gradient(150deg, #fffef9, #f5f1e4);
}

.product-list-panel .panel-kicker {
  color: #78642c;
}

.product-list-panel h2 {
  border-left-color: #a39043;
}

.pricing-results-panel {
  border-color: #c5d8de;
  background:
    radial-gradient(circle at 14% 0%, rgba(214, 238, 247, 0.82), transparent 38%),
    linear-gradient(150deg, #fcfeff, #eff6fb);
}

.pricing-results-panel .panel-kicker {
  color: #2f6f8e;
}

.pricing-results-panel h2 {
  border-left-color: #3b7da2;
}

.fiscal-panel {
  border-color: #d6d6be;
  background:
    radial-gradient(circle at 86% 0%, rgba(235, 236, 204, 0.78), transparent 40%),
    linear-gradient(152deg, #fffef8, #f3f2e5);
}

.fiscal-panel .panel-kicker {
  color: #66602f;
}

.fiscal-panel h2 {
  border-left-color: #8a8441;
}

.fiscal-flow-strip .flow-chip-record {
  border-color: #d8d3ab;
  background: linear-gradient(180deg, #fffef9, #f7f4df);
  color: #6d6732;
}

.fiscal-flow-strip .flow-chip-launch {
  border-color: #c6dec6;
  background: linear-gradient(180deg, #fbfffb, #ecf7eb);
  color: #2e6f45;
}

.fiscal-flow-strip .flow-chip-audit {
  border-color: #cad8e8;
  background: linear-gradient(180deg, #fbfdff, #edf3fa);
  color: #355f85;
}

.fiscal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.fiscal-card {
  border-color: #d8dfcf;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 247, 238, 0.94)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.72), transparent 60%);
}

.fiscal-card-risk .summary-grid {
  margin-bottom: 8px;
}

.fiscal-section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 10px;
}

.fiscal-section-head h3 {
  margin-bottom: 0;
}

.fiscal-inline-tools {
  margin: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(170px, 1fr));
}

.fiscal-inline-tools label {
  margin: 0;
}

.fiscal-summary-grid {
  margin: 0 0 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
}

.fiscal-summary-grid .summary-box {
  border-color: #d8dcc5;
  background: linear-gradient(180deg, #fffef9, #f4f5e9);
}

.admin-panel {
  border-color: #c6d7e6;
  background:
    radial-gradient(circle at 85% 0%, rgba(213, 231, 247, 0.78), transparent 40%),
    linear-gradient(152deg, #fbfdff, #ecf4fb);
}

.admin-panel .panel-kicker {
  color: #345f83;
}

.admin-panel h2 {
  border-left-color: #3b6f9e;
}

.admin-flow-strip .flow-chip-record {
  border-color: #c8d6e7;
  background: linear-gradient(180deg, #fbfdff, #edf4fa);
  color: #345f83;
}

.admin-flow-strip .flow-chip-launch {
  border-color: #c8decc;
  background: linear-gradient(180deg, #fbfffb, #ecf6ed);
  color: #2e6d46;
}

.admin-flow-strip .flow-chip-audit {
  border-color: #ddd5c0;
  background: linear-gradient(180deg, #fffef9, #f5f1e4);
  color: #6a5a2d;
}

.admin-inline-tools {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  margin-bottom: 12px;
}

.admin-inline-tools label {
  margin: 0;
}

.admin-user-form {
  margin-bottom: 8px;
}

.inventory-panel > p.hint + p.hint {
  display: none;
}

.hidden-tab {
  display: none !important;
}

.hidden-col {
  display: none !important;
}

.layout.single-col {
  grid-template-columns: 1fr;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.summary-box {
  border: 1px solid #d9e4d6;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffefb, #f7fbf8);
  padding: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.summary-box strong {
  display: block;
  font-size: 0.8rem;
  color: #5d4a40;
  margin-bottom: 4px;
}

.summary-box span {
  font-weight: 700;
  font-size: 0.95rem;
}

.cockpit-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.cockpit-list {
  display: grid;
  gap: 8px;
}

.cockpit-alert-item {
  display: grid;
  gap: 8px;
  border: 1px solid #e0d0bb;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.cockpit-alert-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.cockpit-alert-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  border: 1px solid #d6d0bf;
  background: #f8f4ea;
  color: #6d5a44;
}

.cockpit-alert-title {
  color: #4a3a31;
  font-size: 0.86rem;
}

.cockpit-alert-copy {
  margin: 0;
  color: #5f4f44;
  font-size: 0.83rem;
}

.cockpit-alert-critical {
  border-color: #e8c4c4;
  background: linear-gradient(180deg, #fff9f9, #fbecec);
}

.cockpit-alert-critical .cockpit-alert-tag {
  border-color: #e3b4b4;
  background: #fdecec;
  color: #8d2b2b;
}

.cockpit-alert-attention {
  border-color: #e3d2b3;
  background: linear-gradient(180deg, #fffef9, #f8f2e4);
}

.cockpit-alert-attention .cockpit-alert-tag {
  border-color: #dcc79b;
  background: #faf3dd;
  color: #7b611f;
}

.cockpit-alert-ok {
  border-color: #cde0cd;
  background: linear-gradient(180deg, #fbfffc, #edf6ee);
}

.cockpit-alert-ok .cockpit-alert-tag {
  border-color: #bfdac0;
  background: #edf8ef;
  color: #2f6a45;
}

.next-step-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: flex-start;
  gap: 8px;
  border: 1px solid #ddcfbe;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 11px;
}

.next-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #f4eadc;
  color: #5f4a3d;
  font-size: 0.78rem;
  font-weight: 800;
}

.next-step-body {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.next-step-body p {
  margin: 0;
  color: #5c4c41;
  font-size: 0.83rem;
}

.next-step-critical {
  border-color: #e5c2c2;
  background: linear-gradient(180deg, #fff8f8, #fbecec);
}

.next-step-critical .next-step-index {
  background: #f9dfdf;
  color: #872828;
}

.next-step-attention {
  border-color: #e4d2af;
  background: linear-gradient(180deg, #fffef8, #f9f2e0);
}

.next-step-attention .next-step-index {
  background: #f8efd8;
  color: #765d22;
}

.next-step-ok {
  border-color: #cce0cd;
  background: linear-gradient(180deg, #fafffb, #edf6ee);
}

.next-step-ok .next-step-index {
  background: #e7f4ea;
  color: #2e6a44;
}

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

.workflow-card {
  display: grid;
  gap: 9px;
  border: 1px solid #dbc6af;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, #fffefb, #f8f1e7);
  box-shadow: var(--shadow-soft);
}

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

.workflow-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.workflow-kicker {
  margin: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--accent-deep);
  font-weight: 800;
}

.workflow-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.workflow-status-done {
  background: #e8f5ec;
  color: #276b43;
}

.workflow-status-in-progress {
  background: #f8f1de;
  color: #735b1f;
}

.workflow-status-pending {
  background: #f3e9dd;
  color: #674a32;
}

.workflow-card-done {
  border-color: #c5dccb;
  background: linear-gradient(180deg, #fbfffc, #edf6ef);
}

.workflow-card-in-progress {
  border-color: #dfd3ba;
  background: linear-gradient(180deg, #fffef9, #f6f0e1);
}

.sub-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.commercial-panel {
  display: grid;
  gap: 12px;
}

.commercial-panel label {
  min-inline-size: 0;
}

.commercial-panel input,
.commercial-panel select {
  width: 100%;
  min-inline-size: 0;
}

.commercial-panel .panel-kicker {
  color: #8a2f2f;
}

.comercial-flow-strip {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 241, 239, 0.98)),
    radial-gradient(circle at top right, rgba(178, 69, 69, 0.12), transparent 56%);
  border: 1px solid #e2c4bf;
}

.commercial-sale-form {
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  border: 1px solid #dfc4be;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(251, 244, 242, 0.98)),
    radial-gradient(circle at top right, rgba(178, 69, 69, 0.1), transparent 58%);
  padding: 12px;
}

.commercial-sale-form > button {
  justify-self: start;
}

.commercial-inline-tools {
  border: 1px solid #dfc7c1;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 241, 238, 0.97)),
    radial-gradient(circle at top right, rgba(178, 69, 69, 0.08), transparent 60%);
  padding: 10px;
}

.commercial-inline-tools > button {
  align-self: end;
}

.commercial-sales-summary {
  margin-top: 2px;
}

.commercial-goal-card,
.commercial-chart-card,
.commercial-sales-list-card {
  border-color: #d9c3bc;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 241, 239, 0.98)),
    radial-gradient(circle at top right, rgba(178, 69, 69, 0.08), transparent 58%);
}

.commercial-sub-panels {
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 12px;
}

.commercial-panel .sub-panels {
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}

.commercial-fin-card {
  border-color: #ddc5bf;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(251, 243, 241, 0.98)),
    radial-gradient(circle at top right, rgba(178, 69, 69, 0.09), transparent 58%);
}

.commercial-fin-base::before {
  background: linear-gradient(90deg, rgba(72, 110, 86, 0.72), rgba(72, 110, 86, 0.16));
}

.commercial-fin-investment::before {
  background: linear-gradient(90deg, rgba(164, 104, 46, 0.72), rgba(164, 104, 46, 0.16));
}

.commercial-fin-debt::before {
  background: linear-gradient(90deg, rgba(166, 69, 69, 0.72), rgba(166, 69, 69, 0.16));
}

.commercial-fin-fixed-expense::before {
  background: linear-gradient(90deg, rgba(84, 96, 62, 0.72), rgba(84, 96, 62, 0.16));
}

.commercial-fin-variable-expense::before {
  background: linear-gradient(90deg, rgba(120, 104, 55, 0.72), rgba(120, 104, 55, 0.16));
}

.commercial-fin-payable::before {
  background: linear-gradient(90deg, rgba(170, 72, 72, 0.72), rgba(170, 72, 72, 0.16));
}

.commercial-fin-receivable::before {
  background: linear-gradient(90deg, rgba(53, 130, 95, 0.72), rgba(53, 130, 95, 0.16));
}

.commercial-fin-cashflow::before {
  background: linear-gradient(90deg, rgba(74, 106, 143, 0.72), rgba(74, 106, 143, 0.16));
}

@media (min-width: 920px) {
  .commercial-panel .form-grid.compact {
    grid-template-columns: 1fr;
  }

  .commercial-sale-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commercial-panel .form-grid.compact > button {
    justify-self: start;
  }
}

.mini-card {
  border: 1px solid #d9e1d3;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 239, 230, 0.9)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.75), transparent 58%);
  padding: 13px;
  box-shadow: 0 8px 20px rgba(30, 21, 15, 0.08);
  position: relative;
}

.mini-card::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 3px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(90deg, rgba(47, 154, 89, 0.65), rgba(47, 154, 89, 0.12));
}

[data-tab="painel"] .mini-card::before {
  background: linear-gradient(90deg, rgba(91, 51, 34, 0.66), rgba(91, 51, 34, 0.12));
}

[data-tab="catalogo"] .mini-card::before {
  background: linear-gradient(90deg, rgba(47, 127, 154, 0.66), rgba(47, 127, 154, 0.12));
}

[data-tab="operacao"] .mini-card::before {
  background: linear-gradient(90deg, rgba(47, 154, 89, 0.66), rgba(47, 154, 89, 0.12));
}

[data-tab="comercial"] .mini-card::before {
  background: linear-gradient(90deg, rgba(178, 69, 69, 0.66), rgba(178, 69, 69, 0.12));
}

[data-tab="fiscal"] .mini-card::before {
  background: linear-gradient(90deg, rgba(94, 90, 47, 0.66), rgba(94, 90, 47, 0.12));
}

[data-tab="admin"] .mini-card::before {
  background: linear-gradient(90deg, rgba(59, 111, 158, 0.66), rgba(59, 111, 158, 0.12));
}

.mini-card h3 {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: #4a3a31;
}

.accordion-group {
  display: grid;
  gap: 12px;
}

.accordion-item {
  border: 1px solid #d9e1d3;
  border-radius: var(--radius-md);
  background: #fffcf8;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(25, 20, 16, 0.07);
}

.purchase-step-card {
  position: relative;
}

.purchase-step-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  opacity: 0.95;
}

.purchase-step-record::after {
  background: linear-gradient(180deg, #d9b782, #be8f4a);
}

.purchase-step-launch::after {
  background: linear-gradient(180deg, #7ac391, #2f9a59);
}

.purchase-step-audit::after {
  background: linear-gradient(180deg, #87acd2, #4f7ca8);
}

.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: #f3f7f0;
  color: #1f4a34;
  border: 0;
  border-bottom: 1px solid #d6dfd0;
  padding: 12px 14px;
  font-weight: 700;
  transition: background-color 170ms ease;
}

.accordion-toggle:hover {
  background: #edf4eb;
}

.accordion-icon {
  font-weight: 900;
}

.accordion-item.open .accordion-toggle {
  background: #e8f2e9;
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  display: none;
  padding: 14px;
}

.accordion-item.open .accordion-body {
  display: block;
}

.sales-chart {
  display: grid;
  gap: 6px;
}

.chart-row {
  display: grid;
  grid-template-columns: 34px 1fr minmax(140px, auto);
  align-items: center;
  gap: 8px;
}

.chart-day {
  font-size: 0.82rem;
  color: #6a5a4d;
  font-weight: 700;
}

.chart-bars {
  display: grid;
  gap: 4px;
}

.bar {
  height: 8px;
  border-radius: 999px;
}

.bar-revenue {
  background: #7b4f3a;
}

.bar-profit {
  background: #2f9a59;
}

.bar-loss {
  background: #b24545;
}

.chart-values {
  font-size: 0.78rem;
  color: #5f4f43;
  white-space: nowrap;
}

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

h2 {
  margin: 0 0 12px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.08rem;
  color: var(--choco);
  border-left: 4px solid var(--accent);
  padding-left: 10px;
  line-height: 1.3;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 11px;
  margin-bottom: 14px;
}

.inline-create-card {
  grid-column: 1 / -1;
  border: 1px solid #c8dccc;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(234, 246, 237, 0.96)),
    radial-gradient(circle at top right, rgba(47, 154, 89, 0.09), transparent 52%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.inline-create-card[hidden] {
  display: none;
}

.inline-create-title {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #2e5e44;
}

#unified-ingredient-wrap,
#recipe-item-form label {
  min-width: 0;
}

#unified-ingredient-feedback,
#recipe-item-source-feedback {
  margin-top: 2px;
}

.field-feedback-match {
  color: #1f7a45;
  font-weight: 700;
}

.field-feedback-new {
  color: #8a5a11;
  font-weight: 700;
}

.product-form-grid,
.settings-form-grid {
  gap: 12px;
  grid-template-columns: 1fr;
}

.form-cluster {
  margin: 0;
  min-inline-size: 0;
  border: 1px solid #dfcdb8;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(249, 243, 235, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.pricing-settings-panel .form-cluster {
  border-color: #c8dcce;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 248, 241, 0.96));
}

.form-cluster-title {
  grid-column: 1 / -1;
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px dashed #d8c5b1;
  font-size: 0.78rem;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: #456450;
  font-weight: 800;
}

.cluster-field-wide {
  grid-column: 1 / -1;
}

.product-panel .form-cluster-title {
  color: #6e4a2a;
}

#product-item-qty-hint {
  grid-column: 1 / -1;
  margin: 0;
}

#add-product-component {
  grid-column: 1 / -1;
  justify-self: start;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}

.panel-block-title {
  margin: 12px 0 8px;
  padding-top: 9px;
  border-top: 1px dashed #dac5af;
  font-weight: 700;
  color: #5b473c;
}

@container (min-width: 760px) {
  .product-panel .cluster-identity,
  .product-panel .cluster-composition,
  .product-panel .cluster-costs,
  .pricing-settings-panel .cluster-fees,
  .pricing-settings-panel .cluster-global-costs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-panel .cluster-channel-prices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (min-width: 1040px) {
  .product-panel .cluster-channel-prices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.form-section-title {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  padding-top: 6px;
  border-top: 1px dashed #ddccba;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  color: #473228;
  font-weight: 600;
}

input,
select,
button {
  border-radius: var(--radius-sm);
  font-size: 0.91rem;
}

input,
select {
  border: 1px solid #d8c6b2;
  background: linear-gradient(180deg, #fffefd, #fff9f3);
  padding: 9px 10px;
  color: #2c2018;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus {
  outline: 2px solid rgba(47, 154, 89, 0.28);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 154, 89, 0.14);
}

button {
  border: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  padding: 10px 13px;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08), 0 6px 14px rgba(34, 100, 63, 0.2);
  transition: transform 150ms ease, box-shadow 180ms ease, filter 180ms ease;
}

button:hover {
  filter: saturate(1.05) brightness(1.01);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08), 0 8px 18px rgba(34, 100, 63, 0.24);
}

button:active {
  transform: translateY(1px);
}

button.ghost {
  background: #fff;
  color: #34523f;
  border: 1px solid #95c2a6;
  box-shadow: 0 4px 12px rgba(42, 70, 50, 0.08);
}

button.danger {
  background: linear-gradient(90deg, #8f2d1f, #b54731);
}

button.remove {
  background: #fff;
  color: #7a2c20;
  border: 1px solid #ddb9b0;
  padding: 6px 8px;
  box-shadow: none;
}

button.stock-adjust-btn {
  color: #2e5a45;
  border-color: #b8d7c6;
  background: #f7fcf9;
}

button.remove + button.remove {
  margin-left: 0;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 11px;
  border: 1px solid #d7bfb4;
  background: #fff;
  color: #6a2e1f;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: border-color 150ms ease, color 150ms ease, transform 120ms ease;
}

.link-btn:hover {
  border-color: #cda392;
  color: #582414;
}

.link-btn:active {
  transform: translateY(1px);
}

#ingredient-calc-hint {
  grid-column: 1 / -1;
  margin: 0;
}

#ingredient-unit-cost {
  background: #f4fbf7;
}

.inline-tools {
  margin-bottom: 12px;
}

.panel-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 12px;
  padding: 8px 10px;
  border: 1px solid #d8e3d5;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 249, 243, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.panel-search-input {
  flex: 1;
  min-width: 0;
}

.panel-search-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: #5a645d;
  white-space: nowrap;
}

.select-quick-search {
  margin-bottom: 6px;
  background: #f7fbf8;
  border-color: #c7dbcd;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #fffdf9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  scrollbar-color: #bfa48b #f8efe4;
  min-width: 0;
}

table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,
td {
  border-bottom: 1px solid #f1e6da;
  text-align: left;
  padding: 9px 8px;
  font-size: 0.84rem;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f2e9dd;
  color: #574236;
  font-weight: 800;
  letter-spacing: 0.15px;
}

tbody tr:nth-child(2n) td {
  background: #fcf9f4;
}

tbody tr:hover td {
  background: #eff7f0;
}

td:last-child,
th:last-child {
  text-align: center;
}

.table-wrap tbody td.hint {
  padding: 14px 10px;
  text-align: center;
  color: #6d5a4d;
  font-weight: 600;
  background: linear-gradient(180deg, #fffdf9, #f8f2e9);
}

.table-wrap td button {
  margin: 3px 4px 2px 0;
}

.hint {
  color: var(--muted);
  font-size: 0.88rem;
}

.warn {
  color: #9a1f1f;
  font-weight: 700;
}

.sale-preview {
  border-radius: 12px;
  border: 1px solid #d7dfd1;
  background: linear-gradient(180deg, #fbfffc, #f0f7f1);
  padding: 8px 10px;
}

.sale-preview-good {
  border-color: #b9ddc2;
  background: linear-gradient(180deg, #f8fffa, #e9f6ee);
  color: #275f3e;
}

.sale-preview-warn {
  border-color: #e5c9c9;
  background: linear-gradient(180deg, #fff9f9, #fbecec);
  color: #7a2a2a;
}

.channel-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.channel-pill-store {
  background: #e9f4eb;
  color: #1f6a3f;
}

.channel-pill-99 {
  background: #f6efe2;
  color: #7a5623;
}

.channel-pill-ifood {
  background: #f5e9e9;
  color: #8c2f2f;
}

.result-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 800;
  font-size: 0.78rem;
}

.result-pill-profit {
  background: #e9f7ee;
  color: #1f6d42;
}

.result-pill-loss {
  background: #fdeaea;
  color: #9a1f1f;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.74rem;
  font-weight: 800;
}

.status-pill-open {
  background: #f2f5ea;
  color: #4f5f2a;
}

.status-pill-soon {
  background: #fff4dc;
  color: #8a5a07;
}

.status-pill-overdue {
  background: #fde8e8;
  color: #9a1f1f;
}

.status-pill-done {
  background: #e8f2ff;
  color: #2a4f8a;
}

.status-pill-valid {
  background: #e8f7ef;
  color: #1d6b3f;
}

.tax-type-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  border: 1px solid #d6cfbd;
  background: #f8f7ed;
  color: #5a5630;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.tax-type-das-mensal {
  background: #eef5ec;
  border-color: #cde2c9;
  color: #2f6c3f;
}

.tax-type-dasn-simei {
  background: #f6f2e5;
  border-color: #ddd2a9;
  color: #6e5c21;
}

.tax-type-nfs-e {
  background: #ebf2fb;
  border-color: #c8d7ee;
  color: #315f8b;
}

.tax-type-guia-estadual-municipal {
  background: #f8ece8;
  border-color: #e2c9bf;
  color: #7c3f2c;
}

.admin-role-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.admin-role-admin {
  background: #eaf2fd;
  color: #2f5f8c;
}

.admin-role-user {
  background: #edf7ef;
  color: #2d6b46;
}

.tax-status-note {
  display: block;
  margin-top: 3px;
  color: #6a5d53;
  font-size: 0.76rem;
  line-height: 1.3;
}

.tax-row-overdue td:not([colspan]) {
  background: #fff3f3;
}

.tax-row-soon td:not([colspan]) {
  background: #fff9ee;
}

.tax-row-done td:not([colspan]) {
  background: #f4f8ff;
}

.tax-actions-cell {
  text-align: left;
  white-space: normal;
}

.tax-actions-cell .small-btn {
  margin-right: 4px;
}

.small-btn {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 0.79rem;
  border-radius: 9px;
}

.tax-update-date,
.tax-update-source {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  border: 1px solid #d6ddc8;
  background: #f3f7ec;
  color: #385b3f;
  font-size: 0.74rem;
  font-weight: 700;
}

.tax-update-impact {
  color: #594c41;
  font-weight: 600;
}

.catalog-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.catalog-tag-insumo {
  background: #eaf5ff;
  color: #2c6597;
}

.catalog-tag-operacional {
  background: #fff3dc;
  color: #805513;
}

.catalog-tag-embalagem {
  background: #e9f8ef;
  color: #1f6b43;
}

.balance-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.balance-pill-open {
  background: #f5f3e8;
  color: #5c5734;
}

.balance-pill-done {
  background: #e7f6ec;
  color: #1f6f42;
}

.balance-pill-over {
  background: #fdeaea;
  color: #9a1f1f;
}

.balance-text-open {
  color: #5c5734;
}

.balance-text-done {
  color: #1f6f42;
}

.balance-text-over {
  color: #9a1f1f;
}

.recipe-summary-grid,
.production-summary-grid {
  margin-top: 10px;
  margin-bottom: 12px;
}

.recipe-summary-grid .summary-box,
.production-summary-grid .summary-box {
  background: linear-gradient(180deg, #ffffff, #f8f3ea);
}

.stock-alert {
  display: inline-block;
  margin-top: 2px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #a61e1e;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.stock-critical {
  color: #9a1f1f;
  font-weight: 800;
  background: #fde8e8 !important;
}

.out-of-stock-row td {
  background: #fff3f3;
}

.stock-zero-row td {
  background: #fff0f0;
  color: #8f1d1d;
}

.tax-risk-attention {
  color: #8a5a07;
  font-weight: 700;
}

.tax-alert-banner {
  margin: 0;
  padding: 9px 10px;
  border-radius: 11px;
  border: 1px solid #d4ddcb;
  background: linear-gradient(180deg, #fbfffb, #edf6ee);
}

.tax-alert-ok {
  border-color: #c8dec8;
  background: linear-gradient(180deg, #fafffb, #ebf7ed);
  color: #2f6940;
}

.tax-alert-attention {
  border-color: #e2d2ad;
  background: linear-gradient(180deg, #fffdf6, #f8f2e0);
  color: #7a5b16;
}

.tax-alert-critical {
  border-color: #e6c1c1;
  background: linear-gradient(180deg, #fff8f8, #fbecec);
  color: #8b2525;
}

.pricing-list {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.pricing-list > .hint {
  grid-column: 1 / -1;
  margin: 0;
}

.pricing-card {
  border: 1px solid #d7dde3;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f4f8fb);
  box-shadow: 0 8px 18px rgba(24, 26, 28, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pricing-results-panel .pricing-card {
  border-color: #bfd3de;
  background: linear-gradient(180deg, #ffffff, #edf5fb);
}

.budget-channel-panel {
  border-color: #d9c8b6;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 243, 234, 0.98)),
    radial-gradient(circle at top right, rgba(195, 142, 84, 0.08), transparent 58%);
}

.budget-approval-panel {
  border-color: #cdbfae;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 242, 233, 0.99)),
    radial-gradient(circle at bottom left, rgba(65, 145, 96, 0.08), transparent 56%);
}

.budget-approval-head {
  display: grid;
  gap: 14px;
}

.budget-approval-head h3 {
  margin: 2px 0 6px;
  color: var(--choco);
}

#budget-convert-product {
  width: 100%;
  min-height: 48px;
  align-self: start;
}

#budget-convert-product:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
}

.budget-pricing-meta-grid {
  margin-bottom: 12px;
}

.pricing-card-head {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.pricing-card h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--choco);
}

.pricing-composition {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #d3e2eb;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fcff, #edf5fa);
  color: #3b4f59;
  font-size: 0.84rem;
  line-height: 1.4;
}

.pricing-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.pricing-meta {
  margin: 0;
  border-radius: 11px;
  padding: 9px 10px;
  border: 1px solid #d7d7d7;
  background: #fff;
  display: grid;
  gap: 3px;
}

.pricing-meta .label {
  margin: 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #526067;
  font-weight: 800;
}

.pricing-meta .value {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: #24343b;
}

.pricing-meta.meta-base {
  border-color: #d8d4bb;
  background: linear-gradient(180deg, #fffef6, #f8f4de);
}

.pricing-meta.meta-oper {
  border-color: #ded0b8;
  background: linear-gradient(180deg, #fffcf7, #f7eee1);
}

.pricing-meta.meta-loss {
  border-color: #bdd9c4;
  background: linear-gradient(180deg, #f9fffb, #edf8f0);
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 10px;
}

.channel {
  border: 1px solid #c7dce6;
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(180deg, #ffffff, #f5fbff);
  display: grid;
  gap: 8px;
}

.pricing-results-panel .channel {
  border-color: #b8d0dd;
  background: linear-gradient(180deg, #ffffff, #f0f7fc);
}

.channel-store {
  border-color: #c9dbbe;
  background: linear-gradient(180deg, #ffffff, #f3faf1);
}

.channel-99 {
  border-color: #d7cab4;
  background: linear-gradient(180deg, #ffffff, #f8f1e7);
}

.channel-ifood {
  border-color: #c7d2e4;
  background: linear-gradient(180deg, #ffffff, #f2f5fb);
}

.channel-head {
  display: grid;
  gap: 2px;
}

.channel-head h4 {
  margin: 0;
  font-size: 0.86rem;
  color: #2f3f48;
}

.channel-meta {
  margin: 0;
  font-size: 0.76rem;
  color: #5b6c74;
}

.channel-block {
  border: 1px solid #d7e1e8;
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.84);
  display: grid;
  gap: 6px;
}

.channel-prices p,
.channel-health p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.81rem;
  color: #405660;
}

.channel-prices span,
.channel-health span {
  color: #55666f;
}

.channel-prices strong,
.channel-health strong {
  font-variant-numeric: tabular-nums;
  color: #243b47;
}

.price-ideal {
  color: #1f7a45 !important;
}

.channel-health-empty {
  background: rgba(255, 255, 255, 0.65);
}

.channel-status {
  margin: 2px 0 0;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  width: fit-content;
}

.channel-status.status-ok {
  color: #165336;
  background: #dbf4e4;
}

.channel-status.status-atencao {
  color: #704f08;
  background: #fff0c7;
}

.channel-status.status-reajustar {
  color: #8a1f1f;
  background: #fcdede;
}

.strong {
  font-weight: 700;
  color: #1f7a45;
}

.pricing-results-panel .strong {
  color: #216f8d;
}

[data-tab="painel"] h2 { border-left-color: var(--tab-painel); }
[data-tab="catalogo"] h2 { border-left-color: var(--tab-catalogo); }
[data-tab="operacao"] h2 { border-left-color: var(--tab-operacao); }
[data-tab="comercial"] h2 { border-left-color: var(--tab-comercial); }
[data-tab="fiscal"] h2 { border-left-color: var(--tab-fiscal); }
[data-tab="admin"] h2 { border-left-color: var(--tab-admin); }

.app-shell[data-active-tab="painel"] .tab-btn[data-tab-target="painel"].active,
.app-shell[data-active-tab="painel"] .section-btn.active {
  background: linear-gradient(135deg, var(--tab-painel), #734733);
  border-color: transparent;
  color: #fff;
}

.app-shell[data-active-tab="catalogo"] .tab-btn[data-tab-target="catalogo"].active,
.app-shell[data-active-tab="catalogo"] .section-btn.active {
  background: linear-gradient(135deg, var(--tab-catalogo), #3e99b1);
  border-color: transparent;
  color: #fff;
}

.app-shell[data-active-tab="operacao"] .tab-btn[data-tab-target="operacao"].active,
.app-shell[data-active-tab="operacao"] .section-btn.active {
  background: linear-gradient(135deg, var(--tab-operacao), #2f8d55);
  border-color: transparent;
  color: #fff;
}

.app-shell[data-active-tab="comercial"] .tab-btn[data-tab-target="comercial"].active,
.app-shell[data-active-tab="comercial"] .section-btn.active {
  background: linear-gradient(135deg, var(--tab-comercial), #cc5d4b);
  border-color: transparent;
  color: #fff;
}

.app-shell[data-active-tab="fiscal"] .tab-btn[data-tab-target="fiscal"].active,
.app-shell[data-active-tab="fiscal"] .section-btn.active {
  background: linear-gradient(135deg, var(--tab-fiscal), #87803d);
  border-color: transparent;
  color: #fff;
}

.app-shell[data-active-tab="admin"] .tab-btn[data-tab-target="admin"].active,
.app-shell[data-active-tab="admin"] .section-btn.active {
  background: linear-gradient(135deg, var(--tab-admin), #5088b7);
  border-color: transparent;
  color: #fff;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 19, 14, 0.5);
  display: grid;
  place-items: center;
  padding: 14px;
  z-index: 50;
  backdrop-filter: blur(4px);
}

.modal-overlay.hidden-tab {
  display: none;
}

.modal-card {
  width: min(560px, 96vw);
  max-height: 88vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 86% 0%, rgba(244, 230, 214, 0.64), transparent 42%),
    linear-gradient(150deg, #fffefc, #f7efe3);
  padding: 14px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.modal-card h3 {
  margin: 0 0 10px;
  color: var(--choco);
}

.modal-description {
  margin: -3px 0 10px;
  padding: 8px 10px;
  border: 1px solid #d9dfcd;
  border-radius: 10px;
  background: linear-gradient(180deg, #fcfff9, #eff6e8);
}

#confirm-modal-message {
  white-space: pre-line;
}

.modal-message {
  margin: 0;
  padding: 8px 2px 2px;
}

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

.confirm-backup {
  display: grid;
  gap: 10px;
}

.confirm-backup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: 8px;
}

.confirm-backup-item {
  border: 1px solid #d9ddcb;
  border-radius: 11px;
  background: linear-gradient(180deg, #fffefb, #f3f5e9);
  padding: 8px 10px;
  display: grid;
  gap: 3px;
}

.confirm-backup-item strong {
  font-size: 0.78rem;
  color: #5b4e43;
}

.confirm-backup-item span {
  font-size: 0.92rem;
  font-weight: 800;
}

.confirm-backup-meta {
  margin: 0;
  color: #5f554c;
  font-size: 0.84rem;
}

.confirm-backup-warn {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e0cfab;
  background: linear-gradient(180deg, #fffef8, #f8f2df);
  color: #765f24;
}

.auth-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 22px;
}

.auth-shell {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 250, 243, 0.94);
  box-shadow: 0 24px 55px rgba(18, 11, 8, 0.35);
}

.auth-brand {
  background:
    linear-gradient(145deg, rgba(91, 51, 34, 0.96), rgba(63, 35, 24, 0.96)),
    radial-gradient(circle at 16% 22%, rgba(255, 202, 150, 0.24), transparent 40%);
  color: #f9efe5;
  padding: 30px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.auth-brand img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.35);
}

.auth-brand h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  color: #fff4e7;
}

.auth-brand p {
  margin: 0;
  color: rgba(255, 239, 223, 0.9);
}

.auth-feature-list {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.auth-feature-list li {
  border: 1px solid rgba(255, 232, 212, 0.34);
  border-radius: 11px;
  padding: 7px 10px;
  font-size: 0.86rem;
  color: rgba(255, 240, 227, 0.94);
  background: rgba(255, 255, 255, 0.06);
}

.auth-box {
  padding: 30px;
  display: grid;
  align-content: center;
  gap: 12px;
}

.auth-box h2 {
  margin: 0;
  border: 0;
  padding: 0;
  font-size: 1.14rem;
}

.auth-box .hint {
  margin: 0 0 6px;
}

.auth-box form {
  display: grid;
  gap: 10px;
}

.auth-box .err {
  color: #9a1f1f;
  font-size: 0.88rem;
  border: 1px solid #e6b3b3;
  background: #fff2f2;
  border-radius: 10px;
  padding: 8px 10px;
}

.auth-security-tip {
  margin: 2px 0 0;
  padding: 8px 10px;
  border: 1px solid #d7dfd1;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfffb, #edf6ee);
  color: #395f45;
  font-size: 0.84rem;
}

.app-notice-stack {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 70;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 24px));
}

.app-notice {
  border: 1px solid #d7d9cf;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffefc, #f6f2e8);
  box-shadow: 0 12px 22px rgba(22, 16, 12, 0.16);
  padding: 10px 11px;
  display: grid;
  gap: 6px;
}

.app-notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.app-notice-title {
  margin: 0;
  font-size: 0.84rem;
  color: #4a3b31;
}

.app-notice-message {
  margin: 0;
  color: #5a4c41;
  font-size: 0.82rem;
  white-space: pre-line;
}

.app-notice-close {
  border: 1px solid #d8cebe;
  background: #fff;
  color: #6d533f;
  min-height: 28px;
  min-width: 28px;
  padding: 3px 7px;
  box-shadow: none;
}

.app-notice-success {
  border-color: #c4dcc8;
  background: linear-gradient(180deg, #fbfffc, #ecf6ee);
}

.app-notice-warning {
  border-color: #dfd0ab;
  background: linear-gradient(180deg, #fffef8, #f9f2df);
}

.app-notice-error {
  border-color: #e4c2c2;
  background: linear-gradient(180deg, #fff8f8, #fbecec);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .sidebar-main-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-nav {
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

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

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

  .channel-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .fiscal-grid {
    grid-template-columns: 1fr;
  }

  .sub-panels {
    grid-template-columns: 1fr;
  }

  .cockpit-layout,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .brand-head {
    align-items: flex-start;
  }

  .brand-logo {
    width: 74px;
    height: 74px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-brand,
  .auth-box {
    padding: 22px;
  }
}

@media (max-width: 768px) {
  .wrap {
    padding: 10px;
  }

  .hero,
  .panel {
    padding: 12px;
  }

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

  .hero-actions > * {
    width: 100%;
  }

  .session-controls {
    justify-content: stretch;
  }

  .session-controls > * {
    width: 100%;
  }

  .import-label {
    justify-content: space-between;
  }

  .app-shell,
  .workspace {
    gap: 12px;
  }

  .app-sidebar,
  .workspace-head {
    padding: 12px;
  }

  .sidebar-block {
    padding: 12px;
  }

  .sidebar-main-nav,
  .section-nav {
    grid-template-columns: 1fr;
  }

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

  .form-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .form-actions > button {
    width: 100%;
  }

  .flow-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .flow-actions > .flow-action {
    width: 100%;
  }

  #budget-convert-product {
    width: 100%;
  }

  .cockpit-alert-item .small-btn,
  .next-step-body .small-btn,
  .workflow-card .small-btn {
    width: 100%;
  }

  .next-step-item {
    grid-template-columns: 1fr;
  }

  .workflow-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .fiscal-section-head {
    display: grid;
    gap: 8px;
    align-items: stretch;
  }

  .fiscal-inline-tools {
    grid-template-columns: 1fr;
  }

  .flow-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .panel-search-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .panel-search-count {
    text-align: right;
  }

  button,
  .link-btn {
    min-height: 44px;
  }

  .table-wrap {
    overflow: hidden;
    background: transparent;
  }

  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td {
    display: block;
    width: 100%;
  }

  .table-wrap thead {
    display: none;
  }

  .table-wrap tbody {
    display: grid;
    gap: 10px;
    padding: 8px;
  }

  .table-wrap tbody tr {
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid #e7d7c4;
    border-radius: 14px;
    background: #fffdf9;
    box-shadow: 0 10px 20px rgba(37, 24, 18, 0.06);
  }

  .table-wrap tbody tr:nth-child(2n) td,
  .table-wrap tbody tr:hover td {
    background: transparent;
  }

  .table-wrap tbody td {
    display: grid;
    grid-template-columns: minmax(104px, 42%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 0;
    border: 0;
    white-space: normal;
    word-break: break-word;
    text-align: left;
    font-size: 0.82rem;
  }

  .table-wrap tbody td::before {
    content: attr(data-label);
    font-weight: 800;
    color: #654d40;
  }

  .table-wrap tbody td[colspan] {
    display: block;
  }

  .table-wrap tbody td[colspan]::before {
    content: none;
  }

  td:last-child {
    text-align: left;
  }

  .tax-actions-cell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .tax-actions-cell .small-btn {
    width: 100%;
    margin-right: 0;
  }

  table {
    min-width: 0;
  }

  .modal-card {
    width: 100%;
    max-height: 92vh;
    padding: 12px;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .auth-page {
    padding: 12px;
  }

  .app-notice-stack {
    left: 10px;
    right: 10px;
    width: auto;
  }
}

@media (max-width: 480px) {
  .brand-head {
    gap: 8px;
  }

  .brand-logo {
    width: 60px;
    height: 60px;
  }

  h2 {
    font-size: 0.95rem;
  }

  label {
    font-size: 0.84rem;
  }

  input,
  select,
  button {
    font-size: 0.88rem;
  }

  .table-wrap tbody td {
    grid-template-columns: 1fr;
    gap: 4px;
    font-size: 0.8rem;
  }

  .table-wrap tbody td::before {
    margin-bottom: 1px;
  }

  .summary-box span {
    font-size: 0.88rem;
  }

  .mini-card h3 {
    font-size: 0.88rem;
  }
}

@media (min-width: 860px) {
  .budget-approval-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  #budget-convert-product {
    width: auto;
    min-width: 280px;
  }
}

body.landing-page {
  --landing-ink: #21130d;
  --landing-paper: #fff8ed;
  --landing-leaf: #40ad64;
  --landing-leaf-dark: #267946;
  --landing-berry: #b8425c;
  --landing-blue: #286f91;
  --landing-line: rgba(67, 43, 31, 0.16);
  margin: 0;
  color: var(--landing-ink);
  background:
    linear-gradient(90deg, rgba(33, 19, 13, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, var(--landing-paper), #f4e4cf);
  background-size: 54px 54px, auto;
}

.landing-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 248, 237, 0.82);
  backdrop-filter: blur(16px);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  width: 136px;
  height: 54px;
  overflow: hidden;
  border: 1px solid rgba(64, 173, 100, 0.24);
  border-radius: 8px;
  background: #fff;
}

.landing-brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 24px);
  font-size: 0.92rem;
  font-weight: 800;
}

.landing-nav a {
  color: #3f2a1e;
  text-decoration: none;
}

.landing-nav a:hover,
.landing-nav a:focus-visible {
  color: var(--landing-leaf-dark);
}

.landing-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(76vh, 720px);
  padding: clamp(62px, 10vw, 118px) clamp(18px, 6vw, 86px);
  color: #fffaf2;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(24, 13, 8, 0.94) 0%, rgba(48, 29, 20, 0.84) 44%, rgba(48, 29, 20, 0.42) 72%, rgba(255, 248, 237, 0.12) 100%),
    url("assets-chocofy-logo.jpeg") center right / cover no-repeat,
    #20110b;
}

.landing-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 18px;
  background: linear-gradient(90deg, var(--landing-leaf), var(--landing-berry), var(--landing-blue));
  z-index: -1;
}

.landing-hero-copy {
  width: min(680px, 100%);
}

.landing-kicker {
  margin: 0 0 12px;
  color: var(--landing-leaf);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing-hero h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(4rem, 14vw, 9.8rem);
  line-height: 0.88;
  letter-spacing: 0;
  color: #fff8ed;
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
}

.landing-hero-text {
  max-width: 58ch;
  margin: 26px 0 0;
  color: rgba(255, 248, 237, 0.9);
  font-size: clamp(1.02rem, 2vw, 1.24rem);
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.landing-btn:hover,
.landing-btn:focus-visible {
  transform: translateY(-2px);
}

.landing-btn-primary {
  color: #0e1c12;
  background: var(--landing-leaf);
  box-shadow: 0 16px 34px rgba(64, 173, 100, 0.34);
}

.landing-btn-secondary {
  color: #fffaf2;
  border-color: rgba(255, 248, 237, 0.44);
  background: rgba(255, 255, 255, 0.08);
}

.landing-btn-dark {
  color: #fffaf2;
  background: #25150f;
}

.landing-btn-disabled {
  color: rgba(33, 19, 13, 0.58);
  border-color: rgba(33, 19, 13, 0.16);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: none;
}

.landing-btn-disabled:hover {
  transform: none;
}

.landing-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.landing-hero-meta span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 248, 237, 0.28);
  border-radius: 999px;
  color: rgba(255, 248, 237, 0.88);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.86rem;
  font-weight: 800;
}

.landing-section {
  padding: clamp(48px, 8vw, 88px) clamp(18px, 6vw, 86px);
}

.landing-section-head {
  display: grid;
  gap: 8px;
  max-width: 740px;
  margin-bottom: 26px;
}

.landing-section-copy {
  max-width: 58ch;
  margin: 8px 0 0;
  color: #6b5545;
  font-size: 1rem;
}

.landing-section h2 {
  margin: 0;
  padding-left: 0;
  border-left: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
  color: #2b1a12;
}

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

.order-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--landing-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 45px rgba(45, 26, 15, 0.11);
}

.order-card-whatsapp {
  border-top: 8px solid var(--landing-leaf);
}

.order-card-ifood {
  border-top: 8px solid var(--landing-berry);
}

.order-card-food99 {
  border-top: 8px solid var(--landing-blue);
}

.order-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 8px;
  color: #fffaf2;
  background: #25150f;
  font-weight: 900;
}

.order-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.28rem, 3vw, 1.72rem);
  color: #24150f;
}

.order-card p {
  margin: 0;
  color: #6b5545;
}

.pro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
  background: #25150f;
  color: #fff8ed;
}

.pro-copy p:not(.landing-kicker) {
  max-width: 62ch;
  margin: 20px 0 0;
  color: rgba(255, 248, 237, 0.78);
  font-size: 1.04rem;
}

.pro-section h2 {
  color: #fff8ed;
}

.pro-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 248, 237, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(64, 173, 100, 0.18), rgba(184, 66, 92, 0.14)),
    rgba(255, 255, 255, 0.06);
}

.pro-row {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 248, 237, 0.1);
}

.pro-row span {
  color: rgba(255, 248, 237, 0.68);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pro-row strong {
  color: #fff8ed;
}

.landing-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px clamp(18px, 6vw, 86px);
  color: #5d4839;
  background: #fff8ed;
}

.landing-footer span {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #25150f;
}

.landing-footer a {
  color: #2f6d45;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 880px) {
  .landing-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-nav {
    width: 100%;
    justify-content: space-between;
  }

  .landing-hero {
    min-height: auto;
    padding-top: 72px;
    background:
      linear-gradient(180deg, rgba(24, 13, 8, 0.94) 0%, rgba(48, 29, 20, 0.86) 62%, rgba(48, 29, 20, 0.56) 100%),
      url("assets-chocofy-logo.jpeg") center / cover no-repeat,
      #20110b;
  }

  .order-grid,
  .pro-section {
    grid-template-columns: 1fr;
  }

  .order-card {
    min-height: 260px;
  }
}

@media (max-width: 540px) {
  .landing-brand {
    width: 116px;
    height: 48px;
  }

  .landing-nav {
    gap: 8px;
    font-size: 0.84rem;
  }

  .landing-actions,
  .landing-btn {
    width: 100%;
  }

  .landing-hero h1 {
    font-size: clamp(3.2rem, 22vw, 5.2rem);
  }
}

/* ChocoFy storefront identity landing */
body.landing-page {
  --landing-ink: #f7ead7;
  --landing-paper: #170f0b;
  --landing-leaf: #75d457;
  --landing-leaf-dark: #3f9f35;
  --landing-copper: #c58a54;
  --landing-copper-bright: #efbd7c;
  --landing-berry: #8f3a2f;
  --landing-blue: #5b8f7a;
  --landing-line: rgba(236, 185, 121, 0.28);
  color: var(--landing-ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(117, 212, 87, 0.12), transparent 32%),
    radial-gradient(circle at 12% 88%, rgba(197, 138, 84, 0.16), transparent 30%),
    linear-gradient(180deg, #1f1510 0%, #0f0a07 100%);
}

body.landing-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.18;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
}

.landing-topbar {
  border-bottom: 1px solid rgba(239, 189, 124, 0.18);
  background: rgba(15, 10, 7, 0.78);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.landing-brand {
  width: 150px;
  height: 58px;
  border-color: rgba(239, 189, 124, 0.32);
  border-radius: 8px;
  background: rgba(249, 238, 219, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(117, 212, 87, 0.16);
}

.landing-nav a {
  color: rgba(247, 234, 215, 0.86);
}

.landing-nav a:hover,
.landing-nav a:focus-visible {
  color: var(--landing-leaf);
}

.landing-hero {
  min-height: 74svh;
  align-items: flex-end;
  padding: clamp(94px, 12vw, 150px) clamp(18px, 6vw, 86px) clamp(36px, 7vw, 76px);
  color: var(--landing-ink);
  background:
    linear-gradient(90deg, rgba(13, 8, 5, 0.86) 0%, rgba(24, 14, 9, 0.56) 34%, rgba(10, 7, 5, 0.16) 60%, rgba(10, 7, 5, 0.5) 100%),
    linear-gradient(180deg, rgba(10, 7, 5, 0.16) 0%, rgba(10, 7, 5, 0.1) 44%, rgba(10, 7, 5, 0.88) 100%),
    url("assets-chocofy-identidade.jpg") center center / cover no-repeat,
    #130c08;
  box-shadow: inset 0 -70px 80px rgba(10, 7, 5, 0.84);
}

.landing-hero::after {
  height: 6px;
  background: linear-gradient(90deg, transparent, var(--landing-copper), var(--landing-leaf), var(--landing-copper), transparent);
  opacity: 0.92;
}

.landing-hero-copy {
  width: min(520px, 100%);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.42));
}

.landing-kicker {
  color: var(--landing-leaf);
  text-shadow: 0 0 18px rgba(117, 212, 87, 0.4);
}

.landing-hero h1 {
  color: var(--landing-copper-bright);
  font-size: clamp(2.9rem, 6.5vw, 5.5rem);
  text-shadow: 0 2px 0 #4b2817, 0 18px 38px rgba(0, 0, 0, 0.54);
}

.landing-hero-text {
  color: rgba(255, 244, 225, 0.92);
  max-width: 46ch;
  font-weight: 800;
}

.landing-btn {
  min-height: 52px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.landing-btn-primary {
  color: #150b07;
  background: linear-gradient(180deg, var(--landing-copper-bright), var(--landing-copper));
  box-shadow: 0 18px 34px rgba(197, 138, 84, 0.35), inset 0 1px 0 rgba(255, 250, 238, 0.68);
}

.landing-btn-secondary {
  color: var(--landing-ink);
  border-color: rgba(239, 189, 124, 0.42);
  background: rgba(21, 11, 7, 0.54);
  box-shadow: inset 0 0 0 1px rgba(117, 212, 87, 0.08);
}

.landing-btn-dark {
  color: #120907;
  background: linear-gradient(180deg, #82e061, #4dad3f);
  box-shadow: 0 15px 30px rgba(75, 173, 63, 0.24);
}

.landing-hero-meta span {
  border-color: rgba(239, 189, 124, 0.35);
  color: rgba(255, 244, 225, 0.9);
  background: rgba(16, 9, 6, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 244, 225, 0.08);
}

.landing-section {
  position: relative;
  padding: clamp(46px, 7vw, 82px) clamp(18px, 6vw, 86px);
}

.landing-order-section {
  background:
    radial-gradient(circle at 84% 14%, rgba(117, 212, 87, 0.12), transparent 24%),
    linear-gradient(180deg, #150e0a 0%, #24150f 100%);
}

.landing-section-head {
  max-width: 840px;
}

.landing-section h2 {
  color: #f4c88e;
  text-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.landing-section-copy {
  color: rgba(247, 234, 215, 0.74);
  font-weight: 700;
}

.order-grid {
  gap: 18px;
}

.order-card {
  min-height: 330px;
  border: 1px solid rgba(239, 189, 124, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 238, 207, 0.08), rgba(255, 238, 207, 0.02)),
    rgba(16, 9, 6, 0.82);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 238, 207, 0.1);
}

.order-card-whatsapp {
  border-top-color: var(--landing-leaf);
}

.order-card-ifood {
  border-top-color: #d64f50;
}

.order-card-food99 {
  border-top-color: var(--landing-copper-bright);
}

.order-icon {
  width: 48px;
  height: 48px;
  color: #160a06;
  background: linear-gradient(180deg, var(--landing-copper-bright), var(--landing-copper));
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.26);
}

.order-card h3 {
  color: #fff0d5;
}

.order-card p {
  color: rgba(247, 234, 215, 0.72);
  font-weight: 700;
}

.pro-section {
  background:
    linear-gradient(90deg, rgba(15, 10, 7, 0.96), rgba(27, 17, 11, 0.92)),
    #120b07;
}

.pro-panel {
  border-color: rgba(239, 189, 124, 0.28);
  background:
    linear-gradient(135deg, rgba(197, 138, 84, 0.16), rgba(117, 212, 87, 0.1)),
    rgba(255, 244, 225, 0.06);
}

.pro-row {
  background: rgba(14, 8, 5, 0.5);
}

.landing-footer {
  color: rgba(247, 234, 215, 0.7);
  background: #0f0a07;
  border-top: 1px solid rgba(239, 189, 124, 0.18);
}

.landing-footer span {
  color: #f4c88e;
}

.landing-footer a {
  color: var(--landing-leaf);
}

@media (max-width: 880px) {
  .landing-hero {
    min-height: 78svh;
    background:
      linear-gradient(180deg, rgba(13, 8, 5, 0.3) 0%, rgba(13, 8, 5, 0.38) 38%, rgba(13, 8, 5, 0.9) 100%),
      url("assets-chocofy-identidade.jpg") center top / cover no-repeat,
      #130c08;
  }

  .landing-hero-copy {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .landing-topbar {
    gap: 12px;
  }

  .landing-brand {
    width: 124px;
    height: 48px;
  }

  .landing-hero {
    min-height: 78svh;
    padding-top: 124px;
  }

  .landing-hero h1 {
    font-size: clamp(2.8rem, 18vw, 4.5rem);
  }
}

/* ChocoFy conversion landing refresh */
body.landing-page {
  --chocofy-night: #100906;
  --chocofy-cocoa: #21120c;
  --chocofy-cocoa-2: #321b11;
  --chocofy-cream: #fff0d2;
  --chocofy-muted: rgba(255, 240, 210, 0.74);
  --chocofy-copper: #d79a5d;
  --chocofy-copper-2: #f4c58a;
  --chocofy-green: #69d34f;
  --chocofy-green-2: #42ad38;
  --chocofy-red: #c84a45;
  --chocofy-line: rgba(244, 197, 138, 0.28);
  color: var(--chocofy-cream);
  background:
    radial-gradient(circle at 12% 0%, rgba(105, 211, 79, 0.12), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(215, 154, 93, 0.16), transparent 28%),
    linear-gradient(180deg, var(--chocofy-night), #170d09 42%, #0b0705);
  scroll-behavior: smooth;
}

.landing-topbar {
  padding: 12px clamp(16px, 4vw, 54px);
  border-bottom: 1px solid rgba(244, 197, 138, 0.18);
  background: rgba(13, 7, 4, 0.86);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.landing-brand {
  width: 154px;
  height: 58px;
  border: 1px solid rgba(244, 197, 138, 0.32);
  border-radius: 8px;
  background: rgba(255, 245, 225, 0.96);
}

.landing-nav {
  gap: clamp(12px, 2.5vw, 30px);
}

.landing-nav a {
  color: rgba(255, 240, 210, 0.86);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.landing-nav a:hover,
.landing-nav a:focus-visible {
  color: var(--chocofy-green);
}

.landing-hero {
  min-height: 78svh;
  align-items: center;
  padding: clamp(94px, 10vw, 138px) clamp(18px, 6vw, 86px) clamp(44px, 7vw, 86px);
  background:
    linear-gradient(90deg, rgba(13, 7, 4, 0.92) 0%, rgba(20, 10, 6, 0.74) 34%, rgba(13, 7, 4, 0.2) 62%, rgba(13, 7, 4, 0.74) 100%),
    linear-gradient(180deg, rgba(13, 7, 4, 0.08) 0%, rgba(13, 7, 4, 0.18) 50%, rgba(13, 7, 4, 0.9) 100%),
    url("assets-chocofy-identidade.jpg") center center / cover no-repeat,
    var(--chocofy-night);
  box-shadow: inset 0 -80px 90px rgba(8, 5, 3, 0.88);
}

.landing-hero::after {
  height: 7px;
  background: linear-gradient(90deg, transparent, var(--chocofy-copper-2), var(--chocofy-green), var(--chocofy-copper-2), transparent);
}

.landing-hero-copy {
  width: min(680px, 100%);
  padding-top: 18px;
}

.landing-kicker {
  color: var(--chocofy-green);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-shadow: 0 0 20px rgba(105, 211, 79, 0.34);
}

.landing-hero h1 {
  max-width: 11ch;
  color: var(--chocofy-copper-2);
  font-size: clamp(3rem, 7.4vw, 6.8rem);
  line-height: 0.9;
  text-shadow: 0 2px 0 #5b321d, 0 20px 44px rgba(0, 0, 0, 0.54);
}

.landing-hero-text {
  max-width: 49ch;
  margin-top: 24px;
  color: rgba(255, 245, 226, 0.94);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
  font-weight: 900;
}

.landing-actions {
  gap: 12px;
  margin-top: 30px;
}

.landing-btn,
.landing-inline-cta {
  position: relative;
  min-height: 54px;
  overflow: hidden;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 950;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.landing-btn::after,
.landing-inline-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-115%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transition: transform 520ms ease;
}

.landing-btn:hover::after,
.landing-btn:focus-visible::after,
.landing-inline-cta:hover::after,
.landing-inline-cta:focus-visible::after {
  transform: translateX(115%);
}

.landing-btn:hover,
.landing-btn:focus-visible,
.landing-inline-cta:hover,
.landing-inline-cta:focus-visible {
  transform: translateY(-2px);
}

.landing-btn-primary {
  color: #0f0805;
  background: linear-gradient(180deg, #7dec61, var(--chocofy-green-2));
  box-shadow: 0 18px 34px rgba(66, 173, 56, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.landing-btn-secondary {
  color: var(--chocofy-cream);
  border-color: rgba(244, 197, 138, 0.52);
  background: rgba(15, 8, 5, 0.62);
  box-shadow: inset 0 0 0 1px rgba(105, 211, 79, 0.08), 0 16px 32px rgba(0, 0, 0, 0.22);
}

.landing-btn-dark {
  color: #120906;
  background: linear-gradient(180deg, var(--chocofy-copper-2), var(--chocofy-copper));
  box-shadow: 0 16px 30px rgba(215, 154, 93, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.landing-hero-meta {
  max-width: 680px;
}

.landing-hero-meta span {
  border-color: rgba(244, 197, 138, 0.38);
  color: rgba(255, 240, 210, 0.9);
  background: rgba(16, 9, 6, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 240, 210, 0.09);
}

.landing-section {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 6vw, 86px);
  scroll-margin-top: 92px;
}

#doces,
#pedidos,
#chocofy-pro {
  scroll-margin-top: 112px;
}

.landing-section-head {
  max-width: 860px;
  margin-bottom: clamp(24px, 4vw, 38px);
}

.landing-section h2 {
  color: var(--chocofy-copper-2);
  font-size: clamp(2.35rem, 5.8vw, 5.1rem);
  line-height: 0.92;
  text-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
}

.landing-section-copy {
  max-width: 64ch;
  color: var(--chocofy-muted);
  font-weight: 800;
}

.sweets-section {
  background:
    radial-gradient(circle at 18% 18%, rgba(105, 211, 79, 0.11), transparent 24%),
    linear-gradient(180deg, #120a07 0%, #23130d 100%);
}

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

.sweet-card {
  min-height: 280px;
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid var(--chocofy-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 240, 210, 0.09), rgba(255, 240, 210, 0.02)),
    rgba(16, 9, 6, 0.78);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 240, 210, 0.1);
}

.sweet-card-cake {
  border-top: 7px solid var(--chocofy-copper-2);
}

.sweet-card-brigadeiro {
  border-top: 7px solid #7a4226;
}

.sweet-card-dessert {
  border-top: 7px solid var(--chocofy-green);
}

.sweet-card-brownie {
  border-top: 7px solid var(--chocofy-red);
}

.sweet-tag,
.order-label {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--chocofy-green);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sweet-card h3 {
  margin: 0 0 12px;
  color: #fff4dd;
  font-size: clamp(1.42rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.sweet-card p {
  margin: 0;
  color: var(--chocofy-muted);
  font-weight: 750;
}

.landing-inline-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 0 20px;
  color: #100906;
  background: linear-gradient(180deg, #7dec61, var(--chocofy-green-2));
  text-decoration: none;
  box-shadow: 0 18px 34px rgba(66, 173, 56, 0.28);
}

.landing-order-section {
  background:
    radial-gradient(circle at 86% 10%, rgba(215, 154, 93, 0.14), transparent 24%),
    linear-gradient(180deg, #21120c 0%, #140b08 100%);
}

.order-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.order-card {
  min-height: 365px;
  padding: clamp(20px, 3vw, 30px);
  border-color: var(--chocofy-line);
  background:
    linear-gradient(180deg, rgba(255, 240, 210, 0.08), rgba(255, 240, 210, 0.025)),
    rgba(18, 9, 6, 0.82);
}

.order-card-whatsapp {
  border-top-color: var(--chocofy-green);
}

.order-card-food99 {
  border-top-color: var(--chocofy-copper-2);
}

.order-card-ifood {
  border-top-color: #df5a56;
}

.order-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  color: #120906;
  background: linear-gradient(180deg, var(--chocofy-copper-2), var(--chocofy-copper));
}

.order-card h3 {
  margin-bottom: 12px;
  color: #fff4dd;
  line-height: 1.08;
}

.order-card p {
  color: var(--chocofy-muted);
  font-weight: 780;
}

.ritual-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: start;
  background:
    linear-gradient(90deg, rgba(15, 8, 5, 0.92), rgba(34, 19, 12, 0.92)),
    #160c08;
}

.ritual-copy h2 {
  margin: 0;
  padding: 0;
  border: 0;
}

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

.ritual-list li {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(244, 197, 138, 0.24);
  border-radius: 8px;
  background: rgba(255, 240, 210, 0.06);
}

.ritual-list strong {
  color: #fff4dd;
  font-size: 1.02rem;
}

.ritual-list span {
  color: var(--chocofy-muted);
  font-weight: 750;
}

.pro-section {
  align-items: center;
  background:
    radial-gradient(circle at 78% 24%, rgba(105, 211, 79, 0.1), transparent 24%),
    linear-gradient(180deg, #100906, #1c100b);
}

.pro-copy p:not(.landing-kicker) {
  color: var(--chocofy-muted);
  font-weight: 760;
}

.pro-panel {
  border-color: rgba(244, 197, 138, 0.28);
  background:
    linear-gradient(135deg, rgba(215, 154, 93, 0.14), rgba(105, 211, 79, 0.08)),
    rgba(255, 240, 210, 0.045);
}

.pro-row {
  background: rgba(15, 8, 5, 0.62);
}

.landing-footer {
  border-top: 1px solid rgba(244, 197, 138, 0.18);
  background: #0d0705;
}

@media (max-width: 1080px) {
  .sweet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .landing-topbar {
    align-items: center;
    flex-direction: column;
  }

  .landing-nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.78rem;
  }

  .landing-hero {
    min-height: 80svh;
    align-items: flex-end;
    padding-top: 128px;
    background:
      linear-gradient(180deg, rgba(13, 7, 4, 0.18) 0%, rgba(13, 7, 4, 0.34) 38%, rgba(13, 7, 4, 0.95) 100%),
      url("assets-chocofy-identidade.jpg") center top / cover no-repeat,
      var(--chocofy-night);
  }

  .landing-hero h1 {
    max-width: 10.8ch;
    font-size: clamp(2.85rem, 15vw, 4.9rem);
  }

  .landing-actions,
  .landing-btn,
  .landing-inline-cta {
    width: 100%;
  }

  .order-grid,
  .pro-section,
  .ritual-section {
    grid-template-columns: 1fr;
  }

  .order-card {
    min-height: 310px;
  }
}

@media (max-width: 620px) {
  .landing-brand {
    width: 128px;
    height: 50px;
  }

  .landing-nav a {
    font-size: 0.76rem;
  }

  .landing-section {
    padding-inline: 18px;
    scroll-margin-top: 126px;
  }

  #doces,
  #pedidos,
  #chocofy-pro {
    scroll-margin-top: 154px;
  }

  .sweet-grid {
    grid-template-columns: 1fr;
  }

  .sweet-card {
    min-height: 220px;
  }
}
