:root {
  color-scheme: dark;
  --announcement-height: 36px;
  --page: #05000f;
  --page-soft: #120022;
  --ink: #fbf7ff;
  --muted: #c9bdd8;
  --subtle: #8f7fa5;
  --line: rgba(215, 180, 255, 0.18);
  --line-strong: rgba(215, 180, 255, 0.32);
  --panel: rgba(18, 8, 34, 0.72);
  --panel-strong: rgba(26, 10, 45, 0.88);
  --input: rgba(7, 1, 18, 0.54);
  --input-strong: rgba(9, 2, 22, 0.76);
  --chip: rgba(190, 90, 255, 0.13);
  --accent: #b84cff;
  --accent-strong: #8f22ff;
  --accent-soft: rgba(184, 76, 255, 0.24);
  --danger: #ff477e;
  --danger-strong: #ed245f;
  --success: #45e186;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 18px 48px rgba(31, 0, 61, 0.24);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #faf7ff;
  --page-soft: #f1e7ff;
  --ink: #191022;
  --muted: #695c75;
  --subtle: #9486a3;
  --line: rgba(83, 48, 116, 0.12);
  --line-strong: rgba(83, 48, 116, 0.24);
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --input: rgba(255, 255, 255, 0.76);
  --input-strong: rgba(255, 255, 255, 0.96);
  --chip: rgba(143, 34, 255, 0.1);
  --accent: #8f22ff;
  --accent-strong: #6d13d4;
  --accent-soft: rgba(143, 34, 255, 0.16);
  --danger: #ff3b62;
  --danger-strong: #d91f46;
  --success: #20c76a;
  --shadow: 0 24px 70px rgba(75, 47, 106, 0.13);
  --shadow-soft: 0 18px 48px rgba(75, 47, 106, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 84px),
    linear-gradient(180deg, rgba(184, 76, 255, 0.2), transparent 38%),
    linear-gradient(115deg, var(--page), var(--page-soft) 48%, var(--page));
  letter-spacing: 0;
}

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

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 16px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 12px 28px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--panel-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), var(--shadow-soft);
}

button:active {
  transform: translateY(0);
}

button.primary {
  border-color: rgba(216, 165, 255, 0.46);
  color: #ffffff;
  background: linear-gradient(180deg, #c95cff, var(--accent-strong));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 16px 32px rgba(143, 34, 255, 0.32);
}

button.primary:hover {
  background: linear-gradient(180deg, #d273ff, #9a32ff);
}

button.danger {
  border-color: rgba(255, 122, 157, 0.5);
  color: #ffffff;
  background: linear-gradient(180deg, #ff638f, var(--danger-strong));
  box-shadow: 0 14px 30px rgba(255, 59, 98, 0.24);
}

button.danger:hover {
  background: linear-gradient(180deg, #ff78a0, var(--danger));
}

.announcement {
  display: grid;
  place-items: center;
  min-height: var(--announcement-height);
  border-bottom: 1px solid rgba(216, 165, 255, 0.22);
  color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(90deg, #5d0ca3, #b84cff 52%, #7d16e2);
  box-shadow: 0 12px 34px rgba(143, 34, 255, 0.28);
  font-size: 14px;
  font-weight: 850;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 112px;
  padding: 20px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(31, 6, 55, 0.78), rgba(11, 2, 25, 0.76)),
    rgba(8, 1, 20, 0.72);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

:root[data-theme="light"] .topbar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 237, 255, 0.78)),
    rgba(250, 247, 255, 0.78);
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(216, 165, 255, 0.34);
  border-radius: 18px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 42%),
    linear-gradient(180deg, #c95cff, #8618df);
  box-shadow: 0 18px 40px rgba(143, 34, 255, 0.28);
  font-size: 28px;
  font-weight: 950;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 880;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 2px;
  font-size: 30px;
  font-weight: 820;
  letter-spacing: 0;
}

.top-actions,
.button-row,
.pager,
.selector-row,
.inline-form {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.credits-card {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 1px;
  min-width: 168px;
  min-height: 58px;
  padding: 8px 14px;
  border-color: rgba(216, 165, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(184, 76, 255, 0.28), transparent 62%),
    rgba(8, 1, 20, 0.48);
  text-align: left;
}

:root[data-theme="light"] .credits-card {
  background:
    linear-gradient(135deg, rgba(143, 34, 255, 0.16), transparent 62%),
    rgba(255, 255, 255, 0.72);
}

.credits-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.credits-card strong {
  grid-row: span 2;
  justify-self: end;
  color: #ffffff;
  font-size: 27px;
  font-weight: 950;
  line-height: 1;
}

:root[data-theme="light"] .credits-card strong {
  color: var(--accent-strong);
}

.credits-card small {
  max-width: 92px;
  overflow: hidden;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.credits-card.loaded {
  border-color: rgba(69, 225, 134, 0.28);
}

.theme-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  min-height: 44px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

button.active {
  border-color: rgba(216, 165, 255, 0.38);
  color: #ffffff;
  background: var(--accent-soft);
}

.auth-panel {
  position: fixed;
  top: 128px;
  right: clamp(16px, 4vw, 46px);
  z-index: 30;
  width: min(640px, calc(100vw - 32px));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(184, 76, 255, 0.18), transparent 68%),
    var(--panel-strong);
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
}

.auth-panel[hidden] {
  display: none;
}

.auth-panel-head,
.auth-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.auth-panel-head {
  margin-bottom: 16px;
}

.auth-panel-head h2 {
  font-size: 24px;
}

.auth-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.theme-option {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  padding: 0 13px;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.theme-option:hover {
  transform: none;
  background: var(--chip);
  box-shadow: none;
}

.theme-option.active {
  color: #ffffff;
  background: linear-gradient(180deg, #c95cff, var(--accent-strong));
  box-shadow: 0 10px 24px rgba(143, 34, 255, 0.28);
}

.shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: calc(100vh - 148px);
}

.sidebar {
  position: sticky;
  top: 112px;
  align-self: start;
  height: calc(100vh - 112px);
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(35, 8, 62, 0.52), rgba(8, 1, 20, 0.32)),
    rgba(8, 1, 20, 0.38);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

:root[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, 0.38);
}

.nav {
  position: relative;
  width: 100%;
  justify-content: flex-start;
  min-height: 46px;
  margin-bottom: 8px;
  border-color: transparent;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-weight: 720;
  text-align: left;
}

.nav::before {
  width: 7px;
  height: 7px;
  margin-right: 12px;
  border-radius: 999px;
  background: var(--subtle);
  content: "";
}

.nav:hover {
  background: var(--chip);
  box-shadow: none;
}

.nav.active {
  border-color: rgba(184, 76, 255, 0.28);
  background: var(--chip);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(143, 34, 255, 0.16);
}

.nav.active::before {
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.content {
  width: min(1660px, 100%);
  padding: clamp(22px, 3vw, 36px);
}

.strip,
.form-grid,
.inline-form,
.pager,
.selector-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.strip {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(150px, auto);
  align-items: end;
  gap: 14px;
  margin-bottom: 32px;
  padding: 18px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

#stockView .view-head {
  align-items: stretch;
  margin-bottom: 16px;
}

.stock-title {
  display: grid;
  align-content: center;
}

.stock-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: min(720px, 100%);
}

.store-source-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  max-width: 920px;
  margin: 0 0 16px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--input);
}

.store-source-tabs button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.store-source-tabs button.active {
  border-color: rgba(184, 76, 255, 0.42);
  color: var(--ink);
  background: rgba(143, 34, 255, 0.22);
}

.store-source-tabs strong {
  min-width: 28px;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--success);
  background: rgba(69, 225, 134, 0.1);
  font-size: 12px;
  text-align: center;
}

