:root {
  --bg: #f5f6fa;
  --panel: #ffffff;
  --panel-soft: #f1f3f8;
  --ink: #182235;
  --muted: #6c7486;
  --line: #e4e7ef;
  --brand: #244097;
  --brand-2: #2d73e8;
  --accent: #ff9500;
  --rose: #c96d67;
  --lavender: #d8c7ff;
  --cream: #fff0cf;
  --shadow: 0 18px 42px rgba(31, 42, 68, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

button,
input {
  font: inherit;
}

textarea,
select {
  font: inherit;
}

.storefront-body {
  background: #f7f8fb;
}

.legal-ticker {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  gap: 32px;
  overflow: hidden;
  background: #111827;
  color: #f5f7fb;
  font-size: 13px;
  white-space: nowrap;
}

.legal-ticker span {
  display: inline-block;
  padding: 9px 0;
  animation: ticker 24s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.store-header {
  position: sticky;
  z-index: 25;
  top: 34px;
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid rgba(226, 231, 241, 0.9);
  background: rgba(255, 255, 255, 0.9);
  padding: 0 clamp(18px, 5vw, 64px);
  backdrop-filter: blur(18px);
}

.store-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #172033;
  white-space: nowrap;
}

.store-logo strong {
  font-size: 18px;
}

.store-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.store-nav a,
.ghost-link,
.admin-shortcut {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  border-radius: 19px;
  padding: 0 11px;
  color: #4d5667;
  font-size: 13px;
  font-weight: 700;
}

.store-nav a.active,
.store-nav a:hover,
.ghost-link:hover {
  background: #eef4ff;
  color: #2563eb;
}

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

.ghost-link svg,
.admin-shortcut svg,
.store-search svg,
.hero-side svg {
  width: 16px;
  height: 16px;
}

.admin-shortcut {
  background: #111827;
  color: white;
}

.store-main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 36px;
}

.security-strip {
  display: none;
  align-items: center;
  gap: 14px;
  border: 1px solid #d9eadf;
  border-radius: 8px;
  background: #f0fbf4;
  color: #1d6b45;
  padding: 11px 14px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 800;
  flex-wrap: wrap;
}

.security-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.security-strip svg {
  width: 16px;
  height: 16px;
}

.store-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 14px;
  min-height: 190px;
}

.hero-content,
.hero-side {
  border: 1px solid #e3e8f2;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 28px);
  background:
    radial-gradient(circle at 86% 22%, rgba(45, 115, 232, 0.14), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f3f7ff 56%, #fff6df 100%);
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  border-radius: 15px;
  background: #eaf2ff;
  color: #245ec9;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.hero-content h1 {
  max-width: 680px;
  margin: 12px 0 9px;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 16px;
  color: #596474;
  font-size: 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.6;
}

.hero-side {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 190px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0) 0%, rgba(17, 24, 39, 0.78) 100%),
    url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=900&q=80") center/cover;
  color: white;
}

.hero-side strong {
  font-size: 20px;
}

.hero-side p {
  color: rgba(255, 255, 255, 0.82);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: 14px;
  line-height: 1.55;
}

.hero-side a {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  border-radius: 20px;
  background: #ffb020;
  color: #111827;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 900;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 18px 0 20px;
}

.catalog-sidebar {
  grid-column: 1;
  position: sticky;
  top: 88px;
  display: flex;
  max-height: var(--catalog-sidebar-max-height, calc(100vh - 104px));
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: white;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(31, 42, 68, 0.05);
  scrollbar-width: thin;
  z-index: 5;
}

.catalog-sidebar.is-locked {
  left: var(--catalog-sidebar-left, 16px);
  max-height: var(--catalog-sidebar-max-height, calc(100vh - 104px));
  position: fixed;
  top: 88px;
  width: var(--catalog-sidebar-width, 248px);
}

.catalog-layout.sidebar-locked {
  grid-template-columns: 248px minmax(0, 1fr);
}

.catalog-title {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #edf1f7;
  margin-bottom: 4px;
  padding: 0 4px 10px;
  color: #1f2937;
  font-weight: 900;
}

.catalog-title svg {
  width: 17px;
  height: 17px;
}

.catalog-content {
  display: grid;
  grid-column: 2;
  min-width: 0;
  gap: 12px;
}

.store-category {
  align-items: center;
  display: flex;
  gap: 9px;
  min-height: 34px;
  width: 100%;
  border: 1px solid #dfe5ef;
  border-radius: 6px;
  background: white;
  color: #344054;
  padding: 0 14px;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.store-category img,
.category-avatar-fallback {
  border-radius: 50%;
  flex: 0 0 auto;
  height: 22px;
  object-fit: cover;
  width: 22px;
}

.category-avatar-fallback {
  align-items: center;
  background: #e8eef7;
  color: #344054;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
}

.store-category.active,
.store-category:hover {
  border-color: #1f2937;
  background: #1f2937;
  color: white;
}

.store-search {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  background: white;
  padding: 0 16px;
}

.store-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

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

.store-product {
  display: flex;
  min-height: 284px;
  flex-direction: column;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: white;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(31, 42, 68, 0.05);
}

.product-image {
  align-items: center;
  aspect-ratio: 16 / 7;
  background: linear-gradient(135deg, #1f2937, #2563eb);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;
}

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

.product-image span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0;
}

.product-badge {
  width: fit-content;
  border-radius: 13px;
  background: #e9f8ef;
  color: #15935b;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}

.product-badge.blue {
  background: #edf4ff;
  color: #2563eb;
}

.product-badge.gray {
  background: #eef1f5;
  color: #687386;
}

.store-product h2 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 46px;
  margin: 10px 0 8px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 15px;
  line-height: 1.48;
}

.store-product p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
}

