:root {
  --ink: #111315;
  --ink-2: #1f2528;
  --paper: #f7f2e8;
  --paper-2: #fffaf0;
  --muted: #667477;
  --line: rgba(17, 19, 21, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
  --teal: #1aa6a2;
  --coral: #f05d5e;
  --gold: #d7a83f;
  --blue: #4b7bec;
  --smoke: #8c9a9e;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(17, 19, 21, 0.16);
  --radius: 8px;
  --plate-color: #101214;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  min-width: 320px;
}

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

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

img,
svg {
  display: block;
}

.site-header {
  position: fixed;
  z-index: 40;
  top: 14px;
  left: 50%;
  width: min(1180px, calc(100% - 28px));
  min-height: 76px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(17, 19, 21, 0.72);
  color: var(--white);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.brand {
  display: inline-grid;
  grid-template-columns: 44px auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo-brand {
  display: inline-flex;
  align-items: center;
  min-width: 92px;
  max-width: 176px;
}

.logo-brand img {
  width: auto;
  height: 64px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.34));
}

.admin-logo-brand {
  max-width: 164px;
}

.admin-logo-brand img {
  height: 62px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--coral), var(--gold));
  color: var(--ink);
  font-weight: 900;
  font-size: 1.4rem;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  outline: 0;
}

.header-actions,
.hero-actions,
.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.cart-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  position: relative;
}

.icon-button:hover,
.cart-button:hover,
.icon-button:focus-visible,
.cart-button:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: 0;
}

.cart-button span {
  position: absolute;
  right: -5px;
  top: -5px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.button.primary {
  border-color: transparent;
  background: var(--ink);
  color: var(--white);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.button.compact {
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.button.full {
  width: 100%;
}

.hero {
  position: relative;
  min-height: min(780px, 86vh);
  display: grid;
  align-items: end;
  padding: 118px max(24px, calc((100vw - 1180px) / 2)) 28px;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/images/seven3d-hero-products.webp") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 10, 12, 0.88) 0%, rgba(8, 10, 12, 0.58) 44%, rgba(8, 10, 12, 0.18) 100%),
    linear-gradient(0deg, rgba(8, 10, 12, 0.75) 0%, transparent 42%);
}

.hero-content {
  width: min(720px, 100%);
  padding-bottom: 78px;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 13vw, 10rem);
  line-height: 0.84;
  letter-spacing: 0;
}

.hero-copy {
  width: min(560px, 100%);
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.hero-actions {
  margin-top: 28px;
}

.hero-panel {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 28px;
  width: min(440px, calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.hero-panel div {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px;
  background: rgba(17, 19, 21, 0.34);
}

.hero-panel strong {
  font-size: 1.6rem;
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
}

.category-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -32px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.category-chip {
  min-height: 92px;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.94);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 14px 40px rgba(17, 19, 21, 0.08);
}

.category-chip:hover,
.category-chip.is-active {
  border-color: rgba(26, 166, 162, 0.52);
  transform: translateY(-2px);
}

.chip-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--ink);
}

.chip-icon.mint {
  background: rgba(26, 166, 162, 0.18);
}

.chip-icon.coral {
  background: rgba(240, 93, 94, 0.18);
}

.chip-icon.gold {
  background: rgba(215, 168, 63, 0.2);
}

.chip-icon.blue {
  background: rgba(75, 123, 236, 0.16);
}

.chip-icon.smoke {
  background: rgba(140, 154, 158, 0.2);
}

.category-chip strong,
.category-chip small {
  display: block;
}

.category-chip small {
  margin-top: 4px;
  color: var(--muted);
}

.catalog-section,
.studio-section,
.custom-section {
  width: min(1180px, calc(100% - 32px));
  margin: 76px auto 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2,
.custom-copy h2,
.admin-topbar h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0;
}

.catalog-tools {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-field {
  height: 44px;
  min-width: min(360px, 44vw);
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--muted);
}

.search-field input,
.option-board input,
.option-board select,
.editor-card input,
.editor-card select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

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

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: 0 14px 38px rgba(17, 19, 21, 0.08);
}

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

.product-media {
  aspect-ratio: 1.06 / 1;
  background-image: url("/assets/images/seven3d-product-grid.webp");
  background-size: 400% 200%;
  background-repeat: no-repeat;
}

.product-a {
  background-position: 0% 0%;
}

.product-b {
  background-position: 33.33% 0%;
}

.product-c {
  background-position: 66.66% 0%;
}

.product-d {
  background-position: 100% 0%;
}

.product-e {
  background-position: 0% 100%;
}

.product-f {
  background-position: 33.33% 100%;
}

.product-g {
  background-position: 66.66% 100%;
}

.product-h {
  background-position: 100% 100%;
}

.product-info {
  padding: 16px;
}

.product-meta,
.product-buy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.product-meta {
  color: var(--muted);
  font-size: 0.78rem;
}

.product-meta strong {
  color: var(--coral);
  font-size: 0.72rem;
}

.product-card h3 {
  min-height: 52px;
  margin: 12px 0 8px;
  font-size: 1.08rem;
  line-height: 1.18;
}

.product-card p {
  min-height: 44px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.product-buy {
  margin-top: 16px;
}

.product-buy span {
  font-size: 1.15rem;
  font-weight: 900;
}

.product-buy .icon-button {
  background: var(--ink);
  color: var(--white);
}

.custom-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(26, 166, 162, 0.14), transparent 36%),
    linear-gradient(315deg, rgba(240, 93, 94, 0.12), transparent 34%),
    var(--paper-2);
  border: 1px solid var(--line);
}

.custom-preview {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  perspective: 900px;
}

.plate-shadow {
  position: absolute;
  width: 70%;
  height: 40px;
  bottom: 62px;
  border-radius: 50%;
  background: rgba(17, 19, 21, 0.18);
  filter: blur(12px);
}

.plate {
  width: min(420px, 100%);
  aspect-ratio: 1.75 / 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), transparent),
    var(--plate-color);
  color: var(--white);
  box-shadow:
    inset -10px -12px 24px rgba(0, 0, 0, 0.18),
    inset 7px 8px 18px rgba(255, 255, 255, 0.12),
    var(--shadow);
  transform: rotateX(10deg) rotateZ(-3deg);
}

