:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #0d1b2e;
  --text: #f8fafc;
  --muted: #a8b3c7;
  --line: rgba(148, 163, 184, .22);
  --blue: #38bdf8;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
}

.visual-rank span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.visual-rank em {
  min-width: 2rem;
  padding: .22rem .35rem;
  border-radius: .65rem;
  background: rgba(14,165,233,.18);
  color: #38bdf8;
  font-style: normal;
  font-size: .72rem;
  font-weight: 900;
  text-align: center;
}

.admin-advanced {
  grid-column: 1 / -1;
  border: 1px solid rgba(148,163,184,.15);
  border-radius: 1rem;
  padding: .8rem;
  background: rgba(2,6,23,.26);
}

.admin-advanced summary {
  cursor: pointer;
  color: #38bdf8;
  font-weight: 900;
}

.admin-form.nested {
  margin-top: .85rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.admin-image-preview {
  grid-column: 1 / -1;
  display: grid;
  gap: .45rem;
  margin: 0;
  padding: .65rem;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 1rem;
  background: rgba(15,23,42,.55);
}

.admin-image-preview img {
  width: 100%;
  max-height: 190px;
  object-fit: contain;
  border-radius: .8rem;
  background: #020617;
}

.admin-image-preview figcaption {
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 800;
}

.admin-vitrine-tabs,
.admin-product-tabs {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  padding: .28rem;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 1rem;
  background: rgba(2,6,23,.34);
  scrollbar-width: none;
}

.admin-vitrine-tabs {
  position: sticky;
  top: 4.35rem;
  z-index: 9;
  margin: .35rem 0 .15rem;
  backdrop-filter: blur(16px);
}

.admin-vitrine-tabs::-webkit-scrollbar,
.admin-product-tabs::-webkit-scrollbar {
  display: none;
}

.admin-vitrine-tabs button,
.admin-product-tabs button {
  flex: 0 0 auto;
  min-height: 2.35rem;
  padding: .55rem .82rem;
  border: 0;
  border-radius: .75rem;
  background: transparent;
  color: #94a3b8;
  font: inherit;
  font-size: .75rem;
  font-weight: 900;
}

.admin-vitrine-tabs button.is-active,
.admin-product-tabs button.is-active {
  color: #f8fafc;
  background: linear-gradient(135deg, rgba(14,165,233,.32), rgba(250,204,21,.18));
  box-shadow: inset 0 0 0 1px rgba(56,189,248,.22);
}

.admin-vitrine-panel,
.admin-product-panel {
  display: none;
}

.admin-vitrine-panel.is-active,
.admin-product-panel.is-active {
  display: block;
}

.admin-product-wizard {
  grid-column: 1 / -1;
  display: grid;
  gap: .85rem;
  padding: .85rem;
  border: 1px solid rgba(56,189,248,.16);
  border-radius: 1.1rem;
  background: rgba(2,6,23,.26);
}

.admin-product-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
}

.admin-product-form-head h3,
.admin-product-panel h4 {
  margin: .15rem 0 .25rem;
  color: #f8fafc;
  letter-spacing: -.035em;
}

.admin-product-status-pill {
  flex: 0 0 auto;
  padding: .35rem .55rem;
  border-radius: 999px;
  background: rgba(34,197,94,.14);
  color: #86efac;
  font-size: .68rem;
  font-weight: 900;
}

.admin-product-panel {
  padding: .8rem;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 1rem;
  background: rgba(15,23,42,.48);
}

.admin-product-panel.is-active {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}

.admin-product-panel h4,
.admin-product-panel > p,
.admin-product-panel .field-wide,
.admin-product-panel .admin-image-preview,
.admin-product-panel .admin-product-hint {
  grid-column: 1 / -1;
}

.admin-product-hint {
  display: grid;
  gap: .25rem;
  padding: .75rem;
  border: 1px dashed rgba(250,204,21,.35);
  border-radius: .95rem;
  background: rgba(250,204,21,.08);
}

.admin-product-hint strong {
  color: #facc15;
}

.admin-product-hint span {
  color: #cbd5e1;
  font-size: .78rem;
  line-height: 1.4;
}

.admin-product-actions {
  position: sticky;
  bottom: calc(4.9rem + env(safe-area-inset-bottom));
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  padding: .65rem;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 1rem;
  background: rgba(2,6,23,.92);
  backdrop-filter: blur(16px);
}

.admin-product-actions .button {
  grid-column: 1 / -1;
}

.admin-product-actions button:disabled {
  opacity: .42;
}

.admin-product-item > summary {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto;
  gap: .7rem;
  align-items: center;
}

.admin-product-thumb {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: .9rem;
  background: rgba(15,23,42,.78);
}

.admin-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-product-thumb b {
  color: #38bdf8;
}

.admin-product-summary {
  min-width: 0;
}

.admin-product-summary strong,
.admin-product-summary span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-product-item summary em {
  color: #38bdf8;
  font-style: normal;
  font-size: .72rem;
  font-weight: 900;
}

.offer-placeholder {
  margin-bottom: .75rem;
}

.contact-profile,
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin: .85rem 0;
}

.contact-profile div,
.policy-grid article,
.policy-grid a,
.policy-grid button {
  padding: .75rem;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: .9rem;
  background: rgba(15,23,42,.62);
}

.contact-profile span,
.policy-grid small,
.contact-event span {
  display: block;
  color: #94a3b8;
  font-size: .72rem;
}

.contact-profile strong,
.policy-grid strong,
.contact-event strong {
  display: block;
  color: #f8fafc;
}

