:root {
  --bg: #080808;
  --panel: #121212;
  --panel-2: #1b1b1b;
  --panel-3: #232323;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 213, 33, 0.38);
  --text: #f7f7f4;
  --muted: #b9b9ad;
  --yellow: #ffd521;
  --yellow-2: #ffb900;
  --green: #36d57d;
  --red: #ff625d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 213, 33, 0.12), transparent 24rem),
    linear-gradient(180deg, #101010 0%, var(--bg) 42%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--yellow);
  border-radius: 0.6rem;
  background: #000;
  color: var(--yellow);
  font-family: "Anton", Impact, sans-serif;
  font-size: 1.45rem;
  line-height: 1;
  box-shadow: 0 0 28px rgba(255, 213, 33, 0.18);
}

.brand-mark-image {
  overflow: hidden;
  border-color: #000000;
}

.brand-mark-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.brand strong,
.brand small,
.user-pill strong,
.user-pill small {
  display: block;
}

.brand strong {
  max-width: 10.2rem;
  overflow: hidden;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small,
.eyebrow {
  color: var(--yellow);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.user-pill {
  display: none;
  padding: 0.48rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
}

.user-pill small {
  color: var(--yellow);
  font-size: 0.7rem;
  font-weight: 900;
}

.cart-chip,
.primary-action,
.whatsapp-button,
.floating-cart,
.button,
.ghost-button,
.danger-button,
.mini-button {
  border-radius: 0.8rem;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.cart-chip,
.primary-action,
.whatsapp-button,
.floating-cart,
.button {
  border: 0;
  background: var(--yellow);
  color: #111;
}

.ghost-button,
.danger-button,
.mini-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.danger-button {
  border-color: rgba(255, 98, 93, 0.42);
  color: #ffd7d5;
}

.cart-chip,
.ghost-button,
.button,
.danger-button {
  min-height: 2.65rem;
  padding: 0 0.78rem;
}

.cart-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
}

.cart-icon {
  display: inline-grid;
  width: 1.2rem;
  height: 1.2rem;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
}

.cart-chip strong {
  display: none;
}

.mini-button {
  min-height: 2.2rem;
  padding: 0 0.65rem;
  font-size: 0.78rem;
}

.cart-chip:hover,
.primary-action:hover,
.whatsapp-button:hover,
.floating-cart:hover,
.button:hover,
.ghost-button:hover,
.danger-button:hover,
.mini-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 213, 33, 0.16);
}

.hero {
  display: grid;
  gap: 0.9rem;
  align-items: center;
  scroll-margin-top: 7rem;
  padding: 2rem 1rem 1.25rem;
  overflow: hidden;
}

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

.hero h1,
.section-heading h2,
.admin-title h1,
.login-card h1 {
  margin: 0.5rem 0 0;
  font-family: "Anton", Impact, sans-serif;
  font-weight: 400;
  line-height: 0.96;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 9ch;
  font-size: clamp(2.75rem, 11vw, 5rem);
}

.hero p,
.section-heading p,
.admin-title p,
.login-card p {
  max-width: 34rem;
  margin: 0.85rem 0 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-whatsapp {
  display: inline-grid;
  min-height: 3.25rem;
  place-items: center;
  border: 1px solid rgba(255, 213, 33, 0.45);
  border-radius: 0.8rem;
  background: rgba(255, 213, 33, 0.1);
  color: var(--yellow);
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.hero-whatsapp:hover {
  transform: translateY(-2px);
  border-color: var(--yellow);
  box-shadow: 0 12px 28px rgba(255, 213, 33, 0.16);
}

.hero-phone {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.primary-action,
.whatsapp-button {
  width: 100%;
  min-height: 3.25rem;
  padding: 0 1.15rem;
  font-size: 0.98rem;
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 16rem;
  place-items: center;
}

.hero-art::before {
  position: absolute;
  width: min(82vw, 28rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 213, 33, 0.16);
  filter: blur(28px);
  content: "";
}

.promo-card {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 34rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 1.2rem;
  background: var(--panel);
  color: var(--text);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.45),
    0 0 42px rgba(255, 213, 33, 0.12);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.promo-card::after {
  position: absolute;
  inset: -40% auto -40% -55%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  content: "";
  transform: skewX(-18deg);
  animation: promoShine 3.8s ease-in-out infinite;
  pointer-events: none;
}

.promo-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--yellow);
  box-shadow:
    0 30px 86px rgba(0, 0, 0, 0.55),
    0 0 58px rgba(255, 213, 33, 0.18);
}

.promo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
}

.promo-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 1rem;
  color: var(--yellow);
  font-weight: 900;
  text-align: center;
}

.promo-card.is-missing img {
  display: none;
}

.promo-card.is-missing .promo-fallback {
  display: grid;
  min-height: 18rem;
}

@keyframes promoShine {
  from {
    left: -55%;
  }
  45%,
  100% {
    left: 115%;
  }
}