.search-field {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-field span {
  position: absolute;
  left: 16px;
  top: 50%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-field input {
  padding-left: 74px;
}

.sort-field {
  display: grid;
  gap: 5px;
  min-width: 184px;
}

.sort-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.sort-field select {
  min-height: 44px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: var(--input);
  cursor: pointer;
  user-select: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch span {
  position: relative;
  width: 42px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.switch span::after {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--subtle);
  content: "";
  transition: transform 160ms ease, background 160ms ease;
}

.switch input:checked + span {
  background: var(--accent-soft);
}

.switch input:checked + span::after {
  background: var(--accent);
  transform: translateX(18px);
}

.switch strong {
  font-size: 13px;
  font-weight: 850;
}

.stock-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(184, 76, 255, 0.16), transparent 62%),
    var(--panel);
  box-shadow: var(--shadow-soft);
}

.stat-card strong {
  display: block;
  color: var(--ink);
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-xl);
  color: var(--muted);
  background: var(--panel);
  text-align: center;
}

.empty-state strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
}

.empty-state span {
  display: block;
  margin-top: 8px;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.field.compact {
  width: 132px;
}

.field.referral-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
}

.field.referral-field span {
  grid-column: 1 / -1;
}

.field.referral-field input {
  grid-column: 1;
}

.field.referral-field button {
  grid-column: 2;
  align-self: end;
  min-height: 44px;
  padding: 0 16px;
  white-space: nowrap;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 14px;
  color: var(--ink);
  background: var(--input);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  outline: none;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

input::placeholder {
  color: var(--subtle);
}

textarea {
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

textarea::placeholder {
  color: var(--subtle);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(206, 139, 255, 0.7);
  background: var(--input-strong);
  box-shadow: 0 0 0 4px var(--accent-soft), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.status::before {
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 999px;
  background: var(--success);
  content: "";
  box-shadow: 0 0 0 6px rgba(69, 225, 134, 0.14);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, hsla(var(--card-hue, 278), 85%, 58%, 0.16), transparent 48%),
    var(--panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 165, 255, 0.4);
  box-shadow: var(--shadow);
}

.product-card:hover .product-art {
  background-size: auto, 20px 20px, 20px 20px, auto;
}

.product-card.sold-out {
  opacity: 0.68;
}

.product-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 170px;
  overflow: hidden;
  background:
    linear-gradient(135deg, hsla(var(--card-hue, 278), 96%, 62%, 0.42), rgba(32, 5, 59, 0.22)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    var(--input);
  background-size: auto, 24px 24px, 24px 24px, auto;
}

.product-art::before,
.product-art::after {
  position: absolute;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  content: "";
}

.product-art::before {
  left: 28px;
  bottom: 28px;
  transform: rotate(-10deg);
}

.product-art::after {
  right: 34px;
  top: 30px;
  transform: rotate(12deg);
}

.product-art img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.product-art.has-image .product-initials {
  display: none;
}

.product-initials {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 10px 32px rgba(143, 34, 255, 0.44);
}

.product-id-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(5, 0, 15, 0.58);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.product-id-badge.static {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
}

.product-card .body {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 15px;
  padding: 20px;
}

.product-heading {
  display: grid;
  gap: 8px;
}

.stock-pill {
  justify-self: start;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid rgba(69, 225, 134, 0.28);
  border-radius: 999px;
  color: var(--success);
  background: rgba(69, 225, 134, 0.11);
  font-size: 12px;
  font-weight: 850;
}

.sold-out .stock-pill {
  border-color: rgba(255, 71, 126, 0.28);
  color: var(--danger);
  background: rgba(255, 71, 126, 0.11);
}

.product-card h3 {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 820;
  line-height: 1.16;
  letter-spacing: 0;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.28;
}

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

.metric {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--input);
}

.metric strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 19px;
  font-weight: 850;
  line-height: 1.1;
  text-overflow: ellipsis;
}

