/* ============================================================
   Colmeia - sistema visual (v2)
   O hexagono sai do logo e vira linguagem de interface: glifo no
   rotulo, botao e selo chanfrados, chip de navegacao, textura de
   colmeia nas areas vazias. Cartoes e campos seguem retos pra nao
   competir com a forma da marca.
   Outfit na interface, JetBrains Mono em todo numero de coluna.
   70% superficie clara, 20% estrutura, 10% ambar.
   ============================================================ */

:root {
  --amber-100: #FBEBD1;
  --amber-200: #F7DDA6;
  --amber-300: #F2C265;
  --amber-400: #F4B24A;
  --amber-500: #E8940F;   /* acao */
  --amber-600: #D98A1E;
  --amber-700: #C97A0C;

  --sand-50:  #FDFBF8;
  --sand-100: #F6F2ED;
  --sand-200: #E6DFD7;
  --gray-400: #B8ADA1;
  --gray-600: #7A6E62;
  --bark-900: #2B2118;

  --dark-surface: #241C16;
  --dark-line:    #4A3F35;

  --text:      #2B2118;
  --text-soft: #4A3F35;
  --text-mute: #7A6E62;

  --ok: #2F7A4F;  --ok-bg: #E8F1EA;
  --bad: #B3372B; --bad-bg: #F7E7E5;
  --warn: #E8940F;
  --warn-bg: #FBEBD1; --warn-ink: #7A5B14;

  --line: #E6DFD7;
  --line-soft: #F0EAE3;
  --r-control: 10px;
  --r-card: 14px;
  --shadow: 0 1px 2px rgba(43,33,24,.05), 0 14px 34px -18px rgba(43,33,24,.24);
  --focus-ring: 0 0 0 3px rgba(232,148,15,.20);

  --font-ui:  'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --maxw: 1120px;
  --topbar-h: 66px;

  /* formas do hexagono */
  --hex-point: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  --hex-14: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
  --hex-13: polygon(13px 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 13px 100%, 0 50%);
  --hex-10: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
  --hex-7:  polygon(7px 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 7px 100%, 0 50%);

  --dur: .22s;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--text); margin: 0; }
a { color: var(--amber-700); text-decoration: none; }
a:hover { color: var(--amber-600); }
::selection { background: var(--amber-200); color: var(--bark-900); }

:focus-visible {
  outline: 2px solid var(--amber-500);
  outline-offset: 2px;
  border-radius: 3px;
}

/* honeycomb -------------------------------------------------- */

.honeycomb {
  background-image: url("brand/honeycomb.svg");
  background-repeat: repeat;
  background-size: 56px 96px;
}

/* top bar -------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--dark-surface);
  border-bottom: 1px solid var(--dark-line);
}
.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.topbar__brand { display: inline-flex; align-items: center; gap: 12px; padding: 6px 0; }
.topbar__mark { height: 32px; width: auto; display: block; flex: none; }
.topbar__word { height: 33px; width: auto; display: block; }

.nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav a:hover { color: var(--amber-100); }
.nav a[aria-current="page"] {
  color: #fff;
  background: var(--amber-500);
  clip-path: var(--hex-7);
}

/* layout -------------------------------------------------- */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.page-head { margin-bottom: 28px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber-700);
}
.eyebrow::before {
  content: "";
  width: 11px;
  height: 12px;
  background: var(--amber-500);
  clip-path: var(--hex-point);
  flex: none;
}

.display {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.08;
  margin: 12px 0 0;
}
.h-section {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.005em;
  margin: 0 0 14px;
}
.lede { max-width: 66ch; color: var(--text-soft); margin: 10px 0 0; }

.section { margin-top: 44px; }
.section > .h-section:first-child,
.section > .eyebrow:first-child { margin-top: 0; }