.client-status,
.rewards-panel,
.history-panel,
.login-card,
.kpi-card,
.admin-panel,
.campaign-card {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.client-status {
  display: grid;
  gap: 0.75rem;
  margin: 0 1rem 1rem;
  padding: 1rem;
}

.status-main strong {
  display: block;
  font-size: 1.2rem;
}

.status-main span,
.status-meta span,
.reward-card p,
.order-card small,
.campaign-card p {
  color: var(--muted);
}

.status-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.status-meta div {
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
}

.status-meta strong {
  display: block;
  color: var(--yellow);
  font-size: 1.15rem;
}

.menu-shell,
.admin-shell,
.login-shell {
  padding: 1rem 1rem 7.5rem;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 11vw, 4.2rem);
}

.tabs {
  position: sticky;
  top: 4.1rem;
  z-index: 12;
  display: flex;
  gap: 0.6rem;
  margin: 0 -1rem 1.2rem;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  border-block: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(16px);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-button {
  flex: 0 0 auto;
  min-height: 2.7rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-weight: 900;
}

.tab-button.is-active {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #111;
}

.product-grid,
.rewards-grid,
.orders-grid,
.campaign-grid,
.kpi-grid {
  display: grid;
  gap: 1rem;
}

.product-card {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover,
.product-card.was-added {
  border-color: rgba(255, 213, 33, 0.75);
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

.product-card.is-featured {
  background:
    linear-gradient(145deg, rgba(255, 213, 33, 0.16), rgba(255, 255, 255, 0.025)),
    var(--panel);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.badge {
  width: fit-content;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255, 213, 33, 0.45);
  border-radius: 999px;
  background: rgba(255, 213, 33, 0.12);
  color: var(--yellow);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.badge.green {
  border-color: rgba(54, 213, 125, 0.42);
  background: rgba(54, 213, 125, 0.12);
  color: var(--green);
}

.product-card h3,
.reward-card h3,
.order-card h3,
.campaign-card h3,
.admin-panel h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 900;
}

.ingredients {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.price {
  color: var(--yellow);
  font-family: "Anton", Impact, sans-serif;
  font-size: 1.65rem;
  line-height: 1;
}

.points-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.product-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

.qty-control,
.cart-line-actions {
  display: inline-grid;
  grid-template-columns: 2.5rem 2.2rem 2.5rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.qty-control button,
.cart-line-actions button,
.icon-button {
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 900;
}

.qty-control button,
.cart-line-actions button {
  height: 2.65rem;
  font-size: 1.15rem;
}

.qty-control span,
.cart-line-actions span {
  text-align: center;
  font-weight: 900;
}

.add-button {
  min-height: 2.7rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--text);
  color: #111;
  font-weight: 900;
}

.redeem-button {
  min-height: 2.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.75rem;
  background: rgba(255, 213, 33, 0.12);
  color: var(--yellow);
  font-weight: 900;
}

.item-note {
  width: 100%;
  min-height: 4.5rem;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  outline: none;
  padding: 0.85rem;
}

.rewards-panel,
.history-panel {
  margin: 1rem 0;
  padding: 1rem;
}

.reward-card,
.order-card,
.campaign-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(0, 0, 0, 0.22);
}

.cart-overlay,
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
}

.modal-overlay {
  z-index: 60;
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: min(100%, 31rem);
  background: #0f0f0f;
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.cart-drawer.is-open,
.modal-panel.is-open {
  transform: translateX(0);
}

.cart-header,
.cart-footer {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.cart-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.cart-header,
.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.cart-header h2,
.checkout-form h3 {
  margin: 0.25rem 0 0;
}

.icon-button {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  border-radius: 0.65rem;
  background: var(--panel-2);
  font-size: 1.35rem;
  line-height: 1;
}

.cart-items {
  min-height: 0;
  overflow-y: auto;
  padding: 1rem;
}

.empty-cart,
.empty-state {
  display: grid;
  min-height: 9rem;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.cart-line {
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-line:first-child {
  padding-top: 0;
}

.cart-line-title,
.total-row,
.metric-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.cart-line-title strong {
  font-size: 0.98rem;
}

.cart-line-title span,
.total-row strong,
.metric-row strong {
  flex: 0 0 auto;
  color: var(--yellow);
  font-weight: 900;
}

.cart-line small {
  color: var(--muted);
  line-height: 1.4;
}

.checkout-form {
  display: grid;
  gap: 0.8rem;
  max-height: 44svh;
  overflow-y: auto;
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.field,
.checkout-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 800;
}

.field input,
.field textarea,
.field select,
.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--panel-2);
  color: var(--text);
  outline: none;
  padding: 0.85rem;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.checkout-form input:focus,
.checkout-form textarea:focus,
.checkout-form select:focus,
.item-note:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 213, 33, 0.12);
}

.cart-metrics {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.total-row {
  align-items: center;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.total-row strong {
  font-size: 1.45rem;
}

.floating-cart {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.45rem;
  padding: 0 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.48);
}

.floating-cart > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

@media (max-width: 520px) {
  .topbar {
    flex-wrap: wrap;
  }

  .brand {
    flex: 1 1 100%;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .top-actions .ghost-button,
  .top-actions .danger-button,
  .top-actions .cart-chip {
    flex: 1 1 auto;
    min-width: 0;
    padding-inline: 0.58rem;
    font-size: 0.74rem;
  }

  .cart-chip {
    justify-content: center;
  }
}

.modal-panel {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 70;
  display: grid;
  gap: 1rem;
  max-height: min(80svh, 34rem);
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  background: #121212;
  box-shadow: var(--shadow);
  transform: translateY(calc(100% + 2rem));
  transition: transform 220ms ease;
}

.modal-panel.is-open {
  transform: translateY(0);
}

.modal-panel.promo-modal {
  width: min(42rem, calc(100vw - 2rem));
}

.promo-preview {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70svh;
  object-fit: contain;
  border: 1px solid var(--line-strong);
  border-radius: 0.9rem;
  background: #000;
}

.upsell-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(255, 213, 33, 0.08);
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 5.3rem;
  left: 1rem;
  z-index: 90;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 213, 33, 0.35);
  border-radius: 0.85rem;
  background: #181818;
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 213, 33, 0.14), transparent 24rem),
    linear-gradient(180deg, rgba(8, 8, 8, 0.28), var(--bg));
}

.login-card {
  width: min(100%, 34rem);
  padding: 1rem;
  background: rgba(12, 12, 12, 0.9);
  backdrop-filter: blur(14px);
}

.login-card h1 {
  font-size: clamp(2.4rem, 12vw, 4.5rem);
}

.login-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.login-actions button {
  flex: 1 1 11rem;
}

.login-users {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.login-user-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 0.7rem;
  text-align: left;
}

.admin-shell {
  display: grid;
  gap: 1rem;
}

.admin-title h1 {
  font-size: clamp(2.4rem, 10vw, 4.7rem);
}

.kpi-card,
.admin-panel {
  padding: 1rem;
}

.kpi-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.kpi-card strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--yellow);
  font-family: "Anton", Impact, sans-serif;
  font-size: 2rem;
  font-weight: 400;
}

