@property --value {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
:root {
  --bg: #07111f;
  --surface: rgba(14, 28, 47, 0.78);
  --surface-strong: #10233b;
  --stroke: rgba(164, 205, 255, 0.14);
  --stroke-bright: rgba(70, 163, 255, 0.32);
  --text: #f4f7f4;
  --muted: #91a097;
  --neon: #46a3ff;
  --neon-soft: rgba(70, 163, 255, 0.13);
  --gold: #d8b94e;
  --danger: #ff656f;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  color: inherit;
}
svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}
.glass {
  background: linear-gradient(
    145deg,
    rgba(22, 42, 68, 0.84),
    rgba(9, 20, 36, 0.74)
  );
  border: 1px solid var(--stroke);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.03),
    var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.ambient {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  opacity: 0.14;
  z-index: -1;
}
.ambient--one {
  top: -180px;
  right: -210px;
  background: #287fd7;
  opacity: 0.18;
}
.ambient--two {
  bottom: 10%;
  left: -300px;
  background: #d4af37;
  opacity: 0.07;
}
.app-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 0 16px 70px;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 14px;
}
.icon-button:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--stroke);
}
.brand {
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  font: 800 20px "Manrope";
  letter-spacing: -0.8px;
  text-decoration: none;
}
.brand-logo {
  width: 32px;
  height: 32px;
  display: block;
  flex: 0 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgb(43 99 245 / 22%);
}
.brand-word span {
  color: #69b8ff;
}
.avatar {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #6b5620);
  color: #fff;
  font-weight: 800;
}
.online-dot {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--bg);
  background: var(--neon);
  border-radius: 50%;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 2px 22px;
}
.eyebrow {
  color: var(--neon);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  margin-top: 4px;
  font: 800 clamp(30px, 8vw, 48px) "Manrope";
  letter-spacing: -1.8px;
}
.add-button,
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  background: var(--neon);
  color: #06111f;
  font-weight: 800;
  box-shadow: 0 8px 30px rgba(70, 163, 255, 0.2);
}
.add-button {
  width: 46px;
  height: 46px;
  padding: 0;
}
.add-button span {
  display: none;
}
.status-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 5px;
  border-radius: 19px;
  box-shadow: none;
}
.status-tab {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}
.status-tab.is-active {
  color: var(--text);
  background: rgba(4, 12, 24, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.tab-count {
  margin-left: 6px;
  padding: 3px 7px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
}
.tab-count--active {
  color: var(--neon);
  background: var(--neon-soft);
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.kpi {
  position: relative;
  min-width: 132px;
  min-height: 132px;
  padding: 17px 14px 14px;
  border-radius: 19px;
  overflow: hidden;
  box-shadow: none;
}
.kpi::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  right: -45px;
  top: -45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
}
.kpi__icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 9px;
  color: #cdd5d0;
  background: rgba(255, 255, 255, 0.055);
}
.kpi__icon svg {
  width: 16px;
}
.kpi > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.kpi strong {
  display: block;
  margin-top: 5px;
  font: 800 clamp(17px, 4.2vw, 27px) "Manrope";
  letter-spacing: -0.9px;
  white-space: nowrap;
}
.kpi small {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 7px;
  color: #76857c;
  font-size: 9px;
  white-space: nowrap;
}
.kpi small svg {
  width: 12px;
  height: 12px;
}
.kpi--profit {
  border-color: var(--stroke-bright);
}
.kpi--profit strong,
.kpi--profit small {
  color: var(--neon);
}
.kpi--profit .kpi__icon {
  color: var(--neon);
  background: var(--neon-soft);
}
.tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 8px;
  margin: 16px 0 24px;
}
.search,
.select-wrap {
  min-height: 52px;
  border-radius: 15px;
  box-shadow: none;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}