.product-meta strong {
  color: #ff8a00;
  font-size: 19px;
}

.product-meta span {
  color: #667085;
  font-size: 13px;
}

.store-product button {
  min-height: 38px;
  border: 0;
  border-radius: 21px;
  margin-top: 10px;
  background: #111827;
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.store-product button:disabled {
  background: #c7ced8;
  cursor: not-allowed;
}

.store-utility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.utility-panel {
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: white;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(31, 42, 68, 0.05);
}

.store-page {
  margin: 26px auto 34px;
  max-width: 760px;
}

.page-panel {
  min-height: 260px;
}

.utility-panel h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.utility-panel p {
  color: #667085;
  line-height: 1.65;
}

.inline-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.inline-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid #dfe5ef;
  border-radius: 6px;
  padding: 10px;
}

.inline-form button {
  border: 0;
  border-radius: 6px;
  background: #2563eb;
  color: white;
  padding: 0 16px;
  font-weight: 900;
}

.store-footer {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-top: 1px solid #e1e7f0;
  color: #667085;
  font-size: 14px;
}

.announcement-modal,
.purchase-drawer,
.security-challenge,
.account-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.48);
  padding: 20px;
}

.announcement-modal.open,
.purchase-drawer.open,
.security-challenge.open,
.account-modal.open {
  display: flex;
}

.announcement-card,
.purchase-panel,
.account-card,
.security-card {
  position: relative;
  width: min(100%, 520px);
  border-radius: 8px;
  background: white;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.announcement-card h2,
.purchase-panel h2,
.account-card h2 {
  margin: 0 0 12px;
}

.announcement-card p,
.purchase-panel p,
.account-card p {
  color: #667085;
  line-height: 1.7;
}

.announcement-card ul {
  margin: 14px 0 20px;
  padding-left: 20px;
  color: #4d5667;
  line-height: 1.8;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f0f2f6;
  color: #344054;
  cursor: pointer;
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.purchase-panel {
  display: grid;
  gap: 13px;
}

.purchase-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-radius: 8px;
  background: #f4f7fb;
  padding: 14px;
}

.purchase-summary span {
  color: #667085;
}

.purchase-panel label {
  display: grid;
  gap: 7px;
  color: #3f4652;
  font-size: 14px;
}

.purchase-panel input,
.purchase-panel select,
.account-card input {
  width: 100%;
  border: 1px solid #dfe5ef;
  border-radius: 6px;
  padding: 10px;
}

.account-card {
  display: grid;
  gap: 13px;
}

.account-card label {
  display: grid;
  gap: 7px;
  color: #3f4652;
  font-size: 14px;
}

.account-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.account-status {
  color: #be123c;
  font-size: 13px;
  min-height: 18px;
}

.full-width {
  width: 100%;
}

.bot-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.security-card p {
  color: #667085;
  line-height: 1.7;
}

.challenge-track {
  position: relative;
  display: flex;
  height: 52px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #dfe5ef;
  border-radius: 26px;
  background: #f3f6fb;
  color: #667085;
  font-weight: 900;
  user-select: none;
}

.challenge-track.verified {
  border-color: #21a870;
  background: #eaf8f0;
  color: #157a50;
}

.challenge-handle {
  position: absolute;
  left: 5px;
  top: 5px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #2563eb;
  color: white;
  cursor: grab;
  touch-action: none;
  transition: background 0.2s ease;
}

.challenge-handle:active {
  cursor: grabbing;
}

.challenge-track.verified .challenge-handle {
  background: #21a870;
}

.challenge-handle svg {
  width: 20px;
  height: 20px;
}

.security-status {
  min-height: 34px;
  border-radius: 6px;
  background: #f7f8fb;
  color: #667085;
  padding: 9px 10px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 800;
}

.security-status.warn {
  background: #fff4df;
  color: #9a5a00;
}

.security-status.ok {
  background: #eaf8f0;
  color: #157a50;
}

.purchase-result {
  background: #0f172a;
  border-radius: 8px;
  color: #e5e7eb;
  font-size: 12px;
  line-height: 1.7;
  margin: 12px 0 0;
  max-height: 180px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
}

.order-query-result {
  margin-top: 18px;
}

.order-detail-card {
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 16px;
}

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

.order-detail-head strong {
  color: #111827;
  font-size: 18px;
}

.order-detail-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.order-detail-card dl div {
  display: grid;
  gap: 8px;
  grid-template-columns: 90px minmax(0, 1fr);
}

.order-detail-card dt {
  color: #64748b;
}

.order-detail-card dd {
  margin: 0;
  color: #1f2937;
  font-weight: 800;
}

.order-detail-card h3 {
  margin: 16px 0 8px;
}

.order-detail-card pre {
  background: #0f172a;
  border-radius: 8px;
  color: #e5e7eb;
  max-height: 260px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
}

.order-detail-card p {
  margin-bottom: 0;
}

.empty-state {
  align-items: center;
  background: #fff;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  color: #64748b;
  display: flex;
  min-height: 160px;
  justify-content: center;
}

.admin-auth {
  align-items: center;
  background: rgba(15, 23, 42, 0.42);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 80;
}

.admin-auth.open {
  display: flex;
}

.admin-auth-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  display: grid;
  gap: 14px;
  max-width: 420px;
  padding: 28px;
  width: 100%;
}

