@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap");

:root {
  --font-sans: "Roboto", sans-serif;
  --bg: #fbfbfd;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-soft: #f5f5f7;
  --line: rgba(0, 0, 0, 0.06);
  --line-strong: rgba(0, 0, 0, 0.12);
  --text: #1d1d1f;
  --muted: #86868b;
  --muted-strong: #6e6e73;
  --blue: #0071e3;
  --blue-deep: #0077ed;
  --blue-soft: #e8f0fe;
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
  --radius-xl: 5px;
  --radius-lg: 5px;
  --radius-md: 5px;
  --radius-sm: 4px;
  --content-width: 1240px;
  /* Semantic status colours */
  --clr-success: #34c759;
  --clr-success-soft: #dcfce7;
  --clr-warning: #ff9f0a;
  --clr-warning-soft: #fef3c7;
  --clr-danger: #ff3b30;
  --clr-danger-soft: #fee2e2;
  --clr-info: #007aff;
  --clr-info-soft: #e0f2fe;
  /* Transition presets */
  --t-fast: 0.12s ease;
  --t-base: 0.2s ease;
  --t-slow: 0.3s ease;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

/* ── Scrollbar ────────────────────────────────────────────── */

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* ── Focus visible ────────────────────────────────────────── */

:focus-visible {
  outline: 2px solid rgba(0, 113, 227, 0.5);
  outline-offset: 2px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background: #fbfbfd;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button,
input {
  font: inherit;
}

model-viewer {
  display: block;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: clip;
}

.page-orb {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
}

.page-orb-left {
  display: none;
}

.page-orb-right {
  display: none;
}

.shell-inner {
  position: relative;
  z-index: 1;
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
}

.storefront-inner > *,
.content-panel > *,
.store-results-head > *,
.store-toolbar > *,
.store-toolbar-reference > *,
.product-layout > *,
.cart-layout > *,
.auth-layout > *,
.site-footer-inner > * {
  min-width: 0;
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(251, 251, 253, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: none;
}

.top-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand-row,
.brand,
.top-actions,
.top-nav,
.profile-chip,
.toolbar-tabs,
.toolbar-filters,
.card-meta,
.card-footer,
.product-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  gap: 14px;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(180deg, #1d1d1f, #3a3a3c);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: none;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong,
.card-heading h2,
.library-head h2,
.product-info-panel h1,
.panel-top h2,
.related-card h3,
.profile-header-copy h1 {
  margin: 0;
  font-family: var(--font-sans);
  letter-spacing: -0.04em;
}

.brand-copy strong {
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.brand-copy small,
.profile-copy small {
  color: var(--muted);
  font-size: 0.82rem;
}

.top-actions {
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 10px;
}

.top-nav {
  flex-wrap: wrap;
  justify-content: center;
}

.top-nav-link {
  color: var(--muted-strong);
  font-size: 0.95rem;
  font-weight: 700;
}

.top-nav-link.is-active {
  color: var(--blue);
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 0 0 26px;
  border-top: 0;
  background: transparent;
  backdrop-filter: none;
}

.site-footer-inner,
.site-footer-nav,
.site-footer-copy {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer-inner {
  justify-content: space-between;
  min-height: 72px;
  padding: 18px 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.site-footer-copy {
  flex-wrap: wrap;
  color: var(--muted-strong);
}

.site-footer-copy strong {
  font-family: var(--font-sans);
}

.site-footer-copy span,
.site-footer-link {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 10px;
}

.site-footer-link:hover,
.site-footer-link:focus-visible {
  color: var(--blue);
}

.profile-chip {
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, outline-color 0.2s ease;
}

.profile-chip:hover {
  transform: translateY(-1px);
}

.profile-chip.is-active {
  outline: 2px solid rgba(0, 113, 227, 0.18);
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #0071e3, #0077ed);
  color: #fff;
  font-weight: 800;
}

.profile-copy {
  display: grid;
  gap: 1px;
}

.profile-copy strong {
  font-size: 0.92rem;
}

.storefront {
  padding: 28px 0 72px;
  flex: 1 0 auto;
  display: flex;
}

.storefront-inner {
  display: grid;
  gap: 24px;
  width: 100%;
  align-content: start;
}

.store-toolbar,
.model-card,
.content-panel,
.product-viewer-panel,
.product-info-panel,
.related-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}

.store-toolbar,
.content-panel,
.product-viewer-panel,
.product-info-panel,
.related-card {
  border-radius: var(--radius-lg);
}

.content-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.page-alert {
  min-height: auto;
}

.page-alert p {
  margin: 0;
  font-weight: 700;
}

.page-alert-error {
  border-color: rgba(180, 35, 24, 0.14);
  background: rgba(255, 241, 242, 0.92);
}

.page-alert-success {
  border-color: rgba(2, 122, 72, 0.14);
  background: rgba(237, 253, 243, 0.92);
}

.store-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
}

.toolbar-tabs,
.toolbar-filters {
  flex-wrap: wrap;
}

.toolbar-filters {
  gap: 10px;
}

.toolbar-tab,
.filter-pill,
.buy-button,
.hero-link,
.secondary-link,
.text-link,
.soft-pill,
.profile-meta-chip,
.favorite-button {
  transition: transform var(--t-base), background var(--t-base), border-color var(--t-base), color var(--t-base), box-shadow var(--t-base);
}

.toolbar-tab,
.filter-pill,
.buy-button,
.hero-link,
.secondary-link {
  cursor: pointer;
}

.toolbar-tab:hover,
.filter-pill:hover,
.buy-button:hover,
.hero-link:hover,
.secondary-link:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.model-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.toolbar-tab {
  border: 0;
  padding: 10px 2px;
  background: transparent;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 800;
}

.toolbar-tab.active {
  color: var(--blue);
}

.filter-pill {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-strong);
  font-weight: 700;
}

.filter-pill.active {
  border-color: var(--line-strong);
  background: var(--blue-soft);
  color: var(--blue);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.library-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 6px 4px 0;
}

.library-head h2 {
  font-size: 2.1rem;
}

.view-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.view-btn.active {
  border-color: var(--line-strong);
  background: var(--blue-soft);
  color: var(--blue);
}

.model-grid,
.related-grid {
  display: grid;
  gap: 18px;
}

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

.model-card {
  display: grid;
  grid-template-rows: minmax(240px, auto) 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.model-card.is-hidden {
  display: none;
}

.model-grid.is-list-view {
  grid-template-columns: 1fr;
  gap: 10px;
}

.model-grid.is-list-view .model-card {
  grid-template-rows: 1fr;
  grid-template-columns: 200px 1fr;
  align-items: start;
}

.model-grid.is-list-view .card-media {
  min-height: 150px;
}

.model-grid.is-list-view .card-content {
  padding: 4px 4px 4px 0;
}

.card-media {
  position: relative;
  min-height: 240px;
  padding: 16px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: inset 0 -30px 44px rgba(255, 255, 255, 0.08);
}

.card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
  pointer-events: none;
}

.media-sky {
  background: linear-gradient(145deg, #b7d8f4, #a2c9ec 60%, #d8ebfb);
}

.media-navy {
  background: linear-gradient(145deg, #192f70, #203a86 60%, #11255e);
}

.media-peach {
  background: linear-gradient(145deg, #fae4d5, #f9d7c4 60%, #fff3e8);
}

.media-orange {
  background: linear-gradient(145deg, #ff975f, #ff9b66 55%, #ffbe8e);
}

.media-violet {
  background: linear-gradient(145deg, #bcb4ec, #a69ce2 58%, #d3cdf9);
}

.media-green {
  background: linear-gradient(145deg, #a4d98d, #98d37c 55%, #c7efb0);
}

.card-type,
.media-badge,
.soft-pill,
.profile-meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.card-type,
.media-badge {
  position: relative;
  z-index: 3;
  max-width: calc(100% - 86px);
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.favorite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #c2c7dc;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.favorite-button.active {
  color: var(--blue);
  background: var(--blue-soft);
}

.media-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
}

.card-viewer {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  --poster-color: transparent;
  background: transparent;
}

.card-media-placeholder,
.viewer-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  text-align: center;
}

.card-media-placeholder {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.card-media-placeholder strong,
.viewer-placeholder-copy strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-size: 2rem;
  letter-spacing: -0.05em;
  color: rgba(31, 38, 66, 0.92);
}

.card-media-placeholder p,
.viewer-placeholder-copy p {
  margin: 0;
  color: rgba(31, 38, 66, 0.7);
  font-weight: 700;
}

.card-content {
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 12px;
  height: 100%;
  padding: 6px 4px 4px;
  align-content: start;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 4px;
  border-bottom: 0;
}

.card-heading h2 {
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-content p,
.product-lead,
.related-card p,
.product-note p,
.profile-lead,
.profile-summary-text,
.profile-item-main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-submeta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.card-submeta-row .card-subtitle {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-submeta-row .card-meta-row {
  min-width: 0;
  justify-content: flex-end;
}

.card-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.card-format-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.92);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.card-tag-type {
  border-color: rgba(31, 38, 66, 0.08);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}

.card-side-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.card-price-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.card-price-badge.is-free {
  color: var(--blue);
}

.card-cart-form {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;
  margin: 0;
}

.card-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  box-shadow: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
}

.card-stats,
.profile-panel-actions,
.profile-item-stats,
.profile-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.card-stats {
  min-height: 24px;
}

.card-stat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(79, 108, 247, 0.07);
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.96);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.card-stat-icon,
.card-action-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.card-footer {
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.card-footer > * {
  flex: 1 1 0;
}

.card-footer .buy-button,
.card-footer .secondary-link,
.card-footer .card-download-link {
  gap: 8px;
  min-width: 0;
}

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

.product-actions .hero-link,
.product-actions .secondary-link,
.product-actions .buy-button {
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 64px;
  justify-content: flex-start;
  padding: 14px 18px;
  border-radius: 18px;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
}

.product-action-form {
  margin: 0;
}

.product-action-form .secondary-link,
.product-action-form .buy-button {
  width: 100%;
}

.card-download-link.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.hero-link,
.secondary-link,
.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 800;
  gap: 10px;
}

.hero-link,
.buy-button {
  background: var(--blue);
  color: #fff;
  box-shadow: none;
}

.hero-link:hover,
.buy-button:hover {
  background: var(--blue-deep);
  box-shadow: none;
}

.buy-button {
  min-width: 140px;
  border: 0;
}

.secondary-link {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  color: var(--text);
}

.header-link {
  min-height: 40px;
  padding: 0 16px;
}

.header-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
}

.header-link.is-active {
  border-color: rgba(0, 113, 227, 0.18);
  background: var(--blue-soft);
  color: var(--blue);
}

.text-link {
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}

.inline-cta {
  width: fit-content;
}

.soft-pill {
  width: fit-content;
  background: var(--blue-soft);
  color: var(--blue);
}

.product-hero,
.related-head {
  display: grid;
  gap: 18px;
}

.product-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
}

.product-viewer-panel,
.product-info-panel {
  padding: 22px;
}

.product-viewer-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 35px;
}

.product-viewer-shell {
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 26%),
    linear-gradient(180deg, #6e6e73 0%, #5f5f64 100%);
}

.viewer-placeholder {
  padding: 28px;
}

.viewer-placeholder-copy {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.product-viewer,
.glb-viewer {
  width: 100%;
  height: 100%;
  --poster-color: transparent;
  background: transparent;
}

.glb-viewer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.product-viewer-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.obj-viewer {
  width: 100%;
  height: 560px;
}

.obj-viewer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.texture-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
}

.texture-panel-top h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

.texture-panel-inline {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  justify-items: center;
}

.texture-panel-inline .texture-panel-top {
  text-align: center;
}

.texture-groups {
  display: grid;
  gap: 18px;
  width: min(680px, 100%);
}

.texture-group-block {
  display: grid;
  gap: 10px;
}

.texture-group-head strong {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.texture-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.texture-swatch {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 92px;
  padding: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  cursor: pointer;
}

.texture-swatch.active {
  border-color: rgba(0, 113, 227, 0.22);
  background: var(--blue-soft);
}

.texture-swatch-color {
  display: inline-block;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(31, 38, 66, 0.1);
  border-radius: 10px;
  box-shadow: inset 0 -18px 24px rgba(31, 38, 66, 0.1);
}

.texture-swatch-color.has-image,
.texture-preview-sample {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.texture-swatch-label {
  font-weight: 800;
  font-size: 0.82rem;
  text-align: center;
}

.texture-preview {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-soft);
}

.texture-preview-inline {
  width: min(460px, 100%);
  margin-top: 4px;
}

.texture-preview-sample {
  width: 96px;
  height: 96px;
  border: 1px solid rgba(31, 38, 66, 0.08);
  border-radius: 20px;
  box-shadow: inset 0 -12px 18px rgba(31, 38, 66, 0.06);
}

.texture-preview-sample-neutral {
  background: #f5f5f7;
}

.texture-preview strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

.product-info-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.product-info-panel h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.95;
}

.product-lead {
  max-width: 32ch;
}

.product-like-button {
  background: rgba(255, 255, 255, 0.94);
}

.like-toggle-button.is-active {
  border-color: rgba(0, 113, 227, 0.22);
  background: var(--blue-soft);
  color: var(--blue);
}

.product-specs,
.profile-facts {
  display: grid;
  gap: 16px;
}

.product-specs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-specs div,
.profile-fact-row {
  padding: 14px 15px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: rgba(245, 245, 247, 0.82);
}

.product-specs span,
.profile-fact-row span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-specs strong {
  font-size: 1.12rem;
  line-height: 1.2;
}

.product-cart-button {
  box-shadow: 0 16px 30px rgba(0, 113, 227, 0.12);
}

.product-delivery-button {
  border-style: dashed;
}

.product-actions .secondary-link[disabled] {
  background: rgba(245, 245, 247, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  color: #697189;
  box-shadow: none;
}

.product-note {
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  background: rgba(245, 245, 247, 0.74);
}

.product-note strong {
  display: block;
  margin-bottom: 8px;
}

.panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.empty-state-panel {
  min-height: 220px;
  align-content: center;
}

.panel-top h2,
.related-card h3 {
  font-size: 1.8rem;
  line-height: 1;
}

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

.related-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.related-card-media {
  position: relative;
  min-height: 210px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(236, 242, 255, 0.96), rgba(246, 249, 255, 0.98));
}

.related-card-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  --poster-color: transparent;
  background: transparent;
}

.related-card-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 22px;
  text-align: center;
}

.related-card-placeholder strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  color: rgba(31, 38, 66, 0.92);
}

.related-card-placeholder p {
  margin: 0;
  color: rgba(31, 38, 66, 0.68);
  font-weight: 700;
}

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

.related-format {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.related-card-action {
  width: fit-content;
  margin-top: auto;
}

/* ── Profile hero ─────────────────────────────────────────── */

.profile-hero {
  margin-bottom: 20px;
}

.profile-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.creator-avatar {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #f5f5f7;
  color: var(--blue);
  font-family: var(--font-sans);
  font-weight: 700;
  flex-shrink: 0;
}

.profile-hero-avatar {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  font-size: 1.6rem;
}

.profile-hero-info {
  display: grid;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.profile-hero-namerow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-hero-namerow h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.profile-hero-headline {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted-strong);
}

.profile-hero-bio {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 560px;
}

/* ── Profile body (items + sidebar) ──────────────────────── */

.profile-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 20px;
  align-items: start;
}

.profile-specialties {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-meta-chip {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted-strong);
}

/* ── Item list ────────────────────────────────────────────── */

.profile-item-list {
  display: grid;
  gap: 10px;
}

.profile-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s ease;
}