.search > svg {
  color: #829289;
  flex: 0 0 auto;
}
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}
.search input::placeholder {
  color: #738078;
}
.search kbd {
  display: none;
  padding: 3px 7px;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  color: #75827a;
  font-size: 10px;
}
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--neon);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.htmx-indicator {
  display: none;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  display: block;
}
.select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  min-width: 0;
}
.select-wrap > svg {
  width: 17px;
  flex: 0 0 auto;
  color: #809087;
}
.select-wrap > svg:last-child {
  width: 14px;
}
.select-wrap select {
  width: 100%;
  min-width: 0;
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e8ece9;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tools .select-wrap:nth-child(3),
.tools .select-wrap:nth-child(4) {
  grid-column: auto / span 1;
}
.feed-heading,
.feed-heading > div {
  display: flex;
  align-items: center;
}
.feed-heading {
  justify-content: space-between;
  margin-bottom: 12px;
}
.feed-heading > div {
  gap: 8px;
}
.feed-heading h2 {
  font: 700 15px "Manrope";
}
.results-count {
  color: var(--muted);
  font-size: 11px;
}
.text-button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px;
  border: 0;
  background: transparent;
  color: #849289;
  font-size: 11px;
}
.text-button svg {
  width: 15px;
}
.sales-list {
  display: grid;
  gap: 14px;
}
.sale-card {
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}
.sale-card:hover {
  border-color: rgba(164, 205, 255, 0.24);
  transform: translateY(-2px);
}
.sale-card__top {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}
.product-photo {
  position: relative;
  min-height: 140px;
  overflow: hidden;
  border-radius: 16px;
  background: #12243a;
}
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.sale-card:hover .product-photo img {
  transform: scale(1.035);
}
.photo-count {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.63);
  font-size: 10px;
  backdrop-filter: blur(8px);
}
.photo-count svg {
  width: 12px;
  height: 12px;
}
.product-info {
  min-width: 0;
}
.product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px;
}
.product-title-row > div {
  min-width: 0;
}
.product-title-row h3 {
  overflow: hidden;
  font: 800 clamp(16px, 4vw, 20px) "Manrope";
  letter-spacing: -0.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.product-title-row p {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sold-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  padding: 5px 7px;
  border: 1px solid rgba(70, 163, 255, 0.18);
  border-radius: 9px;
  color: var(--neon);
  background: var(--neon-soft);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.sold-badge svg {
  width: 12px;
  height: 12px;
}
.sold-badge--pending {
  color: var(--gold);
  border-color: rgba(216, 185, 78, 0.13);
  background: rgba(216, 185, 78, 0.08);
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #87958c;
  font-size: 9px;
}
.meta-row span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.meta-row svg {
  width: 12px;
  height: 12px;
}
.money-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 21px;
}
.money-grid span {
  display: block;
  color: #6f7d74;
  font-size: 8px;
  text-transform: uppercase;
  white-space: nowrap;
}
.money-grid strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.money-grid .sale-price strong {
  color: #fff;
}
.profit-panel {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr auto;
  align-items: end;
  gap: 8px;
  padding: 13px 14px;
  border-top: 1px solid rgba(70, 163, 255, 0.16);
  border-bottom: 1px solid rgba(70, 163, 255, 0.1);
  background: linear-gradient(
    90deg,
    rgba(70, 163, 255, 0.12),
    rgba(70, 163, 255, 0.025)
  );
}
.profit-panel span {
  display: block;
  color: #8c9a91;
  font-size: 9px;
}
.profit-panel strong {
  display: block;
  margin-top: 3px;
  color: var(--neon);
  font: 800 16px "Manrope";
}
.profit-panel .margin strong {
  color: #d9dfdb;
  font-size: 13px;
}
.profit-panel .date {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #76837b;
  font-size: 9px;
}
.profit-panel .date svg {
  width: 14px;
}
.profit-panel--pending {
  border-color: rgba(216, 185, 78, 0.11);
  background: linear-gradient(
    90deg,
    rgba(216, 185, 78, 0.09),
    rgba(216, 185, 78, 0.015)
  );
}
.profit-panel--pending strong {
  color: var(--gold);
}
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.08fr;
  gap: 7px;
  padding: 10px 12px 12px;
}
.action {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
  font-weight: 700;
}
.action svg {
  width: 16px;
}
.action--undo {
  color: var(--gold);
  background: rgba(216, 185, 78, 0.07);
}
.action--report {
  color: var(--neon);
  background: rgba(70, 163, 255, 0.07);
}
.action--details {
  border-color: var(--stroke);
}
.empty-state {
  grid-column: 1/-1;
  padding: 50px 20px;
  border-radius: var(--radius);
  text-align: center;
}
.empty-state > div {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 15px;
  color: var(--neon);
  background: var(--neon-soft);
}
.empty-state h3 {
  font: 700 17px "Manrope";
}
.empty-state p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.side-menu {
  position: fixed;
  z-index: 50;
  top: 12px;
  bottom: 12px;
  left: 12px;
  width: min(310px, calc(100vw - 32px));
  padding: 20px;
  border-radius: 22px;
  transform: translateX(calc(-100% - 28px));
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.side-menu.is-open {
  transform: translateX(0);
}
.side-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 12px;
  color: #aab5ae;
  text-decoration: none;
}
.side-link.is-active {
  color: var(--neon);
  background: var(--neon-soft);
}
.side-menu__footer {
  position: absolute;
  bottom: 20px;
  color: #627067;
  font: 700 13px "Manrope";
}
.side-menu__footer span {
  font-weight: 400;
}
.menu-backdrop {
  position: fixed;
  z-index: 49;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  background: rgba(1, 6, 3, 0.7);
  backdrop-filter: blur(4px);
  transition: 0.25s;
}
.menu-backdrop.is-open {
  visibility: visible;
  opacity: 1;
}
.sale-modal {
  width: min(620px, calc(100% - 24px));
  padding: 22px;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  color: var(--text);
}
.sale-modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(7px);
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}
.modal-head h2 {
  margin-top: 5px;
  font: 800 24px "Manrope";
  letter-spacing: -0.8px;
}
.sale-modal form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field {
  min-width: 0;
}
.field--wide,
.modal-actions {
  grid-column: 1/-1;
}
.field label {
  display: block;
  margin: 0 0 7px 2px;
  color: #9aa79f;
  font-size: 11px;
  font-weight: 600;
}
.field input,
.field select,
.money-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  outline: 0;
  background: rgba(4, 12, 24, 0.52);
  color: var(--text);
}
.field input,
.field select {
  padding: 0 12px;
}
.field input:focus,
.field select:focus,
.money-input:focus-within {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(70, 163, 255, 0.1);
}
.money-input {
  display: flex;
  align-items: center;
  padding: 0 11px;
}
.money-input span {
  color: var(--neon);
  font-size: 12px;
  font-weight: 800;
}
.money-input input {
  min-height: 42px;
  border: 0;
  background: transparent;
  box-shadow: none !important;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.button-secondary,
.button-primary {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
}
.button-secondary {
  border: 1px solid var(--stroke);
  background: transparent;
}
.toast {
  position: fixed;
  z-index: 80;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  border: 1px solid var(--stroke-bright);
  border-radius: 13px;
  background: #10243c;
  box-shadow: var(--shadow);
  color: #e9f0eb;
  font-size: 12px;
  transform: translateY(90px);
  opacity: 0;
  transition: 0.3s;
}
.toast svg {
  color: var(--neon);
}
.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.app-view {
  animation: viewIn 0.26s ease both;
}
.app-view[hidden] {
  display: none !important;
}
.side-link {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
}
.sync-status,
.save-state {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #7f90a4;
  font-size: 10px;
}
.sync-status svg,
.save-state svg {
  width: 13px;
  height: 13px;
  color: var(--neon);
}
.bottom-nav {
  display: none;
}
.export-button {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 13px;
  color: #dce6f2;
  font-size: 12px;
  font-weight: 700;
}
.export-button svg {
  width: 16px;
}

/* Estoque */
.inventory-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}
.inventory-toolbar .search {
  flex: 1;
}
.stock-chips {
  display: flex;
  gap: 6px;
}
.chip {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--stroke);
  border-radius: 11px;
  color: #8fa0b3;
  background: rgba(255, 255, 255, 0.025);
  font-size: 10px;
  font-weight: 700;
}
.chip span {
  margin-left: 3px;
  color: #64758a;
}
.chip.is-active {
  border-color: rgba(70, 163, 255, 0.3);
  color: var(--neon);
  background: var(--neon-soft);
}
.inventory-list {
  display: grid;
  gap: 10px;
}
.stock-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 60px;
  align-items: stretch;
  gap: 14px;
  padding: 11px;
  border-radius: 17px;
}
.stock-item > img {
  width: 88px;
  height: 88px;
  border-radius: 13px;
  object-fit: cover;
}
.stock-main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) minmax(330px, 1fr);
  align-items: center;
  gap: 18px;
}
.stock-main h3 {
  margin-top: 5px;
  font: 700 14px "Manrope";
}
.stock-main p {
  margin-top: 3px;
  color: #7d8da0;
  font-size: 9px;
}
.stock-status {
  display: inline-flex;
  padding: 3px 6px;
  border-radius: 6px;
  color: var(--neon);
  background: var(--neon-soft);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.stock-status--prep {
  color: var(--gold);
  background: rgba(216, 185, 78, 0.1);
}
.stock-numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.stock-numbers span {
  color: #6e7e91;
  font-size: 8px;
}
.stock-numbers strong {
  display: block;
  margin-top: 4px;
  color: #dce4ed;
  font-size: 11px;
  white-space: nowrap;
}
.stock-numbers .positive,
.positive {
  color: var(--neon);
}
.stock-age {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--stroke);
  color: #8d9bad;
}
.stock-age > strong {
  font: 800 18px "Manrope";
}
.stock-age > span {
  margin-top: -2px;
  font-size: 8px;
}
.stock-age .icon-button {
  width: 28px;
  height: 24px;
  margin-top: 4px;
}
.stock-age--warn > strong {
  color: var(--gold);
}
.row-actions {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3px;
}
.row-actions .delete-icon {
  color: var(--danger);
}