.num {
  font-family: var(--font-mono);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.muted { color: var(--text-mute); }

/* buttons -------------------------------------------------- */

.btn {
  --btn-bg: var(--amber-500);
  --btn-fg: #fff;
  display: inline-flex;
  padding: 0;
  border: none;
  background: var(--btn-bg);
  clip-path: var(--hex-14);
  cursor: pointer;
  font-family: var(--font-ui);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.btn__face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  clip-path: var(--hex-14);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }

.btn--primary { --btn-bg: var(--amber-500); }
.btn--primary:hover { --btn-bg: var(--amber-600); }

.btn--ghost { --btn-bg: var(--bark-900); padding: 1.5px; }
.btn--ghost .btn__face {
  --face-bg: #fff;
  background: var(--face-bg);
  color: var(--bark-900);
  padding: 10.5px 28px;
  clip-path: var(--hex-13);
}
.btn--ghost:hover .btn__face { --face-bg: var(--sand-100); }

.btn--cell { --btn-bg: var(--amber-200); }
.btn--cell .btn__face { color: var(--warn-ink); }

.btn[disabled], .btn[aria-disabled="true"] {
  --btn-bg: var(--sand-100);
  --btn-fg: var(--gray-400);
  cursor: not-allowed;
  pointer-events: none;
}

.btn--text {
  background: none;
  border: none;
  clip-path: none;
  padding: 12px 6px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--amber-700);
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.btn--text:hover { color: var(--amber-600); }
.btn--text.is-active { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.btn--block { width: 100%; }
.btn--block .btn__face { width: 100%; }

/* forms -------------------------------------------------- */

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-end;
}

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.field input,
.field select {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text);
  background: #fff;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-control);
  min-width: 0;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:hover, .field select:hover { border-color: var(--sand-200); }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--amber-500);
  box-shadow: var(--focus-ring);
}
.field input.is-num, .field input[type="number"] { font-family: var(--font-mono); letter-spacing: -.01em; }
.field--grow { flex: 1 1 200px; }

