:root {
  color-scheme: dark;
  --bg: #071317;
  --bg-alt: #0c1820;
  --panel: #101f27;
  --panel-2: #15272f;
  --line: #24414d;
  --text: #eef5f7;
  --muted: #8ea4ad;
  --accent: #42d5c0;
  --accent-2: #f0b85c;
  --accent-3: #7ea7ff;
  --success: #41c48a;
  --danger: #ff6f61;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  --radius-sm: 6px;
  --max: 1280px;
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", ui-sans-serif,
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(66, 213, 192, 0.07), transparent 18%),
    linear-gradient(135deg, rgba(240, 184, 92, 0.05), transparent 30%),
    var(--bg);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
}

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

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

button {
  cursor: pointer;
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

#app {
  min-height: 100vh;
}

.shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7, 19, 23, 0.82);
  border-bottom: 1px solid rgba(68, 99, 111, 0.35);
}

.topbar-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(66, 213, 192, 1), rgba(126, 167, 255, 1));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
}

.brand-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

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

.nav a,
.nav button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 7px;
  transition: 0.18s ease;
  white-space: nowrap;
}

.nav a:hover,
.nav button:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

.nav .primary {
  background: rgba(66, 213, 192, 0.12);
  color: var(--accent);
  border-color: rgba(66, 213, 192, 0.22);
}

.main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: stretch;
  margin-top: 18px;
}

.hero-copy,
.hero-art,
.band,
.panel,
.auth-card,
.detail-card,
.checkout-card,
.sidebar-card,
.form-card,
.support-card {
  background: rgba(16, 31, 39, 0.9);
  border: 1px solid rgba(42, 70, 81, 0.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 30px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 4.8rem);
  line-height: 0.96;
  margin: 0;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-2);
}

.hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 58ch;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn.primary {
  background: linear-gradient(135deg, rgba(66, 213, 192, 0.94), rgba(66, 213, 192, 0.62));
  color: #052027;
  border-color: transparent;
  font-weight: 700;
}

.btn:active,
.small-btn:active,
.pay-chip:active,
.chip:active,
.tabs button:active {
  transform: scale(0.96);
}

.disabled {
  opacity: 0.5;
}

.btn.ghost {
  color: var(--muted);
}

.hero-art {
  padding: 14px;
  overflow: hidden;
}

.hero-frame {
  height: 100%;
  min-height: 320px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #081218;
  position: relative;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: auto 16px 16px 16px;
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(4, 11, 14, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  backdrop-filter: blur(10px);
}

.hero-overlay strong {
  font-size: 1rem;
}

.hero-overlay span {
  color: var(--muted);
  font-size: 0.86rem;
}

.band {
  margin-top: 18px;
  padding: 18px;
}

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

.stat {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 7px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.stat strong {
  display: block;
  font-size: 1.3rem;
}

.ticker {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
}

.ticker span {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.section {
  margin-top: 18px;
}

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

.section-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

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

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.chip.active {
  color: var(--text);
  border-color: rgba(66, 213, 192, 0.35);
  background: rgba(66, 213, 192, 0.08);
}

.grid {
  display: grid;
  gap: 14px;
}

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

.card {
  overflow: hidden;
  border-radius: var(--radius);
}

.product {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  background: rgba(17, 31, 39, 0.95);
  border: 1px solid rgba(38, 63, 73, 0.8);
}

.product-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #081219;
}

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

.label-row {
  position: absolute;
  inset: 12px 12px auto 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 10, 12, 0.55);
}

.badge.ok {
  color: var(--success);
  border-color: rgba(65, 196, 138, 0.2);
}

.badge.warn {
  color: var(--accent-2);
  border-color: rgba(240, 184, 92, 0.2);
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.product h3,
.detail-title,
.checkout-title,
.form-title,
.auth-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.product p,
.detail-copy,
.muted,
.hint,
.note {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.product-foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  padding: 0 16px 16px;
}

.price {
  display: grid;
  gap: 4px;
}

.price strong {
  font-size: 1.22rem;
}

.price s {
  color: rgba(142, 164, 173, 0.72);
  font-size: 0.84rem;
}

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

.small-btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.small-btn.primary {
  background: rgba(66, 213, 192, 0.12);
  border-color: rgba(66, 213, 192, 0.25);
  color: var(--accent);
}

.layout-two {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.detail-card,
.checkout-card,
.form-card,
.auth-card,
.support-card,
.sidebar-card,
.panel {
  padding: 18px;
}

.detail-hero,
.checkout-hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
}

.media-box {
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #081218;
}

.media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.summary-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.summary-item span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.summary-item strong {
  display: block;
  font-size: 1rem;
}

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

.detail-box {
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  padding: 12px;
}

.detail-box h4 {
  margin: 0 0 8px;
  font-size: 0.96rem;
}

.detail-box ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.detail-box li + li {
  margin-top: 4px;
}

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

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

.field-grid {
  display: grid;
  gap: 12px;
}

label.field {
  display: grid;
  gap: 7px;
}

label.field > span {
  font-size: 0.84rem;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(4, 10, 12, 0.7);
  color: var(--text);
  border-radius: 7px;
  min-height: 42px;
  padding: 0 12px;
  outline: none;
}

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

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(66, 213, 192, 0.55);
  box-shadow: 0 0 0 3px rgba(66, 213, 192, 0.12);
}

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

.auth-layout,
.ticket-layout,
.checkout-layout,
.lookup-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}