/* Relatórios */
.report-range {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 6px;
  border-radius: 15px;
}
.report-range > div {
  display: flex;
  gap: 4px;
}
.report-range > span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 9px;
  color: #8292a5;
  font-size: 10px;
}
.report-range > span svg {
  width: 14px;
}
.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.65fr);
  gap: 12px;
}
.chart-card,
.profit-summary,
.category-card,
.highlights-card {
  padding: 20px;
  border-radius: 19px;
}
.card-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.card-section-head span,
.profit-summary > span {
  display: block;
  color: #8494a7;
  font-size: 10px;
}
.card-section-head strong {
  display: block;
  margin-top: 5px;
  font: 700 19px "Manrope";
}
.card-section-head small {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  color: var(--neon);
  font-size: 8px;
}
.card-section-head small svg {
  width: 11px;
}
.chart-legend {
  display: flex;
  gap: 10px;
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
}
.chart-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--neon);
}
.chart-legend span:last-child i {
  background: var(--gold);
}
.bar-chart {
  height: 210px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 9px;
  margin-top: 20px;
  padding: 10px 4px 0;
  border-bottom: 1px solid var(--stroke);
  background-image: linear-gradient(
    to bottom,
    var(--stroke) 1px,
    transparent 1px
  );
  background-size: 100% 25%;
}
.bar-group {
  flex: 1;
  min-width: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.bar-group > div {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
}
.bar-group i,
.bar-group b {
  width: min(15px, 40%);
  display: block;
  border-radius: 5px 5px 2px 2px;
  background: rgba(70, 163, 255, 0.28);
  animation: barGrow 0.82s cubic-bezier(0.2, 0.78, 0.22, 1) both;
  animation-delay: calc(var(--bar-index, 0) * 48ms);
  will-change: height, opacity;
}
.bar-group b {
  background: rgba(216, 185, 78, 0.35);
  animation-delay: calc(var(--bar-index, 0) * 48ms + 75ms);
}
.bar-group.is-current i {
  background: var(--neon);
  box-shadow: 0 0 18px rgba(70, 163, 255, 0.22);
}
.bar-group.is-current b {
  background: var(--gold);
}
.bar-group > span {
  color: #718196;
  font-size: 8px;
  animation: labelIn 0.35s ease both;
  animation-delay: calc(var(--bar-index, 0) * 48ms + 300ms);
}
.profit-summary {
  text-align: center;
}
.profit-summary > strong {
  display: block;
  margin-top: 5px;
  color: var(--neon);
  font: 800 24px "Manrope";
}
.donut {
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  margin: 18px auto;
  border-radius: 50%;
  background: conic-gradient(
    var(--neon) calc(var(--value) * 1%),
    rgba(255, 255, 255, 0.06) 0
  );
  position: relative;
  transition: --value 0.8s cubic-bezier(0.2, 0.78, 0.22, 1);
}
.donut::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #102039;
}
.donut span {
  position: relative;
  z-index: 1;
  font: 800 20px "Manrope";
}
.donut small {
  display: block;
  color: #7f90a5;
  font: 400 8px "DM Sans";
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--stroke);
  color: #7f90a4;
  font-size: 9px;
}
.summary-line strong {
  color: #dbe4ee;
  font-size: 10px;
}
.category-card,
.highlights-card {
  min-width: 0;
}
.category-list {
  margin-top: 14px;
}
.category-list > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-top: 1px solid var(--stroke);
}
.category-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--neon);
  background: var(--neon-soft);
}
.category-icon svg {
  width: 14px;
}
.category-list div > div strong,
.category-list div > div span {
  display: block;
}
.category-list div > div strong {
  font-size: 10px;
}
.category-list div > div span {
  margin-top: 2px;
  color: #718196;
  font-size: 8px;
}
.category-list b {
  font-size: 10px;
}
.category-list em {
  color: var(--neon);
  font-size: 9px;
  font-style: normal;
  text-align: right;
}
.highlights-card {
  grid-column: 2;
}
.highlight {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 12px 0;
  border-top: 1px solid var(--stroke);
}
.highlight:first-of-type {
  margin-top: 14px;
}
.highlight > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--gold);
  background: rgba(216, 185, 78, 0.09);
}
.highlight svg {
  width: 14px;
}
.highlight small,
.highlight strong {
  display: block;
}
.highlight small {
  color: #718196;
  font-size: 8px;
}
.highlight strong {
  margin-top: 2px;
  font-size: 10px;
}
.highlight > b {
  color: var(--neon);
  font-size: 10px;
}