.metric span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.meta-line {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--chip);
  font-size: 13px;
}

.product-card button {
  align-self: end;
  width: 100%;
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
  padding: 18px;
}

.manual-token-field {
  grid-column: 1 / -1;
}

.manual-delivery-submit {
  align-self: stretch;
}

.checkout-panel {
  margin-bottom: 16px;
}

.checkout-empty,
.checkout-product,
.checkout-price,
.checkout-status,
.deliverables-head,
.deliverable-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(184, 76, 255, 0.14), transparent 64%),
    var(--panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.checkout-empty {
  display: grid;
  gap: 6px;
  padding: 22px;
  color: var(--muted);
}

.checkout-empty strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.checkout-product {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  padding: 18px;
}

.checkout-product strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
}

.checkout-product small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.checkout-price {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
}

.checkout-price div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--input);
}

.checkout-price span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.checkout-price strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
}

.checkout-status {
  padding: 14px 16px;
  color: var(--success);
  font-weight: 900;
}

.checkout-status.bad {
  color: var(--danger);
}

.deliverables {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 190, 40, 0.18);
  border-radius: 4px;
  background: #07070a;
}

.queue-section {
  margin-bottom: 16px;
}

.preorder-list {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.preorder-row.restock_wait {
  border-color: rgba(69, 225, 134, 0.36);
}

.preorder-row.purchasing {
  border-color: rgba(255, 210, 31, 0.48);
}

.preorder-row.failed {
  border-color: rgba(255, 71, 126, 0.42);
}

.deliverables:empty {
  display: none;
}

.deliverables-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.deliverables-head span {
  color: #ffffff;
  font-size: 26px;
  font-weight: 950;
}

.deliverables-head strong {
  margin-left: 8px;
  padding: 3px 10px;
  color: #ffd21f;
  background: rgba(255, 174, 0, 0.12);
  font-size: 24px;
  font-weight: 950;
}

.deliverables-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.deliverable-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  background: #15161b;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.deliverable-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  color: #ffffff;
  background: linear-gradient(180deg, #7a43ff, #23103d);
  font-size: 20px;
  font-weight: 950;
}

.deliverable-main {
  min-width: 0;
}

.deliverable-main strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deliverable-main code {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  margin-top: 6px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  color: #c7c2d2;
  background: #090a0e;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deliverable-actions {
  display: flex;
  gap: 8px;
}

.deliverable-actions button {
  border-radius: 2px;
}

.deliverable-actions button:last-child {
  border-color: rgba(0, 117, 255, 0.62);
  color: #78adff;
  background: rgba(0, 91, 210, 0.22);
}

.inline-form,
.pager,
.selector-row {
  margin-bottom: 16px;
  padding: 18px;
}

.inline-form .field {
  min-width: min(420px, 100%);
}

.form-intro {
  display: grid;
  gap: 4px;
  min-width: min(220px, 100%);
  align-self: center;
}

.form-intro strong {
  font-size: 18px;
  font-weight: 900;
}

.form-intro span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.output {
  display: block;
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  color: var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 18px;
  white-space: pre-wrap;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.output:empty {
  display: none;
}

.output-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: -2px 0 12px;
}

.output-actions button:disabled {
  display: none;
}

.hidden-tools {
  display: none;
}

.account-layout {
  display: grid;
  gap: 16px;
}

.wallet-panel,
.topup-panel,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(184, 76, 255, 0.16), transparent 68%),
    var(--panel);
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.wallet-panel {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
}

.wallet-panel[hidden],
.topup-panel[hidden],
.admin-panel[hidden],
#userLoginForm[hidden] {
  display: none;
}

.wallet-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.wallet-panel strong {
  font-size: 24px;
  font-weight: 900;
}

.wallet-panel b {
  grid-row: span 2;
  color: #ffffff;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 950;
  line-height: 1;
}

:root[data-theme="light"] .wallet-panel b {
  color: var(--accent-strong);
}

.topup-panel {
  display: grid;
  gap: 14px;
}

.topup-panel .form-grid {
  margin-bottom: 0;
}

.topup-estimate {
  align-self: end;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  place-items: center start;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
}

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

.topup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.topup-row strong,
.topup-row small {
  display: block;
}

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

.topup-status {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-credited .topup-status,
.status-finished .topup-status {
  border-color: rgba(72, 211, 137, 0.45);
  color: #6ef0a4;
  background: rgba(72, 211, 137, 0.12);
}

.status-failed .topup-status,
.status-expired .topup-status,
.status-create_failed .topup-status {
  border-color: rgba(255, 71, 126, 0.44);
  color: var(--danger);
  background: rgba(255, 71, 126, 0.12);
}

.topup-link {
  border: 1px solid rgba(143, 34, 255, 0.48);
  border-radius: 4px;
  padding: 9px 12px;
  color: #d8b7ff;
  background: rgba(143, 34, 255, 0.14);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.compact-head {
  margin-bottom: 16px;
}

.compact-head h2 {
  font-size: 22px;
}

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

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

.auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: min(420px, 100%);
  padding: 6px;
  border: 1px solid var(--line);
  background: var(--input);
}

.auth-mode-tabs button {
  min-height: 38px;
  box-shadow: none;
}

.auth-form {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(220px, 1fr) minmax(220px, 1fr) auto;
  align-items: start;
  width: 100%;
}

.auth-form .form-intro {
  align-self: center;
}

.owner-login-panel {
  max-width: 720px;
}

.owner-login-form {
  align-items: end;
}

.owner-console {
  display: grid;
  gap: 18px;
}

.owner-help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.owner-note {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(97, 255, 176, 0.22);
  border-left: 3px solid var(--success);
  border-radius: 4px;
  color: var(--muted);
  background: rgba(0, 215, 119, 0.06);
}

.owner-note strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.owner-note span {
  font-size: 12px;
  line-height: 1.45;
}

.owner-section-note {
  margin-bottom: 14px;
}

.owner-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
}