.contact-history {
  display: grid;
  gap: .55rem;
  margin-top: .9rem;
}

.contact-history h3 {
  margin: 0;
  font-size: .95rem;
}

.contact-event {
  padding: .65rem;
  border-radius: .85rem;
  background: rgba(2,6,23,.36);
}

.customer-account-shell {
  padding-bottom: 6.2rem;
}

.account-hero {
  padding: 1.25rem 0 .75rem;
}

.account-hero h1 {
  margin: .25rem 0 .55rem;
  color: #f8fafc;
  font-size: 2rem;
  line-height: .95;
  letter-spacing: -.05em;
}

.account-lookup {
  margin-bottom: .85rem;
}

.account-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .45rem;
  margin: .2rem 0 .85rem;
  padding: .28rem;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 1rem;
  background: rgba(2,6,23,.36);
}

.account-tabs a {
  display: grid;
  place-items: center;
  min-height: 2.6rem;
  border-radius: .78rem;
  color: #94a3b8;
  font-weight: 800;
}

.account-tabs a.is-active {
  background: linear-gradient(135deg, rgba(14,165,233,.28), rgba(250,204,21,.18));
  color: #f8fafc;
}

.account-profile h2,
.account-address h2,
.account-policy h2,
.account-empty h2 {
  margin: 0 0 .45rem;
}

.account-list {
  display: grid;
  gap: .6rem;
}

.account-row {
  display: grid;
  gap: .18rem;
  padding: .75rem;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: .9rem;
  background: rgba(15,23,42,.62);
}

.account-row strong {
  color: #f8fafc;
}

.account-row span {
  color: #cbd5e1;
}

.account-row small {
  color: #94a3b8;
}

.account-actions .policy-grid a,
.account-actions .policy-grid button {
  min-height: 5.3rem;
  text-align: left;
}

.account-hero p {
  max-width: 24rem;
  margin: 0;
  color: #dbeafe;
}

.account-login-card,
.account-profile-card,
.account-address-card,
.account-preferences-card,
.account-current-order {
  margin-top: .85rem;
}

.account-login-card {
  display: grid;
  gap: .75rem;
}

.account-login-card h2,
.account-current-order h2,
.account-profile-card h2,
.account-address-card h2,
.account-preferences-card h2 {
  margin: .15rem 0 .1rem;
  color: #f8fafc;
  line-height: 1;
}

.account-login-card p,
.account-address-card p,
.account-address-card small {
  margin: 0;
  color: #cbd5e1;
}

.account-connected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin: .9rem 0;
  padding: .78rem .85rem;
  border: 1px solid rgba(56,189,248,.23);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(14,165,233,.18), rgba(15,23,42,.82));
  box-shadow: 0 16px 38px rgba(2,6,23,.22);
}

.account-connected div {
  display: grid;
  gap: .12rem;
  min-width: 0;
}

.account-connected span,
.account-connected small {
  color: #93c5fd;
  font-size: .76rem;
}

.account-connected strong {
  color: #f8fafc;
  font-size: 1.05rem;
}

.account-connected button,
.account-policy-compact button {
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 999px;
  background: rgba(2,6,23,.55);
  color: #e0f2fe;
  font: inherit;
  font-size: .76rem;
  font-weight: 800;
  padding: .5rem .7rem;
}

.account-order-card {
  display: grid;
  gap: .7rem;
  padding: .85rem;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 1rem;
  background: rgba(2,6,23,.42);
}

.account-order-card.is-featured {
  border-color: rgba(14,165,233,.34);
  background: radial-gradient(circle at top right, rgba(14,165,233,.22), transparent 46%), rgba(2,6,23,.48);
}

.account-order-card header,
.account-order-card footer,
.account-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.account-order-card header div {
  display: grid;
  gap: .18rem;
  min-width: 0;
}

.account-order-card header span,
.account-section-head small {
  color: #93c5fd;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.account-order-card header strong {
  color: #f8fafc;
  font-size: 1rem;
}

.account-order-card header em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: .34rem .55rem;
  background: rgba(34,197,94,.16);
  color: #86efac;
  font-size: .7rem;
  font-style: normal;
  font-weight: 900;
}

.account-order-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
}

.account-order-meta small,
.account-data-list div {
  display: grid;
  gap: .18rem;
  min-width: 0;
  padding: .58rem .62rem;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: .78rem;
  background: rgba(15,23,42,.56);
  color: #94a3b8;
}

.account-order-meta b,
.account-data-list strong {
  overflow: hidden;
  color: #f8fafc;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-order-delivery {
  margin: 0;
  padding: .68rem .72rem;
  border: 1px solid rgba(250,204,21,.16);
  border-radius: .85rem;
  background: rgba(250,204,21,.08);
  color: #fde68a;
  font-size: .84rem;
}

.account-order-card footer a,
.account-actions-row a,
.account-interest-strip a,
.account-help-card a {
  color: inherit;
  text-decoration: none;
}

.account-order-card footer {
  align-items: stretch;
}

.account-order-card footer a {
  display: grid;
  place-items: center;
  min-height: 2.45rem;
  padding: .55rem .72rem;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: .85rem;
  color: #bae6fd;
  font-size: .82rem;
  font-weight: 900;
}

.account-order-card footer .whatsapp-mini,
.account-help-card a {
  border-color: rgba(34,197,94,.35);
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}

.account-section-head {
  margin-bottom: .65rem;
}

.account-section-head h2 {
  margin: 0;
  color: #f8fafc;
}