.admin-auth-card h2,
.admin-auth-card p {
  margin: 0;
}

.admin-auth-card p {
  color: #64748b;
  line-height: 1.7;
}

.admin-auth-card label {
  color: #475569;
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.admin-auth-card input {
  border: 1px solid #d8dee8;
  border-radius: 7px;
  font: inherit;
  padding: 11px 12px;
}

.admin-auth-status {
  color: #be123c;
  font-size: 13px;
  min-height: 18px;
}

.settings-status {
  color: #157a50;
  font-size: 13px;
  font-weight: 800;
  min-height: 18px;
}

.app-shell,
.admin-shell {
  display: grid;
  min-height: 100vh;
}

.app-shell {
  grid-template-columns: 205px minmax(0, 1fr);
}

.admin-shell {
  grid-template-columns: 240px minmax(0, 1fr);
}

.sidebar,
.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 24px;
  border-right: 1px solid var(--line);
  background: #f0f1f5;
  padding: 28px 12px;
}

.admin-sidebar {
  background: #111827;
  color: #dce3f3;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 34px;
  font-weight: 700;
}

.admin-sidebar .brand {
  padding: 0 16px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-2);
  color: white;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-label {
  margin: 0;
  padding: 0 16px;
  color: #596173;
  font-size: 12px;
}

.admin-sidebar .nav-label {
  color: #8792a8;
}

.nav-item,
.logout {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 0 16px;
  color: #4f596d;
  font-size: 14px;
  white-space: nowrap;
}

.admin-sidebar .nav-item,
.admin-sidebar .logout {
  color: #c8d2e6;
}

.nav-item svg,
.logout svg,
.quick-link svg,
.btn svg,
.tab svg,
.product-section h2 svg {
  width: 17px;
  height: 17px;
}

.nav-item.active {
  background: #dedee1;
  color: var(--ink);
  font-weight: 700;
}

.admin-sidebar .nav-item.active {
  background: #243047;
  color: white;
}

.nav-caret {
  margin-left: auto;
}

.logout {
  margin-top: auto;
  color: #ff6b7a;
}

.main-panel,
.admin-main {
  min-width: 0;
  padding: 72px 30px 40px 24px;
}

.admin-main {
  padding: 32px;
}

.topbar,
.admin-topbar {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  left: 205px;
  display: flex;
  height: 72px;
  align-items: center;
  gap: 22px;
  background: rgba(245, 246, 250, 0.86);
  padding: 0 30px 0 24px;
  backdrop-filter: blur(16px);
}

.admin-topbar {
  position: static;
  justify-content: space-between;
  height: auto;
  padding: 0 0 28px;
  background: transparent;
  backdrop-filter: none;
}

.balance {
  font-size: 20px;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.search-box {
  display: flex;
  width: min(100%, 230px);
  height: 38px;
  align-items: center;
  gap: 8px;
  border-radius: 20px;
  background: #e8e8ec;
  padding: 0 13px 0 18px;
  margin-left: auto;
}

.search-box.compact {
  width: 280px;
  margin-left: 0;
  background: white;
  border: 1px solid var(--line);
}

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

.search-box svg {
  width: 20px;
  color: #6f7685;
}

.icon-btn {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #566072;
  cursor: pointer;
}

.icon-btn.muted {
  background: #e6e8ef;
}

.profile-pill {
  display: inline-flex;
  height: 36px;
  align-items: center;
  gap: 8px;
  border-radius: 18px;
  background: #e5e3e6;
  padding: 0 12px 0 8px;
  font-weight: 700;
}

.profile-pill span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #cab2f4;
  color: #111827;
  font-size: 12px;
}

.notice {
  display: flex;
  min-height: 80px;
  align-items: center;
  border-radius: 8px 8px 18px 18px;
  background: var(--brand);
  color: white;
  line-height: 1.7;
  padding: 14px 22px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 262px;
  gap: 28px;
  margin-top: 20px;
}

.hero-card,
.news-card {
  min-height: 300px;
  border-radius: 18px;
}

.hero-card {
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: center;
  justify-content: space-between;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.6), transparent 24%),
    linear-gradient(135deg, var(--lavender), #d3cbff 55%, #cfc5fb);
  padding: 42px 46px;
}

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

.site-pill {
  display: inline-flex;
  height: 31px;
  align-items: center;
  gap: 8px;
  border-radius: 16px;
  background: white;
  padding: 0 16px;
  color: #5c6170;
  font-size: 13px;
  font-weight: 700;
}