.owner-stat-card,
.owner-shop-card,
.owner-activity-column {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  box-shadow: none;
}

.owner-stat-card {
  display: grid;
  gap: 6px;
  min-height: 88px;
  padding: 14px;
}

.owner-stat-card span,
.owner-shop-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.owner-stat-card strong {
  color: var(--accent);
  font-size: 25px;
  font-weight: 950;
  line-height: 1;
}

.owner-stat-card small {
  color: var(--subtle);
  font-size: 12px;
}

.owner-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--input);
}

.owner-tabs button {
  min-height: 38px;
  border-radius: 4px;
  box-shadow: none;
}

.owner-section {
  display: none;
}

.owner-section.active {
  display: block;
}

.owner-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
}

.owner-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.owner-filter-row .search-field {
  max-width: 520px;
}

.owner-shop-card {
  display: grid;
  gap: 10px;
  padding: 15px;
}

.owner-shop-card h3 {
  margin: 0;
  color: var(--accent);
  font-size: 18px;
}

.owner-shop-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
  border-bottom: 1px solid var(--line);
}

.owner-shop-card div:last-child {
  border-bottom: 0;
}

.owner-shop-card strong {
  font-weight: 950;
}

.field-hint {
  color: var(--subtle);
  font-size: 11px;
  line-height: 1.35;
}

.owner-api-form {
  position: sticky;
  top: 112px;
  grid-template-columns: minmax(0, 1fr) auto;
}

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

.owner-api-form .field:first-child,
.owner-api-submit {
  grid-column: 1 / -1;
}

.owner-delivery-form .manual-token-field,
.owner-delivery-form .manual-delivery-submit {
  grid-column: 1 / -1;
}

.owner-clear {
  align-self: end;
  min-width: 148px;
}

.owner-user-list {
  display: grid;
  gap: 10px;
  max-height: 620px;
  overflow: auto;
}

.owner-user-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: 12px;
  width: 100%;
  min-height: 0;
  padding: 14px;
  text-align: left;
}

.owner-user-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 215, 119, 0.42);
  border-radius: 999px;
  color: #ffffff;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(180deg, #20e68a, #138653);
  background-size: cover;
  background-position: center;
  font-size: 12px;
  font-weight: 950;
}

.owner-user-avatar.has-image span {
  opacity: 0;
}

.owner-user-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.owner-user-row strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.owner-user-row small {
  color: var(--muted);
  font-size: 12px;
}

.owner-user-row.banned {
  border-color: rgba(255, 71, 126, 0.34);
}

.owner-user-row.banned .owner-user-avatar:not(.has-image) {
  border-color: rgba(255, 71, 126, 0.5);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #ff638f, #8d1536);
}

.owner-danger-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.owner-danger-actions button {
  min-height: 42px;
}

.owner-api-token-note,
.owner-api-token-actions {
  grid-column: 1 / -1;
}

.owner-api-token-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.api-key-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.api-key-badges span {
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--input);
  font-size: 11px;
  font-weight: 850;
}

.api-key-badges span.set {
  border-color: rgba(69, 225, 134, 0.28);
  color: var(--success);
  background: rgba(69, 225, 134, 0.09);
}

.owner-activity {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
}

.owner-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.owner-tool-grid button {
  min-height: 74px;
  justify-content: flex-start;
  font-weight: 900;
}

.owner-docs-head {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.owner-docs-head .owner-note {
  flex: 1;
}

.owner-docs {
  display: grid;
  gap: 12px;
}

.owner-docs-summary {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px;
}

.owner-docs-summary div,
.owner-doc-section,
.owner-doc-endpoint,
.owner-docs-safety span {
  border: 1px solid var(--line);
  background: var(--panel);
}

.owner-docs-summary div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
}

.owner-docs-summary span,
.owner-doc-endpoint small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.owner-docs-summary strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-docs-safety {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.owner-docs-safety span {
  min-height: 28px;
  padding: 6px 9px;
  color: var(--success);
  font-size: 11px;
  font-weight: 850;
}

.owner-doc-section {
  display: grid;
  gap: 10px;
  padding: 13px;
}

.owner-doc-section h3 {
  margin: 0;
  color: var(--accent);
  font-size: 16px;
}

.owner-doc-endpoint {
  display: grid;
  gap: 7px;
  padding: 11px;
  background: var(--input);
}

.owner-doc-route {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.owner-doc-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.owner-doc-methods span {
  min-width: 42px;
  padding: 4px 6px;
  border: 1px solid rgba(184, 76, 255, 0.38);
  color: var(--accent);
  background: rgba(184, 76, 255, 0.11);
  font-size: 11px;
  font-weight: 950;
  text-align: center;
}

.owner-doc-route code {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-doc-endpoint p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.owner-activity-column {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 12px;
}

.owner-activity-column h3 {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 16px;
}

.owner-activity-row {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--input);
}

.owner-activity-row strong,
.owner-activity-row span,
.owner-activity-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-activity-row strong {
  font-size: 13px;
}

.owner-activity-row span,
.owner-activity-row small {
  color: var(--muted);
  font-size: 12px;
}

.user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  justify-content: stretch;
  gap: 14px;
  width: 100%;
  text-align: left;
}

.user-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-row strong {
  color: var(--ink);
}

.user-row small {
  color: var(--success);
  font-weight: 800;
}

.empty-state.small {
  min-height: 120px;
}

.muted {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 44px));
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: #ffffff;
  background: rgba(20, 6, 36, 0.92);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 42%, rgba(184, 76, 255, 0.18), transparent 36%),
    rgba(5, 0, 15, 0.68);
  opacity: 1;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.confirm-overlay[hidden] {
  display: none;
}