.plate span {
  max-width: 92%;
  overflow-wrap: anywhere;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 950;
  line-height: 0.95;
}

.plate small {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
}

.custom-copy {
  min-width: 0;
}

.custom-copy p:not(.eyebrow),
.workflow p {
  color: var(--muted);
}

.option-board {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.option-board label,
.option-board > div,
.editor-card label {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.option-board label span,
.option-board > div > span,
.editor-card label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.swatches {
  display: flex;
  gap: 8px;
}

.swatch {
  width: 32px;
  height: 32px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 1px var(--line);
}

.swatch.is-active {
  box-shadow: 0 0 0 3px rgba(26, 166, 162, 0.34);
}

.option-board .button {
  grid-column: 1 / -1;
}

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

.workflow article {
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.workflow svg {
  width: 36px;
  height: 36px;
  color: var(--teal);
}

.workflow h3 {
  margin: 8px 0 0;
  font-size: 1.25rem;
}

.workflow p {
  margin: 0;
  line-height: 1.55;
}

.cart-drawer {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  width: min(410px, 100%);
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 20px;
  background: var(--paper-2);
  box-shadow: -24px 0 80px rgba(17, 19, 21, 0.24);
  transform: translateX(106%);
  transition: transform 180ms ease;
}

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

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.25rem;
}

.cart-header .icon-button,
.cart-empty .icon-button {
  background: var(--ink);
  color: var(--white);
}

.cart-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--muted);
  text-align: center;
}

.cart-empty svg {
  width: 48px;
  height: 48px;
}

.cart-lines {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
}

.cart-line {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.cart-line span {
  color: var(--muted);
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 70px auto 28px;
  padding-top: 22px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer span:first-child,
.site-footer a {
  color: var(--ink);
  font-weight: 900;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-socials a,
.footer-socials span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.footer-socials span {
  color: var(--muted);
}

.admin-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: #eef1ed;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  align-content: start;
  gap: 28px;
  padding: 18px;
  background: var(--ink);
  color: var(--white);
}

.admin-sidebar nav {
  display: grid;
  gap: 6px;
}

.admin-sidebar nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.72);
}

.admin-sidebar nav a small {
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(26, 166, 162, 0.14);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
  font-weight: 800;
}

.admin-sidebar nav a.is-planned {
  color: rgba(255, 255, 255, 0.82);
}

.admin-sidebar nav a.is-active,
.admin-sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.admin-main {
  min-width: 0;
  padding: 24px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

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

.admin-kpis article,
.admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: 0 12px 32px rgba(17, 19, 21, 0.08);
}

.admin-kpis article {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.admin-kpis span,
.admin-kpis small {
  color: var(--muted);
}

.admin-kpis strong {
  font-size: 2rem;
  line-height: 1;
}

.admin-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 14px;
  align-items: start;
}

.admin-card {
  min-width: 0;
  padding: 18px;
}

.orders-card,
.product-list-card {
  grid-column: span 1;
}

.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.card-heading h2 {
  margin: 0;
  font-size: 1.2rem;
}

.admin-card .icon-button {
  background: var(--ink);
  color: var(--white);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(26, 166, 162, 0.14);
  color: #087a76;
  font-weight: 800;
}

.editor-card {
  display: grid;
  gap: 12px;
}

.mini-products {
  display: grid;
  gap: 12px;
}

.mini-products > div {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 10px;
  align-items: center;
}

.mini-products strong,
.mini-products small {
  grid-column: 2;
}

.mini-products small {
  color: var(--muted);
}

.mini-thumb {
  grid-row: span 2;
  width: 62px;
  height: 62px;
  border-radius: var(--radius);
  background-image: url("/assets/images/seven3d-product-grid.webp");
  background-size: 400% 200%;
  border: 1px solid var(--line);
}

.payment-bars {
  display: grid;
  gap: 14px;
}

.payment-bars span {
  position: relative;
  min-height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e4e9e5;
}

.payment-bars span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  background: rgba(26, 166, 162, 0.22);
}

.payment-bars strong,
.payment-bars em {
  position: relative;
  z-index: 1;
  font-style: normal;
}

.product-list-card .product-a {
  background-position: 0% 0%;
}

.product-list-card .product-b {
  background-position: 66.66% 0%;
}

.product-list-card .product-c {
  background-position: 0% 100%;
}

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

.production-summary article {
  min-height: 116px;
  display: grid;
  gap: 7px;
  align-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: 0 12px 32px rgba(17, 19, 21, 0.08);
}

.production-summary span,
.production-summary small {
  color: var(--muted);
}

.production-summary strong {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1;
}

.production-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}

.production-board {
  display: grid;
  gap: 14px;
}

.live-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(26, 166, 162, 0.12);
  color: #087a76;
  font-size: 0.78rem;
  font-weight: 900;
}

.production-list {
  display: grid;
  gap: 12px;
}

.production-order {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.production-order-main {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: start;
}

.queue-number {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
  font-weight: 900;
}

.order-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.order-title-row strong {
  font-size: 0.9rem;
  color: var(--muted);
}

.production-order h3 {
  margin: 4px 0 3px;
  font-size: 1.15rem;
}

.production-order p {
  margin: 0;
  color: var(--muted);
}

.priority {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.priority-alta {
  background: rgba(240, 93, 94, 0.14);
  color: #b63238;
}

.priority-normal {
  background: rgba(26, 166, 162, 0.13);
  color: #087a76;
}

.priority-baixa {
  background: rgba(75, 123, 236, 0.13);
  color: #315ab8;
}

.production-progress,
.tracking-progress {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #e4e9e5;
}

.production-progress span,
.tracking-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.production-controls {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.8fr;
  gap: 10px;
}

.production-controls label,
.production-note {
  display: grid;
  gap: 7px;
}

.production-controls span,
.production-note span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.production-controls select,
.production-controls input,
.production-note textarea,
.tracking-search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
}

.production-note textarea {
  min-height: 70px;
  padding: 10px 12px;
  resize: vertical;
}

.production-controls select:focus,
.production-controls input:focus,
.production-note textarea:focus,
.tracking-search input:focus {
  outline: 3px solid rgba(26, 166, 162, 0.18);
  border-color: var(--teal);
}

.production-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.production-actions .icon-button {
  background: #eef1ed;
  color: var(--ink);
}

.production-updated {
  color: var(--muted);
}

.production-help {
  position: sticky;
  top: 18px;
}

.production-help p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.status-reference {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: status-step;
}

.status-reference li {
  counter-increment: status-step;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 8px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--line);
}