.admin-panel {
  display: grid;
  gap: 1rem;
}

.chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: end;
  min-height: 12rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.22);
}

.bar-wrap {
  display: grid;
  gap: 0.35rem;
  align-items: end;
  min-width: 0;
  height: 10rem;
}

.bar {
  min-height: 0.35rem;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--yellow), var(--yellow-2));
}

.bar-label,
.bar-value {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-order {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.2);
}

.admin-order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.status-select {
  min-height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--panel-2);
  color: var(--text);
  padding: 0 0.7rem;
}

.status-badge {
  width: fit-content;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.top-products {
  display: grid;
  gap: 0.65rem;
}

.top-products li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.18);
}

@media (min-width: 640px) {
  .cart-chip strong,
  .user-pill {
    display: block;
  }

  .brand strong {
    max-width: none;
  }

  .product-grid,
  .rewards-grid,
  .orders-grid,
  .campaign-grid,
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .primary-action,
  .whatsapp-button {
    width: auto;
    min-width: 13rem;
  }

  .hero-actions {
    flex-direction: row;
  }

  .hero-whatsapp {
    min-width: 13rem;
    padding-inline: 1rem;
  }
}

@media (min-width: 920px) {
  .topbar {
    padding-inline: max(2rem, calc((100vw - 1180px) / 2));
  }

  .hero,
  .menu-shell,
  .admin-shell {
    width: min(100% - 4rem, 1180px);
    margin-inline: auto;
  }

  .hero {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    min-height: 70svh;
    padding-top: 4.5rem;
  }

  .hero-art {
    min-height: 30rem;
    justify-items: end;
  }

  .promo-card {
    max-width: min(42vw, 34rem);
  }

  .client-status {
    width: min(100% - 4rem, 1180px);
    margin-inline: auto;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .menu-shell,
  .admin-shell {
    padding-bottom: 4rem;
  }

  .tabs {
    top: 4.25rem;
    margin-inline: 0;
    border: 1px solid var(--line);
    border-radius: 1rem;
  }

  .product-grid,
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-wide {
    grid-column: 1 / -1;
  }

  .floating-cart {
    display: none;
  }

  .modal-panel {
    right: 1.5rem;
    bottom: 1.5rem;
    left: auto;
    width: min(27rem, calc(100vw - 2rem));
  }

  .toast {
    right: 1.5rem;
    bottom: 1.5rem;
    left: auto;
    width: min(24rem, calc(100vw - 2rem));
  }
}

@media (min-width: 1100px) {
  .product-grid,
  .kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .promo-card::after {
    animation: none;
  }
}