.site-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28d47d;
}

.hero-card h1 {
  margin: 20px 0 18px;
  font-size: 30px;
  letter-spacing: 0;
}

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

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 22px;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
}

.btn.dark {
  background: #111827;
  color: white;
  box-shadow: 0 12px 18px rgba(17, 24, 39, 0.18);
}

.btn.light {
  border: 1px solid #9bc4ff;
  background: #f8fbff;
  color: #172033;
}

.hero-visual {
  position: relative;
  width: 210px;
  height: 190px;
}

.phone-card {
  position: absolute;
  top: 8px;
  right: 20px;
  display: grid;
  width: 138px;
  height: 168px;
  place-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
  transform: rotate(7deg);
}

.phone-card strong {
  font-size: 34px;
}

.phone-card small {
  color: var(--muted);
}

.mini-chart {
  position: absolute;
  bottom: 12px;
  left: 2px;
  display: flex;
  align-items: end;
  gap: 8px;
  width: 112px;
  height: 74px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  padding: 14px;
  box-shadow: var(--shadow);
}

.mini-chart span {
  width: 14px;
  border-radius: 8px 8px 3px 3px;
  background: var(--brand-2);
}

.mini-chart span:nth-child(1) { height: 22px; background: #23c985; }
.mini-chart span:nth-child(2) { height: 42px; background: #ffb235; }
.mini-chart span:nth-child(3) { height: 30px; background: #7d63d8; }
.mini-chart span:nth-child(4) { height: 50px; background: #2d73e8; }

.news-card {
  background: var(--cream);
  padding: 28px 26px;
}

.section-title,
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-title h2,
.panel-header h2 {
  margin: 0;
  font-size: 16px;
}

.section-title a {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid #1f2937;
  border-radius: 50%;
}

.section-title svg {
  width: 17px;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  color: #b67872;
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 30px;
  flex-wrap: wrap;
}

.tab {
  display: inline-flex;
  height: 44px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  border: 1px solid #c66f68;
  background: white;
  color: #c66f68;
}

.tab.dark {
  background: #303030;
  color: white;
}

.product-section h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px 8px;
  color: #3d4960;
  font-size: 16px;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 80px 74px 104px;
  min-height: 66px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  padding: 10px 18px;
}

.product-copy h3 {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.product-copy p {
  margin: 7px 0 0;
  color: #99a1b4;
  font-size: 12px;
}

.price {
  color: var(--accent);
  font-size: 16px;
}

.stock {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e9e8ff;
  color: #34439a;
  font-size: 13px;
}

.stock-btn {
  min-height: 37px;
  border: 0;
  border-radius: 20px;
  background: #9aa9bd;
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.flag {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  flex: 0 0 auto;
}

.flag.us {
  background: repeating-linear-gradient(to bottom, #c92835 0 2px, #fff 2px 4px);
}

.flag.us::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 47%;
  height: 48%;
  background: #21468b;
}

.flag.large {
  width: 44px;
  height: 44px;
}

.circle-logo {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 11px;
  font-weight: 900;
  flex: 0 0 auto;
}

.circle-logo.fb {
  background: #2878eb;
  font-family: Arial, sans-serif;
  font-size: 20px;
}

.circle-logo.eu {
  background: #0638c8;
  font-size: 9px;
}

.circle-logo.tk {
  background: #050505;
}

.eyebrow {
  margin: 0 0 5px;
  color: #7b8497;
  font-size: 12px;
  font-weight: 800;
}

.admin-topbar h1 {
  margin: 0;
  font-size: 28px;
}

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

.metric-card,
.table-panel,
.ops-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 20px;
}

.metric-card span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #eff5ff;
  color: var(--brand-2);
}

.metric-card p {
  margin: 16px 0 8px;
  color: var(--muted);
}

.metric-card strong {
  display: block;
  font-size: 28px;
}

.metric-card small {
  display: block;
  margin-top: 8px;
  color: #23a76d;
}

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

.table-panel,
.ops-panel {
  padding: 20px;
}

.order-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.table-row {
  display: grid;
  grid-template-columns: 140px 100px minmax(0, 1fr) 86px 88px;
  min-height: 46px;
  align-items: center;
  gap: 14px;
  border-radius: 8px;
  background: #f8f9fc;
  padding: 0 14px;
  font-size: 14px;
}

.table-head {
  min-height: 34px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

mark {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  border-radius: 13px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

mark.ok { background: #e9f8ef; color: #15935b; }
mark.warn { background: #fff4d9; color: #b36a00; }
mark.info { background: #eaf1ff; color: #2d62c4; }

.inventory-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.inventory-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.inventory-item strong,
.inventory-item small {
  display: block;
}

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

.inventory-item button {
  min-height: 32px;
  border: 0;
  border-radius: 16px;
  background: #eef2ff;
  color: #3144a1;
  font-weight: 800;
  cursor: pointer;
}

.console-shell {
  min-height: 100vh;
  background: #edf0f4;
  color: #30343b;
}

.console-topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: 42px;
  align-items: center;
  border-bottom: 1px solid #d9dee7;
  background: #fff;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06);
}

.console-menu,
.console-topbar button {
  display: inline-grid;
  height: 42px;
  min-width: 42px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #5c6470;
  cursor: pointer;
}

.console-tab {
  display: inline-flex;
  height: 42px;
  align-items: center;
  gap: 8px;
  border-right: 1px solid #edf0f4;
  padding: 0 18px;
  color: #566072;
  font-size: 14px;
}

.console-tab.active {
  background: #f4f6fa;
  color: #2b2f38;
  font-weight: 700;
}

.console-tab svg,
.console-top-actions svg,
.console-nav svg,
.console-menu-list summary svg,
.table-toolbar svg,
.tab-chip svg {
  width: 15px;
  height: 15px;
}

.console-top-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding-right: 12px;
}

.console-top-actions a,
.console-top-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5d6673;
  font-size: 13px;
}

.admin-user span {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #d9dde5;
}

.console-sidebar {
  position: fixed;
  z-index: 10;
  top: 42px;
  bottom: 0;
  left: 0;
  width: 230px;
  overflow-y: auto;
  border-right: 1px solid #202838;
  background: #222d3b;
  color: #d2d8e3;
}

.console-brand {
  height: 72px;
  padding: 0 18px;
  color: white;
}

.console-brand .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  font-size: 28px;
}

.menu-search {
  display: flex;
  height: 38px;
  align-items: center;
  gap: 8px;
  margin: 0 12px 12px;
  border-radius: 4px;
  background: #1a2431;
  padding: 0 10px;
}

.menu-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
}

.menu-search svg {
  width: 15px;
}

.console-menu-list {
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
}

.console-nav,
.console-menu-list summary,
.console-menu-list details a {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  border-left: 3px solid transparent;
  padding: 0 18px;
  color: #d2d8e3;
  cursor: pointer;
  font-size: 14px;
}

.console-menu-list summary {
  list-style: none;
}

.console-menu-list summary::-webkit-details-marker {
  display: none;
}

.console-menu-list details a {
  min-height: 34px;
  background: #1d2633;
  padding-left: 46px;
  color: #aeb8c8;
  font-size: 13px;
}

.console-nav.active,
.console-menu-list a.active,
.console-menu-list summary:hover,
.console-menu-list a:hover {
  border-left-color: #4b7dff;
  background: #1a2431;
  color: white;
}

.console-workspace {
  min-height: 100vh;
  margin-left: 230px;
  padding: 56px 28px 34px;
}

.workspace-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border: 1px solid #dfe4ec;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: white;
}

.tab-chip {
  display: inline-flex;
  min-width: 108px;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-right: 1px solid #edf0f4;
  background: white;
  color: #626b7a;
  cursor: pointer;
}

.tab-chip.active {
  background: #f3f6fb;
  color: #1f2937;
  font-weight: 800;
}

.console-panel {
  display: none;
  min-height: calc(100vh - 130px);
  border: 1px solid #dfe4ec;
  border-radius: 0 0 8px 8px;
  background: #f4f7fb;
  padding: 18px;
}

.console-panel.active {
  display: block;
}

.system-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 4px;
  background: #e9f5ff;
  color: #3079b7;
  padding: 12px 16px;
}

.date-filters {
  display: flex;
  gap: 8px;
  margin: 18px 0;
  flex-wrap: wrap;
}

.date-filters button,
.table-toolbar button,
.form-actions button {
  min-height: 34px;
  border: 1px solid #d8dde7;
  border-radius: 4px;
  background: white;
  color: #4f5968;
  padding: 0 12px;
  cursor: pointer;
}

.date-filters button:first-child,
.table-toolbar .primary,
.form-actions .primary,
.mini.primary {
  border-color: #2f80ed;
  background: #2f80ed;
  color: white;
}

.console-card,
.form-panel,
.data-table,
.plugin-table {
  border: 1px solid #e2e6ef;
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 22px rgba(31, 42, 68, 0.05);
}

.domain-card {
  padding: 0;
}

.domain-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 140px;
  align-items: center;
  border-bottom: 1px solid #edf0f4;
  padding: 15px 18px;
}