.account-help-card {
  display: grid;
  gap: .28rem;
  margin-top: .85rem;
  padding: .9rem;
  border: 1px solid rgba(34,197,94,.22);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(15,23,42,.78));
}

.account-help-card span {
  color: #86efac;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.account-help-card strong {
  color: #f8fafc;
}

.account-help-card a {
  margin-top: .35rem;
  padding: .72rem;
  border-radius: .9rem;
  text-align: center;
  font-weight: 900;
}

.account-data-list {
  display: grid;
  gap: .55rem;
  margin: .75rem 0;
}

.account-data-list span {
  color: #93c5fd;
  font-size: .72rem;
  font-weight: 800;
}

.account-actions-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-top: .85rem;
}

.account-actions-row a {
  display: grid;
  gap: .18rem;
  padding: .82rem;
  border: 1px solid rgba(14,165,233,.2);
  border-radius: 1rem;
  background: rgba(15,23,42,.68);
}

.account-actions-row strong {
  color: #f8fafc;
  font-size: .9rem;
}

.account-actions-row small {
  color: #94a3b8;
  font-size: .72rem;
}

.account-policy-compact {
  margin-top: .85rem;
}

.account-policy-compact details {
  border-top: 1px solid rgba(148,163,184,.12);
  padding: .68rem 0;
}

.account-policy-compact summary {
  cursor: pointer;
  color: #f8fafc;
  font-weight: 800;
}

.account-policy-compact p {
  margin: .45rem 0 0;
  color: #cbd5e1;
}

.account-policy-compact button {
  width: 100%;
  margin-top: .45rem;
}

.account-interest-strip {
  display: grid;
  gap: .45rem;
  margin-top: .85rem;
  padding-top: .8rem;
  border-top: 1px solid rgba(148,163,184,.12);
}

.account-interest-strip strong {
  color: #f8fafc;
}

.account-interest-strip a {
  padding: .58rem .62rem;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: .75rem;
  color: #bae6fd;
  background: rgba(15,23,42,.6);
  font-size: .84rem;
}

@media (max-width: 430px) {
  .account-order-meta,
  .account-actions-row {
    grid-template-columns: 1fr;
  }

  .account-order-card header,
  .account-order-card footer,
  .account-connected {
    align-items: stretch;
    flex-direction: column;
  }
}

.policy-grid button {
  border: 1px solid rgba(148,163,184,.14);
  border-radius: .9rem;
  background: rgba(15,23,42,.62);
  color: inherit;
  font: inherit;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, rgba(56,189,248,.16), transparent 32rem), linear-gradient(180deg, #07111f 0%, #0a1424 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  backdrop-filter: blur(18px);
  background: rgba(7,17,31,.82);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: .9rem;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: white;
  font-weight: 900;
}
.brand small { display: block; color: var(--muted); margin-top: .05rem; }
.topbar-pill {
  border: 1px solid var(--line);
  color: var(--blue);
  border-radius: 999px;
  padding: .45rem .7rem;
  font-size: .78rem;
}
.shell { width: min(1120px, 100%); margin: 0 auto; padding: 1rem; }
.hero { padding: 2rem 0 1.2rem; }
.eyebrow {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .76rem;
  font-weight: 800;
  margin: 0 0 .6rem;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 10vw, 4.8rem); line-height: .92; letter-spacing: -.06em; margin-bottom: 1rem; }