.status-reference li::before {
  content: counter(status-step);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(26, 166, 162, 0.12);
  color: #087a76;
  font-size: 0.72rem;
  font-weight: 900;
}

.status-reference span {
  font-weight: 800;
}

.status-reference strong {
  color: var(--muted);
  font-size: 0.8rem;
}

.production-loading,
.production-error {
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.production-error {
  color: #b63238;
  background: rgba(240, 93, 94, 0.08);
  border-color: rgba(240, 93, 94, 0.28);
}

.tracking-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(26, 166, 162, 0.1), rgba(75, 123, 236, 0.08)),
    #f8faf8;
  color: var(--ink);
}

.tracking-header {
  width: min(1120px, calc(100% - 32px));
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 12px 0;
}

.tracking-header img {
  width: 148px;
  height: auto;
}

.tracking-header a:last-child {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--line);
  font-weight: 900;
}

.tracking-shell {
  width: min(1120px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) 1fr;
  gap: 22px;
  align-items: start;
  margin: 30px auto 60px;
}

.tracking-hero {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.tracking-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 0.95;
}

.tracking-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}

.tracking-search {
  display: grid;
  gap: 10px;
}

.tracking-search .shop-button {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.tracking-search .shop-button:hover,
.tracking-search .shop-button:focus-visible {
  background: #087a76;
}

.tracking-search input {
  border-color: rgba(255, 255, 255, 0.18);
}

.tracking-card {
  display: grid;
  gap: 20px;
  min-height: 440px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 20px 58px rgba(17, 19, 21, 0.1);
}

.tracking-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.tracking-card-head h2 {
  margin: 6px 0 4px;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.tracking-card-head p {
  margin: 0;
  color: var(--muted);
}

.tracking-card-head > strong {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(26, 166, 162, 0.12);
  color: #087a76;
  font-size: 1.45rem;
}

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

.tracking-meta div {
  min-height: 82px;
  display: grid;
  gap: 5px;
  align-content: center;
  padding: 12px;
  border-radius: var(--radius);
  background: #f4f7f5;
  border: 1px solid var(--line);
}

.tracking-meta span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tracking-steps {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tracking-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  min-height: 40px;
  color: var(--muted);
}

.tracking-steps li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: -2px;
  width: 2px;
  background: #dce3df;
}

.tracking-steps li:last-child::before {
  display: none;
}

.tracking-steps li span {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: #dce3df;
  border: 5px solid #ffffff;
  box-shadow: 0 0 0 1px #dce3df;
}

.tracking-steps li.done,
.tracking-steps li.active {
  color: var(--ink);
}

.tracking-steps li.done span,
.tracking-steps li.active span {
  background: var(--teal);
  box-shadow: 0 0 0 1px var(--teal);
}

.tracking-steps li.active strong {
  color: #087a76;
}

.tracking-note {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.tracking-note p,
.tracking-note small {
  margin: 0;
  color: var(--muted);
}

.tracking-history h3 {
  margin: 0 0 10px;
}

.tracking-history ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tracking-history li {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: var(--radius);
  background: #f4f7f5;
}

.tracking-history span,
.tracking-history p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .hero-panel {
    left: 24px;
    right: 24px;
    width: auto;
  }

  .category-strip,
  .product-grid,
  .workflow,
  .admin-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .admin-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-tools {
    width: 100%;
  }

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

  .custom-section,
  .admin-grid,
  .admin-page {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

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

@media (max-width: 640px) {
  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    min-height: 62px;
  }

  .brand {
    grid-template-columns: 38px auto;
  }

  .logo-brand {
    display: inline-flex;
    max-width: 112px;
  }

  .logo-brand img {
    height: 54px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand small {
    display: none;
  }

  .social-header {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .icon-button,
  .cart-button {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: 760px;
    padding: 94px 16px 22px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 22vw, 6rem);
  }

  .hero-content {
    padding-bottom: 228px;
  }

  .hero-actions,
  .catalog-tools,
  .admin-actions {
    flex-wrap: wrap;
  }

  .hero-actions .button {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 12px;
  }

  .button {
    width: 100%;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    left: 16px;
    right: 16px;
    bottom: 18px;
  }

  .hero-panel div {
    min-height: 58px;
    grid-template-columns: 76px 1fr;
    align-items: center;
  }

  .category-strip,
  .product-grid,
  .workflow,
  .admin-kpis,
  .option-board,
  .admin-sidebar nav {
    grid-template-columns: 1fr;
  }

  .catalog-section,
  .studio-section,
  .custom-section {
    width: calc(100% - 24px);
    margin-top: 50px;
  }

  .category-strip {
    width: calc(100% - 24px);
  }

  .custom-section {
    padding: 18px;
  }

  .custom-preview {
    min-height: 280px;
  }

  .site-footer {
    flex-direction: column;
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-main {
    padding: 14px;
  }
}

/* Storefront v2: catalog-first ecommerce layout */
.shop-page {
  --shop-teal: #0a63d8;
  --shop-teal-dark: #06449f;
  --shop-blue: #0a63d8;
  --shop-ink: #161b24;
  --shop-muted: #66707c;
  --shop-line: #dfe6ef;
  --shop-soft: #f6f8fb;
  --shop-warm: #f2f5f9;
  background: #ffffff;
  color: var(--shop-ink);
}

.shop-page .cart-drawer {
  background: #ffffff;
}

.shop-topbar {
  min-height: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 7px 18px;
  background: #111722;
  box-shadow: inset 0 -1px 0 rgba(10, 99, 216, 0.35);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
}

.shop-topbar span,
.shop-topbar a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.shop-topbar svg {
  color: #8bbcff;
}

.shop-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 86px;
  display: grid;
  grid-template-columns: 180px minmax(280px, 620px) auto;
  align-items: center;
  gap: 22px;
  padding: 14px max(18px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--shop-line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.shop-logo {
  display: inline-flex;
  align-items: center;
  width: 168px;
  min-width: 0;
}

.shop-logo img {
  width: 138px;
  height: auto;
  object-fit: contain;
}

.shop-search {
  height: 46px;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--shop-line);
  border-radius: var(--radius);
  background: var(--shop-soft);
  color: var(--shop-muted);
}

.shop-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--shop-ink);
}

.shop-header-actions {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 8px;
}

.shop-mini-action,
.shop-cart-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--shop-line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--shop-ink);
  position: relative;
}