.domain-row.header {
  color: #6e7786;
  font-size: 13px;
  font-weight: 800;
}

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

.dashboard-stats article {
  display: grid;
  min-height: 112px;
  place-items: center;
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 22px rgba(31, 42, 68, 0.05);
}

.dashboard-stats strong {
  font-size: 32px;
}

.dashboard-stats span {
  color: #6e7786;
}

.form-panel {
  padding: 20px;
}

.form-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #edf0f4;
  margin-bottom: 20px;
}

.form-tabs button {
  min-height: 38px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #5f6978;
  cursor: pointer;
}

.form-tabs button.active {
  border-color: #2f80ed;
  color: #2f80ed;
  font-weight: 800;
}

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

.settings-grid label {
  display: grid;
  gap: 7px;
  color: #3f4652;
  font-size: 14px;
}

.settings-grid input,
.settings-grid textarea,
.toolbar-input {
  width: 100%;
  border: 1px solid #dce2ec;
  border-radius: 4px;
  background: white;
  padding: 9px 10px;
  color: #1f2937;
}

.settings-grid textarea {
  min-height: 86px;
  resize: vertical;
}

.upload-row,
.form-actions,
.table-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.form-actions {
  justify-content: flex-end;
  margin-top: 22px;
}

.table-toolbar {
  border: 1px solid #e2e6ef;
  border-radius: 8px 8px 0 0;
  background: white;
  padding: 12px;
}