h2 { font-size: 1.35rem; }
.hero p, .card p, .product-info p, .footer { color: var(--muted); line-height: 1.55; }
.filters {
  display: grid;
  gap: .75rem;
  padding: .85rem;
  background: rgba(13,27,46,.82);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
}
.field { display: grid; gap: .35rem; }
.field span { color: var(--muted); font-size: .78rem; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: .95rem;
  background: #07111f;
  color: var(--text);
  padding: .82rem .9rem;
  font: inherit;
}
textarea {
  min-height: 5.8rem;
  resize: vertical;
  line-height: 1.45;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  border: 0;
  border-radius: .95rem;
  padding: .75rem 1rem;
  color: #03111f;
  background: var(--blue);
  font-weight: 850;
  cursor: pointer;
}
.button-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.button-disabled { opacity: .62; cursor: not-allowed; }
.button-wide { width: 100%; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin: 1.5rem 0 .8rem; }
.grid { display: grid; gap: 1rem; }
.card, .empty, .panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(16,35,59,.92), rgba(13,27,46,.92));
}
.empty, .panel { padding: 1rem; }
.media, .product-media {
  min-height: 13rem;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(56,189,248,.23), transparent 12rem), linear-gradient(135deg, #0f2744, #08111f);
}
.media span, .product-media span { font-size: 4.5rem; filter: drop-shadow(0 18px 28px rgba(0,0,0,.38)); }
.card-body { padding: 1rem; display: grid; gap: .65rem; }
.badges, .detail-badges, .chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.badges span, .detail-badges span, .chips span, .status {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .55rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
}
.price { display: block; font-size: 1.25rem; color: var(--text); }
.note { color: var(--amber); }
.muted { color: var(--muted); }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .3rem; }
.status-disponivel { color: var(--green); }
.status-sob_consulta, .status-reservado { color: var(--amber); }
.status-indisponivel { color: var(--red); }
.back { display: inline-block; color: var(--blue); margin: 1rem 0; }
.product-hero { display: grid; gap: 1rem; }
.product-media { border-radius: 1.6rem; min-height: 18rem; border: 1px solid var(--line); }
.product-info { display: grid; gap: .9rem; }
.price-box {
  display: grid;
  gap: .35rem;
  padding: 1rem;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  background: rgba(56,189,248,.08);
}
.price-box strong { font-size: 1.7rem; }
.price-box small, .price-box span { color: var(--muted); }
.price-box em { color: var(--amber); font-style: normal; line-height: 1.4; }
.product-page { display: grid; gap: 1rem; }
.delivery-list { display: grid; gap: .75rem; }
.delivery-list article {
  display: grid;
  gap: .2rem;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(7,17,31,.48);
}
.delivery-list span, .delivery-list small { color: var(--muted); }
.cta-panel { margin-bottom: 1rem; }
.footer { padding: 2rem 1rem; text-align: center; font-size: .85rem; }
.lead-form { display: grid; gap: .85rem; }
.check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  color: var(--muted);
  line-height: 1.45;
  font-size: .92rem;
}
.check input { width: auto; margin-top: .2rem; }
.message-preview {
  width: 100%;
  min-height: 13rem;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  background: #07111f;
  color: var(--text);
  font: inherit;
  line-height: 1.45;
}
.admin-form {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(7,17,31,.36);
}
.admin-list { display: grid; gap: .8rem; }
.admin-item {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: .75rem;
  background: rgba(7,17,31,.36);
}
.admin-item summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}
.admin-item summary span { color: var(--muted); }
.inline-form {
  display: grid;
  gap: .6rem;
  margin-top: .8rem;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.kpi, .rank-row {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: .85rem;
  background: rgba(7,17,31,.36);
}
.kpi span, .rank-row span { color: var(--muted); display: block; }
.kpi strong { display: block; font-size: 1.45rem; margin-top: .25rem; }
.rank-row { display: flex; justify-content: space-between; gap: 1rem; }
@media (min-width: 720px) {
  .shell { padding: 1.5rem; }
  .filters { grid-template-columns: 2fr repeat(4, 1fr) auto auto; align-items: end; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .product-hero { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .hero { padding-top: 4rem; }
  .admin-form { grid-template-columns: repeat(2, 1fr); }
  .admin-form .button, .admin-form .check { grid-column: span 2; }
  .inline-form { grid-template-columns: 1fr 2fr auto; }
  .kpi-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.modelo1-body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% -10%, rgba(0, 145, 255, .22), transparent 17rem),
    radial-gradient(circle at 8% 12%, rgba(250, 204, 21, .08), transparent 11rem),
    linear-gradient(180deg, #050b12 0%, #07111f 58%, #050910 100%);
}

.app-shell {
  width: min(430px, 100%);
  margin: 0 auto;
  padding: env(safe-area-inset-top) 1rem calc(5.8rem + env(safe-area-inset-bottom));
}

.app-topbar,
.detail-topbar {
  display: grid;
  grid-template-columns: 3.25rem 1fr 3.25rem;
  align-items: center;
  min-height: 5.35rem;
}

.topbar-spacer { display: block; }

.public-drawer {
  position: relative;
  justify-self: start;
}

.public-drawer > summary {
  display: grid;
  gap: .28rem;
  place-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid rgba(56,189,248,.22);
  border-radius: 1rem;
  background: rgba(15,23,42,.86);
  box-shadow: 0 16px 34px rgba(0,0,0,.28);
  cursor: pointer;
  list-style: none;
}

.public-drawer > summary::-webkit-details-marker {
  display: none;
}

.public-drawer > summary span {
  display: block;
  width: 1.12rem;
  height: 2px;
  border-radius: 999px;
  background: #e2e8f0;
}

.public-drawer[open]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(2,6,23,.7);
  backdrop-filter: blur(5px);
}

.public-drawer[open] > summary {
  position: relative;
  z-index: 50;
}

.public-drawer-panel {
  position: fixed;
  z-index: 40;
  inset: .7rem auto calc(5.55rem + env(safe-area-inset-bottom)) .7rem;
  width: min(330px, calc(100vw - 1.4rem));
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(56,189,248,.25);
  border-radius: 1.35rem;
  background: #050b12;
  box-shadow: 0 24px 70px rgba(0,0,0,.74);
}

.public-drawer-head {
  display: grid;
  gap: .35rem;
  justify-items: start;
}

.public-drawer-head img {
  width: min(10rem, 60vw);
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(14,165,233,.25));
}

.public-drawer-head small,
.public-drawer-nav small,
.public-drawer-foot {
  color: #94a3b8;
}

.public-drawer-nav {
  display: grid;
  align-content: start;
  gap: .55rem;
}

.public-drawer-nav a {
  display: grid;
  grid-template-columns: 2.35rem 1fr;
  align-items: center;
  gap: .15rem .6rem;
  min-height: 3.3rem;
  padding: .55rem .65rem;
  border: 1px solid rgba(148,163,184,.13);
  border-radius: 1rem;
  background: #0f172a;
  color: #f8fafc;
}

.public-drawer-nav a span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: .75rem;
  background: rgba(14,165,233,.13);
}

.public-drawer-nav b {
  align-self: end;
}

.public-drawer-nav small {
  align-self: start;
  font-size: .74rem;
}

.public-drawer-foot {
  display: grid;
  gap: .45rem;
  padding: .8rem;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 1rem;
  background: rgba(15,23,42,.78);
}

.public-drawer-foot strong {
  color: #f8fafc;
}

.public-drawer-foot a {
  color: #7dd3fc;
  font-size: .82rem;
}

.brand-logo {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo img {
  display: block;
  width: min(11rem, 58vw);
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 145, 255, .28));
}