/* cards / stats -------------------------------------------------- */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  align-items: stretch;
}
.stat-grid__quad { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat__label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.stat__value {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat__note { font-size: 12px; color: var(--text-mute); }

.stat--profit {
  position: relative;
  overflow: hidden;
  background: var(--dark-surface);
  border-color: var(--dark-surface);
  justify-content: center;
  gap: 8px;
}
.stat--profit::after {
  content: "";
  position: absolute;
  top: -14px;
  right: -10px;
  width: 52px;
  height: 58px;
  background: var(--amber-500);
  clip-path: var(--hex-point);
  opacity: .42;
}
.stat--profit .stat__label { color: var(--amber-400); position: relative; }
.stat--profit .stat__value { color: #fff; font-size: 38px; position: relative; }
.stat--profit .stat__note { color: var(--gray-400); position: relative; }

/* home / bento -------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.bento__cell { min-width: 0; }
.bento__cell--hero { grid-column: span 7; grid-row: span 2; }
.bento__cell--w4  { grid-column: span 4; }
.bento__cell--w5  { grid-column: span 5; }
.bento__cell--w6  { grid-column: span 6; }
.bento__cell--w12 { grid-column: span 12; }

.bento .card {
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.bento .card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.card--dark {
  position: relative;
  overflow: hidden;
  background: var(--dark-surface);
  border-color: var(--dark-surface);
  color: var(--gray-400);
}
.card--dark::after {
  content: "";
  position: absolute;
  top: -20px;
  right: -14px;
  width: 66px;
  height: 74px;
  background: var(--amber-500);
  clip-path: var(--hex-point);
  opacity: .38;
}
.card--dark > * { position: relative; }

.kpi { display: flex; flex-direction: column; gap: 8px; }
.kpi__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi__label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.kpi__value {
  font-family: var(--font-mono);
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.kpi__foot { font-size: 12px; color: var(--text-mute); display: flex; align-items: center; gap: 6px; }

.kpi--hero { justify-content: space-between; min-height: 194px; }
.kpi--hero .kpi__label { color: var(--amber-400); }
.kpi--hero .kpi__value { color: #fff; font-size: clamp(34px, 4.6vw, 46px); }
.kpi--hero .kpi__foot { color: var(--gray-400); }

.delta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 12px;
  clip-path: var(--hex-10);
  white-space: nowrap;
}
.delta--up { background: var(--ok-bg); color: var(--ok); }
.delta--down { background: var(--bad-bg); color: var(--bad); }
.delta--flat { background: var(--sand-100); color: var(--text-mute); }
.card--dark .delta--flat { background: rgba(255, 255, 255, .09); color: var(--gray-400); }

.kpi__spark { margin-top: auto; padding-top: 10px; }
.kpi__spark-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.spark {
  width: 100%;
  height: 48px;
  display: block;
  margin-top: 4px;
  overflow: visible;
}
.spark__line {
  fill: none;
  stroke: var(--amber-400);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.spark__fill { fill: var(--amber-500); opacity: .16; }

.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.card__hint { font-size: 11px; color: var(--gray-400); }
.card__blank { font-size: 13px; color: var(--text-mute); padding: 6px 0 2px; }

.monthbars { display: flex; align-items: flex-end; gap: 10px; height: 116px; }
.monthbar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; }
.monthbar__track { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.monthbar__fill { width: 100%; background: var(--amber-300); border-radius: 4px 4px 0 0; }
.monthbar__fill.is-current { background: var(--amber-500); }
.monthbar__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.rank__row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13px;
}
.rank__bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--amber-100);
  border-radius: 8px;
}
.rank__name, .rank__qty, .rank__val { position: relative; }
.rank__name {
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank__qty { color: var(--text-mute); font-size: 11px; }
.rank__val { color: var(--amber-700); font-size: 13px; letter-spacing: -.02em; }

.recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.recent__row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 13px;
  border-top: 1px solid var(--line-soft);
}
.recent__row:first-child { border-top: none; }
.recent__date { color: var(--text-mute); font-size: 11.5px; }
.recent__items { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent__val { color: var(--amber-700); letter-spacing: -.02em; }
.recent__row.is-canceled { color: var(--gray-400); }
.recent__row.is-canceled .recent__items { text-decoration: line-through; }
.recent__row.is-canceled .recent__val { color: var(--gray-400); }

.quick { display: flex; flex-direction: column; gap: 2px; }
.quick .kpi__label { margin-bottom: 8px; }
.quick__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.quick__row svg { color: var(--amber-700); flex: none; }
.quick__row:hover { background: var(--sand-100); }
.quick__arrow { margin-left: auto; color: var(--gray-400); transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
.quick__row:hover .quick__arrow { transform: translateX(3px); color: var(--amber-700); }

/* esqueleto de carregamento (mesma grade do bento, sem salto de layout) */
.skel-card { display: flex; flex-direction: column; }
.skel-card.bento__cell--hero { min-height: 194px; }
.skel {
  position: relative;
  overflow: hidden;
  background: var(--sand-100);
  border-radius: 8px;
}
.card--dark .skel { background: rgba(255, 255, 255, .08); }
.skel--label { width: 84px; height: 10px; margin-bottom: 14px; }
.skel--value { width: 56%; height: 32px; margin-bottom: 10px; }
.skel--value-sm { width: 62%; height: 24px; }
.skel--spark { width: 100%; height: 46px; margin-top: auto; }
.skel--row { width: 100%; height: 13px; margin-top: 10px; }
.skel--row:nth-child(3) { width: 86%; }
.skel--row:nth-child(5) { width: 72%; }
.skel--bars { width: 100%; height: 100px; margin-top: 4px; }

@media (prefers-reduced-motion: no-preference) {
  .skel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: translateX(-100%);
    animation: skel-sweep 1.4s ease-in-out infinite;
  }
  .card--dark .skel::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
  }
}
@keyframes skel-sweep {
  to { transform: translateX(100%); }
}

/* daily chart -------------------------------------------------- */

.chart {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px 22px 16px;
}
.chart__bars { display: flex; align-items: flex-end; gap: 4px; height: 168px; }
.chart__bar {
  flex: 1;
  min-width: 3px;
  align-self: flex-end;
  background: var(--amber-300);
  border-radius: 3px 3px 0 0;
}
.chart__bar.is-peak { background: var(--amber-500); }
.chart__axis {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-mute);
}