.table-toolbar button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.table-toolbar .danger,
.mini.danger {
  border-color: #ff7f7f;
  background: #ff7f7f;
  color: white;
}

.toolbar-input {
  width: 160px;
  margin-left: auto;
}

.data-table,
.plugin-table {
  border-top: 0;
  border-radius: 0 0 8px 8px;
  overflow-x: auto;
}

.data-row {
  display: grid;
  grid-template-columns: 70px minmax(180px, 1.4fr) minmax(130px, 1fr) 90px 86px 110px 120px;
  min-width: 840px;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #edf0f4;
  padding: 13px 16px;
  font-size: 14px;
}

.product-admin-row {
  grid-template-columns: 96px minmax(260px, 1.35fr) minmax(130px, 0.8fr) 82px 70px 92px minmax(280px, 1fr);
  min-width: 1160px;
}

.admin-product-info {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 58px minmax(0, 1fr);
}

.admin-product-thumb {
  aspect-ratio: 4 / 3;
  background: #eef2f7;
  border: 1px solid #d8dee8;
  border-radius: 7px;
  object-fit: cover;
  width: 58px;
}

.image-editor {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 78px 78px;
}

.image-editor input {
  border: 1px solid #d8dee8;
  border-radius: 6px;
  font: inherit;
  min-width: 0;
  padding: 8px 9px;
}

.image-editor button {
  border: 1px solid #2563eb;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  min-height: 34px;
}

.image-editor button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.toolbar-note {
  color: #64748b;
  font-size: 13px;
  margin-left: auto;
}

.category-create-form {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1.2fr) 90px minmax(140px, 0.8fr) minmax(180px, 1fr);
  margin-bottom: 14px;
  padding: 12px;
}

.category-create-form input {
  border: 1px solid #d8dee8;
  border-radius: 6px;
  font: inherit;
  min-width: 0;
  padding: 9px 10px;
}

.category-admin-row {
  align-items: center;
  border-top: 1px solid #edf0f4;
  display: grid;
  gap: 12px;
  grid-template-columns: 56px minmax(170px, 1fr) minmax(220px, 1.2fr) minmax(110px, 0.7fr) minmax(130px, 0.8fr) 74px 76px 92px;
  min-width: 1050px;
  padding: 12px 16px;
}

.category-admin-row.head {
  background: #f8fafc;
  color: #5f6978;
  font-size: 13px;
  font-weight: 800;
}

.admin-category-avatar {
  background: #eef2f7;
  border: 1px solid #d8dee8;
  border-radius: 50%;
  height: 42px;
  object-fit: cover;
  width: 42px;
}

.category-admin-row input {
  border: 1px solid #d8dee8;
  border-radius: 6px;
  font: inherit;
  min-width: 0;
  padding: 8px 9px;
}

.category-admin-row button,
.category-actions button {
  align-items: center;
  border: 1px solid #2563eb;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  height: 34px;
  min-height: 34px;
  width: 38px;
}

.category-actions {
  display: flex;
  gap: 7px;
}

.category-actions button.danger {
  background: #ef4444;
  border-color: #ef4444;
}

.category-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.switch-cell {
  align-items: center;
  color: #475569;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
}

.switch-cell input {
  accent-color: #2fbf9b;
  height: 16px;
  width: 16px;
}

.category-status {
  color: #2563eb;
  font-weight: 700;
}

.inventory-modal {
  align-items: flex-start;
  background: rgba(15, 23, 42, 0.28);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 34px 18px;
  position: fixed;
  z-index: 90;
}

.inventory-modal.open {
  display: flex;
}

.inventory-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  display: grid;
  max-height: calc(100vh - 68px);
  max-width: 980px;
  overflow: hidden;
  width: min(100%, 980px);
}

.inventory-titlebar {
  align-items: center;
  background: #344852;
  color: #fff;
  display: flex;
  min-height: 44px;
  justify-content: space-between;
  padding: 0 14px;
}