.auth-card,
.form-card,
.support-card {
  background: rgba(16, 31, 39, 0.92);
}

.auth-hero {
  min-height: 100%;
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 26px;
  background: linear-gradient(180deg, rgba(126, 167, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(42, 70, 81, 0.72);
  border-radius: var(--radius);
}

.auth-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 0.98;
}

.auth-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.notice {
  padding: 10px 12px;
  border-radius: 7px;
  border: 1px solid rgba(240, 184, 92, 0.18);
  background: rgba(240, 184, 92, 0.07);
  color: #f6d79d;
  line-height: 1.6;
}

.captcha {
  display: grid;
  gap: 10px;
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 10px;
  align-items: center;
}

.captcha-image {
  width: 160px;
  height: 56px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #051015;
}

.captcha-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

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

.field-help {
  color: var(--muted);
  font-size: 0.84rem;
}

.order-summary {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.order-summary .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.order-summary .row strong {
  color: var(--text);
}

.pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
}

.pay-chip {
  text-align: left;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 12px;
  min-height: 72px;
}

.pay-chip strong {
  display: block;
  margin-bottom: 5px;
}

.pay-chip small {
  color: var(--muted);
}

.pay-chip.active {
  border-color: rgba(66, 213, 192, 0.3);
  background: rgba(66, 213, 192, 0.08);
}

.pay-chip:hover {
  background: rgba(255, 255, 255, 0.06);
}

.pay-chip.active:hover {
  background: rgba(66, 213, 192, 0.12);
}

.total-row {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.total-row strong {
  color: var(--accent);
  font-size: 1.1rem;
}

.ticket-layout {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(3, 7, 9, 0.7);
  z-index: 40;
  padding: 20px;
}

.modal-card {
  width: min(540px, 100%);
  background: rgba(15, 27, 33, 0.98);
  border: 1px solid rgba(42, 70, 81, 0.72);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.modal-card h2 {
  margin: 0 0 8px;
}

.ticket-list,
.ledger-list,
.order-list,
.job-list {
  display: grid;
  gap: 10px;
}

.list-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.list-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.list-item-head strong {
  font-size: 0.98rem;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
}

.status.ok {
  color: var(--success);
  border-color: rgba(65, 196, 138, 0.22);
}

.status.warn {
  color: var(--accent-2);
  border-color: rgba(240, 184, 92, 0.22);
}

.status.bad {
  color: var(--danger);
  border-color: rgba(255, 111, 97, 0.24);
}

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

.account-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  padding: 14px;
}

.account-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.account-card strong {
  display: block;
  font-size: 1.16rem;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tabs button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.tabs button.active {
  background: rgba(66, 213, 192, 0.08);
  color: var(--text);
  border-color: rgba(66, 213, 192, 0.3);
}

.footer {
  margin-top: 30px;
  border-top: 1px solid rgba(68, 99, 111, 0.35);
  background: rgba(7, 19, 23, 0.86);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

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

.muted-block {
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .hero,
  .layout-two,
  .checkout-layout,
  .detail-hero,
  .checkout-hero,
  .auth-layout,
  .ticket-layout,
  .lookup-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .shell,
  .main,
  .topbar-inner,
  .footer-inner {
    width: min(var(--max), calc(100% - 20px));
  }

  .topbar-inner {
    padding: 10px 0;
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    overflow-x: auto;
    padding-bottom: 2px;
    flex-wrap: nowrap;
  }

  .hero-copy,
  .hero-art,
  .band,
  .detail-card,
  .checkout-card,
  .form-card,
  .auth-card,
  .support-card,
  .sidebar-card {
    padding: 16px;
  }

  .product-grid,
  .pay-grid,
  .account-grid,
  .stats,
  .summary-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .captcha-row {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero-frame {
    min-height: 240px;
  }

  .hero-frame img {
    object-fit: contain;
    object-position: center;
  }

  .product-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .product-foot .actions {
    width: 100%;
  }

  .product-foot .actions > * {
    flex: 1;
  }
}

.admin-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 56px 0 26px;
}

.admin-heading h1 {
  margin: 6px 0 8px;
  font-family: Arial Black, Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.06em;
}

.admin-heading > div:first-child > p:not(.kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-metrics {
  display: flex;
  gap: 8px;
}

.admin-metrics > div {
  min-width: 82px;
  padding: 10px 12px;
  border: 1px solid #29262e;
  border-radius: 8px;
  background: #151519;
}

.admin-metrics span,
.admin-metrics strong {
  display: block;
}

.admin-metrics span {
  color: #8e8790;
  font-size: 0.62rem;
}

.admin-metrics strong {
  margin-top: 5px;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1.14fr);
  gap: 12px;
  align-items: start;
}

.admin-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid #29262e;
  border-radius: 9px;
  background: linear-gradient(180deg, #151519, #111114);
}

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

.admin-panel-head h2 {
  margin: 5px 0 0;
  font-family: Arial Black, Arial, sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.05em;
}

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

.palette-fields input[type="color"] {
  min-height: 42px;
  padding: 4px;
}

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

.admin-product-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid #29262e;
  border-radius: 8px;
  background: #19191d;
}

.admin-product-row > img {
  width: 52px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  outline: 1px solid rgba(255, 255, 255, 0.08);
  outline-offset: -1px;
}

.admin-product-info {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.admin-product-info strong {
  overflow: hidden;
  color: #f2ebf1;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-product-info span {
  overflow: hidden;
  color: #8c858e;
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-stock {
  display: flex;
  align-items: end;
  gap: 5px;
}

.quick-stock label {
  display: grid;
  gap: 4px;
}

.quick-stock label span {
  color: #8c858e;
  font-size: 0.58rem;
}

.quick-stock input {
  width: 66px;
  min-height: 30px;
  padding: 0 8px;
  font-size: 0.68rem;
}

.quick-stock .small-btn,
.admin-row-actions .small-btn {
  min-height: 30px;
  padding: 0 8px;
  font-size: 0.6rem;
}

.admin-row-actions {
  display: flex;
  gap: 5px;
}

.admin-card-bank {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid #29262e;
  border-radius: 9px;
  background: linear-gradient(180deg, #151519, #111114);
}

.admin-card-bank-intro {
  max-width: 72ch;
  margin: -4px 0 16px;
  color: #8c858e;
  font-size: 0.72rem;
  line-height: 1.65;
}

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

.card-bank-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid #302a39;
  border-radius: 8px;
  background: #19191e;
}

.card-bank-head,
.card-bank-actions,
.card-bank-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-bank-head {
  align-items: start;
}

.card-bank-head h3 {
  margin: 5px 0 0;
  color: #f2ebf1;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

.card-bank-count {
  flex: 0 0 auto;
  min-width: 56px;
  padding: 7px 9px;
  border: 1px solid rgba(239, 91, 185, 0.3);
  border-radius: 7px;
  background: rgba(239, 91, 185, 0.08);
  text-align: right;
}

.card-bank-count strong,
.card-bank-count span {
  display: block;
}

.card-bank-count strong {
  color: #f5b4dc;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.card-bank-count span,
.card-bank-meta,
.card-bank-actions .notice {
  color: #8c858e;
  font-size: 0.62rem;
}

.card-bank-meta {
  justify-content: start;
  flex-wrap: wrap;
  margin: 12px 0 9px;
}

.card-bank-panel textarea {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  border-color: #332d3b;
  background: #111115;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.55;
}

.card-bank-actions {
  align-items: start;
  margin-top: 10px;
}

.card-bank-actions .btn {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.68rem;
}

.card-bank-actions .notice {
  margin: 0;
  line-height: 1.4;
  text-align: right;
}

.card-bank-records {
  margin-top: 14px;
  border-top: 1px solid #302a39;
  padding-top: 11px;
}

.card-bank-records summary {
  cursor: pointer;
  color: #c9b8c6;
  font-size: 0.68rem;
  list-style-position: inside;
}

.card-bank-record-list {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}

.card-bank-record {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #302a39;
  border-radius: 6px;
  background: #111115;
}

.card-bank-record-main,
.card-bank-record-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-bank-record-main code {
  min-width: 0;
  overflow: hidden;
  color: #f3d9ea;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-bank-record-main .status {
  flex: 0 0 auto;
  min-height: 22px;
  padding: 0 7px;
  font-size: 0.58rem;
}

.card-bank-record-foot {
  margin-top: 6px;
  color: #817982;
  font-size: 0.58rem;
}

.card-bank-record-foot .small-btn {
  min-height: 26px;
  padding: 0 8px;
  font-size: 0.58rem;
}

.card-bank-empty {
  margin-top: 12px;
  color: #817982;
  font-size: 0.65rem;
}

.quick-stock input[readonly] {
  color: #f5b4dc;
  border-color: rgba(239, 91, 185, 0.3);
}

.quick-stock button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

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

  .card-bank-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .admin-heading {
    display: grid;
    align-items: start;
    padding-top: 36px;
  }

  .admin-metrics {
    width: 100%;
  }

  .admin-metrics > div {
    flex: 1;
    min-width: 0;
  }

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

  .admin-product-row > img {
    width: 45px;
    height: 38px;
  }

  .quick-stock,
  .admin-row-actions {
    grid-column: 1 / -1;
  }

  .quick-stock {
    justify-content: space-between;
  }

  .quick-stock label {
    flex: 1;
  }

  .quick-stock input {
    width: 100%;
  }

  .admin-row-actions > * {
    flex: 1;
    text-align: center;
  }

  .card-bank-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .card-bank-actions .btn,
  .card-bank-actions .notice {
    width: 100%;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Reference direction: black editorial storefront with pink-violet signals. */
:root {
  --bg: #0d0d0f;
  --bg-alt: #121216;
  --panel: #151519;
  --panel-2: #1b1b20;
  --line: #29262f;
  --text: #f7f4f6;
  --muted: #a49ca6;
  --accent: #ee62bd;
  --accent-2: #b974ff;
  --accent-3: #65d8ca;
  --success: #55d99f;
  --danger: #ff6978;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
  --radius: 10px;
  --radius-sm: 7px;
  --max: 1180px;
  font-family: Arial, "PingFang SC", "Hiragino Sans GB", ui-sans-serif, system-ui, sans-serif;
}

body {
  background:
    radial-gradient(circle at 50% 5%, rgba(157, 53, 128, 0.14), transparent 28rem),
    radial-gradient(circle at 90% 55%, rgba(83, 28, 84, 0.08), transparent 32rem),
    var(--bg);
}

body::before {
  display: none;
}

.topbar {
  background: rgba(13, 13, 15, 0.95);
  border-bottom: 1px solid #232126;
  backdrop-filter: none;
}

.topbar-inner {
  min-height: 62px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
}

.nav-main {
  justify-self: start;
}

.nav a,
.nav button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.76rem;
  color: #b4aeb6;
  transition-property: color, background-color, border-color, transform;
  transition-duration: 180ms;
}

.nav a:hover,
.nav button:hover,
.nav a.active {
  color: var(--text);
  background: #1c1a1f;
  border-color: #302934;
}

.brand {
  justify-self: center;
  gap: 8px;
}

.brand-mark {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff73c6, #b75cff 70%, #5e4bd1);
  box-shadow: 0 0 18px rgba(236, 91, 190, 0.3);
  clip-path: polygon(50% 0%, 61% 34%, 96% 28%, 68% 50%, 96% 72%, 61% 66%, 50% 100%, 39% 66%, 4% 72%, 32% 50%, 4% 28%, 39% 34%);
}

.brand-copy strong {
  font-size: 0.82rem;
  letter-spacing: -0.02em;
}

.brand-copy span {
  font-size: 0.62rem;
  color: #9a929d;
}

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

.header-tool,
.header-pill,
.header-register {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 999px;
  color: #aba4ad;
  font-size: 0.72rem;
  white-space: nowrap;
}

.header-tool:hover,
.header-register:hover {
  color: var(--text);
}

.header-pill {
  color: #1b151c;
  background: #f6f3f5;
  font-weight: 700;
}

.main {
  padding: 0 0 70px;
}

.hero-reference {
  min-height: 440px;
  margin: 0;
  padding: 92px 20px 82px;
  display: block;
  background:
    radial-gradient(circle at 50% 45%, rgba(219, 62, 175, 0.13), transparent 19rem),
    radial-gradient(circle at 50% 82%, rgba(119, 65, 217, 0.08), transparent 28rem);
}

.hero-reference .hero-copy {
  max-width: 780px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 22px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-status {
  margin: 0;
  min-height: 25px;
  padding: 5px 11px;
  border: 1px solid rgba(94, 203, 175, 0.2);
  border-radius: 999px;
  color: #c2b9c1;
  background: rgba(40, 37, 43, 0.8);
  font-size: 0.68rem;
}

.hero-reference h1 {
  margin: 0;
  font-family: Arial Black, Arial, sans-serif;
  font-size: clamp(3.5rem, 8vw, 6.2rem);
  line-height: 0.91;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero-reference h1 em {
  color: #ff93d7;
  font-style: italic;
  text-shadow: 0 0 34px rgba(236, 77, 183, 0.25);
}

.hero-reference p:not(.hero-status) {
  max-width: 660px;
  color: #b6afb7;
  font-size: 0.93rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.hero-actions {
  justify-content: center;
  gap: 8px;
}

.btn,
.small-btn {
  min-height: 38px;
  border-radius: 999px;
  border-color: #302d34;
  background: #1a191d;
  color: var(--text);
  font-size: 0.76rem;
  transition-property: transform, color, background-color, border-color;
  transition-duration: 180ms;
}

.btn:hover,
.small-btn:hover {
  background: #252229;
  border-color: #514253;
}

.btn.primary,
.small-btn.primary,
.btn-light {
  background: #f8f6f7;
  color: #171419;
  border-color: transparent;
  font-weight: 700;
}

.btn.primary:hover,
.small-btn.primary:hover,
.btn-light:hover {
  background: #ffd9f0;
  color: #241522;
}

.btn-dark {
  background: #1a181d;
  color: #d8cfd8;
}

.band,
.metric-band {
  margin: 0;
  padding: 14px 0 12px;
  border: 1px solid #29242d;
  border-width: 1px 0;
  border-radius: 0;
  background: rgba(21, 20, 24, 0.7);
  box-shadow: none;
}

.stats {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.stat {
  min-height: 52px;
  padding: 8px 18px;
  border: 0;
  border-right: 1px solid #2b2730;
  border-radius: 0;
  background: transparent;
}

.stat:last-child {
  border-right: 0;
}

.stat span {
  margin-bottom: 3px;
  color: #8e8790;
  font-size: 0.66rem;
}

.stat strong {
  color: #f0eaf0;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.ticker {
  width: min(var(--max), calc(100% - 32px));
  margin: 6px auto 0;
  gap: 24px;
  overflow: hidden;
  flex-wrap: nowrap;
  color: #928b94;
  font-size: 0.65rem;
}

.ticker span {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.section {
  margin-top: 74px;
}

.section-head {
  justify-content: center;
  margin-bottom: 20px;
}

.section-title-center {
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.section-title-center .kicker {
  color: #e85aac;
  font-size: 0.6rem;
  letter-spacing: 0.17em;
}

.section-head h2,
.section-title-center h2 {
  margin: 0;
  font-family: Arial Black, Arial, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  letter-spacing: -0.06em;
}

.section-head p {
  display: none;
}

.filters {
  justify-content: center;
  gap: 8px;
  margin-bottom: 11px;
}

.chip {
  min-height: 28px;
  padding: 0 10px;
  border-color: #2d2730;
  background: #17151a;
  color: #a9a0aa;
  font-size: 0.63rem;
}

.chip.active {
  color: #fff0fa;
  border-color: rgba(236, 90, 185, 0.42);
  background: linear-gradient(100deg, rgba(163, 62, 144, 0.55), rgba(102, 50, 137, 0.42));
}

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

.product {
  min-width: 0;
  min-height: 420px;
  border: 1px solid #29262e;
  border-radius: 8px;
  background: #111114;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  transition-property: transform, border-color, background-color;
  transition-duration: 180ms;
}

.product:hover {
  transform: translateY(-3px);
  border-color: rgba(236, 94, 188, 0.42);
  background: #151419;
}

.product-visual {
  aspect-ratio: 1.45 / 1;
  background: #17151a;
}

.product-visual img {
  filter: saturate(1.15) contrast(1.05);
}

.label-row {
  inset: 8px 8px auto;
}

.badge {
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(8, 8, 11, 0.72);
  font-size: 0.61rem;
}

.badge.ok {
  color: #77e1ba;
  border-color: rgba(91, 213, 170, 0.26);
}

.badge.warn {
  color: #ff9edc;
  border-color: rgba(246, 104, 193, 0.3);
}

.product-body {
  gap: 7px;
  padding: 12px 11px 6px;
}

.tags {
  gap: 5px;
}

.tag {
  min-height: 20px;
  padding: 0 6px;
  border: 1px solid #29232e;
  border-radius: 999px;
  background: #19151c;
  color: #c1a9c0;
  font-size: 0.59rem;
}

.product h3 {
  min-height: 2.55em;
  color: #f4edf3;
  font-size: 0.78rem;
  line-height: 1.3;
  text-wrap: pretty;
}

.product p {
  min-height: 3.2em;
  color: #918992;
  font-size: 0.66rem;
  line-height: 1.5;
}

.product-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 5px 11px 11px;
}

.price {
  gap: 3px;
}

.price s {
  color: #6f6870;
  font-size: 0.62rem;
}

.price strong {
  color: #fff8fc;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.price .muted {
  color: #777079;
  font-size: 0.62rem;
}

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

.small-btn {
  min-height: 31px;
  padding: 0 10px;
  font-size: 0.65rem;
}

.small-btn.primary {
  color: #171419;
}

.process-section {
  margin-top: 92px;
}

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

.process-card,
.support-panel {
  border: 1px solid #29262e;
  border-radius: 9px;
  background: linear-gradient(180deg, #151519, #111114);
  box-shadow: none;
}

.process-card {
  position: relative;
  min-height: 112px;
  padding: 15px 14px 13px;
  overflow: hidden;
}

.process-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--step-color, var(--accent));
}

.process-card:nth-child(2) { --step-color: #e65d9f; }
.process-card:nth-child(3) { --step-color: #d1a52e; }
.process-card:nth-child(4) { --step-color: #42c8a9; }

.process-card > span {
  color: var(--step-color, #ee62bd);
  font-size: 0.66rem;
  font-weight: 700;
}

.process-card h3 {
  margin: 8px 0 5px;
  font-size: 0.79rem;
}

.process-card p {
  margin: 0;
  color: #8c858d;
  font-size: 0.65rem;
  line-height: 1.55;
}

.support-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 10px;
  margin-top: 42px;
}

.support-panel {
  padding: 18px;
}

.support-panel h2 {
  margin: 6px 0 9px;
  font-family: Arial Black, Arial, sans-serif;
  font-size: 1.45rem;
  letter-spacing: -0.05em;
}

.support-panel > p:not(.kicker) {
  max-width: 45ch;
  margin: 0;
  color: #98919a;
  font-size: 0.75rem;
  line-height: 1.65;
}

.support-actions {
  display: flex;
  gap: 7px;
  margin-top: 18px;
}

.faq-list {
  display: grid;
  gap: 7px;
  margin-top: 15px;
}

.faq-list > div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #2b2730;
  border-radius: 7px;
  background: #19191d;
}

.faq-list strong {
  font-size: 0.73rem;
}

.faq-list span {
  color: #89818b;
  font-size: 0.64rem;
}

.footer {
  margin-top: 0;
  border-top: 1px solid #29242d;
  background: #0d0d0f;
}

.footer-inner {
  min-height: 74px;
  padding: 18px 0;
}

.footer small {
  color: #716a73;
  font-size: 0.62rem;
}

/* Shared inner pages keep the same black, dense storefront vocabulary. */
.hero-copy,
.hero-art,
.band,
.panel,
.auth-card,
.detail-card,
.checkout-card,
.sidebar-card,
.form-card,
.support-card {
  border-color: #29262e;
  background: #151519;
  box-shadow: none;
}

.auth-hero {
  border-color: #29262e;
  border-radius: 9px;
  background:
    radial-gradient(circle at 20% 10%, rgba(220, 75, 176, 0.17), transparent 18rem),
    linear-gradient(180deg, #19151c, #121216);
}

.auth-hero h1,
.detail-title,
.checkout-title,
.form-title,
.auth-title {
  font-family: Arial Black, Arial, sans-serif;
  letter-spacing: -0.05em;
}

.notice {
  border-color: rgba(238, 98, 189, 0.25);
  background: rgba(132, 47, 113, 0.14);
  color: #f0b6db;
}

input,
textarea,
select {
  border-color: #312b35;
  background: #101014;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(238, 98, 189, 0.62);
  box-shadow: 0 0 0 3px rgba(238, 98, 189, 0.11);
}

.list-item,
.detail-box,
.summary-item,
.order-summary,
.account-card,
.stat {
  border-color: #29262e;
  background: #19191d;
}

.status.ok {
  color: #66dfae;
  border-color: rgba(102, 223, 174, 0.25);
}

.status.warn {
  color: #f0b2df;
  border-color: rgba(238, 98, 189, 0.25);
}

.tabs button.active {
  background: rgba(177, 79, 164, 0.18);
  border-color: rgba(238, 98, 189, 0.4);
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    width: min(var(--max), calc(100% - 20px));
    min-height: auto;
    padding: 9px 0 7px;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .nav-main {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-top: 5px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .header-tool span,
  .header-register {
    display: none;
  }

  .main {
    width: min(var(--max), calc(100% - 20px));
    padding-bottom: 45px;
  }

  .hero-reference {
    min-height: 390px;
    margin: 0 -10px;
    padding: 70px 14px 54px;
  }

  .hero-reference h1 {
    font-size: clamp(3rem, 15vw, 4.1rem);
  }

  .hero-reference p:not(.hero-status) {
    font-size: 0.82rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 0;
  }

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

  .stat {
    padding: 8px 12px;
    border-bottom: 1px solid #2b2730;
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-bottom: 0;
  }

  .ticker {
    width: 100%;
  }

  .section {
    margin-top: 54px;
  }

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

  .product {
    min-height: 0;
  }

  .product-visual {
    aspect-ratio: 1.65 / 1;
  }

  .process-card {
    min-height: 100px;
  }

  .support-grid {
    margin-top: 32px;
  }
}