.cart-button,
.detail-topbar a,
.detail-topbar button {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.95rem;
  height: 2.95rem;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 999px;
  background: rgba(15, 23, 42, .74);
  color: #f8fafc;
}

.cart-button span {
  font-size: 1.3rem;
}

.detail-topbar button {
  border: 1px solid rgba(148, 163, 184, .16);
  font: inherit;
}

.cart-button em {
  position: absolute;
  top: -.25rem;
  right: -.25rem;
  min-width: 1.2rem;
  height: 1.2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #facc15;
  color: #03111f;
  font-size: .72rem;
  font-style: normal;
  font-weight: 900;
}

.search-pill {
  display: grid;
  grid-template-columns: 1fr 2.8rem;
  align-items: center;
  min-height: 3.35rem;
  border-radius: 1.45rem;
  border: 1px solid rgba(148, 163, 184, .13);
  background: linear-gradient(180deg, rgba(15, 23, 42, .96), rgba(15, 23, 42, .78));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}

.search-pill input {
  border: 0;
  background: transparent;
  min-height: 3.35rem;
  color: #e5edf8;
}

.search-pill button {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1.7rem;
  cursor: pointer;
}

.category-rail {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  padding: .9rem .05rem 1rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.category-rail::-webkit-scrollbar { display: none; }

.category-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2.45rem;
  padding: .55rem .85rem;
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
  color: #f8fafc;
  font-size: .86rem;
  scroll-snap-align: start;
}

.category-chip.is-active,
.category-chip:hover {
  border-color: rgba(56, 189, 248, .74);
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: white;
}

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

.categories-hero {
  margin-top: .35rem;
}

.category-card-grid {
  display: grid;
  gap: .8rem;
}

.category-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: .18rem .75rem;
  align-items: center;
  min-height: 5.25rem;
  padding: .95rem;
  border: 1px solid rgba(56,189,248,.24);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 92% 20%, rgba(250,204,21,.2), transparent 4.2rem),
    linear-gradient(135deg, rgba(15,23,42,.96), rgba(2,6,23,.88));
  color: #f8fafc;
  box-shadow: 0 16px 34px rgba(0,0,0,.25);
}

.category-card > span {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 1rem;
  background: rgba(14,165,233,.13);
  font-size: 1.25rem;
}

.category-card strong {
  font-size: 1.02rem;
}

.category-card small {
  color: #cbd5e1;
  font-size: .78rem;
  line-height: 1.35;
}

.category-card em {
  grid-column: 2 / 4;
  color: #38bdf8;
  font-size: .78rem;
  font-style: normal;
  font-weight: 850;
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 10.6rem;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: .5rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(14, 165, 233, .38);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 86% 18%, rgba(14,165,233,.42), transparent 6rem),
    linear-gradient(135deg, rgba(15, 23, 42, .98), rgba(7, 17, 31, .88));
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -1.5rem -2.7rem auto;
  width: 8.5rem;
  height: 8.5rem;
  background: radial-gradient(circle, rgba(250,204,21,.38), transparent 4.6rem);
  transform: rotate(-18deg);
}

.hero-card h1 {
  font-size: clamp(1.32rem, 7vw, 2.02rem);
  line-height: .94;
  letter-spacing: -.045em;
  margin-bottom: .45rem;
}

.hero-card h1::first-line,
.hero-card h1 {
  color: #f8fafc;
}

.hero-card p {
  margin-bottom: .45rem;
  color: #cbd5e1;
  font-size: .8rem;
  line-height: 1.35;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .28rem;
  color: #f8fafc;
  font-size: .74rem;
}

.hero-card li { color: #e5edf8; }

.hero-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 8.8rem;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.38));
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: .38rem;
  padding: .75rem 0 .35rem;
}

.carousel-dots span {
  width: .46rem;
  height: .46rem;
  border-radius: 999px;
  background: #64748b;
}

.carousel-dots span.is-active {
  background: #0ea5e9;
  box-shadow: 0 0 0 .18rem rgba(14, 165, 233, .18);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.1rem 0 .75rem;
}

.section-title h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -.01em;
}

.section-title a {
  color: #38bdf8;
  font-size: .78rem;
}

.product-grid.compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.m1-product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 1.05rem;
  background: linear-gradient(180deg, rgba(15,23,42,.96), rgba(7,17,31,.9));
  box-shadow: 0 14px 35px rgba(0,0,0,.2);
}

.m1-product-link {
  position: relative;
  display: grid;
  gap: .28rem;
  padding: .68rem;
}

.m1-product-card img {
  width: 100%;
  height: 8.6rem;
  object-fit: contain;
  border-radius: .8rem;
  background: radial-gradient(circle, rgba(56,189,248,.16), transparent 5rem);
}

.mini-badge {
  justify-self: start;
  border-radius: 999px;
  padding: .22rem .45rem;
  background: rgba(14,165,233,.13);
  color: #7dd3fc;
  font-size: .66rem;
  font-weight: 800;
}

.m1-product-card h3 {
  min-height: 2.25rem;
  margin: .18rem 0 0;
  font-size: .9rem;
  line-height: 1.18;
}