.confirm-dialog {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  width: min(460px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(184, 76, 255, 0.2), transparent 62%),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.confirm-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 122, 157, 0.42);
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(180deg, #ff638f, var(--danger-strong));
  box-shadow: 0 16px 34px rgba(255, 59, 98, 0.24);
  font-size: 23px;
  font-weight: 950;
}

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

.confirm-copy h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.confirm-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.confirm-copy small {
  display: block;
  min-height: 20px;
  margin-top: 10px;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 760;
}

.confirm-copy small:empty {
  display: none;
}

.confirm-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

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

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

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(6, max-content);
    gap: 8px;
    height: auto;
    overflow-x: auto;
    padding: 12px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav {
    width: auto;
    margin-bottom: 0;
    white-space: nowrap;
  }

  .strip,
  .form-grid,
  .auth-fields,
  .stock-stats,
  .checkout-price {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
  }

  .top-actions,
  .button-row,
  .pager,
  .selector-row,
  .inline-form {
    width: 100%;
    align-items: stretch;
  }

  .theme-toggle,
  .credits-card,
  .field.compact,
  .top-actions .field,
  .top-actions button,
  .button-row button,
  .pager button,
  .inline-form button,
  .selector-row .field {
    width: 100%;
  }

  .content {
    padding: 16px;
  }

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

  .stock-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .store-source-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }

  .search-field {
    min-width: 100%;
  }

  .sort-field {
    width: 100%;
  }

  .auth-panel {
    top: 18px;
  }

  .checkout-product,
  .deliverables-head,
  .deliverable-card {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .deliverable-actions {
    width: 100%;
  }

  .deliverable-actions button {
    flex: 1;
  }

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

  .confirm-dialog {
    grid-template-columns: 1fr;
  }

  .confirm-icon {
    width: 44px;
    height: 44px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 26px;
  }
}

/* PandaService compact store skin */
:root {
  --announcement-height: 30px;
  --page: #07070a;
  --page-soft: #101015;
  --ink: #f7f3ff;
  --muted: #bcb4ca;
  --subtle: #7f778d;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --panel: #17171c;
  --panel-strong: #202027;
  --input: #101015;
  --input-strong: #15151b;
  --chip: rgba(184, 76, 255, 0.14);
  --accent: #b84cff;
  --accent-strong: #8f22ff;
  --accent-soft: rgba(184, 76, 255, 0.22);
  --danger: #ff385c;
  --danger-strong: #d62448;
  --success: #00d777;
  --warning: #ffb700;
  --shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 12px 26px rgba(0, 0, 0, 0.22);
  --radius-xl: 4px;
  --radius-lg: 4px;
  --radius-md: 4px;
  --radius-sm: 3px;
}

:root[data-theme="light"] {
  --page: #f7f4ff;
  --page-soft: #eee8fb;
  --ink: #18151d;
  --muted: #635b6f;
  --subtle: #8b8197;
  --line: rgba(42, 31, 55, 0.14);
  --line-strong: rgba(42, 31, 55, 0.28);
  --panel: #ffffff;
  --panel-strong: #f5f1fb;
  --input: #f7f3fd;
  --input-strong: #ffffff;
  --chip: rgba(143, 34, 255, 0.1);
}

body {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, #07070a 0%, #0d0913 100%);
  background-size: 42px 42px, 42px 42px, auto;
  font-family: "Cascadia Mono", Consolas, "Courier New", monospace;
}

.announcement {
  border-bottom-color: rgba(184, 76, 255, 0.46);
  color: #ffffff;
  background: #151019;
  box-shadow: none;
  font-size: 12px;
  text-transform: uppercase;
}