.inventory-titlebar button {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.inventory-body {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding: 18px;
}

.inventory-topline,
.inventory-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inventory-topline input,
.inventory-toolbar input {
  border: 1px solid #d8dee8;
  border-radius: 4px;
  font: inherit;
  min-height: 34px;
  padding: 0 12px;
}

.inventory-toolbar .inventory-search {
  margin-left: auto;
  width: 230px;
}

.inventory-topline button,
.inventory-toolbar button,
.inventory-add-panel button {
  border: 0;
  border-radius: 4px;
  background: #3d4666;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  min-height: 34px;
  padding: 0 14px;
}

.inventory-toolbar button {
  padding: 0 10px;
}

.inventory-topline button,
.inventory-toolbar button.primary,
.inventory-add-panel button.primary {
  background: #2bbf9f;
}

.inventory-toolbar button.danger {
  background: #ff7f7f;
}

.inventory-add-panel {
  background: #f8fafc;
  border: 1px solid #e1e7f0;
  border-radius: 6px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

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

.inventory-add-panel p {
  color: #64748b;
  margin: 0;
}

.inventory-add-panel textarea {
  border: 1px solid #d8dee8;
  border-radius: 6px;
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  min-height: 140px;
  padding: 10px;
  resize: vertical;
}

.inventory-table {
  border-top: 1px solid #edf0f4;
  overflow-x: auto;
}

.inventory-row {
  align-items: center;
  border-bottom: 1px solid #edf0f4;
  display: grid;
  gap: 12px;
  grid-template-columns: 48px minmax(680px, 1fr);
  min-height: 46px;
  padding: 0 14px;
}

.inventory-row.head {
  background: #fff;
  color: #344054;
  font-weight: 900;
}

.inventory-content {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-empty {
  color: #64748b;
  padding: 28px;
  text-align: center;
}

.inventory-status {
  color: #157a50;
  font-size: 13px;
  font-weight: 800;
  min-height: 18px;
}

.plugin-config-modal {
  align-items: center;
  background: rgba(15, 23, 42, 0.36);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 92;
}

.plugin-config-modal.open {
  display: flex;
}

.plugin-config-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  max-width: 620px;
  overflow: hidden;
  width: min(100%, 620px);
}

.plugin-config-body {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.plugin-config-body label {
  color: #344054;
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

.plugin-config-body input,
.plugin-config-body textarea {
  border: 1px solid #d8dee8;
  border-radius: 6px;
  font: inherit;
  min-height: 36px;
  padding: 8px 10px;
}

.plugin-config-body textarea {
  min-height: 120px;
  resize: vertical;
}

.plugin-config-check {
  align-items: center;
  display: inline-flex !important;
  gap: 8px;
}

.plugin-config-status {
  color: #157a50;
  font-size: 13px;
  font-weight: 800;
}

.data-row.head,
.plugin-row.head {
  background: #f8fafc;
  color: #5f6978;
  font-size: 13px;
  font-weight: 800;
}

.goods-row {
  align-items: center;
  border-top: 1px solid #edf0f4;
  display: grid;
  font-size: 14px;
  gap: 10px;
  grid-template-columns: 34px 50px minmax(240px, 1fr) 76px 78px 76px 70px 210px;
  min-width: 900px;
  padding: 10px 14px;
}

.goods-row.head {
  background: #f8fafc;
  color: #394150;
  font-size: 13px;
  font-weight: 900;
}

.goods-cover {
  background: #eef2f7;
  border: 1px solid #d8dee8;
  border-radius: 4px;
  height: 32px;
  object-fit: cover;
  width: 32px;
}

.goods-name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  color: #344054;
}

.goods-actions {
  display: inline-flex;
  gap: 5px;
}

.goods-actions button {
  border: 0;
  border-radius: 4px;
  background: #2f80ed;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  min-height: 28px;
  padding: 0 8px;
}

.goods-actions button:nth-child(2) {
  background: #2bbf9f;
}

.goods-actions button.danger {
  background: #ff5b55;
}

.product-editor {
  background: #fff;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  overflow: hidden;
}

.edit-tabs {
  background: #f3f5f8;
  display: flex;
  overflow-x: auto;
}

.edit-tabs button {
  border: 0;
  background: transparent;
  color: #7b8794;
  cursor: pointer;
  font-weight: 800;
  min-height: 42px;
  padding: 0 18px;
}

.edit-tabs button.active {
  background: #fff;
  color: #344054;
}

.edit-pane {
  display: none;
  gap: 18px;
  padding: 22px 18px;
}

.edit-pane.active {
  display: grid;
}

.edit-pane label {
  color: #344054;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.edit-pane input,
.edit-pane select,
.edit-pane textarea {
  border: 1px solid #d8dee8;
  border-radius: 4px;
  font: inherit;
  min-height: 34px;
  padding: 8px 10px;
}

.edit-pane textarea {
  min-height: 92px;
  resize: vertical;
}

.rich-placeholder {
  min-height: 280px;
}

.radio-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
}

.radio-row label {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.cover-editor {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) 70px 70px;
}

.cover-editor button {
  border: 0;
  border-radius: 4px;
  background: #2f80ed;
  color: #fff;
  font-weight: 800;
}

.cover-preview {
  background: #f8fafc;
  border: 1px solid #d8dee8;
  border-radius: 4px;
  height: 90px;
  object-fit: contain;
  width: 210px;
}

.editor-actions {
  align-items: center;
  border-top: 1px solid #edf0f4;
  display: flex;
  gap: 8px;
  padding: 16px 18px;
}

.editor-actions button {
  border: 1px solid #d8dee8;
  border-radius: 4px;
  min-height: 34px;
  padding: 0 16px;
}

.editor-actions .primary {
  background: #3d4666;
  border-color: #3d4666;
  color: #fff;
}

.product-editor-status {
  color: #157a50;
  font-size: 13px;
  font-weight: 800;
}

.balance-input {
  border: 1px solid #d8dee8;
  border-radius: 5px;
  font: inherit;
  max-width: 110px;
  min-height: 30px;
  padding: 0 8px;
}

.order-like .data-row {
  grid-template-columns: 120px 110px minmax(180px, 1fr) 90px 90px 90px 130px;
}

.plugin-row {
  display: grid;
  grid-template-columns: 120px minmax(240px, 1fr) 70px 70px 70px 130px;
  min-width: 760px;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #edf0f4;
  padding: 13px 16px;
  font-size: 14px;
}

.plugin-row a {
  color: #2f80ed;
}

.switch {
  display: inline-flex;
}

.switch input {
  display: none;
}

.switch b {
  position: relative;
  width: 34px;
  height: 18px;
  border-radius: 12px;
  background: #c8d0dc;
}

.switch b::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  transition: transform 0.2s ease;
}

.switch input:checked + b {
  background: #32c7a7;
}

.switch input:checked + b::after {
  transform: translateX(16px);
}

.mini {
  min-height: 26px;
  border: 0;
  border-radius: 3px;
  margin-right: 4px;
  padding: 0 7px;
  cursor: pointer;
}

.rank-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.rank-list div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 80px;
  align-items: center;
  border: 1px solid #edf0f4;
  border-radius: 6px;
  padding: 12px;
}

.rank-list span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #2f80ed;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.rank-list em {
  color: #ff9500;
  font-style: normal;
  font-weight: 900;
}