.shop-mini-action:hover,
.shop-cart-button:hover {
  border-color: rgba(10, 99, 216, 0.45);
  color: var(--shop-teal-dark);
}

.shop-cart-button span {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--shop-blue);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
}

.shop-menu {
  min-height: 48px;
  display: flex;
  justify-content: center;
  gap: 26px;
  padding: 0 18px;
  border-bottom: 1px solid var(--shop-line);
  background: #ffffff;
}

.shop-menu a {
  display: inline-flex;
  align-items: center;
  color: #3f484d;
  font-size: 0.94rem;
  font-weight: 800;
}

.shop-menu a:hover {
  color: var(--shop-teal-dark);
}

.shop-hero {
  position: relative;
  min-height: 430px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.shop-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/images/seven3d-shop-banner.webp") center / cover no-repeat;
}

.shop-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 12, 20, 0.92) 0%, rgba(10, 30, 60, 0.78) 42%, rgba(10, 99, 216, 0.18) 74%, rgba(255, 255, 255, 0.04) 100%),
    linear-gradient(0deg, rgba(5, 8, 13, 0.22), transparent);
}

.shop-hero-content {
  width: min(560px, calc(100% - 32px));
  margin-left: max(16px, calc((100vw - 1180px) / 2));
  color: #ffffff;
}

.shop-pill,
.shop-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--shop-teal-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.shop-pill.dark {
  background: rgba(10, 99, 216, 0.1);
  color: var(--shop-teal-dark);
}

.shop-hero h1 {
  margin: 16px 0 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.shop-hero p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.6;
}

.shop-hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.shop-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--shop-line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--shop-ink);
  font-weight: 950;
  white-space: nowrap;
}

.shop-button.primary {
  border-color: var(--shop-teal);
  background: var(--shop-teal);
  color: #ffffff;
}

.shop-button.primary:hover {
  background: var(--shop-teal-dark);
}

.shop-button.light {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.92);
  color: var(--shop-teal-dark);
}

.shop-button.full {
  width: 100%;
}

.shop-categories,
.shop-catalog,
.gift-section,
.factory-section,
.idea-banner {
  width: min(1180px, calc(100% - 32px));
  margin: 58px auto 0;
}

.shop-section-title {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.shop-section-title.center {
  text-align: center;
  justify-items: center;
}

.shop-section-title h2,
.idea-banner h2,
.factory-copy h2 {
  margin: 0;
  color: var(--shop-ink);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.shop-section-title p,
.idea-banner p,
.factory-copy p {
  margin: 0;
  color: var(--shop-muted);
  line-height: 1.55;
}

.round-category-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.round-category {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  color: var(--shop-ink);
  text-align: center;
}

.round-category-photo {
  width: min(138px, 100%);
  aspect-ratio: 1;
  border: 4px solid #dce7f5;
  border-radius: 50%;
  background-image: url("/assets/images/seven3d-catalog-realistic.webp");
  background-size: 400% 200%;
  background-repeat: no-repeat;
  box-shadow: 0 12px 34px rgba(17, 23, 34, 0.11);
}

.round-category:hover .round-category-photo,
.round-category.is-active .round-category-photo {
  border-color: var(--shop-teal);
  transform: translateY(-2px);
}

.round-category strong {
  font-size: 0.96rem;
}

.round-category small {
  color: var(--shop-teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cat-a,
.catalog-a {
  background-position: 0% 0%;
}

.cat-b,
.catalog-b {
  background-position: 33.33% 0%;
}

.cat-c,
.catalog-c {
  background-position: 66.66% 0%;
}

.cat-d,
.catalog-d {
  background-position: 100% 0%;
}

.cat-e,
.catalog-e {
  background-position: 0% 100%;
}

.cat-f,
.catalog-f {
  background-position: 33.33% 100%;
}

.catalog-g {
  background-position: 66.66% 100%;
}

.catalog-h {
  background-position: 100% 100%;
}

.idea-banner {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 0.9fr);
  align-items: center;
  gap: 28px;
  padding: 28px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(10, 99, 216, 0.09), transparent 48%),
    var(--shop-soft);
  border: 1px solid var(--shop-line);
}

.idea-banner h2 {
  margin-top: 10px;
}

.quick-budget {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 10px;
}

.quick-budget label {
  display: grid;
  gap: 7px;
  color: var(--shop-muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.quick-budget input {
  height: 44px;
  min-width: 0;
  border: 1px solid var(--shop-line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #ffffff;
  color: var(--shop-ink);
}

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

.gift-card {
  min-height: 178px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--shop-line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(32, 36, 42, 0.07);
}

.gift-card svg {
  color: var(--shop-teal);
}

.gift-card h3 {
  margin: 4px 0 0;
  font-size: 1.25rem;
}

.gift-card p {
  margin: 0;
  color: var(--shop-muted);
  line-height: 1.5;
}

.gift-card a {
  width: fit-content;
  margin-top: 4px;
  color: var(--shop-teal-dark);
  font-weight: 950;
}

.shop-filter-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.filter-pill {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--shop-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--shop-muted);
  font-weight: 900;
}

.filter-pill.is-active,
.filter-pill:hover {
  border-color: var(--shop-teal);
  background: var(--shop-teal);
  color: #ffffff;
}

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

.shop-product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--shop-line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(32, 36, 42, 0.08);
}

.shop-product-card[hidden] {
  display: none;
}

.shop-product-photo {
  position: relative;
  aspect-ratio: 1 / 0.84;
  background-image: url("/assets/images/seven3d-catalog-realistic.webp");
  background-size: 400% 200%;
  background-repeat: no-repeat;
}

.shop-product-photo span {
  position: absolute;
  left: 10px;
  top: 10px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--shop-teal);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 950;
}

.shop-product-data {
  display: grid;
  gap: 9px;
  padding: 15px;
}

.shop-product-data small {
  color: var(--shop-teal-dark);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.shop-product-data h3 {
  min-height: 46px;
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.22;
}

.shop-product-data p {
  min-height: 42px;
  margin: 0;
  color: var(--shop-muted);
  line-height: 1.45;
}

.shop-price {
  display: grid;
  gap: 2px;
  margin-top: 2px;
}

.shop-price span,
.shop-price em {
  color: var(--shop-muted);
  font-size: 0.78rem;
  font-style: normal;
}

.shop-price strong {
  color: var(--shop-ink);
  font-size: 1.35rem;
  line-height: 1;
}

.product-action {
  width: 100%;
  margin-top: 4px;
  border-color: var(--shop-teal);
  background: var(--shop-teal);
  color: #ffffff;
}

.factory-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) 1fr;
  gap: 34px;
  align-items: center;
}

.factory-media {
  min-height: 360px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.04)),
    url("/assets/images/seven3d-shop-banner.webp") center / cover no-repeat;
}