/* table -------------------------------------------------- */

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow-x: auto;
}
table.data { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
table.data thead th {
  background: var(--sand-100);
  color: var(--text-mute);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 16px;
  white-space: nowrap;
}
table.data th.right, table.data td.right { text-align: right; }
table.data tbody td {
  padding: 11px 16px;
  border-top: 1px solid var(--line-soft);
  height: 44px;
  vertical-align: middle;
}
table.data td.num {
  font-family: var(--font-mono);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
table.data tbody tr.is-canceled,
table.data tbody tr.is-canceled td.num { color: var(--gray-400); }
table.data tbody tr.is-canceled .cell-name { text-decoration: line-through; }
table.data tbody tr { transition: background var(--dur) var(--ease); }
table.data tbody tr:hover td { background: var(--sand-50); }

/* pills -------------------------------------------------- */

.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 14px;
  clip-path: var(--hex-10);
  white-space: nowrap;
}
.pill--ok  { background: var(--ok-bg);  color: var(--ok); }
.pill--bad { background: var(--bad-bg); color: var(--bad); }
.pill--soft { background: var(--sand-100, #F1E7D6); color: var(--text-mute); }
.pill--ml {
  background: var(--amber-100);
  color: var(--amber-700);
  margin-left: 8px;
  vertical-align: middle;
}

/* marcador de origem na lista de atividade da Home */
.src-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 15px;
  padding: 0 4px;
  margin-right: 7px;
  border-radius: 4px;
  background: var(--amber-100);
  color: var(--amber-700);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .02em;
  vertical-align: 1px;
}
.recent__row.is-canceled .src-dot { background: var(--gray-100, #eee); color: var(--gray-400); }

/* integrações -------------------------------------------------- */

.integr__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.integr { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.integr.is-soon { opacity: .72; }
.integr__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.integr__name { font-size: 16px; font-weight: 600; color: var(--text); }
.integr__meta { font-size: 13px; line-height: 1.55; color: var(--text-mute); margin: 0; }
.integr__facts { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.integr__facts > div { display: flex; justify-content: space-between; gap: 16px; }
.integr__facts dt {
  font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-mute); margin: 0;
}
.integr__facts dd { margin: 0; font-size: 13px; color: var(--text); text-align: right; }
.integr__err { color: var(--bad); }
.integr__actions { display: flex; align-items: center; gap: 14px; margin-top: auto; }

.integr__tally {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: 20px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: #fff;
}
.integr__tally > div { display: flex; flex-direction: column; gap: 2px; }
.integr__tally .num {
  font-family: var(--font-mono); font-size: 20px; font-weight: 600;
  letter-spacing: -.02em; color: var(--text);
}
.integr__tally > div > span:last-child {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute);
}

.costfix__list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.costfix {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 18px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.costfix__name { flex: 1 1 200px; display: flex; flex-direction: column; gap: 3px; }
.costfix__name > span:first-child { font-size: 15px; font-weight: 600; color: var(--text); }
.costfix__sku { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); }
.costfix .field { flex: 0 0 108px; }
.costfix .btn { flex: none; }

@media (max-width: 560px) {
  .costfix .field { flex: 1 1 108px; }
}

/* price-rule banner -------------------------------------------------- */

.banner-rule {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 16px;
}
.banner-rule svg { flex: none; margin-top: 1px; }

/* product cards -------------------------------------------------- */

.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px 22px;
}
.product + .product { margin-top: 12px; }
.product__top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: baseline;
  justify-content: space-between;
}
.product__name { font-size: 17px; font-weight: 600; color: var(--text); }
.product__sku { font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); margin-left: 10px; }
.product__figures { display: flex; gap: 22px; }
.figure { display: flex; flex-direction: column; gap: 2px; }
.figure__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.figure__value { font-family: var(--font-mono); font-size: 16px; letter-spacing: -.02em; color: var(--text); }
.figure__value.is-profit { color: var(--amber-700); }

.product__actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; align-items: center; }
.product__panel { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.price-edit { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }

/* signature: camadas de preco -------------------------------------------------- */

.layers { margin-top: 4px; }
.layers__intro {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-mute);
  max-width: 60ch;
  margin: 0 0 16px;
}
.layer {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding: 12px 0 12px 2px;
}
.layer::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: -12px;
  width: 1px;
  background: var(--line);
}
.layer:last-child::before { display: none; }

.layer__cell {
  width: 32px;
  height: 36px;
  clip-path: var(--hex-point);
  background: var(--amber-100);
}
.layer--current .layer__cell {
  background: var(--amber-500);
  box-shadow: 0 4px 14px -2px rgba(232, 148, 15, .5);
}

.layer__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.layer__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
  flex-wrap: wrap;
}
.layer__price {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: -.02em;
  color: var(--text);
  white-space: nowrap;
}
.layer__price .arrow { color: var(--gray-400); margin: 0 6px; }
.layer__profit { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: -.02em; color: var(--amber-700); }
.layer__meta { font-size: 11.5px; color: var(--text-mute); margin-top: 1px; }