.topbar {
  position: relative;
  min-height: 86px;
  padding: 16px clamp(18px, 4vw, 42px);
  background: rgba(7, 7, 10, 0.94);
  border-bottom-color: var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

:root[data-theme="light"] .topbar {
  background: rgba(247, 244, 255, 0.94);
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 4px;
  border-color: rgba(184, 76, 255, 0.62);
  background: #151019;
  box-shadow: inset 0 0 0 1px rgba(184, 76, 255, 0.16);
  color: var(--accent);
  font-size: 24px;
}

.eyebrow {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 11px;
}

h1 {
  font-size: clamp(28px, 3vw, 42px);
}

h2 {
  font-size: 24px;
}

button {
  border-radius: 4px;
  box-shadow: none;
}

button:hover {
  box-shadow: none;
}

button.primary {
  border-color: rgba(184, 76, 255, 0.76);
  background: rgba(184, 76, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(184, 76, 255, 0.18);
}

button.primary:hover {
  background: rgba(184, 76, 255, 0.38);
}

button.ghost {
  border-color: rgba(255, 255, 255, 0.13);
  color: var(--muted);
  background: #141419;
}

.credits-card {
  min-width: 150px;
  min-height: 46px;
  border-color: rgba(0, 215, 119, 0.45);
  background: #0c1712;
  border-radius: 4px;
  box-shadow: none;
}

.credits-card strong {
  color: var(--success);
  font-size: 22px;
}

.theme-toggle,
input,
select,
textarea,
.switch {
  border-radius: 4px;
  background: var(--input);
  box-shadow: none;
}

.shell {
  display: block;
  min-height: calc(100vh - 116px);
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 9;
  display: flex;
  justify-content: center;
  gap: 10px;
  height: auto;
  padding: 18px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 10, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

:root[data-theme="light"] .sidebar {
  background: rgba(247, 244, 255, 0.88);
}

.nav {
  width: auto;
  min-height: 40px;
  margin: 0;
  border-color: var(--line);
  border-radius: 4px;
  background: #121216;
  color: var(--muted);
}

:root[data-theme="light"] .nav {
  background: #ffffff;
}

.nav::before {
  display: none;
}

.nav.active {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(184, 76, 255, 0.2);
  color: var(--ink);
  box-shadow: none;
}

.content {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 24px clamp(14px, 3vw, 32px) 48px;
}

.view-head {
  align-items: center;
  margin-bottom: 18px;
}

.stock-actions {
  min-width: min(620px, 100%);
}

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

.category-panel {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #121216;
}

:root[data-theme="light"] .category-panel {
  background: #ffffff;
}

.category-list {
  display: grid;
  gap: 8px;
}

.category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: stretch;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-color: transparent;
  background: #232329;
  color: var(--muted);
  text-align: left;
}

.category span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category strong {
  color: var(--subtle);
  font-size: 12px;
}

.category.active {
  border-left: 4px solid var(--accent);
  background: rgba(184, 76, 255, 0.2);
  color: var(--accent);
}

.stock-stats {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  min-height: 70px;
  padding: 12px;
  border-radius: 4px;
  background: #121216;
  box-shadow: none;
}

.stat-card strong {
  color: var(--accent);
  font-size: 24px;
}

.stat-card span {
  margin-top: 5px;
  font-size: 11px;
  text-transform: uppercase;
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(286px, 1fr));
  gap: 16px;
}

.product-card {
  min-height: 244px;
  border-radius: 3px;
  background: #17171c;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 76, 255, 0.58);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
}

.product-card.sold-out {
  opacity: 0.9;
}

.product-card .body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  padding: 0 16px 16px;
}

.product-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  margin: 0 -16px;
  min-height: 66px;
  padding: 12px 14px;
  border-bottom: 1px solid hsla(var(--card-hue, 278), 80%, 56%, 0.28);
  background:
    linear-gradient(90deg, hsla(var(--card-hue, 278), 82%, 42%, 0.36), rgba(184, 76, 255, 0.08)),
    #20182a;
}

.product-card h3 {
  margin: 0;
  color: var(--accent);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}