.factory-media span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--shop-teal);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.factory-copy ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 22px;
  list-style: none;
}

.factory-copy li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--shop-ink);
  font-weight: 800;
}

.factory-copy li svg {
  color: var(--shop-teal);
}

.shop-footer {
  margin-top: 70px;
  padding: 38px max(18px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 30px;
  border-top: 1px solid var(--shop-line);
  background: #ffffff;
}

.shop-footer img {
  width: 136px;
  height: auto;
}

.shop-footer p {
  max-width: 380px;
  color: var(--shop-muted);
  line-height: 1.5;
}

.shop-footer > div {
  display: grid;
  align-content: start;
  gap: 9px;
}

.shop-footer strong {
  color: var(--shop-ink);
}

.shop-footer a,
.shop-footer span {
  color: var(--shop-muted);
}

@media (max-width: 980px) {
  .shop-topbar {
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .shop-header {
    grid-template-columns: auto 1fr auto;
  }

  .shop-search {
    min-width: 0;
  }

  .round-category-list,
  .shop-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .idea-banner,
  .factory-section {
    grid-template-columns: 1fr;
  }

  .quick-budget {
    grid-template-columns: 1fr 1fr;
  }

  .quick-budget .shop-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .shop-topbar {
    justify-content: flex-start;
    padding-inline: 12px;
  }

  .shop-topbar span:nth-child(2) {
    display: none;
  }

  .shop-header {
    min-height: 74px;
    grid-template-columns: 112px 1fr;
    gap: 10px;
    padding: 10px 12px;
  }

  .shop-logo {
    width: 108px;
  }

  .shop-logo img {
    width: 104px;
  }

  .shop-search {
    display: none;
  }

  .shop-header-actions {
    gap: 6px;
  }

  .shop-header-actions .shop-mini-action:first-child {
    display: none;
  }

  .shop-menu {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding: 0 12px;
  }

  .shop-menu a {
    white-space: nowrap;
  }

  .shop-hero {
    min-height: 520px;
  }

  .shop-hero::before {
    background: linear-gradient(90deg, rgba(8, 12, 20, 0.95), rgba(10, 30, 60, 0.76), rgba(10, 99, 216, 0.28));
  }

  .shop-hero-content {
    width: calc(100% - 24px);
    margin-left: 12px;
  }

  .shop-hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.3rem);
  }

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

  .shop-hero-actions .shop-button {
    width: 100%;
  }

  .shop-categories,
  .shop-catalog,
  .gift-section,
  .factory-section,
  .idea-banner {
    width: calc(100% - 24px);
    margin-top: 42px;
  }

  .round-category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
  }

  .round-category-photo {
    width: 118px;
  }

  .quick-budget,
  .shop-product-grid,
  .shop-footer {
    grid-template-columns: 1fr;
  }

  .idea-banner {
    padding: 18px;
  }

  .factory-media {
    min-height: 260px;
  }
}

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

  .production-layout,
  .tracking-shell {
    grid-template-columns: 1fr;
  }

  .production-help,
  .tracking-hero {
    position: static;
  }

  .tracking-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-sidebar {
    gap: 14px;
    padding: 14px;
  }

  .admin-logo-brand {
    max-width: 130px;
  }

  .admin-logo-brand img {
    height: 52px;
  }

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

  .admin-sidebar nav a {
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.9rem;
  }

  .admin-sidebar nav a small {
    display: none;
  }

  .production-summary,
  .production-controls,
  .tracking-meta {
    grid-template-columns: 1fr;
  }

  .production-order {
    padding: 12px;
  }

  .production-order-main {
    grid-template-columns: 44px 1fr;
  }

  .queue-number {
    min-height: 38px;
    font-size: 0.9rem;
  }

  .production-actions .button {
    width: 100%;
  }

  .production-actions .icon-button {
    flex: 1 1 0;
  }

  .tracking-header {
    width: calc(100vw - 72px);
    max-width: calc(100vw - 72px);
    align-items: center;
    overflow: hidden;
    padding-right: 28px;
  }

  .tracking-header img {
    width: 118px;
  }

  .tracking-header a:last-child {
    display: none;
  }

  .tracking-shell {
    width: calc(100vw - 72px);
    max-width: calc(100vw - 72px);
    margin-top: 16px;
  }

  .tracking-hero,
  .tracking-card {
    padding: 16px 40px 16px 16px;
    min-width: 0;
    overflow: hidden;
  }

  .tracking-hero .shop-pill {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .tracking-hero h1 {
    font-size: 2rem;
    line-height: 1.05;
    overflow-wrap: break-word;
  }

  .tracking-hero p,
  .tracking-meta strong,
  .tracking-note p,
  .tracking-history p {
    overflow-wrap: anywhere;
  }

  .tracking-search,
  .tracking-search input,
  .tracking-search .shop-button {
    min-width: 0;
  }

  .tracking-card-head {
    display: grid;
  }

  .tracking-card-head > strong {
    width: 70px;
    height: 70px;
    font-size: 1.2rem;
  }
}