.article-admin-table {
  gap: 0;
}

.article-admin-row {
  align-items: center;
  border-bottom: 1px solid #edf1f7;
  display: grid;
  gap: 12px;
  grid-template-columns: 1.1fr 1.8fr 90px 150px 150px;
  min-width: 900px;
  padding: 10px 12px;
}

.article-admin-row.head {
  background: #f8fafc;
  color: #475569;
  font-weight: 900;
}

.article-admin-row input,
.article-admin-row textarea {
  border: 1px solid #d7dfeb;
  border-radius: 6px;
  color: #1f2937;
  font: inherit;
  padding: 9px 10px;
  width: 100%;
}

.article-admin-row textarea {
  min-height: 72px;
  resize: vertical;
}

.switch-line {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  font-weight: 800;
}

.switch-line input {
  width: auto;
}

.compact-panel {
  color: #475569;
  line-height: 1.8;
  padding: 18px;
}

.compact-panel h3 {
  color: #172033;
  margin: 0 0 8px;
}

.compact-panel p {
  margin: 0;
}

.placeholder-panel::before {
  content: attr(data-title);
  display: block;
  margin-bottom: 14px;
  color: #1f2937;
  font-size: 20px;
  font-weight: 900;
}

.placeholder-panel::after {
  content: "此模块已按现有后台菜单预留，可继续补充表格、表单和操作流程。";
  display: block;
  border: 1px dashed #c8d1df;
  border-radius: 8px;
  background: white;
  padding: 28px;
  color: #687386;
}

@media (max-width: 1020px) {
  .app-shell,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .admin-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    padding: 12px;
  }

  .brand,
  .admin-sidebar .brand {
    padding: 0;
  }

  .nav-group {
    flex-direction: row;
    align-items: center;
  }

  .nav-label,
  .logout {
    display: none;
  }

  .topbar {
    position: static;
    flex-wrap: wrap;
    height: auto;
    padding: 16px;
  }

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

  .search-box {
    margin-left: 0;
  }

  .hero-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .store-header {
    position: static;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
  }

  .store-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    margin-left: 0;
  }

  .store-hero,
  .store-utility-grid {
    grid-template-columns: 1fr;
  }

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

  .console-sidebar {
    position: static;
    width: auto;
    height: auto;
    margin-top: 42px;
  }

  .console-workspace {
    margin-left: 0;
    padding: 14px;
  }

  .console-brand {
    height: 56px;
  }

  .console-menu-list {
    max-height: 320px;
    overflow-y: auto;
  }

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

@media (max-width: 720px) {
  .quick-link,
  .hero-visual {
    display: none;
  }

  .hero-card {
    min-height: 260px;
    padding: 30px 24px;
  }

  .hero-card h1 {
    font-size: 25px;
  }

  .product-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .price,
  .stock,
  .stock-btn {
    grid-column: 2;
    width: fit-content;
  }

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

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

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px;
  }

  .table-head {
    display: none;
  }

  .settings-grid,
  .domain-row,
  .dashboard-stats {
    grid-template-columns: 1fr;
  }

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

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

  .catalog-sidebar {
    grid-column: auto;
    position: static;
    max-height: none;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .catalog-sidebar.is-locked {
    left: auto;
    position: static;
    top: auto;
    width: auto;
  }

  .catalog-content {
    grid-column: auto;
  }

  .catalog-title {
    min-width: max-content;
    border-right: 1px solid #edf1f7;
    border-bottom: 0;
    margin: 0 4px 0 0;
    padding: 0 12px 0 0;
  }

  .store-category {
    width: auto;
    min-width: max-content;
    border-radius: 20px;
    min-height: 36px;
  }

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

  .store-main {
    width: min(100% - 24px, 1180px);
    padding-top: 24px;
  }

  .hero-content {
    padding: 22px 18px;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .inline-form,
  .store-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .console-topbar {
    overflow-x: auto;
  }

  .console-top-actions {
    min-width: max-content;
  }
}