.profile-item-row:hover {
  border-color: rgba(79, 108, 247, 0.25);
}

.profile-item-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.profile-item-main strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.profile-item-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.profile-item-actions {
  display: flex;
  justify-content: flex-end;
}

/* ── Empty state ──────────────────────────────────────────── */

.profile-empty {
  padding: 28px 0;
  display: grid;
  gap: 6px;
}

.profile-empty strong {
  font-size: 0.95rem;
  color: var(--text);
}

.profile-empty p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Side panel ───────────────────────────────────────────── */

.profile-side-panel {
  border-radius: var(--radius-lg);
}

.auth-panel {
  width: min(760px, 100%);
  min-height: clamp(540px, calc(100vh - 240px), 760px);
  display: grid;
  align-items: center;
  margin: 0 auto;
  padding: 0;
  gap: 0;
  border: none;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.auth-panel-login {
  width: min(700px, 100%);
}

.auth-panel-register {
  width: min(900px, 100%);
}

.auth-layout,
.auth-intro,
.auth-card,
.auth-form {
  display: grid;
  gap: 18px;
}

.auth-layout,
.auth-card,
.auth-form {
  min-width: 0;
}

.auth-layout {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
}

.auth-intro {
  width: 100%;
  padding: 36px 32px 28px;
  justify-items: center;
  text-align: center;
  background:
    radial-gradient(circle at top left, rgba(0, 113, 227, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(245, 247, 250, 0.94), rgba(255, 255, 255, 0.88));
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.auth-intro h1,
.auth-card-head h2 {
  margin: 0;
  letter-spacing: -0.045em;
}

.auth-intro h1 {
  max-width: 10ch;
  font-size: clamp(2.7rem, 5vw, 4rem);
  line-height: 0.94;
}

.auth-lead,
.auth-card-subtitle,
.auth-inline-link {
  margin: 0;
  line-height: 1.6;
}

.auth-lead {
  max-width: 42ch;
  color: var(--muted-strong);
  font-size: 1.02rem;
}

.auth-card {
  width: 100%;
  padding: 30px 32px 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.auth-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.auth-card-head h2 {
  font-size: 2.1rem;
  line-height: 0.98;
}

.auth-card-subtitle {
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.98rem;
}

.auth-inline-link {
  color: var(--muted);
  font-size: 0.95rem;
  align-self: center;
}

.auth-form {
  gap: 18px;
}

.auth-form > * {
  min-width: 0;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-field {
  display: grid;
  gap: 10px;
}

.auth-field span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted-strong);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-password-control {
  position: relative;
  display: block;
}

.auth-password-control input {
  padding-right: 84px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: translateY(-50%);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  background: rgba(0, 113, 227, 0.14);
  color: #0b63ce;
  outline: none;
}

.auth-field input::placeholder {
  color: #9aa4c6;
}

.auth-field input:focus {
  border-color: rgba(0, 113, 227, 0.25);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.auth-field-note {
  margin: -2px 2px 0;
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--muted);
}

.auth-password-strength {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.auth-password-strength-bar {
  position: relative;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
}

.auth-password-strength-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #dc2626;
  transition: width 0.18s ease, background-color 0.18s ease;
}

.auth-password-strength[data-strength="weak"] .auth-password-strength-fill {
  width: 25%;
  background: #dc2626;
}

.auth-password-strength[data-strength="fair"] .auth-password-strength-fill {
  width: 50%;
  background: #ea580c;
}

.auth-password-strength[data-strength="good"] .auth-password-strength-fill {
  width: 75%;
  background: #d97706;
}

.auth-password-strength[data-strength="strong"] .auth-password-strength-fill {
  width: 100%;
  background: #16a34a;
}

.auth-password-strength-text {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.4;
  color: var(--muted);
}

.auth-password-feedback {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  margin-top: -2px;
}

.auth-role-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border: none;
  padding: 0;
  margin: 0;
}

.auth-role-picker legend {
  grid-column: 1 / -1;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted-strong);
  margin-bottom: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-role-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.auth-role-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 104px;
  padding: 18px 18px 18px 50px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: rgba(248, 249, 252, 0.86);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-role-option input[type="radio"] {
  position: absolute;
  top: 50%;
  left: 18px;
  z-index: 1;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid rgba(79, 108, 247, 0.3);
  border-radius: 999px;
  background: #fff;
  pointer-events: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-role-card strong {
  font-size: 0.98rem;
  color: var(--text);
}

.auth-role-card > span {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.auth-role-option input[type="radio"]:checked + .auth-role-card,
.auth-role-option.is-selected .auth-role-card {
  border-color: rgba(0, 113, 227, 0.3);
  background: #f5f5f7;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.auth-role-option input[type="radio"]:checked,
.auth-role-option.is-selected input[type="radio"] {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: inset 0 0 0 3px #fff;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 10px;
}

.auth-actions .buy-button {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  justify-content: center;
}

.auth-message {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
}

.auth-error {
  background: #fff1f2;
  color: #b42318;
}

.auth-success {
  background: #edfdf3;
  color: #027a48;
}

.inline-form {
  margin: 0;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  gap: 24px;
}

.cart-panel,
.cart-summary {
  align-content: start;
}

.cart-items {
  display: grid;
  gap: 14px;
}

.cart-item {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.cart-item-main,
.cart-item-actions,
.cart-item-meta,
.cart-summary-rows div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cart-item-copy {
  display: grid;
  gap: 6px;
}

.cart-item-copy strong,
.cart-summary-rows strong {
  font-size: 1rem;
}

.cart-item-meta {
  justify-content: flex-start;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.cart-quantity-form {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}

.cart-quantity-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.cart-quantity-form input {
  width: 88px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

.cart-line-total {
  display: grid;
  gap: 4px;
  min-width: 110px;
}

.cart-line-total span,
.cart-summary-rows span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.cart-summary-rows {
  display: grid;
  gap: 12px;
}

.cart-summary-rows div {
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.upload-panel {
  width: min(840px, 100%);
  margin: 0 auto;
}

.upload-form,
.upload-grid {
  display: grid;
  gap: 16px;
}

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

.upload-field,
.upload-check {
  display: grid;
  gap: 8px;
}

.tag-picker-field {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}

.upload-field span,
.upload-check span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted-strong);
}

.upload-field input,
.upload-field select,
.upload-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--text);
  outline: none;
}

.upload-field textarea {
  min-height: 140px;
  padding: 14px 16px;
  resize: vertical;
}

.upload-field input[type="file"] {
  padding: 12px 16px;
}

.upload-field input:focus,
.upload-field select:focus,
.upload-field textarea:focus {
  border-color: rgba(0, 113, 227, 0.22);
  box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.05);
}

.upload-field-full {
  grid-column: 1 / -1;
}

.upload-check {
  grid-column: 1 / -1;
  grid-auto-flow: column;
  justify-content: flex-start;
  align-items: center;
}

.upload-check input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.upload-help {
  color: var(--muted);
  font-size: 0.82rem;
}

.upload-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.upload-form-simple {
  gap: 22px;
}

.upload-dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 22px;
  border: 1px dashed rgba(0, 0, 0, 0.1);
  border-radius: 22px;
  background: #f5f5f7;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragover {
  transform: translateY(-1px);
  border-color: rgba(0, 113, 227, 0.35);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.04);
}

.upload-dropzone-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-dropzone-copy {
  display: grid;
  gap: 4px;
}

.upload-dropzone-copy strong {
  font-family: var(--font-sans);
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.upload-preview-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 22px;
  background: #f5f5f7;
}

.upload-preview-copy {
  display: grid;
  gap: 6px;
}

.upload-preview-copy p {
  margin: 0;
  color: var(--muted);
}

.upload-preview-viewer {
  width: 100%;
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
  background: #f5f5f7;
}

.upload-preview-panel.is-empty .upload-preview-viewer {
  display: none;
}

.admin-list {
  display: grid;
  gap: 0;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-main,
.admin-sidebar,
.admin-sidebar-nav,
.admin-sidebar-stack,
.admin-overview-grid {
  display: grid;
  gap: 18px;
}

.admin-main {
  gap: 24px;
}

.admin-sidebar {
  position: sticky;
  top: 112px;
  gap: 22px;
  padding: 24px;
}

.admin-sidebar-head {
  display: grid;
  gap: 10px;
}

.admin-sidebar-head h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.9rem;
  letter-spacing: -0.04em;
}

.admin-sidebar-copy,
.admin-sidebar-link span,
.admin-sidebar-card small,
.admin-overview-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-sidebar-link,
.admin-sidebar-card,
.admin-overview-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.admin-sidebar-link:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(244, 247, 255, 0.96);
}

.admin-sidebar-link strong,
.admin-sidebar-card strong,
.admin-overview-card strong {
  display: block;
  font-family: var(--font-sans);
  letter-spacing: -0.04em;
}

.admin-sidebar-link strong {
  font-size: 1rem;
}

.admin-sidebar-card span,
.admin-overview-card span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.admin-sidebar-card strong,
.admin-overview-card strong {
  font-size: 1.65rem;
}

.admin-overview-shell {
  gap: 20px;
}

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

.admin-shell,
.admin-editor {
  gap: 20px;
  padding: 24px;
}

.admin-shell-head,
.admin-shell-stats,
.admin-card-actions,
.admin-editor-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-shell-head {
  justify-content: space-between;
}

.admin-shell-head h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.admin-shell-stats,
.admin-editor-meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-shell-stats span:not(:last-child)::after,
.admin-editor-meta span:not(:last-child)::after {
  content: "/";
  margin-left: 12px;
  color: #d0d5e7;
}

.admin-bulk-bar,
.admin-bulk-select-all,
.admin-table-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-bulk-bar {
  padding: 0 2px;
}

.admin-bulk-select-all {
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 700;
}

.admin-bulk-count {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-bulk-bar select {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 960px;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(245, 245, 247, 0.92);
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table-check {
  width: 44px;
}

.admin-table-check input {
  width: 16px;
  height: 16px;
}

.admin-table-title strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.admin-table-title small {
  display: -webkit-box;
  max-width: 320px;
  color: var(--muted);
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-table-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--muted-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.admin-table-status.is-live {
  border-color: rgba(38, 138, 87, 0.12);
  background: rgba(239, 250, 243, 0.94);
  color: #1f7a4d;
}

.admin-table-actions form {
  margin: 0;
}

.admin-table-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-table-link.is-danger {
  color: #a9362a;
}

.admin-editor-form,
.admin-editor-grid {
  display: grid;
  gap: 16px;
}

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

.admin-field span,
.admin-toggle span {
  color: var(--muted);
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  min-height: 48px;
  border-color: rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: none;
}

.admin-field textarea {
  min-height: 180px;
}

.admin-toggle {
  align-self: end;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.admin-card-actions form {
  margin: 0;
}

.upload-dropzone-copy small,
.upload-file-meta {
  color: var(--muted);
}

.upload-file-meta {
  font-weight: 700;
}

.tag-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tag-picker-option {
  position: relative;
  display: inline-flex;
}

.tag-picker-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tag-picker-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tag-picker-option span:hover {
  transform: translateY(-1px);
}

.tag-picker-option input:checked + span {
  border-color: rgba(0, 113, 227, 0.22);
  background: var(--blue-soft);
  color: var(--blue);
}

.tag-picker-option input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

/* ── Guest welcome banner ─────────────────────────────────── */

.guest-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  background: #f5f5f7;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

.guest-banner-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.guest-banner-copy strong {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.guest-banner-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.guest-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Enhanced card hover glow ─────────────────────────────── */

.model-card:hover {
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}


@media (max-width: 1180px) {
  .top-header-inner,
  .store-toolbar,
  .library-head {
    flex-wrap: wrap;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

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

  .product-layout {
    grid-template-columns: 1fr;
  }

  .upload-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .top-header {
    position: static;
  }

  .top-header-inner {
    align-items: flex-start;
    gap: 18px;
    min-height: auto;
    padding: 14px 0;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .model-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .store-toolbar {
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  .shell-inner {
    width: calc(100% - 24px);
  }

  .top-header-inner {
    min-height: 76px;
  }

  .top-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .storefront {
    padding: 18px 0 42px;
  }

  .page-orb {
    display: none;
  }

  .model-grid,
  .product-specs,
  .related-grid,
  .texture-preview,
  .profile-body,
  .profile-item-row,
  .admin-editor-grid {
    grid-template-columns: 1fr;
  }

  .product-viewer-panel,
  .product-info-panel,
  .content-panel,
  .related-card {
    padding: 18px;
  }

  .model-card {
    gap: 14px;
    padding: 12px;
  }

  .card-media {
    min-height: 220px;
    border-radius: 18px;
  }

  .card-content {
    gap: 10px;
    padding: 4px 2px 2px;
  }

  .product-viewer,
  .product-viewer-shell {
    min-height: 0;
  }

  .product-viewer {
    height: 100%;
  }

  .product-breadcrumbs {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .product-actions {
    width: 100%;
    gap: 10px;
  }

  .product-actions .hero-link,
  .product-actions .secondary-link,
  .product-actions .buy-button {
    min-height: 60px;
    padding: 13px 16px;
  }

  .product-specs div,
  .profile-fact-row,
  .product-note {
    padding: 13px 14px;
  }

  .upload-panel,
  .auth-panel {
    width: 100%;
  }

  .auth-panel {
    min-height: auto;
  }

  .site-footer-inner,
  .site-footer-nav,
  .site-footer-copy {
    width: 100%;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 18px 20px;
    border-radius: 22px;
  }

  .site-footer-nav {
    justify-content: flex-start;
  }

  .auth-layout {
    gap: 0;
  }

  .auth-card {
    padding: 24px;
  }

  .auth-intro {
    width: 100%;
    padding: 28px 24px 22px;
  }

  .auth-intro h1 {
    max-width: none;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }

  .profile-item-actions {
    justify-content: flex-start;
  }

  .admin-shell-head {
    align-items: flex-start;
  }

  .admin-bulk-bar {
    align-items: flex-start;
  }

  .admin-col-seller,
  .admin-col-size,
  .admin-col-updated {
    display: none;
  }
}

@media (max-width: 620px) {
  .shell-inner {
    width: calc(100% - 16px);
  }

  .storefront {
    padding: 12px 0 36px;
  }

  .storefront-inner {
    gap: 18px;
  }

  .guest-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
  }

  .guest-banner-actions {
    width: 100%;
  }

  .guest-banner-actions > * {
    flex: 1 1 0;
  }

  .top-header-inner,
  .store-toolbar {
    gap: 14px;
    padding: 12px 0;
  }

  .brand-copy small,
  .profile-copy small {
    display: none;
  }

  .top-actions,
  .auth-actions,
  .upload-actions {
    width: 100%;
  }

  .auth-card {
    padding: 20px;
    border-radius: 22px;
  }

  .auth-layout {
    gap: 0;
    border-radius: 24px;
  }

  .auth-intro,
  .auth-card {
    justify-self: stretch;
  }

  .site-footer {
    padding-bottom: 18px;
  }

  .auth-role-picker {
    grid-template-columns: 1fr;
  }

  .auth-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }

  .auth-intro h1 {
    font-size: 2.15rem;
  }

  .top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
  }

  .top-actions > * {
    min-width: 0;
  }

  .top-actions .inline-form {
    display: block;
    width: 100%;
    margin: 0;
  }

  .auth-actions > * {
    width: 100%;
    justify-content: center;
  }

  .top-actions .profile-chip {
    grid-column: 1 / -1;
    order: -1;
  }

  .toolbar-tabs,
  .toolbar-filters,
  .profile-specialties,
  .texture-swatches {
    width: 100%;
  }

  .toolbar-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 14px;
    padding: 0 2px 2px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

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

  .toolbar-tabs .toolbar-tab {
    flex: 0 0 auto;
  }

  .toolbar-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding: 0 2px 2px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .toolbar-filters::-webkit-scrollbar {
    display: none;
  }

  .toolbar-filters .filter-pill {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 12px;
  }

  .card-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
  }

  .buy-button,
  .hero-link,
  .secondary-link,
  .header-link {
    width: 100%;
  }

  .profile-chip {
    width: 100%;
    justify-content: flex-start;
    padding-right: 12px;
  }

  .profile-panel-actions {
    width: 100%;
  }

  .library-head h2,
  .panel-top h2,
  .related-card h3 {
    font-size: 1.54rem;
  }

  .product-info-panel h1 {
    font-size: 2rem;
  }

  .product-viewer-top .soft-pill {
    min-height: 32px;
    padding: 0 11px;
    font-size: 0.78rem;
  }

  .admin-shell,
  .admin-sidebar,
  .admin-editor {
    padding: 16px;
  }

  .admin-card-actions,
  .admin-shell-stats,
  .admin-bulk-bar,
  .admin-sidebar-stack {
    width: 100%;
  }

  .admin-card-actions .hero-link,
  .admin-card-actions .secondary-link {
    width: 100%;
  }

  .admin-bulk-bar .secondary-link {
    width: 100%;
  }

  .admin-bulk-bar select {
    width: 100%;
  }

  .admin-col-views,
  .admin-col-likes {
    display: none;
  }

  .admin-table-wrap {
    border-radius: 14px;
  }

  .admin-table {
    min-width: 640px;
  }

  .model-card {
    gap: 12px;
    padding: 12px;
  }

  .card-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-heading h2 {
    max-width: none;
    font-size: 1.34rem;
  }

  .card-content {
    gap: 9px;
  }

  .card-meta-row {
    align-items: flex-start;
    /* flex-direction: column; */
    gap: 8px;
  }

  .card-side-meta {
    justify-content: flex-start;
    gap: 8px;
  }

  .card-media {
    min-height: 188px;
    padding: 12px;
  }

  .card-cart-form {
    top: 10px;
    left: 10px;
  }

  .card-cart-button {
    min-height: 34px;
    padding: 0 11px;
    font-size: 0.76rem;
  }

  .card-price-badge {
    top: 10px;
    right: 10px;
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .card-type,
  .media-badge,
  .soft-pill,
  .profile-meta-chip {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .card-type,
  .media-badge {
    display: none;
  }

  .favorite-button {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
  }

  .card-viewer {
    inset: 0;
  }

  .card-media::after {
    display: none;
  }

  .card-content {
    gap: 8px;
    padding-top: 0;
  }

  .card-tags {
    gap: 6px;
  }

  .card-format-tags {
    gap: 6px;
  }

  .card-tag {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .card-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .card-stat {
    min-height: 28px;
    padding: 0 8px;
    font-size: 0.79rem;
  }

  .card-stat-icon,
  .card-action-icon {
    width: 14px;
    height: 14px;
  }

  .cart-item-actions {
    align-items: stretch;
  }

  .tag-picker {
    gap: 8px;
  }

  .tag-picker-option {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }

  .tag-picker-option span {
    width: 100%;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  .upload-dropzone {
    padding: 22px 16px;
  }

  .upload-dropzone-copy strong {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .shell-inner {
    width: calc(100% - 5px);
  }

  .brand-copy strong {
    font-size: 1.3rem;
  }

  .brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .store-toolbar,
  .content-panel,
  .related-card,
  .product-viewer-panel,
  .product-info-panel,
  .admin-shell,
  .admin-editor {
    padding: 14px;
  }

  .product-viewer-shell {
    border-radius: 18px;
  }

  .top-header-inner,
  .store-toolbar {
    gap: 12px;
  }

  .toolbar-tabs {
    gap: 12px;
  }

  .toolbar-filters {
    gap: 5px;
  }

  .toolbar-filters .filter-pill {
    min-height: 32px;
    padding: 0 11px;
    font-size: 0.9rem;
  }

  .tag-picker-option {
    flex-basis: 100%;
  }

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

  .profile-chip {
    padding-right: 10px;
  }

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

  .model-card {
    padding: 10px;
  }

  .card-media {
    min-height: 172px;
    padding: 10px;
  }

  .card-cart-form {
    top: 8px;
    left: 8px;
  }

  .card-cart-button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .card-price-badge {
    top: 8px;
    right: 8px;
    min-height: 32px;
    padding: 0 11px;
    font-size: 0.8rem;
  }

  .card-tags {
    gap: 5px;
  }

  .card-format-tags {
    gap: 5px;
  }

  .card-tag {
    min-height: 26px;
    padding: 0 9px;
    font-size: 0.72rem;
  }

  .card-stats {
    gap: 6px;
  }

  .card-stat {
    min-height: 26px;
    padding: 0 7px;
    font-size: 0.76rem;
  }

  .card-stat-icon,
  .card-action-icon {
    width: 13px;
    height: 13px;
  }

  .card-footer .buy-button,
  .card-footer .secondary-link,
  .card-footer .card-download-link {
    font-size: 0.8rem;
  }

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

  .cart-item {
    padding: 16px;
  }

  .cart-quantity-form,
  .cart-quantity-form label {
    width: 100%;
  }

  .cart-quantity-form input,
  .cart-quantity-form .secondary-link {
    width: 100%;
  }
}

.checkout-card,
.checkout-steps-preview,
.order-summary-grid,
.order-progress,
.order-download-list,
.admin-metrics-grid,
.admin-orders-grid,
.admin-order-rules,
.admin-order-controls,
.admin-order-controls form {
  display: grid;
  gap: 14px;
}

.checkout-card {
  margin-top: 18px;
}

.checkout-account-card {
  display: grid;
  gap: 4px;
  padding: 0 2px;
}

.checkout-account-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checkout-account-card strong {
  color: var(--ink);
  font-size: 1rem;
}

.checkout-account-card small {
  color: var(--muted);
  font-size: 0.88rem;
}

.checkout-steps-preview div,
.order-summary-card,
.order-note-box,
.admin-metric-card,
.admin-chart-card {
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.checkout-steps-preview strong,
.order-summary-card strong,
.order-note-box strong,
.admin-metric-card strong,
.order-progress-step strong,
.order-download-copy strong,
.admin-order-rules strong,
.admin-chart-card h3 {
  display: block;
}

.checkout-steps-preview span,
.checkout-note,
.order-summary-card span,
.order-summary-card small,
.order-download-meta,
.order-note-box p,
.admin-metric-card span,
.admin-metric-card small,
.admin-order-rules p,
.admin-chart-bar-wrap small,
.admin-orders-table td small {
  color: var(--muted);
}

.checkout-note,
.order-note-box p,
.order-progress-step p,
.admin-order-rules p {
  margin: 0;
}

.stripe-checkout-panel {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.stripe-checkout-panel.is-disabled {
  background: rgba(245, 247, 255, 0.86);
}

.stripe-checkout-copy {
  display: grid;
  gap: 6px;
}

.stripe-checkout-copy p,
.checkout-error {
  margin: 0;
  color: var(--muted);
}

.checkout-error {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(180, 35, 24, 0.14);
  background: rgba(255, 241, 242, 0.9);
  color: #9c3a2d;
  font-size: 0.92rem;
  font-weight: 700;
}

/* ── Cart item improvements ─────────────────────────────── */

.cart-item-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 20px;
  border: 1px solid rgba(79, 108, 247, 0.13);
  background: rgba(79, 108, 247, 0.06);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.cart-item-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue-deep);
}

.cart-item-view-link {
  white-space: nowrap;
  flex-shrink: 0;
}

.cart-remove-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  transition: color 0.15s;
}

.cart-remove-btn:hover {
  color: #b42318;
}

.cart-subtotal-value {
  color: var(--blue-deep);
  font-size: 1.05rem;
}

/* ── Payment method tabs ─────────────────────────────────── */

.payment-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.payment-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.payment-tab:hover {
  border-color: rgba(79, 108, 247, 0.3);
  color: var(--blue);
}

.payment-tab.is-active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.payment-panel.is-hidden {
  display: none !important;
}

.payment-panel[hidden] {
  display: none !important;
}

/* ── Generic payment method panel wrapper ───────────────── */

.payment-method-panel {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.payment-method-panel.is-disabled {
  background: rgba(245, 247, 255, 0.86);
}

/* Legacy PayPal-specific checkout styles intentionally disabled. */

.order-layout,
.admin-orders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.order-panel-top {
  align-items: flex-start;
}

.order-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.order-summary-card span,
.admin-metric-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
}

.order-summary-card strong {
  margin-bottom: 5px;
  font-size: 1.05rem;
}

.order-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
}

.order-status-pill.is-pending,
.admin-table-status.is-pending {
  background: rgba(255, 246, 225, 0.94);
  border-color: rgba(214, 158, 46, 0.18);
  color: #8d5a00;
}

.order-status-pill.is-working,
.admin-table-status.is-working {
  background: rgba(236, 244, 255, 0.94);
  border-color: rgba(0, 0, 0, 0.1);
  color: #3150c2;
}

.order-status-pill.is-ready,
.admin-table-status.is-ready {
  background: rgba(239, 250, 243, 0.94);
  border-color: rgba(38, 138, 87, 0.12);
  color: #27754b;
}

.order-progress-step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(252, 253, 255, 0.9);
}

.order-progress-step.is-complete {
  border-color: rgba(38, 138, 87, 0.16);
  background: rgba(241, 251, 245, 0.95);
}

.order-progress-step.is-current {
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.05);
}

.order-progress-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #f5f5f7;
  font-weight: 800;
  font-family: var(--font-sans);
}

.order-download-list {
  gap: 12px;
}

.order-download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.order-download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.82rem;
}

.order-download-button {
  min-width: 170px;
  justify-content: center;
}

.order-download-button.is-disabled,
.secondary-link[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.admin-orders-shell {
  gap: 20px;
}

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

.admin-metric-card strong {
  margin-bottom: 6px;
  font-size: 1.45rem;
  font-family: var(--font-sans);
}

.admin-chart-card h3 {
  margin: 0;
  font-family: var(--font-sans);
}

.admin-chart-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 220px;
  padding-top: 18px;
}

.admin-chart-bar-wrap {
  display: grid;
  justify-items: center;
  gap: 10px;
  height: 100%;
}

.admin-chart-bar {
  width: 100%;
  min-height: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
  border-radius: 16px 16px 8px 8px;
  background: linear-gradient(180deg, var(--blue), rgba(0, 113, 227, 0.7));
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
}

.admin-order-list {
  display: grid;
  gap: 16px;
}

.admin-order-card,
.admin-order-panel {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
}

.admin-order-card {
  gap: 18px;
}

.admin-order-card-top,
.admin-order-card-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-order-identity,
.admin-order-summary {
  display: grid;
  gap: 6px;
}

.admin-order-kicker,
.admin-order-token,
.admin-order-panel span,
.admin-order-panel small,
.admin-order-summary small {
  margin: 0;
  color: var(--muted);
}

.admin-order-kicker,
.admin-order-panel span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-order-identity h3,
.admin-order-panel strong,
.admin-order-summary strong {
  margin: 0;
  font-family: var(--font-sans);
  letter-spacing: -0.04em;
}

.admin-order-identity h3 {
  font-size: 1.35rem;
}

.admin-order-summary {
  justify-items: end;
}

.admin-order-summary strong {
  font-size: 1.5rem;
}

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

.admin-order-panel strong {
  font-size: 1rem;
}

.admin-order-delivery-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}

.admin-order-delivery-field {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  background: rgba(245, 245, 247, 0.82);
}

.admin-order-delivery-field span,
.admin-order-delivery-field small {
  margin: 0;
  color: var(--muted);
}

.admin-order-delivery-field span {
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-order-delivery-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
}

.admin-order-status-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 12px;
  flex: 1 1 420px;
}

.admin-order-status-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
}

.admin-order-open-link {
  min-width: 156px;
}

.admin-order-controls form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.admin-order-controls select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.admin-orders-table td small,
.admin-orders-table td strong {
  display: block;
}

@media (max-width: 1100px) {
  .admin-layout,
  .order-layout,
  .admin-orders-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

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

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

  .admin-order-card-body {
    grid-template-columns: 1fr;
  }

  .order-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .order-download-item {
    flex-direction: column;
    align-items: stretch;
  }

  .order-download-button {
    width: 100%;
  }

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

  .admin-sidebar {
    padding: 18px;
  }

  .admin-chart-bars {
    gap: 8px;
    min-height: 180px;
  }

  .admin-order-card,
  .admin-order-panel {
    padding: 16px;
  }

  .admin-order-status-form {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .admin-order-open-link {
    width: 100%;
  }

  .admin-order-controls form {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   Layout improvements — product · profile · admin
   ═══════════════════════════════════════════════════════════ */

/* ── Product page ─────────────────────────────────────────── */

/* Less gap between the format pills and the 3-D viewer */
.product-viewer-top {
  margin-bottom: 20px;
}

/* Visual divider between the spec table and the action buttons */
.product-actions {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 8px;
}

/* "Back to store" takes the full bottom row and centres itself */
.product-back-button {
  grid-column: 1 / -1;
  justify-content: center;
}

/* Breathing room between product layout and the related section */
.related-head {
  margin-top: 18px;
}

/* ── Profile page ─────────────────────────────────────────── */

/* Horizontal label → value layout inside the sidebar fact cards */
.profile-fact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 15px;
}

/* Remove stacking margin now that span and strong are inline */
.profile-fact-row span {
  margin-bottom: 0;
  flex-shrink: 0;
}

.profile-fact-row strong {
  text-align: right;
  font-size: 0.95rem;
  min-width: 0;
  word-break: break-word;
}

/* Reduce gap between fact rows since they are now shorter */
.profile-facts {
  gap: 10px;
}

/* Separator line above specialty / format chips */
.profile-specialties {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

/* Slightly smaller stat chips inside item rows */
.profile-item-stats .profile-meta-chip {
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.78rem;
}

/* ── Admin page ───────────────────────────────────────────── */

/* Consistent shell padding across all three main sections */
.profile-hero {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.profile-hero-inner {
  display: block;
}

.profile-hero-main {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.creator-avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fafc, #eef3fb);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.profile-hero-avatar {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  font-size: 1.7rem;
}

.profile-hero-info {
  gap: 12px;
}

.profile-hero-copy {
  display: grid;
  gap: 6px;
}

.profile-hero-namerow h1 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.profile-hero-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.profile-hero-headline {
  max-width: 38ch;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.profile-hero-bio {
  max-width: 62ch;
  font-size: 0.94rem;
}

.profile-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.profile-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 2px;
}

.profile-hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  background: #f7f8fa;
  box-shadow: none;
}

.profile-hero-stat strong {
  font-size: 0.96rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.profile-hero-stat span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-body {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.profile-primary {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.profile-items-panel {
  gap: 18px;
}

.profile-panel-top {
  align-items: flex-start;
}

.profile-specialties {
  gap: 8px;
  padding-top: 0;
  border-top: 0;
  margin-top: 0;
}

.profile-meta-chip {
  background: rgba(248, 250, 252, 0.94);
}

.profile-item-list {
  gap: 14px;
}

.profile-item-row {
  gap: 18px;
  padding: 18px;
  border-color: rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.94));
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.profile-item-row:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 113, 227, 0.18);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.profile-item-main {
  gap: 10px;
}

.profile-item-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.profile-item-main strong {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
}

.profile-item-stats {
  gap: 8px;
}

.profile-item-actions {
  align-items: center;
}

.profile-empty {
  padding: 28px 24px;
  gap: 8px;
  border: 1px dashed rgba(0, 113, 227, 0.18);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.96));
}

.profile-empty strong {
  font-size: 1rem;
}

.profile-empty p {
  max-width: 44ch;
  font-size: 0.92rem;
  line-height: 1.65;
}

.profile-side-panel {
  position: sticky;
  top: 96px;
}

.profile-side-stack {
  display: grid;
  gap: 14px;
}

.profile-side-note {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(245, 247, 250, 0.92), rgba(255, 255, 255, 0.98));
}

.profile-side-note strong {
  font-size: 1rem;
  color: var(--text);
}

.profile-side-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.profile-side-actions {
  display: grid;
  gap: 10px;
}

.admin-overview-shell,
.admin-orders-shell {
  padding: 24px;
}

/* Coloured accent top-borders distinguish each overview card */
.admin-overview-card:nth-child(1) {
  border-top: 3px solid rgba(79, 108, 247, 0.38);
  padding-top: 14px;
}

.admin-overview-card:nth-child(2) {
  border-top: 3px solid rgba(214, 158, 46, 0.48);
  padding-top: 14px;
}

.admin-overview-card:nth-child(3) {
  border-top: 3px solid rgba(38, 138, 87, 0.42);
  padding-top: 14px;
}

/* Bottom divider under each section heading */
.admin-shell-head {
  padding-bottom: 20px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

/* Metric card numbers: bolder and slightly larger */
.admin-metric-card strong {
  font-size: 1.65rem;
  font-family: var(--font-sans);
  letter-spacing: -0.04em;
}

/* Highlight the sidebar nav link for whichever section is currently anchored */
.admin-layout:has(#overview:target) .admin-sidebar-link[href="#overview"],
.admin-layout:has(#orders:target) .admin-sidebar-link[href="#orders"],
.admin-layout:has(#listings:target) .admin-sidebar-link[href="#listings"] {
  border-color: rgba(0, 0, 0, 0.1);
  background: var(--blue-soft);
  color: var(--blue);
}

/* ═══════════════════════════════════════════════════════════
   Admin panel — professional redesign
   ═══════════════════════════════════════════════════════════ */

/* ── Layout ───────────────────────────────────────────────── */

.admin-layout {
  gap: 0;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: stretch;
  min-height: calc(100vh - 72px);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

/* ── Sidebar ──────────────────────────────────────────────── */

.admin-sidebar {
  position: sticky;
  top: 0;
  gap: 0;
  padding: 0;
  border-radius: 0;
  border: 0;
  border-right: 1px solid var(--line);
  background: #f5f5f7;
  box-shadow: none;
  align-content: start;
}

.admin-sidebar-head {
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--line);
  gap: 2px;
}

.admin-sidebar-head > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.admin-sidebar-head .eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.admin-sidebar-head h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.admin-sidebar-copy {
  display: none;
}

.admin-sidebar-nav {
  display: block;
  gap: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.admin-sidebar-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 20px;
  border: 0;
  border-radius: 0;
  border-left: 3px solid transparent;
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-sidebar-link:hover {
  transform: none;
  background: rgba(79, 108, 247, 0.05);
  border-color: rgba(79, 108, 247, 0.3);
}

.admin-sidebar-link strong {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
}

.admin-sidebar-link span {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}

.admin-layout:has(#overview:target) .admin-sidebar-link[href="#overview"],
.admin-layout:has(#orders:target) .admin-sidebar-link[href="#orders"],
.admin-layout:has(#listings:target) .admin-sidebar-link[href="#listings"] {
  border-color: var(--blue);
  background: rgba(79, 108, 247, 0.07);
  color: var(--blue);
}

.admin-layout:has(#overview:target) .admin-sidebar-link[href="#overview"] strong,
.admin-layout:has(#orders:target) .admin-sidebar-link[href="#orders"] strong,
.admin-layout:has(#listings:target) .admin-sidebar-link[href="#listings"] strong {
  color: var(--blue);
}

.admin-sidebar-stack {
  gap: 0;
  padding: 10px 0;
}

.admin-sidebar-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: background 0.15s ease;
}

.admin-sidebar-card:hover {
  transform: none;
  background: rgba(0, 0, 0, 0.025);
}

.admin-sidebar-card span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}

.admin-sidebar-card strong {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  display: block;
}

.admin-sidebar-card small {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Main content area ────────────────────────────────────── */

.admin-main {
  gap: 0;
  background: #fff;
}

/* ── Section shells ───────────────────────────────────────── */

.admin-overview-shell,
.admin-orders-shell,
.admin-shell,
.admin-editor {
  gap: 20px;
  padding: 28px 30px;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  background: #fff;
}

/* ── Section headers ──────────────────────────────────────── */

.admin-shell-head {
  padding-bottom: 16px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
}

.admin-shell-head h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.admin-shell-head h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-shell-head .eyebrow {
  margin: 0 0 4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-shell-stats {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-strong);
  gap: 0;
}

.admin-shell-stats span {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f5f5f7;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted-strong);
}

.admin-shell-stats span:not(:last-child) {
  border-right-color: transparent;
  border-radius: 6px 0 0 6px;
}

.admin-shell-stats span:not(:first-child):not(:last-child) {
  border-radius: 0;
}

.admin-shell-stats span:last-child:not(:first-child) {
  border-radius: 0 6px 6px 0;
}

.admin-shell-stats span:not(:last-child)::after {
  display: none;
}

/* ── Overview KPI cards ───────────────────────────────────── */

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

.admin-overview-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f5f7;
  transition: box-shadow 0.15s ease;
}

.admin-overview-card:hover {
  transform: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.admin-overview-card:nth-child(1) {
  border-top: 2px solid var(--blue);
  padding-top: 14px;
}

.admin-overview-card:nth-child(2) {
  border-top: 2px solid #e09a00;
  padding-top: 14px;
}

.admin-overview-card:nth-child(3) {
  border-top: 2px solid #27a35a;
  padding-top: 14px;
}

.admin-overview-card span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}

.admin-overview-card strong {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  display: block;
  line-height: 1;
}

.admin-overview-card small {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Metrics row ──────────────────────────────────────────── */

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

.admin-metric-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f5f7;
}

.admin-metric-card span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.admin-metric-card strong {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-family: var(--font-sans);
  color: var(--text);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.admin-metric-card small {
  font-size: 0.73rem;
  color: var(--muted);
  display: block;
}

/* ── Chart cards ──────────────────────────────────────────── */

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

.admin-chart-card .panel-top {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.admin-chart-card .panel-top .eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 3px;
}

.admin-chart-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.admin-chart-bar {
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--blue) 0%, rgba(79, 108, 247, 0.6) 100%);
}

.admin-chart-bar-wrap small {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
}

/* ── Order rules ──────────────────────────────────────────── */

.admin-order-rules {
  gap: 0;
}

.admin-order-rules > div {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.admin-order-rules > div:last-child {
  border-bottom: 0;
}

.admin-order-rules strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--text);
}

.admin-order-rules p {
  font-size: 0.78rem;
  line-height: 1.5;
}

/* ── Order cards ──────────────────────────────────────────── */

.admin-order-list {
  gap: 12px;
  margin-top: 4px;
}

.admin-order-card {
  gap: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.admin-order-card-top {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #f5f5f7;
}

.admin-order-panel {
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--line);
  background: transparent;
}

.admin-order-panel:last-child {
  border-right: 0;
}

.admin-order-card-body {
  border-bottom: 1px solid var(--line);
}

.admin-order-card-actions {
  padding: 14px 18px;
  background: #f5f5f7;
  border-top: 0;
}

.admin-order-kicker {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2px;
}

.admin-order-identity h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-order-token {
  font-size: 0.72rem;
  font-family: monospace;
}

.admin-order-summary strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.admin-order-panel span {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-order-panel strong {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ── Delivery field ───────────────────────────────────────── */

.admin-order-delivery-list {
  margin-bottom: 10px;
}

.admin-order-delivery-field {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f5f5f7;
}

.admin-order-delivery-field input {
  border-radius: 6px;
  min-height: 40px;
}

/* ── Status form ──────────────────────────────────────────── */

.admin-order-status-form select {
  border-radius: 6px;
  min-height: 40px;
  border-color: var(--line-strong);
}

/* ── Status badges ────────────────────────────────────────── */

.admin-table-status {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #e8f0fe;
  color: #3a4fa8;
}

.admin-table-status.is-live {
  border-color: rgba(38, 163, 90, 0.2);
  background: #edfaf3;
  color: #1f7a4d;
}

.admin-table-status.is-pending {
  background: #fffbec;
  border-color: rgba(214, 158, 46, 0.22);
  color: #8d5a00;
}

.admin-table-status.is-working {
  background: #e8f0fe;
  border-color: rgba(79, 108, 247, 0.2);
  color: #3150c2;
}

.admin-table-status.is-ready {
  background: #edfaf3;
  border-color: rgba(38, 163, 90, 0.2);
  color: #1f7a4d;
}

/* ── Table ────────────────────────────────────────────────── */

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

.admin-table th {
  background: #f5f5f7;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  color: var(--muted-strong);
  padding: 10px 14px;
}

.admin-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.admin-table tbody tr:hover td {
  background: #f5f5f7;
}

.admin-table-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  transition: opacity 0.15s;
}

.admin-table-link:hover {
  opacity: 0.75;
}

.admin-table-link.is-danger {
  color: #b93c2e;
}

/* ── Bulk action bar ──────────────────────────────────────── */

.admin-bulk-bar {
  padding: 10px 0 0;
  gap: 10px;
}

.admin-bulk-bar select {
  border-radius: 6px;
  min-height: 36px;
  border-color: var(--line-strong);
  font-size: 0.85rem;
}

.admin-bulk-bar .secondary-link {
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.85rem;
  border-radius: 6px;
}

/* ── Editor form ──────────────────────────────────────────── */

.admin-editor-meta {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f5f5f7;
  font-size: 0.78rem;
  font-weight: 600;
  gap: 0;
}

.admin-editor-meta span {
  padding: 2px 12px;
  border-right: 1px solid var(--line);
  color: var(--muted-strong);
  font-weight: 600;
}

.admin-editor-meta span:last-child {
  border-right: 0;
}

.admin-editor-meta span:not(:last-child)::after {
  display: none;
}

.admin-toggle {
  border-radius: 6px;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  border-radius: 6px;
}

.admin-card-actions {
  padding-top: 4px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

/* ── Alerts ───────────────────────────────────────────────── */

.page-alert {
  border-radius: 6px;
  margin: 0 30px;
}

/* ── Responsive overrides ─────────────────────────────────── */

@media (max-width: 1100px) {
  .admin-layout {
    grid-template-columns: 1fr;
    border-radius: 8px;
  }

  .admin-sidebar {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

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

  .admin-overview-card:nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .admin-overview-shell,
  .admin-orders-shell,
  .admin-shell,
  .admin-editor {
    padding: 18px 16px;
  }

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

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

  .admin-overview-card:nth-child(3) {
    grid-column: 1;
  }

  .page-alert {
    margin: 0 16px;
  }
}

/* ═══════════════════════════════════════════════════════════
   Admin app-shell (SaasAble-style full-screen layout)
   ═══════════════════════════════════════════════════════════ */

body.admin-page {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  background: #f5f5f7;
}

/* ── Shell grid ───────────────────────────────────────────── */

.adm-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}

/* ── Sidebar ──────────────────────────────────────────────── */

.adm-sidebar {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.adm-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background var(--t-fast);
}

.adm-sidebar-brand:hover {
  background: rgba(79, 108, 247, 0.02);
}

.adm-sidebar-brand .brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--blue), var(--blue-deep));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: none;
}

.adm-sidebar-brand strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.adm-sidebar-brand small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.adm-nav {
  flex: 1;
  padding: 14px 10px;
}

.adm-nav-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 10px;
  margin: 10px 0 4px;
}

.adm-nav-label:first-child {
  margin-top: 0;
}

.adm-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-strong);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
  border: none;
  background: transparent;
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.adm-nav-link:hover {
  background: rgba(79, 108, 247, 0.07);
  color: var(--text);
}

.adm-nav-link.is-active {
  background: rgba(0, 0, 0, 0.06);
  color: var(--blue);
  font-weight: 600;
}

.adm-nav-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.adm-nav-badge {
  margin-left: auto;
  background: var(--blue);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  line-height: 1.6;
}

.adm-nav-divider {
  height: 1px;
  background: var(--line);
  margin: 10px 10px;
}

.adm-sidebar-foot {
  padding: 10px;
  border-top: 1px solid var(--line);
}

/* ── Right body ───────────────────────────────────────────── */

.adm-body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ── Top bar ──────────────────────────────────────────────── */

.adm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  flex-shrink: 0;
}

.adm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.adm-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.adm-breadcrumb a:hover {
  color: var(--blue);
}

.adm-breadcrumb-sep {
  color: var(--muted);
  opacity: 0.5;
}

.adm-breadcrumb-current {
  color: var(--text);
  font-weight: 600;
}

.adm-topbar-end {
  display: flex;
  align-items: center;
  gap: 12px;
}

.adm-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.adm-user-chip:hover {
  border-color: var(--blue);
}

.adm-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adm-user-chip strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.adm-user-chip small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}

/* ── Tab bar ──────────────────────────────────────────────── */

.adm-tabs {
  display: flex;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  flex-shrink: 0;
}

.adm-tab {
  display: inline-flex;
  align-items: center;
  padding: 13px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.adm-tab:hover {
  color: var(--text);
}

/* Default: Overview tab is active */
.adm-tab[href="#overview"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.adm-shell:has(#orders:target) .adm-tab[href="#overview"],
.adm-shell:has(#listings:target) .adm-tab[href="#overview"] {
  color: var(--muted);
  border-bottom-color: transparent;
}

.adm-shell:has(#orders:target) .adm-tab[href="#orders"],
.adm-shell:has(#listings:target) .adm-tab[href="#listings"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* ── Sidebar nav active state ─────────────────────────────── */

.adm-nav-link[href="#overview"] {
  color: var(--blue);
  background: rgba(0, 0, 0, 0.05);
  font-weight: 700;
}

.adm-shell:has(#orders:target) .adm-nav-link[href="#overview"],
.adm-shell:has(#listings:target) .adm-nav-link[href="#overview"] {
  color: var(--muted-strong);
  background: transparent;
  font-weight: 500;
}

.adm-shell:has(#orders:target) .adm-nav-link[href="#orders"],
.adm-shell:has(#listings:target) .adm-nav-link[href="#listings"] {
  color: var(--blue);
  background: rgba(0, 0, 0, 0.05);
  font-weight: 700;
}

/* ── Content area ─────────────────────────────────────────── */

.adm-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 24px;
  background: #f5f5f7;
}

/* ── Flash messages ───────────────────────────────────────── */

.adm-flash {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.adm-flash-error {
  background: #fff0f0;
  border: 1px solid rgba(220, 53, 69, 0.25);
  color: #b91c1c;
}

.adm-flash-success {
  background: #f0fdf4;
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #166534;
}

/* ── KPI row ──────────────────────────────────────────────── */

.adm-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.adm-kpi-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  border-top: 3px solid transparent;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}

.adm-kpi-card:nth-child(1) { border-top-color: var(--blue); }
.adm-kpi-card:nth-child(2) { border-top-color: var(--clr-success); }
.adm-kpi-card:nth-child(3) { border-top-color: var(--clr-warning); }
.adm-kpi-card:nth-child(4) { border-top-color: var(--clr-info); }

.adm-kpi-card:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.adm-kpi-card p {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.adm-kpi-card strong {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text);
  font-family: var(--font-sans);
  margin-bottom: 4px;
  line-height: 1;
}

.adm-kpi-card small {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Sections ─────────────────────────────────────────────── */

.adm-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 20px;
}

.adm-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.adm-section-title p {
  margin: 0 0 2px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.adm-section-title h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.adm-stat-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.adm-stat-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-strong);
  background: #f5f5f7;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ── Metrics grid (orders) ────────────────────────────────── */

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

.adm-metric-card {
  background: #f5f5f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
}

.adm-metric-card span {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.adm-metric-card strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-family: var(--font-sans);
  color: var(--text);
  margin-bottom: 2px;
}

.adm-metric-card small {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ── Orders chart grid ────────────────────────────────────── */

.adm-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.adm-chart-card {
  background: #f5f5f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.adm-chart-card-head {
  margin-bottom: 16px;
}

.adm-chart-card-head p {
  margin: 0 0 2px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.adm-chart-card-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

/* ── Bar chart ────────────────────────────────────────────── */

.adm-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 110px;
}

.adm-chart-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.adm-chart-bar {
  width: 100%;
  min-height: 10px;
  border-radius: 4px 4px 0 0;
  background: var(--blue);
  opacity: 0.7;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4px;
  transition: opacity 0.15s ease;
}

.adm-chart-bar:hover {
  opacity: 1;
}

.adm-chart-bar span {
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
}

.adm-chart-bar-wrap small {
  font-size: 0.65rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Progress rules ───────────────────────────────────────── */

.adm-order-rules {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.adm-order-rule {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.adm-order-rule:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.adm-order-rule strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.adm-order-rule p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Order cards ──────────────────────────────────────────── */

.adm-order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.adm-order-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.adm-order-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f5f5f7;
  border-bottom: 1px solid var(--line);
}

.adm-order-ref {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2px;
}

.adm-order-card-top h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.adm-order-card-top .adm-order-token {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: monospace;
}

.adm-order-summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-order-summary strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.adm-order-summary small {
  font-size: 0.75rem;
  color: var(--muted);
}

.adm-order-card-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.adm-order-panel {
  padding: 14px 18px;
  border-right: 1px solid var(--line);
}

.adm-order-panel:last-child {
  border-right: none;
}

.adm-order-panel span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.adm-order-panel strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.adm-order-panel small {
  font-size: 0.72rem;
  color: var(--muted);
}

.adm-order-card-actions {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.adm-order-status-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  flex-wrap: wrap;
}

.adm-payout-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.adm-payout-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.adm-payout-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}

.adm-order-delivery-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.adm-order-delivery-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--muted-strong);
}

.adm-order-delivery-field input {
  font-size: 0.82rem;
}

.adm-order-delivery-field small {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ── Empty state ──────────────────────────────────────────── */

.adm-empty {
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
}

.adm-empty h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.adm-empty p {
  margin: 0;
  font-size: 0.85rem;
}

/* ── Bulk bar ─────────────────────────────────────────────── */

.adm-bulk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.adm-bulk-select-all {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.adm-bulk-count {
  font-size: 0.82rem;
  color: var(--muted);
  min-width: 60px;
}

/* ── Table ────────────────────────────────────────────────── */

.adm-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.adm-table thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  background: #f5f5f7;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.adm-table tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background 0.1s ease;
}

.adm-table tbody tr:last-child {
  border-bottom: none;
}

.adm-table tbody tr:hover {
  background: rgba(79, 108, 247, 0.035);
}

.adm-table tbody tr:hover td {
  color: var(--text);
}

.adm-table td {
  padding: 10px 14px;
  color: var(--text);
  vertical-align: middle;
}

.adm-table-title strong {
  display: block;
  font-weight: 700;
  margin-bottom: 1px;
}

.adm-table-title small {
  color: var(--muted);
  font-size: 0.75rem;
}

.adm-table-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #f5f5f7;
  color: var(--muted-strong);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.adm-table-status.is-live {
  background: var(--clr-success-soft);
  border-color: rgba(22, 163, 74, 0.28);
  color: #14532d;
}

.adm-table-status.is-pending {
  background: var(--clr-warning-soft);
  border-color: rgba(217, 119, 6, 0.28);
  color: #78350f;
}

.adm-table-status.is-done {
  background: var(--blue-soft);
  border-color: rgba(0, 113, 227, 0.22);
  color: var(--blue-deep);
}

.adm-table-status.is-danger {
  background: #fff1f2;
  border-color: rgba(225, 29, 72, 0.18);
  color: #be123c;
}

.adm-table-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.adm-table-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.adm-table-link:hover {
  text-decoration: underline;
}

.adm-table-link.is-danger {
  color: #dc2626;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 1100px) {
  .adm-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .adm-kpi-row,
  .adm-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .adm-chart-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .adm-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .adm-sidebar {
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .adm-body {
    height: calc(100vh - 60px);
  }

  .adm-kpi-row,
  .adm-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .adm-order-card-body {
    grid-template-columns: 1fr;
  }

  .adm-order-panel {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .adm-order-panel:last-child {
    border-bottom: none;
  }
}

/* Site theme — Apple white */

body.site-theme {
  color: #1d1d1f;
  background: #fbfbfd;
}

body.site-theme .shell-inner {
  width: min(1360px, calc(100% - 44px));
}

body.site-theme .top-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(251, 251, 253, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: none;
}

body.site-theme .top-header-inner {
  gap: 24px;
  min-height: 84px;
}

body.site-theme .brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(180deg, #1d1d1f, #3a3a3c);
  color: #fff;
  font-size: 1.45rem;
  box-shadow: none;
}

body.site-theme .top-nav-link {
  color: var(--muted-strong);
}

body.site-theme .top-nav-link:hover,
body.site-theme .top-nav-link.is-active {
  color: var(--text);
}

body.site-theme .secondary-link,
body.site-theme .header-link,
body.site-theme .profile-chip {
  border-color: rgba(0, 0, 0, 0.08);
  background: #ffffff;
  color: var(--text);
  box-shadow: none;
}

body.site-theme .hero-link,
body.site-theme .buy-button {
  background: var(--blue);
  color: #fff;
  box-shadow: none;
}

body.site-theme .secondary-link:hover,
body.site-theme .header-link:hover,
body.site-theme .profile-chip:hover {
  border-color: rgba(0, 0, 0, 0.12);
  background: #f5f5f7;
  color: var(--text);
}

body.site-theme .header-link.is-active {
  border-color: rgba(0, 113, 227, 0.2);
  background: var(--blue-soft);
  color: var(--blue);
}

body.site-theme .avatar {
  background: linear-gradient(180deg, var(--blue), var(--blue-deep));
}

body.site-theme .header-count,
body.site-theme .soft-pill {
  background: var(--blue-soft);
  color: var(--blue);
}

body.site-theme .storefront {
  padding: 18px 0 54px;
}

body.site-theme .storefront-inner {
  gap: 20px;
}

body.site-theme .content-panel,
body.site-theme .product-viewer-panel,
body.site-theme .product-info-panel,
body.site-theme .related-card,
body.site-theme .guest-banner,
body.site-theme .store-toolbar {
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  backdrop-filter: none;
}

body.site-theme .page-alert {
  margin: 0;
  border-radius: 12px;
}

body.site-theme .page-alert-error {
  border-color: rgba(255, 59, 48, 0.15);
  background: #fff2f1;
}

body.site-theme .page-alert-success {
  border-color: rgba(52, 199, 89, 0.15);
  background: #f0fdf4;
}

body.site-theme .eyebrow,
body.site-theme .text-link,
body.site-theme .site-footer-link:hover,
body.site-theme .site-footer-link:focus-visible {
  color: var(--blue);
}

body.site-theme .guest-banner {
  background: #f5f5f7;
}

body.site-theme .guest-banner-copy p,
body.site-theme .site-footer-copy,
body.site-theme .site-footer-link {
  color: var(--muted);
}

body.site-theme .product-viewer-shell,
body.site-theme .upload-preview-panel,
body.site-theme .viewer-placeholder,
body.site-theme .related-card-media,
body.site-theme .checkout-card,
body.site-theme .order-summary-card,
body.site-theme .order-note-box,
body.site-theme .order-progress-step,
body.site-theme .order-download-item,
body.site-theme .cart-item,
body.site-theme .cart-summary-rows div,
body.site-theme .profile-item-row,
body.site-theme .profile-fact-row,
body.site-theme .product-specs div,
body.site-theme .auth-card,
body.site-theme .auth-role-option,
body.site-theme .checkout-steps-preview div,
body.site-theme .stripe-checkout-panel,
body.site-theme .payment-method-panel {
  border-color: rgba(0, 0, 0, 0.06);
  background: #ffffff;
  color: var(--text);
  box-shadow: none;
}

body.site-theme .product-viewer-shell,
body.site-theme .upload-preview-panel,
body.site-theme .upload-dropzone {
  background: #f5f5f7;
}

body.site-theme .order-status-pill.is-ready,
body.site-theme .order-progress-step.is-complete {
  border-color: rgba(52, 199, 89, 0.2);
  background: #f0fdf4;
  color: #166534;
}

body.site-theme .order-status-pill.is-working,
body.site-theme .order-progress-step.is-current {
  border-color: rgba(0, 113, 227, 0.2);
  background: var(--blue-soft);
  color: var(--blue);
}

body.site-theme .order-status-pill.is-pending {
  border-color: rgba(255, 159, 10, 0.2);
  background: #fffbeb;
  color: #92400e;
}

body.site-theme .order-progress-index,
body.site-theme .store-category-chip-mark {
  background: #f5f5f7;
  color: var(--text);
}

body.site-theme .auth-card {
  background: transparent;
  box-shadow: none;
}

body.site-theme .auth-field input,
body.site-theme .upload-field input,
body.site-theme .upload-field select,
body.site-theme .upload-field textarea,
body.site-theme .cart-quantity-form input {
  border-color: rgba(0, 0, 0, 0.1);
  background: #ffffff;
  color: var(--text);
}

body.site-theme .auth-field input::placeholder,
body.site-theme .upload-field input::placeholder,
body.site-theme .upload-field textarea::placeholder {
  color: var(--muted);
}

body.site-theme .auth-role-option::before {
  border-color: rgba(0, 0, 0, 0.15);
  background: #fff;
}

body.site-theme .auth-field input:focus,
body.site-theme .upload-field input:focus,
body.site-theme .upload-field select:focus,
body.site-theme .upload-field textarea:focus,
body.site-theme .cart-quantity-form input:focus {
  border-color: rgba(0, 113, 227, 0.5);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.08);
}

body.site-theme .tag-picker-option span,
body.site-theme .payment-tab {
  border-color: rgba(0, 0, 0, 0.08);
  background: #ffffff;
  color: var(--text);
}

body.site-theme .tag-picker-option input:checked + span,
body.site-theme .payment-tab.is-active {
  border-color: rgba(0, 113, 227, 0.3);
  background: var(--blue-soft);
  color: var(--blue);
}

body.site-theme .upload-dropzone {
  border-color: rgba(0, 0, 0, 0.12);
}

body.site-theme .upload-dropzone:hover,
body.site-theme .upload-dropzone.is-dragover {
  border-color: rgba(0, 113, 227, 0.4);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.06);
}

body.site-theme .card-footer,
body.site-theme .admin-card-actions,
body.site-theme .profile-specialties {
  border-top-color: rgba(0, 0, 0, 0.06);
}

body.site-theme .related-card-placeholder,
body.site-theme .profile-hero-avatar,
body.site-theme .profile-hero-stat,
body.site-theme .profile-side-note,
body.site-theme .profile-empty {
  background: #f5f5f7;
  color: var(--text);
}

body.site-theme .profile-hero-avatar {
  border: 1px solid rgba(0, 0, 0, 0.06);
}

body.site-theme .profile-item-row,
body.site-theme .profile-hero-stat,
body.site-theme .profile-side-note,
body.site-theme .profile-empty {
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: none;
}

body.site-theme .site-footer {
  margin-top: auto;
  border-top: 0;
  background: transparent;
  backdrop-filter: none;
}

@media (max-width: 920px) {
  body.site-theme .shell-inner {
    width: calc(100% - 24px);
  }

  body.site-theme .top-header {
    position: static;
  }

  body.site-theme .top-header-inner {
    padding: 14px 0;
  }

  .profile-hero-inner,
  .profile-body,
  .profile-item-row {
    grid-template-columns: 1fr;
  }

  .profile-hero-main {
    flex-direction: column;
  }

  .profile-side-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  body.site-theme .shell-inner {
    width: calc(100% - 16px);
  }

  body.site-theme .brand-copy small {
    display: none;
  }

  .profile-hero {
    padding: 18px;
  }

  .profile-hero-avatar {
    width: 78px;
    height: 78px;
    border-radius: 24px;
    font-size: 1.65rem;
  }

  .profile-hero-stats {
    gap: 8px;
  }

  .profile-hero-stat {
    min-height: 36px;
    padding: 0 12px;
  }

  .profile-panel-actions,
  .profile-hero-actions,
  .profile-item-actions,
  .profile-side-actions {
    width: 100%;
  }

  .profile-item-actions .secondary-link,
  .profile-hero-actions .secondary-link,
  .profile-hero-actions .hero-link,
  .profile-side-actions .secondary-link,
  .profile-side-actions .hero-link {
    width: 100%;
  }
}

/* Store theme */

body.store-theme {
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(168, 204, 255, 0.32), transparent 26%),
    radial-gradient(circle at top right, rgba(255, 232, 214, 0.55), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f5f7fb 42%, #eef3fa 100%);
}

body.store-theme .page-orb {
  display: block;
  opacity: 0.6;
}

body.store-theme .page-orb-left {
  top: -120px;
  left: -120px;
  width: 360px;
  height: 360px;
  background: rgba(144, 197, 255, 0.28);
}

body.store-theme .page-orb-right {
  top: 120px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: rgba(255, 219, 186, 0.28);
}

body.store-theme .shell-inner {
  width: min(1320px, calc(100% - 44px));
}

body.store-theme .top-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(26px);
  -webkit-backdrop-filter: saturate(180%) blur(26px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

body.store-theme .top-header-inner {
  gap: 20px;
  min-height: 68px;
}

body.store-theme .brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(180deg, #1d1d1f, #3a3a3c);
  color: #ffffff;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(29, 29, 31, 0.12);
}

body.store-theme .brand-copy strong,
body.store-theme .top-nav-link,
body.store-theme .card-heading h2,
body.store-theme .store-results-head h1 {
  color: var(--text);
}

body.store-theme .brand-copy small,
body.store-theme .profile-copy small,
body.store-theme .store-breadcrumbs,
body.store-theme .card-subtitle {
  color: var(--muted-strong);
}

body.store-theme .store-primary-nav {
  flex: 1 1 auto;
  justify-content: flex-start;
  gap: 6px;
}

body.store-theme .top-nav-link,
body.store-theme .store-nav-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

body.store-theme .store-nav-button {
  font: inherit;
}

body.store-theme .top-nav-link:hover,
body.store-theme .store-nav-button:hover,
body.store-theme .top-nav-link.active,
body.store-theme .store-nav-button.active {
  border-color: rgba(0, 113, 227, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

body.store-theme .top-actions {
  gap: 8px;
}

body.store-theme .secondary-link,
body.store-theme .header-link,
body.store-theme .profile-chip,
body.store-theme .buy-button,
body.store-theme .hero-link,
body.store-theme .view-btn,
body.store-theme .filter-pill,
body.store-theme .toolbar-tab,
body.store-theme .soft-pill {
  box-shadow: none;
}

body.store-theme .secondary-link,
body.store-theme .header-link,
body.store-theme .profile-chip {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
}

body.store-theme .hero-link,
body.store-theme .buy-button {
  background: linear-gradient(180deg, #0a84ff, #0071e3);
  color: #fff;
}

body.store-theme .header-link.is-active,
body.store-theme .secondary-link:hover,
body.store-theme .header-link:hover,
body.store-theme .profile-chip:hover {
  border-color: rgba(0, 113, 227, 0.16);
  background: #ffffff;
  color: var(--text);
}

body.store-theme .avatar {
  background: linear-gradient(180deg, #0a84ff, #0071e3);
}

body.store-theme .header-count,
body.store-theme .soft-pill {
  background: #eaf3ff;
  color: var(--blue);
}

body.store-theme .storefront {
  padding: 12px 0 52px;
}

body.store-theme .storefront-inner {
  gap: 16px;
}

body.store-theme .content-panel,
body.store-theme .store-toolbar,
body.store-theme .guest-banner,
body.store-theme .model-card {
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
  backdrop-filter: saturate(180%) blur(24px);
}

body.store-theme .page-alert-error {
  border-color: rgba(255, 59, 48, 0.14);
  background: rgba(255, 242, 241, 0.95);
}

body.store-theme .page-alert-success {
  border-color: rgba(52, 199, 89, 0.16);
  background: rgba(240, 253, 244, 0.95);
}

body.store-theme .page-alert {
  margin: 0;
  border-radius: 18px;
}

body.store-theme .store-hero-banner {
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(10, 132, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 252, 0.92));
}

body.store-theme .guest-banner-copy strong {
  color: var(--text);
  font-size: 1rem;
}

body.store-theme .guest-banner-copy p {
  color: var(--muted-strong);
}

body.store-theme .store-search-panel {
  display: grid;
  gap: 8px;
  padding: 0 2px;
}

body.store-theme .store-search-panel,
body.store-theme .store-toolbar-reference,
body.store-theme .store-results-head,
body.store-theme .model-grid-wrap,
body.store-theme .store-pagination {
  width: 100%;
  max-width: 1188px;
  margin-inline: auto;
}

body.store-theme .store-search-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}

body.store-theme .store-search-shell:focus-within {
  border-color: rgba(0, 113, 227, 0.3);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.08), 0 16px 32px rgba(15, 23, 42, 0.06);
  background: #ffffff;
}

body.store-theme .store-search-icon,
body.store-theme .store-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--muted);
}

body.store-theme .store-search-icon svg,
body.store-theme .store-search-clear svg {
  width: 100%;
  height: 100%;
}

body.store-theme .store-search-clear {
  border: 0;
  background: transparent;
  cursor: pointer;
}

body.store-theme .store-search-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.98rem;
  outline: none;
}

body.store-theme .store-search-input::placeholder {
  color: var(--muted);
}

body.store-theme .store-results-head,
body.store-theme .store-toolbar-reference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 8;
}

body.store-theme .store-results-meta,
body.store-theme .store-toolbar-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.store-theme .store-results-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

body.store-theme .store-toolbar-reference {
  padding: 8px 5px 5px;
  border: 0;
  background: transparent;
}

body.store-theme .store-view-tabs,
body.store-theme .store-format-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.store-theme .store-toolbar-side {
  justify-content: flex-end;
}

body.store-theme .store-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 4px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

body.store-theme .store-dropdown.is-open {
  z-index: 12;
  border-color: rgba(0, 113, 227, 0.28);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.08), 0 14px 28px rgba(15, 23, 42, 0.08);
}

body.store-theme .store-dropdown-label {
  padding-left: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

body.store-theme .store-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 164px;
  min-height: 32px;
  padding: 0 10px 0 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

body.store-theme .store-dropdown-toggle:focus-visible {
  outline: none;
}

body.store-theme .store-dropdown-chevron {
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 160ms ease;
}

body.store-theme .store-dropdown.is-open .store-dropdown-chevron {
  transform: rotate(-135deg) translateY(-1px);
}

body.store-theme .store-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  min-width: 100%;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

body.store-theme .store-dropdown-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted-strong);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

body.store-theme .store-dropdown-option:hover,
body.store-theme .store-dropdown-option:focus-visible {
  background: #f5f8ff;
  color: var(--text);
  outline: none;
}

body.store-theme .store-dropdown-option.is-selected {
  background: var(--blue-soft);
  color: var(--blue);
}

.ui-select {
  position: relative;
  display: inline-flex;
  width: 100%;
}

.ui-select.is-compact {
  width: auto;
  min-width: 164px;
}

.ui-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.ui-select-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.ui-select.is-compact .ui-select-toggle {
  min-height: 42px;
  min-width: 164px;
}

.ui-select-toggle:focus-visible {
  outline: none;
}

.ui-select-toggle:disabled {
  cursor: default;
}

.ui-select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-select-chevron {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 160ms ease;
}

.ui-select.is-open .ui-select-chevron {
  transform: rotate(-135deg) translateY(-1px);
}

.ui-select-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 40;
  min-width: 100%;
  padding: 8px;
  border-radius: 16px;
}

.ui-select-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.ui-select-option:focus-visible {
  outline: none;
}

.ui-select-option[disabled] {
  opacity: 0.42;
  cursor: default;
}

body.site-theme .ui-select {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.site-theme .ui-select.is-open {
  border-color: rgba(0, 113, 227, 0.3);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.08);
}

body.site-theme .ui-select-toggle {
  color: var(--text);
}

body.site-theme .ui-select-menu {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

body.site-theme .ui-select-option {
  color: var(--muted-strong);
}

body.site-theme .ui-select-option:hover,
body.site-theme .ui-select-option:focus-visible {
  background: #f5f8ff;
  color: var(--text);
}

body.site-theme .ui-select-option.is-selected {
  background: var(--blue-soft);
  color: var(--blue);
}

body.admin-page .ui-select {
  border: 1px solid #2d3036;
  border-radius: 14px;
  background: #17191d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

body.admin-page .ui-select.is-open {
  border-color: rgba(73, 157, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(73, 157, 255, 0.08);
}

body.admin-page .ui-select-toggle {
  color: #f7f9fc;
}

body.admin-page .ui-select-menu {
  border: 1px solid #2d3036;
  background: #17191d;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

body.admin-page .ui-select-option {
  color: #cfd5df;
}

body.admin-page .ui-select-option:hover,
body.admin-page .ui-select-option:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

body.admin-page .ui-select-option.is-selected {
  background: rgba(73, 157, 255, 0.12);
  color: #ffffff;
}

body.site-theme .upload-field .ui-select,
body.site-theme .admin-field .ui-select,
body.admin-page .upload-field .ui-select,
body.admin-page .admin-field .ui-select {
  width: 100%;
}

body.admin-page .adm-bulk-bar .ui-select,
body.admin-page .adm-order-status-form .ui-select {
  flex: 0 0 auto;
}

body.store-theme .toolbar-tab,
body.store-theme .filter-pill,
body.store-theme .view-btn {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted-strong);
}

body.store-theme .toolbar-tab {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
}

body.store-theme .toolbar-tab.active,
body.store-theme .filter-pill.active,
body.store-theme .view-btn.active {
  border-color: rgba(0, 113, 227, 0.18);
  background: var(--blue-soft);
  color: var(--blue);
}

body.store-theme .toolbar-tab:hover,
body.store-theme .filter-pill:hover,
body.store-theme .view-btn:hover {
  border-color: rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: var(--text);
}

body.store-theme .filter-pill {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

body.store-theme .store-results-head {
  padding: 6px 2px 0;
}

body.store-theme .store-results-head h1 {
  margin: 0;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

body.store-theme .eyebrow {
  color: var(--blue);
}

body.store-theme .model-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: stretch;
  gap: 12px;
}

body.store-theme .model-grid.is-list-view {
  grid-template-columns: 1fr;
  justify-content: stretch;
}

body.store-theme .model-card {
  gap: 12px;
  padding: 10px;
  border-radius: 20px;
  grid-template-rows: minmax(300px, auto) 1fr;
}

body.store-theme .model-card:hover {
  transform: translateY(-3px) scale(1.008);
  border-color: rgba(0, 113, 227, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.1);
}

body.store-theme .model-grid.is-list-view .model-card {
  grid-template-columns: 260px 1fr;
  grid-template-rows: 1fr;
}

body.store-theme .card-media {
  min-height: 300px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.24));
  box-shadow: inset 0 -32px 44px rgba(255, 255, 255, 0.22);
}

body.store-theme .card-media::after {
  height: 40%;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.16) 100%);
}

body.store-theme .media-sky,
body.store-theme .media-navy,
body.store-theme .media-peach,
body.store-theme .media-orange,
body.store-theme .media-violet,
body.store-theme .media-green {
  box-shadow: inset 0 -20px 36px rgba(255, 255, 255, 0.18);
}

body.store-theme .media-sky {
  background: linear-gradient(145deg, #e7f3ff, #d2e7ff 55%, #f7fbff);
}

body.store-theme .media-navy {
  background: linear-gradient(145deg, #d6e2ff, #bdccff 55%, #edf2ff);
}

body.store-theme .media-peach {
  background: linear-gradient(145deg, #fff0e4, #ffe3cf 55%, #fff8f2);
}

body.store-theme .media-orange {
  background: linear-gradient(145deg, #ffd8c2, #ffc59f 55%, #ffe9db);
}

body.store-theme .media-violet {
  background: linear-gradient(145deg, #eee8ff, #ddd3ff 55%, #f8f6ff);
}

body.store-theme .media-green {
  background: linear-gradient(145deg, #e6f8db, #d3f0c1 55%, #f4fdea);
}

body.store-theme .card-media-placeholder strong,
body.store-theme .viewer-placeholder-copy strong {
  color: rgba(29, 29, 31, 0.94);
}

body.store-theme .card-media-placeholder p,
body.store-theme .viewer-placeholder-copy p {
  color: var(--muted-strong);
}

body.store-theme .card-cart-button,
body.store-theme .card-price-badge {
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

body.store-theme .card-price-badge.is-free {
  color: var(--blue);
}

body.store-theme .card-content {
  gap: 8px;
  padding: 4px 4px 6px;
}

body.store-theme .card-heading h2 {
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
  font-weight: 700;
}

body.store-theme .card-subtitle {
  margin: 0;
  font-size: 0.86rem;
}

body.store-theme .card-submeta-row .card-meta-row {
  align-items: center;
  flex-direction: row;
}

body.store-theme .card-meta-row {
  gap: 8px;
  align-items: flex-start;
  flex-direction: column;
}

body.store-theme .card-tags,
body.store-theme .card-format-tags,
body.store-theme .card-side-meta {
  gap: 6px;
}

body.store-theme .card-tag {
  min-height: 24px;
  padding: 0 8px;
  border-color: rgba(15, 23, 42, 0.06);
  background: rgba(245, 245, 247, 0.92);
  color: var(--muted-strong);
  font-size: 0.72rem;
}

body.store-theme .card-tag-type {
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
}

body.store-theme .card-footer {
  gap: 6px;
  padding-top: 8px;
  border-top-color: rgba(15, 23, 42, 0.06);
}

body.store-theme .card-footer .buy-button,
body.store-theme .card-footer .secondary-link,
body.store-theme .card-footer .card-download-link {
  min-height: 36px;
  border-radius: 10px;
  font-size: 0.8rem;
}

body.store-theme .card-footer .secondary-link {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

body.store-theme .store-results-meta .soft-pill {
  display: inline-flex;
}

body.store-theme .site-footer {
  margin-top: auto;
  border-top: 0;
  background: transparent;
  backdrop-filter: none;
}

body.store-theme .site-footer-copy,
body.store-theme .site-footer-link {
  color: var(--muted-strong);
}

body.store-theme .site-footer-link:hover,
body.store-theme .site-footer-link:focus-visible {
  color: var(--blue);
}

body.store-theme .store-empty-search {
  margin-top: 6px;
  border-radius: 18px;
}

@media (max-width: 1400px) {
  body.store-theme .model-grid,
  body.store-theme .sk-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: stretch;
  }
}

@media (max-width: 1180px) {
  body.store-theme .top-header-inner,
  body.store-theme .store-directory,
  body.store-theme .store-toolbar-reference,
  body.store-theme .store-results-head {
    align-items: flex-start;
  }

  body.store-theme .model-grid,
  body.store-theme .sk-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }
}

@media (max-width: 920px) {
  body.store-theme .shell-inner {
    width: calc(100% - 24px);
  }

  body.store-theme .top-header {
    position: static;
  }

  body.store-theme .top-header-inner {
    gap: 16px;
    padding: 14px 0;
  }

  body.store-theme .store-primary-nav,
  body.store-theme .top-actions,
  body.store-theme .store-directory,
  body.store-theme .store-toolbar-reference,
  body.store-theme .store-results-head {
    width: 100%;
  }

  body.store-theme .store-primary-nav,
  body.store-theme .store-format-filters,
  body.store-theme .store-chip-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  body.store-theme .store-primary-nav::-webkit-scrollbar,
  body.store-theme .store-format-filters::-webkit-scrollbar,
  body.store-theme .store-chip-row::-webkit-scrollbar {
    display: none;
  }

  body.store-theme .model-grid,
  body.store-theme .sk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  body.store-theme .model-grid.is-list-view .model-card {
    grid-template-columns: 1fr;
  }

  body.store-theme .model-grid.is-list-view .card-media {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  body.store-theme .shell-inner {
    width: calc(100% - 16px);
  }

  body.store-theme .brand-copy small {
    display: none;
  }

  body.store-theme .store-search-shell {
    min-height: 52px;
    padding: 0 14px;
  }

  body.store-theme .store-directory-meta,
  body.store-theme .store-results-meta,
  body.store-theme .store-toolbar-side {
    width: 100%;
  }

  body.store-theme .store-toolbar-reference,
  body.store-theme .store-directory,
  body.store-theme .store-results-head {
    gap: 10px;
  }

  body.store-theme .store-search-panel,
  body.store-theme .store-toolbar-reference,
  body.store-theme .store-results-head,
  body.store-theme .model-grid-wrap,
  body.store-theme .store-pagination {
    max-width: none;
  }

  body.store-theme .model-grid,
  body.store-theme .sk-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  body.store-theme .model-card,
  body.store-theme .content-panel,
  body.store-theme .guest-banner {
    border-radius: 14px;
  }

  body.store-theme .card-media {
    min-height: 260px;
  }
}

/* Admin dark theme */

body.admin-page {
  background: #f5f5f7;
}

body.admin-page .adm-sidebar,
body.admin-page .adm-topbar,
body.admin-page .adm-tabs,
body.admin-page .adm-section,
body.admin-page .adm-metric-card,
body.admin-page .adm-chart-card,
body.admin-page .adm-order-card,
body.admin-page .adm-order-card-top,
body.admin-page .adm-table-wrap,
body.admin-page .adm-overview-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

body.admin-page .adm-kpi-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

body.admin-page .adm-kpi-card:nth-child(1) { border-top-color: rgba(73, 157, 255, 0.7); }
body.admin-page .adm-kpi-card:nth-child(2) { border-top-color: rgba(34, 197, 94, 0.6); }
body.admin-page .adm-kpi-card:nth-child(3) { border-top-color: rgba(251, 191, 36, 0.6); }
body.admin-page .adm-kpi-card:nth-child(4) { border-top-color: rgba(34, 211, 238, 0.6); }

body.admin-page .adm-body,
body.admin-page .adm-content {
  background: #f5f5f7;
}

body.admin-page .adm-sidebar-brand,
body.admin-page .adm-topbar,
body.admin-page .adm-tabs,
body.admin-page .adm-section-head,
body.admin-page .adm-sidebar-foot,
body.admin-page .adm-order-card-top,
body.admin-page .adm-order-card-body,
body.admin-page .adm-table th,
body.admin-page .adm-table td,
body.admin-page .adm-order-rule,
body.admin-page .adm-order-panel,
body.admin-page .adm-nav-divider {
  border-color: rgba(15, 23, 42, 0.08);
}

body.admin-page .adm-sidebar-brand strong,
body.admin-page .adm-topbar,
body.admin-page .adm-breadcrumb-current,
body.admin-page .adm-section-title h2,
body.admin-page .adm-chart-card h3,
body.admin-page .adm-order-card-top h3,
body.admin-page .adm-table-title strong,
body.admin-page .adm-kpi-card strong,
body.admin-page .adm-metric-card strong,
body.admin-page .adm-order-panel strong,
body.admin-page .adm-user-chip strong {
  color: #0f172a;
}

body.admin-page .adm-sidebar-brand small,
body.admin-page .adm-nav-label,
body.admin-page .adm-breadcrumb,
body.admin-page .adm-breadcrumb a,
body.admin-page .adm-breadcrumb-sep,
body.admin-page .adm-section-title p,
body.admin-page .adm-kpi-card p,
body.admin-page .adm-kpi-card small,
body.admin-page .adm-metric-card span,
body.admin-page .adm-metric-card small,
body.admin-page .adm-chart-card p,
body.admin-page .adm-order-ref,
body.admin-page .adm-order-token,
body.admin-page .adm-order-panel span,
body.admin-page .adm-order-panel small,
body.admin-page .adm-table-title small,
body.admin-page .adm-stat-pill,
body.admin-page .adm-user-chip small,
body.admin-page .adm-order-rule p,
body.admin-page .adm-empty p,
body.admin-page .adm-payout-note {
  color: #64748b;
}

body.admin-page .adm-order-summary strong,
body.admin-page .adm-table td,
body.admin-page .adm-bulk-select-all,
body.admin-page .adm-bulk-select-all span,
body.admin-page .adm-bulk-count,
body.admin-page .adm-order-delivery-field,
body.admin-page .adm-order-delivery-field span {
  color: #334155;
}

body.admin-page .adm-order-delivery-field small,
body.admin-page .adm-order-summary small,
body.admin-page .adm-table td small {
  color: #64748b;
}

body.admin-page .adm-nav-link,
body.admin-page .adm-tab,
body.admin-page .adm-table-link {
  color: #475569;
}

body.admin-page .adm-nav-link:hover,
body.admin-page .adm-nav-link.is-active,
body.admin-page .adm-tab:hover,
body.admin-page .adm-tab.is-active,
body.admin-page .adm-table-link:hover {
  color: #0f172a;
}

body.admin-page .adm-nav-link:hover,
body.admin-page .adm-nav-link.is-active,
body.admin-page .adm-tab:hover,
body.admin-page .adm-shell:not(:has(#orders:target)):not(:has(#listings:target)):not(:has(#payouts:target)) .adm-tab[href="#overview"],
body.admin-page .adm-shell:not(:has(#orders:target)):not(:has(#listings:target)):not(:has(#payouts:target)) .adm-nav-link[href="#overview"],
body.admin-page .adm-shell:has(#orders:target) .adm-tab[href="#orders"],
body.admin-page .adm-shell:has(#payouts:target) .adm-tab[href="#payouts"],
body.admin-page .adm-shell:has(#listings:target) .adm-tab[href="#listings"],
body.admin-page .adm-shell:has(#orders:target) .adm-nav-link[href="#orders"],
body.admin-page .adm-shell:has(#payouts:target) .adm-nav-link[href="#payouts"],
body.admin-page .adm-shell:has(#listings:target) .adm-nav-link[href="#listings"] {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
  color: #0f172a;
}

body.admin-page .adm-tab {
  border-bottom-color: transparent;
}

body.admin-page .adm-nav-badge,
body.admin-page .adm-user-chip,
body.admin-page .adm-stat-pill,
body.admin-page .adm-table-status,
body.admin-page .adm-bulk-bar .secondary-link,
body.admin-page .adm-order-open-link {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

body.admin-page .adm-nav-badge {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

body.admin-page .adm-flash-error {
  background: #fff1f2;
  border-color: rgba(225, 29, 72, 0.14);
  color: #be123c;
}

body.admin-page .adm-flash-success {
  background: #edfdf3;
  border-color: rgba(22, 163, 74, 0.14);
  color: #15803d;
}

body.admin-page .adm-table th {
  background: #f8fafc;
  color: #64748b;
}

body.admin-page .adm-order-card-top {
  background: #ffffff;
}

body.admin-page .adm-table tbody tr {
  border-color: rgba(15, 23, 42, 0.08);
}

body.admin-page .adm-table tbody tr:hover td {
  background: #f8fafc;
}

body.admin-page .adm-table td {
  background: transparent;
}

body.admin-page .adm-order-delivery-field,
body.admin-page .adm-order-rules,
body.admin-page .admin-table-wrap,
body.admin-page .admin-table,
body.admin-page .admin-layout,
body.admin-page .admin-overview-card {
  border-color: rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

body.admin-page .adm-order-delivery-field input,
body.admin-page .adm-order-status-form select,
body.admin-page .adm-bulk-bar select,
body.admin-page .admin-search input,
body.admin-page .admin-search button {
  border-color: rgba(15, 23, 42, 0.1);
  background: #ffffff;
  color: #0f172a;
}

body.admin-page .adm-bulk-bar select:disabled,
body.admin-page .adm-bulk-bar .secondary-link:disabled {
  color: #94a3b8;
  opacity: 1;
}

body.admin-page .adm-order-delivery-field input::placeholder {
  color: #94a3b8;
}

body.admin-page .adm-sidebar-brand .brand-icon {
  background: linear-gradient(180deg, #43a3ff, #2673ff);
}

body.admin-page .adm-avatar {
  background: linear-gradient(180deg, #43a3ff, #2673ff);
}

body.admin-page .page-alert {
  border-color: #2f3238;
  background: #17181b;
}

body.admin-page .page-alert p {
  color: #edf1f7;
}

body.admin-page .admin-layout {
  border-color: #2a2d33;
  background: #17181b;
  box-shadow: none;
}

body.admin-page .admin-sidebar,
body.admin-page .admin-editor,
body.admin-page .admin-overview-card,
body.admin-page .admin-table-wrap,
body.admin-page .admin-order-panel,
body.admin-page .admin-order-card,
body.admin-page .admin-metric-card,
body.admin-page .admin-chart-card {
  border-color: #2a2d33;
  background: #17181b;
  box-shadow: none;
}

body.admin-page .admin-sidebar,
body.admin-page .admin-sidebar-head,
body.admin-page .admin-sidebar-nav,
body.admin-page .admin-sidebar-stack,
body.admin-page .admin-shell-head,
body.admin-page .admin-editor-meta,
body.admin-page .admin-table th,
body.admin-page .admin-table td,
body.admin-page .admin-order-panel,
body.admin-page .admin-order-rules > div {
  border-color: rgba(255, 255, 255, 0.08);
}

body.admin-page .admin-sidebar-head .eyebrow,
body.admin-page .admin-shell-head .eyebrow {
  color: #75b6ff;
}

body.admin-page .admin-sidebar-head h2,
body.admin-page .admin-shell-head h1,
body.admin-page .admin-shell-head h2,
body.admin-page .admin-sidebar-link strong,
body.admin-page .admin-sidebar-card strong,
body.admin-page .admin-table-title strong,
body.admin-page .admin-order-panel strong,
body.admin-page .admin-metric-card strong,
body.admin-page .admin-chart-card h3 {
  color: #ffffff;
}

body.admin-page .admin-sidebar-link span,
body.admin-page .admin-sidebar-card span,
body.admin-page .admin-sidebar-card small,
body.admin-page .admin-editor-meta span,
body.admin-page .admin-field span,
body.admin-page .admin-toggle span,
body.admin-page .admin-table-title small,
body.admin-page .admin-order-panel span,
body.admin-page .admin-order-panel small,
body.admin-page .upload-help,
body.admin-page .upload-file-meta {
  color: #9ca3af;
}

body.admin-page .admin-sidebar-link {
  color: #d7dce4;
  background: transparent;
}

body.admin-page .admin-sidebar-link:hover {
  background: #21252b;
  border-color: rgba(73, 157, 255, 0.35);
}

body.admin-page .admin-layout:has(#overview:target) .admin-sidebar-link[href="#overview"],
body.admin-page .admin-layout:has(#orders:target) .admin-sidebar-link[href="#orders"],
body.admin-page .admin-layout:has(#listings:target) .admin-sidebar-link[href="#listings"] {
  background: #21252b;
  border-color: rgba(73, 157, 255, 0.35);
  color: #ffffff;
}

body.admin-page .admin-layout:has(#overview:target) .admin-sidebar-link[href="#overview"] strong,
body.admin-page .admin-layout:has(#orders:target) .admin-sidebar-link[href="#orders"] strong,
body.admin-page .admin-layout:has(#listings:target) .admin-sidebar-link[href="#listings"] strong {
  color: #ffffff;
}

body.admin-page .admin-field input,
body.admin-page .admin-field select,
body.admin-page .admin-field textarea,
body.admin-page .admin-toggle,
body.admin-page .admin-order-delivery-field input,
body.admin-page .admin-order-status-form select,
body.admin-page .admin-order-controls select {
  border-color: #343841;
  background: #14161a;
  color: #ffffff;
  box-shadow: none;
}

body.admin-page .admin-field input::placeholder,
body.admin-page .admin-field textarea::placeholder,
body.admin-page .admin-order-delivery-field input::placeholder {
  color: #8e97a8;
}

body.admin-page .tag-picker-option span {
  border-color: #343841;
  background: #212329;
  color: #edf1f7;
}

body.admin-page .tag-picker-option span:hover,
body.admin-page .tag-picker-option input:focus-visible + span {
  border-color: rgba(73, 157, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(73, 157, 255, 0.12);
}

body.admin-page .tag-picker-option input:checked + span {
  border-color: rgba(73, 157, 255, 0.5);
  background: #23272d;
  color: #ffffff;
}

body.admin-page .secondary-link {
  border-color: #343841;
  background: #212329;
  color: #edf1f7;
}

body.admin-page .secondary-link:hover {
  border-color: rgba(73, 157, 255, 0.4);
  color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════
   Mobile hamburger navigation
   ═══════════════════════════════════════════════════════════ */

.mob-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.mob-nav-toggle:hover {
  background: var(--surface-strong);
  border-color: var(--line-strong);
}

.mob-close-icon {
  display: none;
}

@media (max-width: 560px) {
  .mob-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .top-header {
    position: relative;
  }

  /* Override the 2-col grid layout for top-actions */
  .top-actions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    padding: 8px 12px 14px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(248, 250, 255, 0.98);
    backdrop-filter: blur(24px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 5px;
    grid-template-columns: none;
  }

  .top-header.mob-open .top-actions {
    display: flex;
  }

  .top-header.mob-open .mob-close-icon {
    display: block;
  }

  .top-header.mob-open .mob-menu-icon {
    display: none;
  }

  .top-header.mob-open .mob-nav-toggle {
    border-color: var(--line-strong);
    background: var(--blue-soft);
    color: var(--blue);
  }

  .top-actions .secondary-link,
  .top-actions .hero-link {
    width: 100%;
    justify-content: flex-start;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 10px;
  }

  .top-actions .profile-chip {
    order: -1;
    padding: 8px 14px;
    border-radius: 10px;
  }

  .top-actions .inline-form {
    display: block;
    width: 100%;
    margin: 0;
  }

  .top-actions .inline-form button {
    width: 100%;
    justify-content: flex-start;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 10px;
  }
}

/* Store-theme dark hamburger */
body.store-theme .mob-nav-toggle {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

body.store-theme .mob-nav-toggle:hover {
  background: #ffffff;
  border-color: rgba(0, 113, 227, 0.16);
}

@media (max-width: 560px) {
  body.store-theme .top-header.mob-open .top-actions {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(15, 23, 42, 0.06);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  }

  body.store-theme .top-actions .secondary-link,
  body.store-theme .top-actions .header-link,
  body.store-theme .top-header.mob-open .mob-close-icon {
    border-color: rgba(15, 23, 42, 0.08);
    background: #ffffff;
    color: var(--text);
  }

  body.store-theme .top-header.mob-open .mob-nav-toggle {
    border-color: rgba(0, 113, 227, 0.2);
    background: var(--blue-soft);
    color: var(--blue);
  }
}

/* ── Page Transitions ─────────────────────────────────────── */

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-shell,
.adm-shell {
  animation: pageIn 0.3s ease both;
}

body.page-leaving .app-shell,
body.page-leaving .adm-shell {
  animation: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

/* ── Skeleton loading ─────────────────────────────────────── */

@keyframes shimmer {
  from { background-position: 200% center; }
  to   { background-position: -200% center; }
}

.model-grid-wrap {
  position: relative;
}

/* Skeleton grid: absolute overlay so real grid sets the height */
.sk-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-content: start;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.sk-grid.is-generated {
  display: block;
}

body.page-loading .sk-grid {
  opacity: 1;
}

body.page-loading [data-bone-scope].is-bone-covered > :not([data-bone-overlay]) {
  opacity: 0;
}

#modelGrid {
  transition: opacity 0.4s ease;
}

body.page-loading [data-bone-overlay].is-generated + #modelGrid {
  opacity: 0;
}

.sk-card {
  display: grid;
  grid-template-rows: 240px auto;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.sk-media {
  position: relative;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #dde1ef 25%, #eceffb 50%, #dde1ef 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite linear;
}

.sk-chip,
.sk-button {
  position: absolute;
  top: 16px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(221, 225, 239, 0.95) 25%, rgba(236, 239, 251, 0.98) 50%, rgba(221, 225, 239, 0.95) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite linear;
}

.sk-chip-left {
  left: 16px;
  width: 78px;
}

.sk-chip-right {
  right: 16px;
  width: 72px;
}

.sk-body {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 4px 2px;
}

.sk-line {
  height: 13px;
  border-radius: 6px;
  background: linear-gradient(90deg, #dde1ef 25%, #eceffb 50%, #dde1ef 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s 0.1s infinite linear;
}

.sk-title {
  width: 82%;
  height: 18px;
}

.sk-subtitle {
  width: 48%;
  height: 12px;
  animation-delay: 0.12s;
}

.sk-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sk-tag {
  width: 56px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dde1ef 25%, #eceffb 50%, #dde1ef 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s 0.16s infinite linear;
}

.sk-tag:nth-child(2) {
  width: 48px;
  animation-delay: 0.18s;
}

.sk-tag:nth-child(3) {
  width: 72px;
  animation-delay: 0.2s;
}

.sk-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.sk-button {
  position: static;
  width: 100%;
  height: 38px;
}

.sk-bone-card {
  position: absolute;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.sk-bone-card.is-plain {
  background: transparent;
  border: 0;
}

.sk-bone-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.24);
  pointer-events: none;
}

.sk-bone-card.is-plain::before {
  display: none;
}

.sk-bone {
  position: absolute;
  border-radius: 10px;
  background: linear-gradient(90deg, #dde1ef 25%, #eceffb 50%, #dde1ef 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite linear;
}

.sk-bone.is-pill,
.sk-bone.is-chip,
.sk-bone.is-action {
  border-radius: 999px;
}

.sk-bone.is-field {
  border-radius: 14px;
}

.sk-bone.is-media,
.sk-bone.is-block {
  border-radius: 18px;
}

/* Store-theme skeleton */
body.store-theme .sk-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  justify-content: stretch;
  gap: 12px;
}

body.store-theme .sk-card {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(15, 23, 42, 0.06);
}

body.store-theme .sk-media,
body.store-theme .sk-line,
body.store-theme .sk-chip,
body.store-theme .sk-tag,
body.store-theme .sk-button,
body.store-theme .sk-bone {
  background: linear-gradient(90deg, #e6ebf5 25%, #f5f8fd 50%, #e6ebf5 75%);
  background-size: 200% 100%;
}

body.store-theme .sk-bone-card {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(15, 23, 42, 0.06);
}

body.store-theme .sk-bone-card.is-plain {
  background: transparent;
  border: 0;
}

body.store-theme .sk-bone-card::before {
  background: rgba(255, 255, 255, 0.3);
}

body.admin-page .sk-card,
body.admin-page .sk-bone-card {
  background: #17181b;
  border-color: rgba(255, 255, 255, 0.08);
}

body.admin-page .sk-bone-card.is-plain {
  background: transparent;
  border: 0;
}

body.admin-page .sk-media,
body.admin-page .sk-line,
body.admin-page .sk-chip,
body.admin-page .sk-tag,
body.admin-page .sk-button,
body.admin-page .sk-bone {
  background: linear-gradient(90deg, #1e2229 25%, #282e3a 50%, #1e2229 75%);
  background-size: 200% 100%;
}

body.admin-page .sk-bone-card::before {
  background: rgba(255, 255, 255, 0.04);
}

/* Responsive: match model-grid breakpoints */
@media (max-width: 1180px) {
  .sk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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


/* ── Per-card model-viewer shimmer ────────────────────────── */

.model-card .card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #d8dcea 25%, #e8ecf9 50%, #d8dcea 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite linear;
  z-index: 5;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.model-card.media-ready .card-media::before {
  opacity: 0;
}

body.store-theme .model-card .card-media::before {
  background: linear-gradient(90deg, rgba(225, 232, 244, 0.84) 25%, rgba(245, 248, 253, 0.96) 50%, rgba(225, 232, 244, 0.84) 75%);
  background-size: 200% 100%;
}

/* Pagination */
.store-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 32px 0 16px;
  flex-wrap: wrap;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--t-base), border-color var(--t-base), color var(--t-base), transform var(--t-base);
  cursor: pointer;
}

.pagination-link:hover {
  border-color: var(--line-strong);
  background: var(--blue-soft);
  color: var(--blue);
  transform: translateY(-1px);
}

.pagination-link.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  pointer-events: none;
}

.pagination-link.is-disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 40px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  opacity: 0.4;
}

/* Compact radius pass */
.store-toolbar,
.content-panel,
.product-viewer-panel,
.product-info-panel,
.model-card,
.related-card,
.profile-item-row,
.profile-empty,
.profile-side-note,
.profile-fact-row,
.product-specs div,
.product-note,
.viewer-placeholder,
.product-viewer-shell,
.upload-preview-panel,
.upload-dropzone,
.cart-item,
.checkout-card,
.order-summary-card,
.order-note-box,
.order-progress-step,
.order-download-item,
.auth-layout,
.auth-card,
.auth-role-card,
.admin-sidebar-card,
.admin-overview-card,
.admin-metric-card,
.admin-chart-card,
.admin-order-card,
.adm-kpi-card,
.adm-metric-card,
.adm-chart-card,
.adm-order-card,
.pagination-link {
  border-radius: 5px !important;
}

.buy-button,
.hero-link,
.secondary-link,
.header-link,
.top-nav-link,
.toolbar-tab,
.filter-pill,
.view-btn,
.store-dropdown-toggle,
.store-dropdown-option,
.store-search-shell,
.card-cart-button,
.card-price-badge,
.card-tag,
.soft-pill,
.profile-meta-chip,
.profile-hero-stat,
.card-stat,
.media-badge,
.card-type,
.pagination-link {
  border-radius: 5px !important;
}

.card-media,
.related-card-media,
.card-media-placeholder,
.related-card-placeholder,
.profile-hero-avatar,
.creator-avatar {
  border-radius: 5px !important;
}

.auth-field input,
.admin-form input,
.admin-form textarea,
.admin-form select,
.profile-fact-row,
.cart-summary-rows div,
.checkout-steps-preview div,
.payment-method-panel,
.stripe-checkout-panel {
  border-radius: 5px !important;
}