.m1-product-card small {
  color: #94a3b8;
  font-size: .68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m1-product-card strong {
  margin-top: .3rem;
  color: #f8fafc;
  font-size: 1.02rem;
}

.m1-product-card em {
  color: #38bdf8;
  font-size: .76rem;
  font-style: normal;
}

.detail-topbar {
  min-height: 4.65rem;
  grid-template-columns: 2.7rem 1fr 2.7rem;
  text-align: center;
}

.detail-topbar strong {
  font-size: .96rem;
}

.product-gallery {
  position: relative;
  min-height: 19.2rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 1.4rem;
  background: linear-gradient(145deg, rgba(15,23,42,.98), rgba(17,24,39,.84));
}

.product-gallery img {
  width: 82%;
  max-height: 17.5rem;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(0,0,0,.42));
}

.warranty-badge {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 1;
  max-width: 5.2rem;
  padding: .45rem .55rem;
  border: 1px solid rgba(250, 204, 21, .62);
  border-radius: .65rem;
  background: rgba(250,204,21,.12);
  color: #fde68a;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
}

.product-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: .55rem;
}

.product-title-row h1 {
  margin: 0;
  font-size: 1.36rem;
  letter-spacing: -.035em;
}

.product-title-row span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .5rem;
  margin: .9rem 0;
}

.spec-grid article {
  min-width: 0;
  display: grid;
  gap: .15rem;
  justify-items: center;
  padding: .72rem .38rem;
  border: 1px solid rgba(148,163,184,.15);
  border-radius: .82rem;
  background: rgba(15,23,42,.72);
  text-align: center;
}

.spec-grid strong {
  font-size: .66rem;
}

.spec-grid small {
  max-width: 100%;
  color: #94a3b8;
  font-size: .62rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.price-options article {
  display: grid;
  gap: .25rem;
  padding: .85rem;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: .92rem;
  background: rgba(15,23,42,.78);
}

.price-options small,
.price-options em {
  color: #94a3b8;
  font-style: normal;
  font-size: .72rem;
}

.price-options strong {
  font-size: 1.15rem;
}

.boleto-note {
  margin: .75rem 0 0;
  color: #facc15;
  font-size: .82rem;
  line-height: 1.4;
}

.delivery-card {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: .65rem;
  align-items: center;
  margin: .85rem 0;
  padding: .82rem;
  border: 1px solid rgba(14,165,233,.25);
  border-radius: .95rem;
  background: rgba(14,165,233,.08);
}

.delivery-card small {
  display: block;
  color: #94a3b8;
  font-size: .75rem;
}

.delivery-card em {
  border-radius: 999px;
  padding: .25rem .48rem;
  background: #0ea5e9;
  color: white;
  font-size: .64rem;
  font-style: normal;
  font-weight: 900;
}

.whatsapp-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 3.12rem;
  border-radius: .95rem;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(22,163,74,.22);
}

.trust-message {
  margin: .7rem 0 0;
  color: #94a3b8;
  text-align: center;
  font-size: .82rem;
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: max(.65rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(398px, calc(100% - 1.2rem));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .25rem;
  padding: .45rem .35rem;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 1.25rem;
  background: rgba(3, 7, 18, .9);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0,0,0,.44);
}

.bottom-nav a {
  display: grid;
  gap: .12rem;
  place-items: center;
  min-height: 3.1rem;
  color: #94a3b8;
  font-size: .68rem;
}

.bottom-nav span {
  font-size: 1.16rem;
}

.bottom-nav a.is-active {
  color: #38bdf8;
}

.ht-customer-dialog {
  width: min(390px, calc(100% - 1.4rem));
  padding: 0;
  border: 1px solid rgba(56,189,248,.28);
  border-radius: 1.45rem;
  background: linear-gradient(180deg, rgba(15,23,42,.98), rgba(2,6,23,.98));
  color: #f8fafc;
  box-shadow: 0 30px 90px rgba(0,0,0,.64);
}

.ht-customer-dialog::backdrop {
  background: rgba(2,6,23,.72);
  backdrop-filter: blur(7px);
}

.ht-dialog-close-form {
  position: absolute;
  top: .65rem;
  right: .65rem;
  z-index: 2;
}

.ht-dialog-close-form button {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 999px;
  background: rgba(15,23,42,.9);
  color: #e2e8f0;
  font-size: 1.25rem;
}

.ht-customer-dialog-card {
  display: grid;
  gap: .8rem;
  padding: 1.25rem;
}

.ht-customer-dialog-card h2 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -.045em;
}

.ht-customer-dialog-card p,
.ht-customer-dialog-card small {
  margin: 0;
  color: #94a3b8;
  line-height: 1.45;
}

.ht-customer-dialog-card form {
  display: grid;
  gap: .75rem;
}

.checkout-head,
.checkout-hero {
  padding: 1.35rem 0 .7rem;
  text-align: center;
}

.checkout-head h1,
.checkout-hero h1 {
  margin-bottom: .35rem;
  font-size: 1.55rem;
  letter-spacing: -.035em;
}

.checkout-head p,
.checkout-hero p {
  color: #facc15;
  font-size: .92rem;
}

.prefill-note {
  margin: -.2rem 0 .85rem;
  padding: .72rem .8rem;
  border: 1px solid rgba(56,189,248,.22);
  border-radius: .85rem;
  background: rgba(14,165,233,.1);
  color: #bae6fd;
  font-size: .78rem;
}

.checkout-subtitle {
  display: grid;
  gap: .2rem;
  margin: 1rem 0 .65rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(148,163,184,.12);
}

.checkout-subtitle strong {
  color: #f8fafc;
}

.checkout-subtitle small,
.field-hint {
  color: #94a3b8;
  font-size: .76rem;
  line-height: 1.35;
}

.field-hint[data-tone="loading"] {
  color: #facc15;
}