.layer__tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mute);
  background: var(--sand-100);
  padding: 3px 12px;
  clip-path: var(--hex-10);
  white-space: nowrap;
}
.layer--current .layer__price .amount { color: var(--amber-700); }
.layer--current .layer__tag { color: #fff; background: var(--amber-500); }
.layer--past .layer__price,
.layer--past .layer__profit,
.layer--past .layer__meta { color: var(--text-mute); }

/* empty state -------------------------------------------------- */

.empty {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 52px 24px;
  text-align: center;
  background: var(--sand-50);
  position: relative;
  overflow: hidden;
}
.empty > * { position: relative; }
.empty::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("brand/honeycomb.svg");
  background-size: 52px 90px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 72%);
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 72%);
}
.empty__cell {
  width: 46px;
  height: 52px;
  margin: 0 auto 16px;
  clip-path: var(--hex-point);
  background: var(--amber-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty__cell svg { stroke: var(--amber-700); }
.empty__title { font-size: 16px; font-weight: 600; color: var(--text); }
.empty__hint { font-size: 13px; color: var(--text-mute); margin-top: 4px; }

/* toasts -------------------------------------------------- */

.toast-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 50;
  max-width: min(360px, calc(100vw - 40px));
}
.toast {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber-500);
  border-radius: var(--r-control);
  box-shadow: var(--shadow);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
}
.toast--bad { border-left-color: var(--bad); }
.toast--ok  { border-left-color: var(--ok); }

/* login -------------------------------------------------- */

.login {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: var(--sand-50);
  position: relative;
  overflow: hidden;
}
.login::before {
  content: "";
  position: absolute;
  inset: -12% -12% -12% -12%;
  background-image: url("brand/honeycomb.svg");
  background-size: 46px 80px;
  opacity: .3;
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, #000 12%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 42%, #000 12%, transparent 70%);
}
.login__inner {
  position: relative;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.login__brand { width: 104px; height: auto; }
.login__card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login__title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.login__sub { font-size: 13px; color: var(--text-mute); margin-top: -8px; }
.login__error {
  font-size: 12.5px;
  color: var(--bad);
  background: var(--bad-bg);
  border-radius: 8px;
  padding: 8px 12px;
}
.login__foot {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--gray-400);
  text-align: center;
}

/* transição de mel (login -> sistema) -------------------------------------- */

.honey {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: auto;
  opacity: 1;
  transition: opacity .34s ease;
}
.honey.is-done { opacity: 0; pointer-events: none; }

.honey__defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.honey__goo {
  position: absolute;
  inset: 0;
  filter: url(#honey-goo);
}

.honey__bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--topbar-h);
  background: var(--amber-500);
  transform: translateY(-100%);
}
.honey__blob {
  position: absolute;
  top: 100vh;                 /* totalmente fora da tela, embaixo */
  background: var(--amber-500);
  border-radius: 50%;
}
.honey__blob:nth-child(2) { left: -12vw; width: 42vw; height: 42vw; }
.honey__blob:nth-child(3) { left: 12vw;  width: 34vw; height: 34vw; }
.honey__blob:nth-child(4) { left: 34vw;  width: 46vw; height: 46vw; }
.honey__blob:nth-child(5) { left: 56vw;  width: 34vw; height: 34vw; }
.honey__blob:nth-child(6) { left: 72vw;  width: 44vw; height: 44vw; }

/* --- entrada: login -> sistema --- */
.honey--in .honey__bar {
  animation: honey-bar-in 1.2s cubic-bezier(.65, 0, .35, 1) .06s both;
}
.honey--in .honey__blob {
  animation: honey-blob-in 1.2s cubic-bezier(.45, 0, .25, 1) both;
}
.honey--in .honey__blob:nth-child(2) { animation-delay: .14s; }
.honey--in .honey__blob:nth-child(3) { animation-delay: .04s; }
.honey--in .honey__blob:nth-child(4) { animation-delay: .20s; }
.honey--in .honey__blob:nth-child(5) { animation-delay: .09s; }
.honey--in .honey__blob:nth-child(6) { animation-delay: .17s; }

@keyframes honey-bar-in {
  from { transform: translateY(-100%); background: var(--amber-500); }
  to   { transform: translateY(0); background: var(--dark-surface); }
}
@keyframes honey-blob-in {
  from { transform: translateY(0); background: var(--amber-500); }
  to   { transform: translateY(-175vh); background: var(--dark-surface); }
}

/* --- saída: sistema -> login (animação ao contrário) --- */
/* o Login já é trocado por baixo na hora do clique; este véu opaco cobre
   essa troca nos primeiros ~200ms, antes das bolhas assumirem a cobertura. */