/* Ajustes */
.settings-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}
.settings-nav {
  display: grid;
  gap: 3px;
  padding: 7px;
  border-radius: 16px;
  position: sticky;
  top: 10px;
}
.settings-nav button {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  color: #8292a5;
  background: transparent;
  font-size: 10px;
  text-align: left;
}
.settings-nav button svg {
  width: 15px;
}
.settings-nav button.is-active {
  color: var(--neon);
  background: var(--neon-soft);
}
.settings-content {
  display: grid;
  gap: 12px;
}
.settings-card {
  padding: 20px;
  border-radius: 19px;
}
.settings-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.settings-title h2 {
  font: 700 15px "Manrope";
}
.settings-title p {
  margin-top: 4px;
  color: #7e8ea2;
  font-size: 9px;
}
.profile-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #07111f;
  background: var(--neon);
  font-weight: 800;
}
.settings-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.settings-form label {
  color: #8797a9;
  font-size: 9px;
}
.settings-form input {
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  padding: 0 11px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  outline: 0;
  color: var(--text);
  background: rgba(4, 12, 24, 0.52);
  font-size: 10px;
}
.settings-form input:focus {
  border-color: var(--neon);
}
.settings-actions {
  grid-column: 1/-1;
  display: flex;
  justify-content: flex-end;
}
.preference-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--stroke);
}
.preference-list label > span {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
}
.preference-list label svg {
  grid-row: 1/3;
  width: 15px;
  color: var(--neon);
}
.preference-list b,
.preference-list small {
  display: block;
}
.preference-list b {
  font-size: 10px;
}
.preference-list small {
  margin-top: 3px;
  color: #75869a;
  font-size: 8px;
}
.switch {
  appearance: none;
  width: 36px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 20px;
  background: #253449;
  position: relative;
  transition: 0.2s;
}
.switch::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #8e9bad;
  transition: 0.2s;
}
.switch:checked {
  background: var(--neon);
}
.switch:checked::after {
  left: 19px;
  background: white;
}
.danger-zone > div:last-child {
  display: flex;
  gap: 8px;
}
.danger-zone button {
  display: flex;
  align-items: center;
  gap: 7px;
}
.danger-zone button svg {
  width: 14px;
}
.danger-button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 101, 111, 0.18);
  border-radius: 12px;
  color: var(--danger);
  background: rgba(255, 101, 111, 0.06);
  font-size: 10px;
}
.save-state {
  color: var(--neon);
}
.settings-form select {
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  padding: 0 11px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  outline: 0;
  color: var(--text);
  background: rgba(4, 12, 24, 0.52);
  font-size: 10px;
}
.settings-form select:focus {
  border-color: var(--neon);
}
.settings-actions {
  margin-top: 4px;
}
.data-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
}
.data-tools button {
  display: flex;
  align-items: center;
  gap: 6px;
}
.data-tools svg {
  width: 14px;
}
.lock-screen {
  width: min(360px, calc(100% - 28px));
  padding: 28px;
  border: 1px solid var(--stroke-bright);
  border-radius: 22px;
  color: var(--text);
  text-align: center;
}
.lock-screen::backdrop {
  background: rgba(1, 6, 14, 0.92);
  backdrop-filter: blur(14px);
}
.lock-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 16px;
  color: var(--neon);
  background: var(--neon-soft);
}
.lock-screen h2 {
  margin-top: 6px;
  font: 800 21px "Manrope";
}
.lock-screen p {
  margin-top: 5px;
  color: #7f90a4;
  font-size: 10px;
}
.lock-screen form {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.lock-screen input {
  min-height: 46px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  outline: 0;
  color: var(--text);
  background: rgba(4, 12, 24, 0.7);
  font-size: 17px;
  letter-spacing: 8px;
  text-align: center;
}
.lock-screen small {
  display: block;
  min-height: 14px;
  margin-top: 7px;
  color: var(--danger);
  font-size: 8px;
}
.is-filtered-out {
  display: none !important;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes barGrow {
  from {
    height: 0;
    opacity: 0.15;
  }
  to {
    opacity: 1;
  }
}
@keyframes labelIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 390px) {
  .app-shell {
    padding-inline: 11px;
  }
  .sale-card__top {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    padding: 11px;
  }
  .product-photo {
    min-height: 130px;
  }
  .sold-badge {
    font-size: 0;
  }
  .sold-badge svg {
    margin: 0;
  }
  .money-grid {
    margin-top: 17px;
  }
  .profit-panel {
    padding-inline: 11px;
  }
  .profit-panel .date span {
    display: none;
  }
  .action span {
    display: none;
  }
  .action {
    min-height: 38px;
  }
  .kpi {
    min-width: 125px;
  }
  .kpi-grid {
    margin-right: -11px;
    padding-right: 11px;
  }
  .sale-modal form {
    grid-template-columns: 1fr;
  }
  .field,
  .field--wide,
  .modal-actions {
    grid-column: 1;
  }
}
@media (max-width: 719px) {
  body {
    font-size: 13px;
  }
  .app-shell {
    padding: 0 12px 56px;
  }
  .topbar {
    height: 62px;
  }
  .icon-button {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }
  .icon-button svg {
    width: 18px;
    height: 18px;
  }
  .brand {
    gap: 7px;
    font-size: 17px;
    letter-spacing: -0.5px;
  }
  .brand-logo {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }
  .avatar {
    width: 36px;
    height: 36px;
    font-size: 11px;
  }
  .page-heading {
    padding: 20px 1px 15px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.4px;
  }
  h1 {
    margin-top: 2px;
    font-size: 25px;
    letter-spacing: -1.2px;
  }
  .add-button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .add-button svg {
    width: 18px;
  }
  .status-tabs {
    padding: 4px;
    border-radius: 16px;
  }
  .status-tab {
    min-height: 42px;
    border-radius: 12px;
    font-size: 11px;
  }
  .tab-count {
    margin-left: 4px;
    padding: 2px 6px;
    font-size: 9px;
  }
  .kpi-grid {
    gap: 7px;
    margin: 10px -12px 12px 0;
    padding-right: 12px;
  }
  .kpi {
    min-width: 112px;
    min-height: 108px;
    padding: 12px 11px 10px;
    border-radius: 16px;
  }
  .kpi__icon {
    width: 24px;
    height: 24px;
    margin-bottom: 10px;
    border-radius: 7px;
  }
  .kpi__icon svg {
    width: 13px;
    height: 13px;
  }
  .kpi > span {
    font-size: 8.5px;
  }
  .kpi strong {
    margin-top: 3px;
    font-size: clamp(14px, 3.9vw, 18px);
    letter-spacing: -0.6px;
  }
  .kpi small {
    margin-top: 4px;
    font-size: 7.5px;
  }
  .kpi small svg {
    width: 9px;
    height: 9px;
  }
  .tools {
    grid-template-columns: minmax(0, 1fr) 94px;
    gap: 6px;
    margin: 12px 0 18px;
  }
  .search,
  .select-wrap {
    min-height: 43px;
    border-radius: 12px;
  }
  .search {
    gap: 7px;
    padding: 0 11px;
  }
  .search > svg {
    width: 17px;
    height: 17px;
  }
  .search input,
  .select-wrap select {
    font-size: 11px;
  }
  .select-wrap {
    gap: 5px;
    padding: 0 9px;
  }
  .select-wrap > svg {
    width: 14px;
    height: 14px;
  }
  .feed-heading {
    margin-bottom: 9px;
  }
  .feed-heading > div {
    gap: 6px;
  }
  .feed-heading h2 {
    font-size: 12px;
  }
  .results-count,
  .text-button {
    font-size: 9px;
  }
  .text-button svg {
    width: 13px;
    height: 13px;
  }
  .sales-list {
    gap: 10px;
  }
  .sale-card {
    border-radius: 18px;
  }
  .sale-card__top {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
  }
  .product-photo {
    min-height: 112px;
    border-radius: 13px;
  }
  .photo-count {
    left: 6px;
    bottom: 6px;
    gap: 3px;
    padding: 3px 5px;
    border-radius: 6px;
    font-size: 8px;
  }
  .photo-count svg {
    width: 9px;
    height: 9px;
  }
  .product-title-row {
    gap: 5px;
  }
  .product-title-row h3 {
    font-size: 13px;
    letter-spacing: -0.3px;
  }
  .product-title-row p {
    margin-top: 2px;
    font-size: 8px;
  }
  .sold-badge {
    padding: 4px 5px;
    border-radius: 7px;
    font-size: 6.5px;
  }
  .sold-badge svg {
    width: 9px;
    height: 9px;
  }
  .meta-row {
    gap: 6px;
    margin-top: 8px;
    font-size: 7.5px;
  }
  .meta-row svg {
    width: 9px;
    height: 9px;
  }
  .money-grid {
    gap: 3px;
    margin-top: 13px;
  }
  .money-grid span {
    font-size: 6.5px;
  }
  .money-grid strong {
    margin-top: 2px;
    font-size: 8px;
  }
  .profit-panel {
    gap: 6px;
    padding: 9px 10px;
  }
  .profit-panel span {
    font-size: 7px;
  }
  .profit-panel strong {
    margin-top: 2px;
    font-size: 13px;
  }
  .profit-panel .margin strong {
    font-size: 10px;
  }
  .profit-panel .date {
    gap: 3px;
    font-size: 7px;
  }
  .profit-panel .date svg {
    width: 11px;
    height: 11px;
  }
  .card-actions {
    gap: 5px;
    padding: 7px 9px 9px;
  }
  .action {
    min-height: 34px;
    gap: 4px;
    border-radius: 9px;
    font-size: 8.5px;
  }
  .action svg {
    width: 13px;
    height: 13px;
  }
  .sale-modal {
    padding: 17px;
    border-radius: 19px;
  }
  .modal-head {
    margin-bottom: 16px;
  }
  .modal-head h2 {
    margin-top: 3px;
    font-size: 19px;
  }
  .sale-modal form {
    gap: 10px;
  }
  .field label {
    margin-bottom: 5px;
    font-size: 9px;
  }
  .field input,
  .field select,
  .money-input {
    min-height: 40px;
    font-size: 11px;
  }
  .money-input input {
    min-height: 36px;
  }
  .button-secondary,
  .button-primary {
    min-height: 39px;
    padding: 0 13px;
    font-size: 10px;
  }
  .app-shell {
    padding-bottom: 90px;
  }
  .bottom-nav {
    position: fixed;
    z-index: 40;
    left: 10px;
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 5px;
    border-radius: 16px;
  }
  .bottom-nav button {
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 0;
    border-radius: 11px;
    color: #718297;
    background: transparent;
    font-size: 7px;
    font-weight: 700;
  }
  .bottom-nav button svg {
    width: 16px;
    height: 16px;
  }
  .bottom-nav button.is-active {
    color: var(--neon);
    background: var(--neon-soft);
  }
  .sync-status {
    font-size: 8px;
  }
  .inventory-toolbar {
    display: grid;
    gap: 7px;
    margin: 11px 0;
  }
  .stock-chips {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .chip {
    min-height: 31px;
    padding: 0 9px;
    border-radius: 9px;
    font-size: 8px;
    white-space: nowrap;
  }
  .inventory-list {
    gap: 8px;
  }
  .stock-item {
    grid-template-columns: 66px minmax(0, 1fr) 35px;
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
  }
  .stock-item > img {
    width: 66px;
    height: 78px;
    border-radius: 10px;
  }
  .stock-main {
    display: block;
    min-width: 0;
  }
  .stock-main h3 {
    margin-top: 3px;
    overflow: hidden;
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .stock-main p {
    overflow: hidden;
    margin-top: 2px;
    font-size: 7px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .stock-status {
    padding: 2px 5px;
    font-size: 5.5px;
  }
  .stock-numbers {
    gap: 5px;
    margin-top: 10px;
  }
  .stock-numbers span {
    font-size: 6px;
  }
  .stock-numbers strong {
    margin-top: 2px;
    font-size: 7px;
  }
  .stock-age {
    padding-left: 4px;
  }
  .stock-age > strong {
    font-size: 13px;
  }
  .stock-age > span {
    font-size: 6px;
  }
  .stock-age .icon-button {
    width: 24px;
  }
  .export-button {
    min-height: 38px;
    padding: 0 10px;
    font-size: 9px;
  }
  .export-button svg {
    width: 14px;
  }
  .report-range {
    align-items: stretch;
    margin-bottom: 9px;
    padding: 4px;
    overflow-x: auto;
  }
  .report-range > div {
    display: flex;
  }
  .report-range > span {
    display: none;
  }
  .report-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .chart-card,
  .profit-summary,
  .category-card,
  .highlights-card {
    padding: 13px;
    border-radius: 15px;
  }
  .card-section-head span,
  .profit-summary > span {
    font-size: 8px;
  }
  .card-section-head strong {
    margin-top: 3px;
    font-size: 14px;
  }
  .card-section-head small {
    font-size: 6.5px;
  }
  .chart-legend {
    gap: 6px;
  }
  .chart-legend span {
    font-size: 6px;
  }
  .bar-chart {
    height: 150px;
    gap: 5px;
    margin-top: 13px;
  }
  .bar-group {
    gap: 5px;
  }
  .bar-group > span {
    font-size: 6px;
  }
  .profit-summary {
    display: grid;
    grid-template-columns: 1fr 105px;
    align-items: center;
    text-align: left;
  }
  .profit-summary > strong {
    align-self: start;
    font-size: 18px;
  }
  .donut {
    grid-column: 2;
    grid-row: 1/5;
    width: 88px;
    height: 88px;
    margin: 0 auto;
  }
  .donut::after {
    inset: 9px;
  }
  .donut span {
    font-size: 14px;
  }
  .summary-line {
    grid-column: 1;
    padding: 6px 0;
    font-size: 7px;
  }
  .summary-line strong {
    font-size: 8px;
  }
  .category-list {
    margin-top: 9px;
  }
  .category-list > div {
    grid-template-columns: 28px minmax(0, 1fr) auto 28px;
    gap: 6px;
    padding: 7px 0;
  }
  .category-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }
  .category-icon svg {
    width: 12px;
  }
  .category-list div > div strong,
  .category-list b {
    font-size: 8px;
  }
  .category-list div > div span,
  .category-list em {
    font-size: 6.5px;
  }
  .highlights-card {
    grid-column: auto;
  }
  .highlight {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 6px;
    padding: 8px 0;
  }
  .highlight:first-of-type {
    margin-top: 9px;
  }
  .highlight > span {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }
  .highlight small {
    font-size: 6.5px;
  }
  .highlight strong,
  .highlight > b {
    font-size: 8px;
  }
  .settings-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .settings-nav {
    display: flex;
    position: static;
    overflow-x: auto;
    padding: 4px;
    border-radius: 13px;
  }
  .settings-nav button {
    min-width: max-content;
    min-height: 34px;
    gap: 5px;
    padding: 0 9px;
    font-size: 8px;
  }
  .settings-nav button svg {
    width: 13px;
  }
  .settings-content {
    gap: 8px;
  }
  .settings-card {
    padding: 13px;
    border-radius: 15px;
  }
  .settings-title {
    margin-bottom: 12px;
  }
  .settings-title h2 {
    font-size: 12px;
  }
  .settings-title p {
    font-size: 7.5px;
  }
  .profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 10px;
  }
  .settings-form {
    gap: 9px;
  }
  .settings-form label {
    font-size: 7.5px;
  }
  .settings-form input,
  .settings-form select {
    min-height: 37px;
    margin-top: 4px;
    font-size: 9px;
  }
  .preference-list label {
    padding: 9px 0;
  }
  .preference-list label > span {
    grid-template-columns: 22px 1fr;
  }
  .preference-list b {
    font-size: 8.5px;
  }
  .preference-list small {
    font-size: 7px;
  }
  .switch {
    width: 31px;
    height: 17px;
  }
  .switch::after {
    width: 11px;
    height: 11px;
  }
  .switch:checked::after {
    left: 17px;
  }
  .danger-zone > div:last-child {
    flex-wrap: wrap;
  }
  .danger-button {
    min-height: 39px;
    padding: 0 11px;
    font-size: 9px;
  }
  .toast {
    bottom: 78px;
    font-size: 9px;
  }
}
@media (min-width: 720px) {
  .app-shell {
    padding-inline: 28px;
  }
  .topbar {
    height: 86px;
  }
  .add-button {
    width: auto;
    padding: 0 17px;
  }
  .add-button span {
    display: inline;
  }
  .tools {
    grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(150px, 1fr));
  }
  .tools .select-wrap:nth-child(3),
  .tools .select-wrap:nth-child(4) {
    grid-column: auto;
  }
  .search kbd {
    display: inline-block;
  }
  .sale-card__top {
    grid-template-columns: 150px minmax(0, 1fr);
    padding: 18px;
  }
  .product-photo {
    min-height: 160px;
  }
  .product-title-row p,
  .meta-row,
  .money-grid strong {
    font-size: 12px;
  }
  .meta-row {
    gap: 14px;
  }
  .money-grid span,
  .profit-panel span,
  .profit-panel .date {
    font-size: 10px;
  }
  .profit-panel {
    padding: 15px 18px;
  }
  .card-actions {
    padding: 12px 16px 15px;
  }
  .action {
    font-size: 12px;
  }
}
@media (min-width: 980px) {
  .app-shell {
    padding-inline: 36px;
  }
  .kpi-grid {
    gap: 14px;
  }
  .kpi {
    min-height: 145px;
    padding: 20px;
  }
  .kpi__icon {
    position: absolute;
    right: 18px;
    top: 18px;
  }
  .kpi > span {
    margin-top: 25px;
  }
  .sales-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sale-card:first-child {
    grid-column: 1/-1;
  }
  .sale-card:first-child .sale-card__top {
    grid-template-columns: 190px 1fr;
  }
  .sale-card:first-child .product-photo {
    min-height: 190px;
  }
  .sale-card:not(:first-child) .sale-card__top {
    grid-template-columns: 120px 1fr;
  }
  .sale-card:not(:first-child) .money-grid {
    margin-top: 20px;
  }
  .sale-card:not(:first-child) .profit-panel .date span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Landing e login — mesma linguagem visual do painel */
.landing-page,
.login-page {
  height: 100dvh;
  overflow: hidden;
}
.landing-page::before,
.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}
.login-page::before {
  display: none;
}
.landing-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  height: 100%;
  margin: auto;
  display: grid;
  grid-template-rows: 82px 1fr;
}
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.landing-signin {
  padding: 10px 17px;
  border: 1px solid var(--stroke-bright);
  border-radius: 11px;
  color: #d7e2ef;
  font-size: 12px;
  font-weight: 700;
  background: rgba(13, 27, 46, 0.55);
}
.landing-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 8vw;
  padding-bottom: 8vh;
}
.landing-copy h1 {
  max-width: 720px;
  margin: 12px 0 18px;
  font: 800 clamp(46px, 6vw, 86px)/0.96 "Manrope";
  letter-spacing: -4px;
}
.landing-copy h1 em {
  color: var(--neon);
  font-style: normal;
  text-shadow: 0 0 38px rgba(60, 226, 177, 0.22);
}
.landing-copy > p {
  max-width: 570px;
  color: #8c9bae;
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.65;
}
.landing-cta {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
  padding: 15px 20px;
  border-radius: 13px;
  color: #06131b;
  background: var(--neon);
  box-shadow: 0 12px 38px rgba(60, 226, 177, 0.18);
  font-size: 13px;
  font-weight: 800;
}
.landing-cta span {
  font-size: 20px;
}
.landing-copy > small {
  display: block;
  margin-top: 13px;
  color: #5f7187;
  font-size: 9px;
}
.landing-preview {
  position: relative;
  min-height: 360px;
  padding: 32px;
  border-radius: 28px;
  transform: rotate(1.5deg);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
}
.landing-preview::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(60, 226, 177, 0.18),
    transparent 38%
  );
  opacity: 0.65;
}
.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8292a6;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
.preview-head i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 14px var(--neon);
}
.landing-preview > strong {
  display: block;
  margin-top: 44px;
  color: var(--neon);
  font: 800 clamp(30px, 4vw, 48px) "Manrope";
  letter-spacing: -2px;
}
.landing-preview > small {
  color: #7d8da1;
  font-size: 10px;
}
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 32px;
}
.preview-grid span {
  padding: 13px;
  border: 1px solid var(--stroke);
  border-radius: 13px;
  color: #687a8f;
  font-size: 8px;
}
.preview-grid b {
  display: block;
  margin-bottom: 4px;
  color: #dce5ef;
  font: 700 15px "Manrope";
}
.preview-chart {
  height: 70px;
  display: flex;
  align-items: end;
  gap: 8px;
  margin-top: 25px;
}
.preview-chart i {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(to top, rgba(60, 226, 177, 0.18), var(--neon));
  opacity: 0.65;
}
.preview-chart i:nth-child(1) {
  height: 32%;
}
.preview-chart i:nth-child(2) {
  height: 48%;
}
.preview-chart i:nth-child(3) {
  height: 40%;
}
.preview-chart i:nth-child(4) {
  height: 66%;
}
.preview-chart i:nth-child(5) {
  height: 57%;
}
.preview-chart i:nth-child(6) {
  height: 78%;
}
.preview-chart i:nth-child(7) {
  height: 100%;
  opacity: 1;
}
.login-shell {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 26px;
  padding: 20px;
}
.login-card {
  width: min(430px, calc(100vw - 32px));
  padding: 34px;
  border-radius: 24px;
  text-align: center;
}
.login-card h1 {
  margin: 8px 0 10px;
  font-size: 28px;
  letter-spacing: -1.2px;
}
.login-card > p {
  color: #8191a4;
  font-size: 11px;
  line-height: 1.65;
}
.google-button {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  color: #142033;
  background: #fff;
  font: 700 12px "DM Sans";
  transition: 0.18s;
}
.google-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
.google-button:disabled {
  opacity: 0.6;
}
.google-button svg {
  width: 19px;
}
.login-card > small {
  display: block;
  margin-top: 14px;
  color: #596b80;
  font-size: 8px;
  line-height: 1.5;
}
.login-error {
  margin-top: 12px !important;
  color: var(--danger) !important;
}
.app-loading {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  background: #07111f;
  color: var(--neon);
  font: 700 13px "Manrope";
  letter-spacing: 0.5px;
}
@media (max-width: 760px) {
  .landing-shell {
    width: min(100% - 28px, 560px);
    grid-template-rows: 68px 1fr;
  }
  .landing-banner {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding-bottom: 4vh;
  }
  .landing-copy {
    text-align: center;
  }
  .landing-copy h1 {
    font-size: clamp(40px, 13vw, 64px);
    letter-spacing: -2.7px;
  }
  .landing-copy > p {
    margin: auto;
  }
  .landing-copy > small {
    margin-top: 9px;
  }
  .landing-preview {
    min-height: 190px;
    padding: 20px;
    transform: none;
  }
  .landing-preview > strong {
    margin-top: 18px;
    font-size: 27px;
  }
  .preview-grid {
    margin-top: 16px;
  }
  .preview-chart {
    height: 38px;
    margin-top: 15px;
  }
  .landing-signin {
    padding: 8px 13px;
  }
  .login-card {
    padding: 28px 22px;
  }
}
@media (max-height: 670px) {
  .landing-preview {
    min-height: 175px;
  }
  .landing-preview > strong {
    margin-top: 14px;
  }
  .preview-grid {
    margin-top: 12px;
  }
  .preview-chart {
    height: 30px;
    margin-top: 10px;
  }
  .landing-copy h1 {
    margin-block: 7px 10px;
  }
  .landing-cta {
    margin-top: 16px;
  }
  .login-shell {
    gap: 14px;
  }
  .login-card {
    padding-block: 23px;
  }
}
.legal-page {
  width: min(720px, calc(100% - 32px));
  margin: 48px auto;
  padding: 34px;
  border-radius: 22px;
}
.legal-page h1 {
  margin: 32px 0 18px;
}
.legal-page p {
  margin: 12px 0;
  color: #93a2b4;
  line-height: 1.7;
}
.legal-page > a:last-child {
  display: inline-block;
  margin-top: 18px;
  color: var(--neon);
}