.field-hint[data-tone="success"] {
  color: #86efac;
}

.field-hint[data-tone="warning"],
.field-hint[data-tone="error"] {
  color: #fca5a5;
}

.checkout-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  margin: .85rem 0 1.4rem;
}

.checkout-steps::before {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  top: 1.26rem;
  height: 1px;
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
}

.checkout-steps article {
  position: relative;
  display: grid;
  gap: .35rem;
  justify-items: center;
  color: #cbd5e1;
  text-align: center;
  font-size: .66rem;
}

.checkout-steps span {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.52rem;
  height: 2.52rem;
  border-radius: 999px;
  background: #0ea5e9;
  box-shadow: 0 0 0 .35rem rgba(14,165,233,.12);
}

.checkout-steps article.is-done span {
  background: #22c55e;
}

.checkout-steps article.is-active {
  color: #f8fafc;
}

.checkout-steps article.is-active span {
  box-shadow: 0 0 0 .42rem rgba(14,165,233,.18), 0 0 22px rgba(14,165,233,.36);
}

.checkout-steps article:last-child span {
  background: #22c55e;
}

.checkout-panel {
  display: grid;
  gap: .85rem;
  padding: 1rem;
  border: 1px solid rgba(148,163,184,.15);
  border-radius: 1.15rem;
  background: rgba(15,23,42,.75);
}

.compact-panel {
  padding: .95rem;
}

.payment-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  margin-bottom: .7rem;
}

.payment-title h2 {
  margin: 0;
}

.payment-title span {
  border-radius: 999px;
  padding: .22rem .48rem;
  background: #0ea5e9;
  color: white;
  font-size: .64rem;
  font-weight: 900;
}

.checkout-panel h2 {
  margin: .2rem 0;
  font-size: 1rem;
}

.checkout-grid,
.field-row {
  display: grid;
  gap: .7rem;
}

.payment-grid,
.payment-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
}

.payment-card {
  position: relative;
  display: grid;
  gap: .45rem;
  min-height: 4.6rem;
  padding: .82rem .9rem;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: .9rem;
  background: rgba(3,7,18,.38);
}

.payment-card input {
  position: absolute;
  inset: .5rem .5rem auto auto;
  width: auto;
}

.payment-card strong {
  display: block;
  margin-bottom: .22rem;
  font-size: .86rem;
}

.payment-card span,
.payment-card small {
  display: block;
  color: #94a3b8;
  font-size: .72rem;
  line-height: 1.25;
}

.payment-card:has(input:checked) {
  border-color: #0ea5e9;
  box-shadow: inset 0 0 0 1px rgba(14,165,233,.3);
}

.delivery-warning,
.delivery-validation {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: .65rem;
  align-items: center;
  padding: .8rem;
  border-radius: .9rem;
  background: rgba(250,204,21,.08);
  color: #cbd5e1;
  font-size: .8rem;
  line-height: 1.35;
}

.checkout-delivery-summary {
  margin-top: .8rem;
}

.checkout-delivery-summary strong {
  color: #f8fafc;
}

.checkout-delivery-summary.warning {
  background: rgba(248,113,113,.08);
  border: 1px solid rgba(248,113,113,.18);
}

.auth-shell {
  width: min(420px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.auth-card {
  width: 100%;
  padding: 1.25rem;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(15,23,42,.96), rgba(7,17,31,.9));
}

.admin-dashboard h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

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

@media (max-width: 360px) {
  .app-shell { padding-left: .75rem; padding-right: .75rem; }
  .product-grid.compact-grid { gap: .55rem; }
  .m1-product-card img { height: 7.4rem; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payment-grid { grid-template-columns: 1fr; }
}

.ht-admin-body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% -8%, rgba(14,165,233,.22), transparent 18rem),
    radial-gradient(circle at 92% 12%, rgba(250,204,21,.10), transparent 14rem),
    linear-gradient(180deg, #050b12 0%, #07111f 100%);
}

.ht-admin-app {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 14px 12px calc(5.8rem + env(safe-area-inset-bottom));
}

.ht-admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 2.8rem 1fr auto;
  gap: .7rem;
  align-items: center;
  min-height: 4.2rem;
  padding: .55rem 0;
  background: linear-gradient(180deg, rgba(5,11,18,.96), rgba(5,11,18,.74));
  backdrop-filter: blur(18px);
}

.ht-admin-brand {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  min-width: 0;
}

.ht-admin-brand-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 1rem;
  background: rgba(14,165,233,.10);
  border: 1px solid rgba(56,189,248,.22);
  overflow: hidden;
}

.ht-admin-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ht-admin-brand small {
  display: block;
  color: #7dd3fc;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
}

.ht-admin-brand strong {
  display: block;
  color: #f8fafc;
  font-size: 1.1rem;
  line-height: 1.05;
  letter-spacing: -.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ht-admin-store-pill,
.ht-admin-secondary,
.ht-admin-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 999px;
  padding: .45rem .78rem;
  background: rgba(15,23,42,.72);
  color: #38bdf8;
  font-size: .78rem;
  font-weight: 850;
}

.ht-admin-drawer {
  position: relative;
}

.ht-admin-drawer > summary {
  display: grid;
  gap: .28rem;
  place-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 1rem;
  background: rgba(15,23,42,.78);
  cursor: pointer;
  list-style: none;
}

.ht-admin-drawer > summary::-webkit-details-marker {
  display: none;
}

.ht-admin-drawer > summary span {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: #e2e8f0;
}