.honey--out {
  background-color: rgba(36, 28, 22, 1);
  animation: honey-out-veil 1.1s cubic-bezier(.5, 0, .3, 1) forwards;
}
.honey--out .honey__bar {
  animation: honey-bar-out 1.2s cubic-bezier(.65, 0, .35, 1) .06s both;
}
.honey--out .honey__blob {
  animation: honey-blob-out 1.2s cubic-bezier(.45, 0, .25, 1) both;
}
.honey--out .honey__blob:nth-child(2) { animation-delay: .14s; }
.honey--out .honey__blob:nth-child(3) { animation-delay: .04s; }
.honey--out .honey__blob:nth-child(4) { animation-delay: .20s; }
.honey--out .honey__blob:nth-child(5) { animation-delay: .09s; }
.honey--out .honey__blob:nth-child(6) { animation-delay: .17s; }

@keyframes honey-out-veil {
  0%, 16%   { background-color: rgba(36, 28, 22, 1); }
  52%, 100% { background-color: rgba(36, 28, 22, 0); }
}
@keyframes honey-bar-out {
  from { transform: translateY(0); background: var(--dark-surface); }
  to   { transform: translateY(-100%); background: var(--amber-500); }
}
@keyframes honey-blob-out {
  from { transform: translateY(-135vh); background: var(--dark-surface); }
  to   { transform: translateY(0); background: var(--amber-500); }
}

/* motion -------------------------------------------------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes cell-in {
  from { opacity: 0; transform: translateY(10px) scale(.94); }
  to   { opacity: 1; transform: none; }
}
@keyframes drift {
  from { background-position: 0 0; }
  to   { background-position: 46px 80px; }
}

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .42s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
  .route-fade { animation: rise .34s var(--ease) both; }
  .toast { animation: rise .28s var(--ease) both; }
  .layer--enter { animation: cell-in .34s var(--ease) both; }
  .chart__bar { transition: height .55s var(--ease); transition-delay: calc(var(--i, 0) * 20ms); }
  .login::before { animation: drift 34s linear infinite; }
}

/* responsive -------------------------------------------------- */

@media (max-width: 860px) {
  .topbar__inner { padding: 0 12px; gap: 8px; }
  .topbar__brand { gap: 8px; }
  .topbar__mark { height: 26px; }
  .topbar__word { height: 24px; }
  .nav { gap: 1px; }
  .nav a { padding: 6px 8px; font-size: 11.5px; }
}
@media (max-width: 620px) {
  .topbar__inner { gap: 6px; }
  .topbar__brand { gap: 6px; }
  .topbar__mark { height: 20px; }
  .topbar__word { height: 18px; }
  .nav { gap: 0; }
  .nav a { padding: 6px 6px; font-size: 10.5px; }
  .nav a[aria-current="page"] { padding-left: 10px; padding-right: 10px; }
  .topbar__inner .btn--text { padding: 12px 2px; font-size: 11px; }
}
@media (max-width: 430px) {
  .topbar__mark { display: none; }
  .topbar__word { height: 17px; }
  .nav a { padding: 6px 5px; letter-spacing: -0.01em; }
}
@media (max-width: 760px) {
  .container { padding: 28px 16px 56px; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-grid__quad { grid-template-columns: 1fr 1fr; }
  .stat { padding: 14px 15px; gap: 3px; }
  .stat__value { font-size: 22px; }
  .stat--profit { padding: 18px 16px; }
  .stat--profit .stat__value { font-size: 30px; }
  .product__top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .product__figures { gap: 18px; }
  .product__sku { display: block; margin-left: 0; margin-top: 4px; }
}
@media (max-width: 520px) {
  .stat-grid__quad { grid-template-columns: 1fr; }
  .stat__value { font-size: 26px; }
}

/* bento responsivo */
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento__cell--hero { grid-column: span 6; grid-row: auto; }
  .bento__cell--w4 { grid-column: span 3; }
  .bento__cell--w5 { grid-column: span 3; }
  .bento__cell--w6 { grid-column: span 3; }
  .bento__cell--w12 { grid-column: span 6; }
  .kpi--hero { min-height: 0; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .bento__cell--hero,
  .bento__cell--w4,
  .bento__cell--w5,
  .bento__cell--w6,
  .bento__cell--w12 { grid-column: 1 / -1; }
  .monthbars { height: 100px; gap: 7px; }
  .recent__row { grid-template-columns: auto 1fr auto; }
  .recent__row .pill { display: none; }
}