.tracking-page .tracking-search .shop-button.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.tracking-page .tracking-search .shop-button.primary:hover,
.tracking-page .tracking-search .shop-button.primary:focus-visible {
  background: #087a76;
}

/* Admin polish pass */
.admin-topbar {
  min-height: 150px;
}

.admin-topbar h1 {
  max-width: none;
  font-size: clamp(2.35rem, 3.8vw, 3.45rem);
  overflow-wrap: break-word;
}

.orders-card table {
  min-width: 0;
}

.orders-card th,
.orders-card td {
  white-space: normal;
}

.orders-card th:nth-child(1),
.orders-card td:nth-child(1) {
  width: 86px;
}

.orders-card th:nth-child(4),
.orders-card td:nth-child(4) {
  width: 132px;
}

.orders-card th:nth-child(5),
.orders-card td:nth-child(5) {
  width: 104px;
}

@media (max-width: 640px) {
  .admin-topbar h1 {
    font-size: clamp(2rem, 9.2vw, 2.35rem);
    overflow-wrap: anywhere;
  }

  .admin-topbar h1 span {
    display: block;
  }

  .admin-subtitle {
    overflow-wrap: anywhere;
  }

  .admin-main {
    padding-right: 24px;
  }
}

/* Admin premium shell */
.admin-page {
  --admin-bg: #edf2ef;
  --admin-panel: #fffdf8;
  --admin-panel-2: #f7fbfa;
  --admin-ink: #101417;
  --admin-soft: #647174;
  --admin-line: rgba(16, 20, 23, 0.1);
  --admin-shadow: 0 22px 70px rgba(16, 20, 23, 0.14);
  --admin-shadow-soft: 0 14px 34px rgba(16, 20, 23, 0.09);
  grid-template-columns: 284px minmax(0, 1fr);
  background:
    linear-gradient(135deg, rgba(26, 166, 162, 0.1), transparent 34%),
    linear-gradient(315deg, rgba(75, 123, 236, 0.08), transparent 38%),
    var(--admin-bg);
  color: var(--admin-ink);
}

.admin-sidebar {
  position: sticky;
  overflow: hidden;
  gap: 30px;
  padding: 22px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, #13191d 0%, #0b0f12 100%),
    #0b0f12;
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.2);
}

.admin-sidebar::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 180px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(26, 166, 162, 0.16), transparent);
}

.admin-sidebar > * {
  position: relative;
  z-index: 1;
}

.admin-logo-brand {
  width: 100%;
  max-width: 176px;
  padding: 8px 8px 16px;
}

.admin-logo-brand img {
  height: 72px;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.42));
}

.admin-sidebar nav {
  gap: 8px;
}

.admin-sidebar nav a {
  position: relative;
  min-height: 50px;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.72);
  font-weight: 780;
}

.admin-sidebar nav a svg {
  width: 21px;
  height: 21px;
  color: rgba(255, 255, 255, 0.74);
}

.admin-sidebar nav a.is-active,
.admin-sidebar nav a:hover,
.admin-sidebar nav a:focus-visible {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(26, 166, 162, 0.2), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.06);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px rgba(0, 0, 0, 0.18);
  outline: 0;
}

.admin-sidebar nav a.is-active::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 999px;
  background: var(--teal);
}

.admin-sidebar nav a.is-active svg,
.admin-sidebar nav a:hover svg {
  color: #ffffff;
}

.admin-sidebar nav a small {
  background: rgba(26, 166, 162, 0.18);
  color: #9ff0eb;
}

.admin-main {
  padding: 28px 32px 42px;
}

.admin-topbar {
  position: relative;
  min-height: 178px;
  align-items: center;
  padding: 26px 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(17, 19, 21, 0.98), rgba(19, 31, 34, 0.96) 58%, rgba(16, 47, 65, 0.94)),
    #111315;
  color: #ffffff;
  box-shadow: var(--admin-shadow);
  overflow: hidden;
}

.admin-topbar::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--coral), var(--gold));
}

.admin-topbar > * {
  position: relative;
  z-index: 1;
}

.admin-topbar .eyebrow {
  color: #7be0dc;
}

.admin-topbar h1 {
  max-width: 780px;
  margin: 6px 0 0;
  color: #ffffff;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.admin-subtitle {
  max-width: 620px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.admin-actions .button {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.admin-actions .button.primary {
  border-color: transparent;
  background: #ffffff;
  color: var(--admin-ink);
}

.admin-kpis {
  gap: 14px;
  margin-top: 16px;
}

.admin-kpis article,
.admin-card,
.production-summary article {
  border: 1px solid rgba(16, 20, 23, 0.09);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--admin-shadow-soft);
}

.admin-kpis article {
  position: relative;
  min-height: 154px;
  display: grid;
  gap: 10px;
  align-content: space-between;
  padding: 20px;
  overflow: hidden;
}

.admin-kpis article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--kpi-color, var(--teal));
}

.admin-kpi-top,
.admin-kpi-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-kpi-top span {
  color: var(--admin-soft);
  font-weight: 850;
}

.admin-kpi-top svg {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--kpi-color, var(--teal)) 14%, white);
  color: var(--kpi-color, var(--teal));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kpi-color, var(--teal)) 18%, transparent);
}

.admin-kpi strong {
  color: var(--admin-ink);
  font-size: clamp(2rem, 3vw, 2.85rem);
  letter-spacing: 0;
}

.admin-kpi-foot small {
  color: var(--admin-soft);
}

.admin-kpi-foot em {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--kpi-color, var(--teal)) 14%, white);
  color: color-mix(in srgb, var(--kpi-color, var(--teal)) 80%, black);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
}

.kpi-teal {
  --kpi-color: var(--teal);
}

.kpi-blue {
  --kpi-color: var(--blue);
}

.kpi-coral {
  --kpi-color: var(--coral);
}

.kpi-gold {
  --kpi-color: var(--gold);
}

.admin-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.admin-card {
  position: relative;
  padding: 20px;
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.9);
}

.orders-card {
  grid-column: span 8;
}

.editor-card {
  grid-column: span 4;
}

.product-list-card,
.payment-card {
  grid-column: span 6;
}

.card-heading {
  margin-bottom: 18px;
}