.ht-admin-drawer[open]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(2,6,23,.68);
  backdrop-filter: blur(4px);
}

.ht-admin-drawer[open] > summary {
  position: relative;
  z-index: 50;
}

.ht-admin-drawer-panel {
  position: fixed;
  z-index: 40;
  inset: .7rem auto calc(5.5rem + env(safe-area-inset-bottom)) .7rem;
  width: min(330px, calc(100vw - 1.4rem));
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 1.35rem;
  background: #050b12;
  box-shadow: 0 24px 70px rgba(0,0,0,.72);
}

.ht-admin-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ht-admin-drawer-nav {
  display: grid;
  align-content: start;
  gap: .55rem;
}

.ht-admin-drawer-nav a {
  display: grid;
  grid-template-columns: 2.35rem 1fr;
  align-items: center;
  min-height: 3.1rem;
  padding: .45rem .55rem;
  border: 1px solid rgba(148,163,184,.13);
  border-radius: 1rem;
  background: #0f172a;
  color: #f8fafc;
  font-weight: 780;
}

.ht-admin-drawer-nav a span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: .75rem;
  background: rgba(14,165,233,.12);
}

.ht-admin-drawer-nav a.active {
  border-color: rgba(14,165,233,.55);
  background: rgba(14,165,233,.14);
  color: #7dd3fc;
}

.ht-admin-drawer-status {
  display: grid;
  gap: .15rem;
  padding: .75rem;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 1rem;
  background: rgba(250,204,21,.08);
}

.ht-admin-drawer-status span,
.ht-admin-drawer-status small {
  color: #94a3b8;
  font-size: .78rem;
}

.ht-admin-tabs {
  position: sticky;
  top: 4.2rem;
  z-index: 22;
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .4rem .05rem .85rem;
  background: linear-gradient(180deg, rgba(5,11,18,.92), rgba(5,11,18,.7));
  scrollbar-width: none;
}

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

.ht-admin-tabs a {
  flex: 0 0 auto;
  min-height: 2.3rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 999px;
  padding: .45rem .78rem;
  background: rgba(15,23,42,.72);
  color: #94a3b8;
  font-size: .78rem;
  font-weight: 850;
}

.ht-admin-tabs a.active {
  border-color: rgba(56,189,248,.65);
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: white;
}

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

.ht-admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: .9rem 0 .15rem;
}

.ht-admin-panel-head.compact {
  align-items: center;
  padding: 0 0 .75rem;
}

.ht-admin-panel-head h1 {
  margin-bottom: .35rem;
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: .95;
}

.ht-admin-panel-head h2,
.ht-admin-panel-head h3,
.ht-admin-panel-head h4 {
  margin: 0;
}

.ht-admin-card,
.ht-admin-note {
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 1.25rem;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(15,23,42,.90), rgba(7,17,31,.78));
  box-shadow: 0 16px 42px rgba(0,0,0,.20);
}

.ht-admin-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.ht-admin-metrics article {
  min-width: 0;
  padding: .85rem;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 1rem;
  background: rgba(15,23,42,.72);
}

.ht-admin-metrics span {
  display: block;
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 800;
}

.ht-admin-metrics strong {
  display: block;
  margin-top: .25rem;
  color: #f8fafc;
  font-size: 1.35rem;
  letter-spacing: -.03em;
}

.ht-admin-report-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ht-admin-list-card {
  margin-bottom: .7rem;
  background: rgba(2,6,23,.28);
}

.ht-admin-report-filters {
  display: grid;
  gap: .7rem;
  padding: .85rem;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 1rem;
  background: rgba(15,23,42,.72);
}

.ht-admin-report-filters label {
  display: grid;
  gap: .35rem;
  color: #94a3b8;
  font-size: .78rem;
  font-weight: 800;
}

.ht-report-chart {
  display: grid;
  gap: .65rem;
}

.ht-report-bar {
  display: grid;
  grid-template-columns: minmax(5rem, .9fr) 1.4fr auto;
  gap: .55rem;
  align-items: center;
  min-width: 0;
}

.ht-report-bar span {
  color: #cbd5e1;
  font-size: .75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ht-report-bar i {
  display: block;
  height: .58rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
  min-width: .5rem;
}

.ht-report-bar strong {
  font-size: .8rem;
}

.ht-admin-bottom-nav {
  position: fixed;
  z-index: 32;
  left: 50%;
  bottom: max(.45rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(520px, calc(100% - 1rem));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .25rem;
  padding: .38rem;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 1.25rem;
  background: rgba(3,7,18,.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0,0,0,.42);
}

.ht-admin-bottom-nav a {
  display: grid;
  place-items: center;
  gap: .08rem;
  min-height: 3.25rem;
  border-radius: .95rem;
  color: #94a3b8;
}

.ht-admin-bottom-nav span {
  font-size: 1.05rem;
}

.ht-admin-bottom-nav small {
  font-size: .62rem;
  font-weight: 780;
}

.ht-admin-bottom-nav a.active {
  background: rgba(14,165,233,.14);
  color: #38bdf8;
}

.ht-admin-footer {
  padding: 1.2rem 0 0;
  color: #64748b;
  text-align: center;
  font-size: .75rem;
}

@media (min-width: 720px) {
  .ht-admin-app {
    padding: 18px 18px 2.5rem;
  }

  .ht-admin-bottom-nav {
    display: none;
  }

  .ht-admin-topbar {
    grid-template-columns: 3rem 1fr auto;
  }

  .ht-admin-metrics,
  .ht-admin-report-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ht-admin-report-filters {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }
}