.product-top .product-id-badge {
  position: static;
  display: inline-flex;
  min-height: 0;
  margin-top: 5px;
  padding: 0;
  border: 0;
  color: var(--subtle);
  background: transparent;
  box-shadow: none;
  font-size: 11px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.price-badge {
  align-self: start;
  padding: 4px 8px;
  border: 1px solid rgba(184, 76, 255, 0.38);
  color: #d7a5ff;
  background: rgba(184, 76, 255, 0.12);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.product-copy {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.product-tag {
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid rgba(184, 76, 255, 0.24);
  color: #d7a5ff;
  background: rgba(184, 76, 255, 0.12);
  font-size: 11px;
  font-weight: 850;
}

.product-tag.server {
  border-color: rgba(255, 183, 0, 0.24);
  color: var(--warning);
  background: rgba(255, 183, 0, 0.1);
}

.product-tag.provider {
  border-color: rgba(69, 225, 134, 0.25);
  color: var(--success);
  background: rgba(69, 225, 134, 0.09);
}

.product-tag.limit {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.product-card p {
  min-height: 40px;
  color: var(--muted);
  font-size: 13px;
}

.stock-line {
  display: grid;
  place-items: center;
  min-height: 28px;
  color: var(--success);
  font-size: 13px;
  font-weight: 900;
}

.stock-line.empty {
  color: var(--danger);
}

.product-card button {
  min-height: 36px;
}

.empty-state,
.strip,
.form-grid,
.inline-form,
.pager,
.selector-row,
.wallet-panel,
.topup-panel,
.admin-panel,
.checkout-empty,
.checkout-product,
.checkout-price,
.checkout-status,
.deliverables-head,
.deliverable-card,
.output,
.confirm-dialog {
  border-radius: 4px;
  background-color: var(--panel);
  box-shadow: none;
}

@media (max-width: 980px) {
  .sidebar {
    justify-content: flex-start;
    overflow-x: auto;
  }

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

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

  .owner-api-form {
    position: static;
  }

  .owner-stats,
  .owner-shop-grid,
  .owner-activity,
  .owner-tool-grid,
  .owner-help-grid,
  .owner-docs-summary {
    grid-template-columns: 1fr 1fr;
  }

  .category-panel {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-list {
    display: contents;
  }
}

@media (max-width: 680px) {
  .topbar {
    gap: 16px;
  }

  .stock-stats,
  .category-panel,
  .owner-stats,
  .owner-shop-grid,
  .owner-activity,
  .owner-tool-grid,
  .owner-help-grid,
  .owner-docs-summary,
  .owner-danger-actions,
  .owner-api-token-actions,
  .owner-card-form,
  .owner-delivery-form,
  .auth-form {
    grid-template-columns: 1fr;
  }

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

  .owner-docs-head {
    flex-direction: column;
  }

  .owner-doc-route {
    grid-template-columns: 1fr;
  }

  .product-card h3 {
    white-space: normal;
  }

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

  .price-badge {
    width: fit-content;
  }
}

.credits-card.logged-out {
  border-color: rgba(184, 76, 255, 0.56);
  background: rgba(184, 76, 255, 0.16);
}

.credits-card.logged-out strong {
  color: var(--accent);
  font-size: 18px;
}

.stock-locked {
  gap: 12px;
  padding: 26px;
}

.stock-locked button {
  width: min(220px, 100%);
}

:root[data-theme="light"] body {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(93, 66, 124, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(93, 66, 124, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, #f7f4ff 0%, #ebe4f6 100%);
  background-size: 42px 42px, 42px 42px, auto;
}

:root[data-theme="light"] .announcement {
  border-bottom-color: rgba(143, 34, 255, 0.3);
  color: #ffffff;
  background: #151019;
}

:root[data-theme="light"] .brand-mark {
  color: var(--accent);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(143, 34, 255, 0.12);
}

:root[data-theme="light"] button,
:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea,
:root[data-theme="light"] .switch,
:root[data-theme="light"] .theme-toggle {
  color: var(--ink);
  background: #ffffff;
}

:root[data-theme="light"] button.primary,
:root[data-theme="light"] .theme-option.active {
  color: #ffffff;
  background: linear-gradient(180deg, #a93cff, #7a17dd);
}

:root[data-theme="light"] button.ghost {
  color: var(--muted);
  background: #f3eef9;
}

:root[data-theme="light"] .credits-card {
  background: #ffffff;
}

:root[data-theme="light"] .credits-card.logged-out {
  background: #f0e3ff;
}

:root[data-theme="light"] .category-panel,
:root[data-theme="light"] .stat-card,
:root[data-theme="light"] .product-card,
:root[data-theme="light"] .empty-state,
:root[data-theme="light"] .form-grid,
:root[data-theme="light"] .inline-form,
:root[data-theme="light"] .pager,
:root[data-theme="light"] .selector-row,
:root[data-theme="light"] .wallet-panel,
:root[data-theme="light"] .topup-panel,
:root[data-theme="light"] .admin-panel,
:root[data-theme="light"] .checkout-empty,
:root[data-theme="light"] .checkout-product,
:root[data-theme="light"] .checkout-price,
:root[data-theme="light"] .checkout-status,
:root[data-theme="light"] .deliverable-card,
:root[data-theme="light"] .output,
:root[data-theme="light"] .confirm-dialog {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

:root[data-theme="light"] .topup-estimate,
:root[data-theme="light"] .topup-row,
:root[data-theme="light"] .owner-user-row,
:root[data-theme="light"] .api-key-badges span,
:root[data-theme="light"] .owner-stat-card,
:root[data-theme="light"] .owner-shop-card,
:root[data-theme="light"] .owner-activity-column,
:root[data-theme="light"] .owner-activity-row,
:root[data-theme="light"] .owner-docs-summary div,
:root[data-theme="light"] .owner-doc-section,
:root[data-theme="light"] .owner-doc-endpoint,
:root[data-theme="light"] .owner-docs-safety span {
  background: #f7f3fb;
}

:root[data-theme="light"] .owner-note {
  background: rgba(33, 186, 108, 0.08);
}

:root[data-theme="light"] .topup-link {
  color: var(--accent);
  background: #f0e3ff;
}

:root[data-theme="light"] .category {
  color: var(--muted);
  background: #f1edf7;
}

:root[data-theme="light"] .category.active {
  color: var(--accent);
  background: #ead7ff;
}

:root[data-theme="light"] .product-top {
  background:
    linear-gradient(90deg, hsla(var(--card-hue, 278), 82%, 64%, 0.2), rgba(143, 34, 255, 0.06)),
    #f2e8ff;
}

:root[data-theme="light"] .product-card h3 {
  color: var(--accent-strong);
}

:root[data-theme="light"] .price-badge,
:root[data-theme="light"] .product-tag {
  color: var(--accent-strong);
  background: rgba(143, 34, 255, 0.09);
}

:root[data-theme="light"] .product-tag.server {
  color: #8a5e00;
  background: rgba(255, 183, 0, 0.16);
}

:root[data-theme="light"] .product-tag.provider {
  color: #137344;
  background: rgba(33, 186, 108, 0.1);
}

:root[data-theme="light"] .product-tag.limit {
  color: var(--muted);
  background: rgba(42, 31, 55, 0.05);
}

:root[data-theme="light"] .deliverables {
  background: #f7f4ff;
}

/* Compact account controls */
.top-actions {
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.locale-card {
  position: relative;
  min-width: auto;
  width: auto;
}

.native-locale {
  display: none;
}

.locale-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-height: 38px;
  border: 1px solid rgba(97, 255, 176, 0.35);
  border-radius: 12px;
  padding: 0 10px;
  color: #ffffff;
  background: rgba(7, 10, 18, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.locale-button::before {
  content: none;
}

.locale-flag {
  font-size: 17px;
}

.locale-button strong,
.locale-option strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.locale-caret {
  display: none;
}

.locale-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  min-width: 210px;
  border: 1px solid var(--line);
  background: #17171c;
  box-shadow: var(--shadow);
}

.locale-option {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 0;
  padding: 0 12px;
  color: #ffffff;
  background: transparent;
  box-shadow: none;
}

.locale-option:hover,
.locale-option:focus,
.locale-option.active {
  color: var(--warning);
  background: rgba(255, 170, 0, 0.23);
  outline: none;
}

.credits-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: auto;
  min-height: 34px;
  padding: 6px 10px;
  border-color: rgba(97, 255, 176, 0.45);
  background: rgba(6, 13, 20, 0.92);
  border-radius: 12px;
  text-align: left;
}

.credits-card span {
  display: none;
}

.credits-card strong {
  color: var(--success);
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
}

.credits-card strong::after {
  content: none;
}

.credits-card small {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(97, 255, 176, 0.65);
  background: rgba(10, 19, 28, 0.98);
  color: rgba(97, 255, 176, 0.95);
  font-size: 12px;
  font-weight: 800;
}

.credits-card.logged-out {
  background: rgba(148, 96, 255, 0.1);
}

.credits-card.logged-out strong {
  color: var(--accent);
}

.credits-card.logged-out {
  min-width: 142px;
  border-color: rgba(184, 76, 255, 0.58);
  background: rgba(184, 76, 255, 0.1);
}

.credits-card.logged-out strong {
  color: var(--accent);
  font-size: 18px;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border-color: rgba(0, 215, 119, 0.48);
  border-radius: 999px;
  padding: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(180deg, #20e68a, #138653);
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 3px rgba(0, 215, 119, 0.12);
  font-size: 13px;
  font-weight: 950;
}

.account-avatar.has-image {
  background-color: transparent;
}

.account-avatar.has-image > span {
  opacity: 0;
}

.account-avatar.logged-out {
  border-color: rgba(184, 76, 255, 0.58);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(180deg, #b84cff, #6617be);
  box-shadow: 0 0 0 3px rgba(184, 76, 255, 0.12);
}

#userLoginForm,
#adminLoginForm {
  align-items: end;
  border-color: rgba(184, 76, 255, 0.32);
  background:
    linear-gradient(90deg, rgba(184, 76, 255, 0.08), transparent 72%),
    #121216;
}

#userLoginForm .primary {
  border-color: rgba(0, 215, 119, 0.58);
  background: rgba(0, 215, 119, 0.18);
}

:root[data-theme="light"] .locale-card,
:root[data-theme="light"] .credits-card,
:root[data-theme="light"] #userLoginForm,
:root[data-theme="light"] #adminLoginForm {
  background: #ffffff;
}

:root[data-theme="light"] .locale-button {
  color: var(--ink);
  background: #ffffff;
}

:root[data-theme="light"] .locale-button::before {
  color: var(--accent-strong);
}

:root[data-theme="light"] .locale-menu {
  background: #ffffff;
}

:root[data-theme="light"] .locale-option {
  color: var(--ink);
}

:root[data-theme="light"] .credits-card {
  background: rgba(0, 179, 99, 0.06);
}

:root[data-theme="light"] .credits-card.logged-out {
  background: rgba(143, 34, 255, 0.08);
}

/* Purchases table */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#ordersView {
  max-width: 1180px;
  margin: 0 auto;
}

#ordersView > .view-head {
  margin-bottom: 18px;
}

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

.purchase-controls p {
  margin: 0;
}

.purchase-page-buttons {
  display: flex;
  gap: 8px;
}

.purchase-page-buttons button {
  min-height: 38px;
  border-color: rgba(184, 76, 255, 0.45);
  color: var(--ink);
  background: #17171c;
}

.purchase-page-buttons button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.purchase-history {
  display: block;
  margin-bottom: 28px;
  padding: 0;
  border: 0;
  background: transparent;
}

.purchase-table-panel {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #17171c;
}

.purchase-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: var(--ink);
}

.purchase-table th,
.purchase-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  vertical-align: middle;
}

.purchase-table th {
  color: #ffffff;
  background: #07070a;
  font-size: 13px;
  font-weight: 900;
}

.purchase-table td {
  color: var(--ink);
  font-size: 13px;
}

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

.purchase-row {
  transition: background 140ms ease;
}

.purchase-row:hover,
.purchase-row:focus {
  background: rgba(184, 76, 255, 0.08);
  outline: none;
}

.product-cell {
  min-width: 240px;
}

.product-cell strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
}

.product-cell small {
  display: block;
  width: fit-content;
  max-width: 320px;
  overflow: hidden;
  margin-top: 6px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  background: #090a0e;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-table button {
  min-height: 34px;
  border-color: rgba(0, 117, 255, 0.62);
  color: #78adff;
  background: rgba(0, 91, 210, 0.18);
}

.purchase-empty {
  margin-bottom: 18px;
}

.queue-section {
  padding-top: 2px;
}

.queue-section .compact-head {
  align-items: end;
}

:root[data-theme="light"] .purchase-table-panel {
  background: #ffffff;
}

:root[data-theme="light"] .purchase-page-buttons button {
  color: var(--ink);
  background: #ffffff;
}

:root[data-theme="light"] .purchase-table th {
  color: var(--ink);
  background: #f1edf7;
}

:root[data-theme="light"] .purchase-table th,
:root[data-theme="light"] .purchase-table td {
  border-bottom-color: rgba(42, 31, 55, 0.12);
}

:root[data-theme="light"] .product-cell strong {
  color: var(--ink);
}

:root[data-theme="light"] .product-cell small {
  color: var(--muted);
  background: #f7f3fd;
}

@media (max-width: 680px) {
  .top-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .locale-card,
  .credits-card,
  .theme-toggle {
    width: 100%;
  }

  .top-actions .account-avatar {
    width: 44px;
    min-width: 44px;
  }

  .theme-toggle {
    grid-column: 1 / -1;
  }

  .purchase-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .purchase-page-buttons button {
    flex: 1;
  }

  .purchase-table th,
  .purchase-table td {
    padding: 10px 8px;
  }

  .product-cell small {
    max-width: 220px;
  }
}