.card-heading h2 {
  font-size: 1.18rem;
}

.admin-card .icon-button {
  width: 44px;
  height: 44px;
  background: #111315;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(17, 19, 21, 0.2);
}

.admin-card .icon-button:hover,
.admin-card .icon-button:focus-visible {
  background: #233036;
}

.table-wrap {
  border: 1px solid var(--admin-line);
  border-radius: var(--radius);
  background: #ffffff;
}

table {
  min-width: 760px;
}

th {
  padding: 16px 14px;
  background: #f6f8f7;
  color: #5d6a6d;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}

td {
  padding: 17px 14px;
}

tbody tr {
  transition: background 160ms ease, transform 160ms ease;
}

tbody tr:hover {
  background: #f7fbfa;
}

.status {
  min-height: 30px;
  padding: 0 11px;
  gap: 6px;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-paid {
  background: rgba(26, 166, 162, 0.14);
  color: #087a76;
}

.status-production {
  background: rgba(75, 123, 236, 0.14);
  color: #315ab8;
}

.status-pending {
  background: rgba(215, 168, 63, 0.18);
  color: #8a6314;
}

.editor-card label {
  display: grid;
  gap: 8px;
}

.editor-card label span {
  color: var(--admin-soft);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.editor-card input,
.editor-card select {
  min-height: 52px;
  border: 1px solid var(--admin-line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 0 14px;
  color: var(--admin-ink);
  box-shadow: inset 0 1px 0 rgba(16, 20, 23, 0.03);
}

.editor-card input:focus,
.editor-card select:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(26, 166, 162, 0.18);
}

.editor-card .button.primary {
  min-height: 54px;
  margin-top: 2px;
  box-shadow: 0 16px 30px rgba(17, 19, 21, 0.18);
}

.mini-products {
  gap: 14px;
}

.mini-products > div {
  min-height: 86px;
  grid-template-columns: 74px 1fr;
  padding: 10px;
  border: 1px solid var(--admin-line);
  border-radius: var(--radius);
  background: #ffffff;
}

.mini-thumb {
  width: 74px;
  height: 66px;
  box-shadow: 0 12px 28px rgba(16, 20, 23, 0.12);
}

.payment-bars {
  gap: 12px;
}

.payment-bars span {
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  padding: 0 14px;
  background: #eef2f0;
}

.payment-bars span::before {
  background: linear-gradient(90deg, rgba(26, 166, 162, 0.34), rgba(75, 123, 236, 0.2));
}

.payment-bars svg {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  color: #087a76;
}

.production-summary {
  gap: 14px;
  margin-top: 16px;
}

.production-summary article {
  min-height: 142px;
  padding: 20px;
}

.production-layout {
  gap: 16px;
  margin-top: 16px;
}

.production-order {
  border-color: var(--admin-line);
  box-shadow: 0 12px 32px rgba(16, 20, 23, 0.08);
}

@media (max-width: 1180px) {
  .orders-card,
  .editor-card,
  .product-list-card,
  .payment-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .admin-page {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

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

  .admin-topbar {
    min-height: 0;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .admin-main {
    padding: 14px 12px 28px;
  }

  .admin-sidebar {
    gap: 16px;
    padding: 14px;
  }

  .admin-logo-brand img {
    height: 54px;
  }

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

  .admin-sidebar nav a {
    min-height: 44px;
    font-size: 0.88rem;
  }

  .admin-topbar {
    padding: 20px 16px;
  }

  .admin-topbar h1 {
    font-size: clamp(2.2rem, 13vw, 3.4rem);
  }

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

  .admin-actions .button {
    width: 100%;
  }

  .admin-kpis,
  .production-summary {
    grid-template-columns: 1fr;
  }

  .admin-card,
  .admin-kpis article,
  .production-summary article {
    padding: 16px;
  }
}

/* Final admin fit adjustments */
.admin-topbar {
  min-height: 150px;
}

.admin-topbar h1 {
  max-width: none;
  font-size: clamp(2.35rem, 3.8vw, 3.45rem);
  overflow-wrap: break-word;
}

.orders-card table {
  min-width: 0;
}

.orders-card th,
.orders-card td {
  white-space: normal;
}

.orders-card th:nth-child(1),
.orders-card td:nth-child(1) {
  width: 86px;
}

.orders-card th:nth-child(4),
.orders-card td:nth-child(4) {
  width: 132px;
}

.orders-card th:nth-child(5),
.orders-card td:nth-child(5) {
  width: 104px;
}

@media (max-width: 640px) {
  .admin-topbar h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);
    overflow-wrap: anywhere;
  }

  .admin-subtitle {
    overflow-wrap: anywhere;
  }
}

/* SEVEN 3D brand refinement: graphite, metal and electric blue */
.admin-page {
  --seven-blue: #006dff;
  --seven-blue-dark: #003fbd;
  --seven-blue-soft: #e8f1ff;
  --seven-ink: #0a0d12;
  --seven-graphite: #161a22;
  --seven-metal: #a9b1bd;
  --seven-silver: #eef2f7;
  --admin-bg: #e8edf3;
  --admin-panel: #fbfcfe;
  --admin-panel-2: #f3f6fa;
  --admin-ink: #10141b;
  --admin-soft: #626d7a;
  --admin-line: rgba(16, 20, 27, 0.11);
  --admin-shadow: 0 26px 80px rgba(6, 11, 18, 0.18);
  --admin-shadow-soft: 0 16px 42px rgba(6, 11, 18, 0.11);
  background:
    radial-gradient(circle at 18% 8%, rgba(0, 109, 255, 0.13), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(169, 177, 189, 0.2), transparent 28%),
    linear-gradient(135deg, #edf2f7 0%, #dde5ed 100%);
}

.admin-sidebar {
  background:
    radial-gradient(circle at 34% 2%, rgba(0, 109, 255, 0.28), transparent 30%),
    linear-gradient(180deg, #141922 0%, #080b10 72%, #05070a 100%);
  box-shadow: 20px 0 70px rgba(6, 11, 18, 0.32);
}

.admin-sidebar::after {
  height: 240px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    radial-gradient(circle at 50% 0%, rgba(168, 178, 192, 0.16), transparent 50%);
}

.admin-sidebar nav a {
  color: rgba(238, 242, 247, 0.74);
}

.admin-sidebar nav a svg {
  color: rgba(238, 242, 247, 0.72);
}

.admin-sidebar nav a.is-active,
.admin-sidebar nav a:hover,
.admin-sidebar nav a:focus-visible {
  border-color: rgba(0, 109, 255, 0.36);
  background:
    linear-gradient(135deg, rgba(0, 109, 255, 0.26), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 14px 30px rgba(0, 26, 70, 0.3);
}

.admin-sidebar nav a.is-active::before {
  background: linear-gradient(180deg, #8bbcff, var(--seven-blue));
  box-shadow: 0 0 18px rgba(0, 109, 255, 0.7);
}

.admin-sidebar nav a small {
  background: rgba(0, 109, 255, 0.2);
  color: #c7ddff;
}

.admin-topbar {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(120deg, rgba(5, 7, 10, 0.98), rgba(18, 22, 31, 0.98) 52%, rgba(0, 44, 108, 0.92)),
    #090b10;
  box-shadow:
    0 28px 80px rgba(0, 14, 36, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-topbar::before {
  height: 4px;
  background: linear-gradient(90deg, #8d97a4 0%, #f5f7fa 16%, var(--seven-blue) 48%, #0b4ed2 76%, #111722 100%);
}

.admin-topbar .eyebrow {
  color: #9cc7ff;
}

.admin-topbar h1 {
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

.admin-subtitle {
  color: rgba(238, 242, 247, 0.72);
}

.admin-actions .button {
  border-color: rgba(238, 242, 247, 0.16);
  background: rgba(238, 242, 247, 0.09);
  color: #ffffff;
}

.admin-actions .button.primary,
.admin-page .button.primary {
  border-color: rgba(0, 109, 255, 0.55);
  background: linear-gradient(135deg, #087bff 0%, #004ed6 100%);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 76, 208, 0.28);
}

.admin-actions .button.primary:hover,
.admin-page .button.primary:hover,
.admin-actions .button.primary:focus-visible,
.admin-page .button.primary:focus-visible {
  background: linear-gradient(135deg, #2d91ff 0%, #005ce8 100%);
}

.admin-kpis article,
.admin-card,
.production-summary article {
  border-color: rgba(8, 13, 20, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.95)),
    var(--admin-panel);
  box-shadow:
    0 18px 48px rgba(6, 11, 18, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-kpis article::before {
  background: linear-gradient(90deg, var(--kpi-color, var(--seven-blue)), rgba(169, 177, 189, 0.7));
}

.kpi-teal {
  --kpi-color: #006dff;
}

.kpi-blue {
  --kpi-color: #2f7fff;
}

.kpi-coral {
  --kpi-color: #4d5663;
}

.kpi-gold {
  --kpi-color: #9ca6b4;
}

.admin-kpi-top span,
.production-summary span {
  color: #5f6a77;
}

.admin-kpi-top svg {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(232, 241, 255, 0.72)),
    var(--seven-blue-soft);
  color: var(--kpi-color, var(--seven-blue));
  box-shadow:
    inset 0 0 0 1px rgba(0, 109, 255, 0.18),
    0 12px 26px rgba(0, 64, 160, 0.13);
}

.admin-kpi-foot em {
  background: linear-gradient(180deg, #f0f5fb, #e5edf7);
  color: #0f4fb4;
  box-shadow: inset 0 0 0 1px rgba(0, 109, 255, 0.08);
}

.admin-card .icon-button,
.production-actions .icon-button,
.queue-number {
  background: linear-gradient(135deg, #10151d, #05070a);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(6, 11, 18, 0.22);
}

.table-wrap,
.editor-card input,
.editor-card select,
.mini-products > div,
.tracking-meta div {
  border-color: rgba(16, 20, 27, 0.1);
  background: #ffffff;
}

th {
  background: linear-gradient(180deg, #f6f8fb, #eef2f6);
  color: #5b6674;
}

tbody tr:hover {
  background: #f4f8ff;
}

.status {
  border: 1px solid transparent;
}

.status-paid {
  border-color: rgba(0, 109, 255, 0.16);
  background: #e8f1ff;
  color: #0054cc;
}

.status-production {
  border-color: rgba(0, 109, 255, 0.2);
  background: #dceaff;
  color: #003fbd;
}

.status-pending {
  border-color: rgba(100, 109, 124, 0.18);
  background: #eef2f7;
  color: #4d5663;
}

.payment-bars span {
  background: #edf2f7;
}

.payment-bars span::before {
  background: linear-gradient(90deg, rgba(0, 109, 255, 0.42), rgba(169, 177, 189, 0.5));
}

.payment-bars svg,
.factory-copy li svg {
  color: var(--seven-blue);
}

.live-pill,
.status-reference li::before,
.priority-normal {
  background: #e8f1ff;
  color: #0054cc;
}

.status-reference li {
  background: #ffffff;
  border-color: rgba(16, 20, 27, 0.1);
}

.production-progress span,
.tracking-progress span {
  background: linear-gradient(90deg, #111722 0%, var(--seven-blue) 58%, #78b5ff 100%);
}

.priority-alta {
  background: #dceaff;
  color: #003fbd;
}

.priority-baixa {
  background: #eef2f7;
  color: #4d5663;
}

.tracking-page .tracking-search .shop-button.primary {
  border-color: rgba(0, 109, 255, 0.55);
  background: linear-gradient(135deg, #087bff, #004ed6);
}

@media (max-width: 640px) {
  .admin-topbar {
    background:
      linear-gradient(145deg, rgba(5, 7, 10, 0.99), rgba(18, 22, 31, 0.98) 62%, rgba(0, 48, 116, 0.92)),
      #090b10;
  }

  .admin-page {
    overflow-x: hidden;
  }

  .admin-main {
    width: calc(100vw - 76px) !important;
    max-width: calc(100vw - 76px) !important;
    margin-left: 14px !important;
    padding: 14px 0 28px !important;
  }

  .admin-topbar,
  .admin-kpis,
  .admin-grid,
  .production-summary,
  .production-layout {
    width: 100% !important;
    max-width: 100% !important;
  }
}
