:root {
  color-scheme: dark;
  --page: #000;
  --section: #1c1c1c;
  --text: #f4f1e8;
  --muted: rgba(244, 241, 232, 0.68);
  --dim: rgba(244, 241, 232, 0.45);
  --yellow: #ffd000;
  --yellow-2: #ffb800;
  --line: rgba(255, 255, 255, 0.12);
  --shell: min(100vw, 1500px);
  --font: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  --heavy: "Impact", "Arial Black", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--page);
  font-family: var(--font);
  overflow-x: hidden;
}

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

.page-shell {
  width: var(--shell);
  margin: 0 auto;
  background: #0b0b0b;
  box-shadow: 0 0 120px rgba(255, 255, 255, 0.04);
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 50;
  width: var(--shell);
  height: 44px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  background: rgba(36, 36, 36, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.announcement-button {
  height: 28px;
  min-width: 64px;
  padding: 0 12px;
  color: #ffeaa0;
  background: #111;
  border: 1px solid rgba(255, 208, 0, 0.46);
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: inset 0 0 14px rgba(255, 208, 0, 0.08);
}

.announcement-button:hover {
  color: #050505;
  background: var(--yellow);
}

.announcement-ticker {
  height: 42px;
  margin-top: 44px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 208, 0, 0.22);
  background: #111;
}

.announcement-ticker strong {
  height: 100%;
  display: grid;
  place-items: center;
  color: #050505;
  background: var(--yellow);
  font-size: 13px;
  font-weight: 1000;
}

.announcement-ticker div {
  min-width: 0;
  overflow: hidden;
}

.announcement-ticker span {
  display: inline-block;
  min-width: 100%;
  padding-left: 100%;
  color: #ffeaa0;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
  animation: announcementMarquee 22s linear infinite;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 150px;
  font-weight: 950;
  white-space: nowrap;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
}

.brand strong {
  font-family: var(--heavy);
  font-size: 18px;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 900;
}

.site-nav a:hover,
.login-link:hover {
  color: #fff;
}

.login-link {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 900;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 118px;
  padding: 0 16px;
  color: #050505;
  background: var(--yellow);
  font-size: 13px;
  font-weight: 950;
  border: 0;
  cursor: pointer;
}

.hero-stage {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #050505;
}

.hero-stage::before,
.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hero-stage::before {
  background:
    linear-gradient(90deg, #000 0%, transparent 18%, transparent 77%, #000 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 42%, #000 100%);
}

.hero-stage::after {
  opacity: 0.18;
  background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(255, 255, 255, 0.06) 6px);
}

.hero-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 48% 28%, rgba(255, 255, 255, 0.18), transparent 15%),
    radial-gradient(circle at 72% 30%, rgba(255, 208, 0, 0.12), transparent 18%),
    linear-gradient(90deg, #030303 0%, #151512 45%, #050505 100%);
}

.corridor {
  position: absolute;
  inset: 0;
  opacity: 0.82;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 72px 100%,
    linear-gradient(120deg, transparent 0 38%, rgba(255, 255, 255, 0.11) 39% 40%, transparent 42%),
    linear-gradient(65deg, transparent 0 54%, rgba(255, 255, 255, 0.08) 55% 56%, transparent 58%),
    linear-gradient(180deg, #171713 0%, #070707 100%);
  transform: scale(1.05);
}

.squad {
  position: absolute;
  bottom: -16px;
  width: 240px;
  height: 460px;
  filter: grayscale(1) contrast(1.22) drop-shadow(0 34px 44px rgba(0, 0, 0, 0.72));
}

.squad::before,
.squad::after {
  content: "";
  position: absolute;
}

.squad::before {
  left: 50%;
  top: 0;
  width: 96px;
  height: 118px;
  transform: translateX(-50%);
  border-radius: 42% 42% 32% 32%;
  background:
    linear-gradient(90deg, transparent 12%, rgba(255, 255, 255, 0.2) 13% 19%, transparent 22%),
    linear-gradient(0deg, transparent 42%, rgba(0, 0, 0, 0.42) 43% 48%, transparent 50%),
    linear-gradient(180deg, #b5b4a8, #4a4d47 58%, #10110f);
  box-shadow: inset 0 -26px 0 rgba(0, 0, 0, 0.35);
}

.squad::after {
  left: 50%;
  top: 92px;
  width: 190px;
  height: 358px;
  transform: translateX(-50%);
  background:
    linear-gradient(105deg, transparent 0 22%, rgba(255, 255, 255, 0.2) 23% 25%, transparent 27%),
    linear-gradient(78deg, transparent 0 37%, rgba(0, 0, 0, 0.55) 38% 40%, transparent 41%),
    linear-gradient(180deg, #8a8d82, #2f332e 45%, #0b0c0b);
  clip-path: polygon(30% 0, 70% 0, 88% 30%, 100% 100%, 0 100%, 12% 30%);
}

.squad-center {
  left: 25%;
  width: 310px;
  height: 560px;
  z-index: 2;
}

.squad-left {
  left: 12%;
  bottom: 4px;
  transform: scale(0.82);
  opacity: 0.72;
}

.squad-right {
  left: 43%;
  bottom: 10px;
  transform: scale(0.72);
  opacity: 0.62;
}

.rain {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background: repeating-linear-gradient(105deg, transparent 0 18px, rgba(255, 255, 255, 0.24) 19px 20px, transparent 21px 42px);
  animation: rainMove 1.2s linear infinite;
}

.hero-brand {
  position: absolute;
  z-index: 6;
  top: 224px;
  right: 108px;
  width: 360px;
  text-align: left;
}

.hero-brand span {
  display: block;
  color: #fff;
  font-family: var(--heavy);
  font-size: 28px;
  line-height: 1;
}

.hero-brand h1 {
  margin: 4px 0 0;
  color: #fff;
  font-family: var(--heavy);
  font-size: 58px;
  line-height: 0.82;
  letter-spacing: 1px;
}

.hero-brand h1::after {
  content: "";
  display: inline-block;
  width: 34px;
  height: 62px;
  margin-left: 8px;
  vertical-align: -8px;
  background: var(--yellow);
  clip-path: polygon(46% 0, 100% 0, 68% 42%, 100% 42%, 42% 100%, 56% 56%, 0 56%);
}

.hero-brand p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 38px;
  border: 1px solid var(--yellow);
  font-size: 14px;
  font-weight: 950;
}

.btn-primary {
  color: #060606;
  background: var(--yellow);
}

.btn-outline {
  color: #fff;
  background: rgba(0, 0, 0, 0.38);
}

.news-section,
.features-section,
.membership-section,
.download-section {
  background: var(--section);
}

.news-section {
  padding: 44px 0 54px;
}

.news-layout {
  width: min(100%, 960px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.7fr);
  gap: 34px;
  align-items: start;
}

.feature-poster {
  position: relative;
  min-height: 278px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.46) 50%, rgba(255, 208, 0, 0.12)),
    radial-gradient(circle at 78% 45%, rgba(255, 208, 0, 0.16), transparent 32%),
    #070707;
}

.poster-copy {
  position: relative;
  z-index: 2;
  max-width: 360px;
  padding: 72px 34px 34px;
}

.poster-copy span,
.feature-row span,
.rank-panel span,
.download-grid span {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 1000;
}

.poster-copy h2,
.news-feed h2,
.features-section h2,
.membership-section h2,
.download-section h2 {
  margin: 0;
  font-family: var(--heavy);
  letter-spacing: 0;
}

.poster-copy h2 {
  margin-top: 10px;
  font-size: 48px;
  line-height: 0.94;
}

.poster-copy p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 800;
}

.poster-copy a {
  display: inline-flex;
  margin-top: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.poster-weapon {
  position: absolute;
  right: -20px;
  bottom: 30px;
  width: 390px;
  height: 58px;
  transform: rotate(-14deg);
  background:
    linear-gradient(90deg, transparent 0 7%, #2d302d 8% 16%, #9b8a50 17% 21%, #2f332f 22% 70%, #b78f35 71% 76%, #1b1d1b 77%),
    linear-gradient(#111, #111);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.5);
}

.news-feed h2 {
  margin-bottom: 16px;
  font-size: 46px;
}

.news-feed article {
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 16px;
}

.thumb {
  height: 118px;
  border-left: 6px solid var(--yellow);
  background: #0b0b0b;
}

.thumb-live {
  background:
    linear-gradient(90deg, rgba(255, 208, 0, 0.35), transparent 20%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 34px),
    linear-gradient(135deg, #303533, #070707);
}

.thumb-alert {
  background:
    radial-gradient(circle at 72% 36%, rgba(255, 208, 0, 0.42), transparent 20%),
    linear-gradient(135deg, #202326, #070707);
}

.news-feed h3 {
  margin: 12px 0 6px;
  font-size: 22px;
}

.news-feed p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.features-section,
.membership-section,
.download-section {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 44px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.features-section h2,
.membership-section h2,
.download-section h2 {
  font-size: 44px;
  line-height: 1;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.feature-row article {
  min-height: 190px;
  padding: 20px;
  background: #101010;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.feature-row h3 {
  margin: 14px 0 8px;
  font-size: 22px;
}

.feature-row p,
.membership-section p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 760;
}

.membership-section {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 44px;
  align-items: center;
}

.rank-panel {
  min-height: 210px;
  padding: 28px;
  display: grid;
  align-content: center;
  border: 1px solid rgba(255, 208, 0, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.14), transparent 52%),
    #080808;
}

.rank-panel strong {
  display: block;
  margin: 10px 0;
  color: #ffd766;
  font-family: var(--heavy);
  font-size: 48px;
  line-height: 1;
}

.rank-panel small {
  color: var(--muted);
  font-weight: 900;
}

.download-section {
  padding-bottom: 72px;
}

.assistant-section {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 44px 0;
  background: var(--section);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.workspace-page .page-shell {
  min-height: 100vh;
}

.assistant-section.is-workspace {
  width: min(100%, 1360px);
  padding-top: 28px;
}

.assistant-locked {
  min-height: 260px;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.12), transparent 48%),
    #101010;
}

.assistant-locked h2,
.toolbar h2 {
  margin: 0;
  font-family: var(--heavy);
  font-size: 42px;
  line-height: 1;
}

.assistant-locked p,
.toolbar p,
.empty-state {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 760;
}

.assistant-app {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 720px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d0d0d;
}

.assistant-sidebar {
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: #090909;
}

.account-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.account-card span,
.account-card small {
  color: var(--dim);
  font-size: 12px;
  font-weight: 900;
}

.account-card strong {
  font-size: 20px;
  overflow-wrap: anywhere;
}

.account-card small[data-membership-status] {
  display: grid;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  padding: 6px 8px;
  color: #ffefb0;
  border: 1px solid rgba(255, 208, 0, 0.42);
  background: rgba(255, 208, 0, 0.1);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.account-card small[data-membership-status] b,
.account-card small[data-membership-status] em {
  display: block;
  font-style: normal;
  line-height: 1.18;
}

.account-card small[data-membership-status].is-active {
  color: #070707;
  background: linear-gradient(135deg, #ffe38a, #ffc400);
  border-color: #ffd000;
  box-shadow: 0 0 0 1px rgba(255, 208, 0, 0.18), 0 10px 28px rgba(255, 208, 0, 0.12);
}

.assistant-tabs {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.assistant-tabs button,
.logout-button,
.toolbar-actions button,
.mini-button,
.item-actions button,
.auth-switch button,
.modal-close {
  color: var(--text);
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.assistant-tabs button {
  height: 42px;
  text-align: left;
  padding: 0 14px;
}

.assistant-tabs button.active,
.assistant-tabs button:hover,
.toolbar-actions button:hover,
.mini-button:hover,
.item-actions button:hover {
  color: #050505;
  background: var(--yellow);
  border-color: var(--yellow);
}

.logout-button {
  width: 100%;
  height: 42px;
  margin-top: 18px;
  color: #ffdfdf;
  border-color: rgba(255, 84, 84, 0.34);
}

.assistant-main {
  min-width: 0;
  padding: 22px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.toolbar-actions input,
.toolbar-actions select,
.auth-form input,
.qty-input,
.alert-input,
.trade-input {
  min-height: 38px;
  color: var(--text);
  background: #070707;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0 12px;
  font: inherit;
}

.toolbar-actions input {
  width: 190px;
}

.toolbar-actions button {
  min-height: 38px;
  padding: 0 12px;
}

.toolbar-actions button:disabled {
  color: rgba(255, 255, 255, 0.45);
  cursor: not-allowed;
  background: #141414;
  border-color: rgba(255, 255, 255, 0.08);
}

.filter-panel {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0b0b;
}

.filter-panel > div {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: start;
  gap: 10px;
}

.filter-panel > div > span {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 1000;
  padding-top: 7px;
}

.filter-options {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.filter-options button,
.filter-panel > button {
  min-height: 30px;
  padding: 0 10px;
  color: var(--text);
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.13);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.filter-options button.active,
.filter-options button:hover,
.filter-panel > button:hover {
  color: #050505;
  background: var(--yellow);
  border-color: var(--yellow);
}

.filter-options .quality-filter-chip {
  color: color-mix(in srgb, var(--quality-filter, var(--yellow)) 88%, #ffffff);
  border-color: color-mix(in srgb, var(--quality-filter, var(--yellow)) 48%, rgba(255, 255, 255, 0.12));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--quality-filter, var(--yellow)) 14%, transparent), transparent 58%),
    #111;
  box-shadow: inset 0 0 12px color-mix(in srgb, var(--quality-filter, var(--yellow)) 10%, transparent);
}

.filter-options .quality-filter-chip.active,
.filter-options .quality-filter-chip:hover {
  color: #050505;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--quality-filter, var(--yellow)) 92%, #ffffff), var(--quality-filter, var(--yellow)));
  border-color: color-mix(in srgb, var(--quality-filter, var(--yellow)) 74%, #ffffff);
  box-shadow:
    0 0 18px color-mix(in srgb, var(--quality-filter, var(--yellow)) 28%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.filter-options small {
  opacity: 0.62;
}

.filter-options em {
  color: var(--dim);
  font-style: normal;
  font-size: 12px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.stats-row article {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #101010;
}

.stats-row span {
  display: block;
  color: var(--dim);
  font-size: 12px;
  font-weight: 900;
}

.stats-row strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.workspace {
  min-height: 420px;
}

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

.item-card,
.list-row,
.report-row,
.membership-plan {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.06), transparent 42%),
    #111;
}

.item-card {
  min-height: 344px;
  padding: 14px;
  display: grid;
  gap: 10px;
  border-color: color-mix(in srgb, var(--quality, #ffd000) 28%, rgba(255, 255, 255, 0.12));
  position: relative;
  overflow: visible;
}

.item-card.is-glow {
  border-color: color-mix(in srgb, var(--quality, #ffd000) 58%, rgba(255, 255, 255, 0.16));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--quality, #ffd000) 24%, transparent),
    0 0 30px color-mix(in srgb, var(--quality, #ffd000) 18%, transparent),
    inset 0 0 26px color-mix(in srgb, var(--quality, #ffd000) 10%, transparent);
}

.item-art {
  height: 92px;
  display: grid;
  place-items: center;
  background: var(--quality-bg, radial-gradient(circle at 50% 40%, rgba(255, 208, 0, 0.18), transparent 54%), #060606);
  border: 1px solid color-mix(in srgb, var(--quality, #ffd000) 18%, transparent);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.item-art-button {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.item-art-button .item-art {
  width: 100%;
}

.item-art-button:hover .item-art {
  border-color: color-mix(in srgb, var(--quality, var(--yellow)) 70%, #ffffff);
  filter: brightness(1.08);
}

.item-art.is-glow {
  overflow: visible;
  border-color: color-mix(in srgb, var(--quality, #ffd000) 62%, transparent);
  box-shadow:
    inset 0 0 24px color-mix(in srgb, var(--quality, #ffd000) 24%, transparent),
    0 0 22px color-mix(in srgb, var(--quality, #ffd000) 20%, transparent);
}

.item-art.is-glow::before,
.item-art.is-glow::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.item-art.is-glow::before {
  inset: -22px -18px -18px;
  background:
    radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--quality, #ffd000) 66%, transparent) 0%, color-mix(in srgb, var(--quality, #ffd000) 30%, transparent) 34%, transparent 72%);
  filter: blur(14px);
  opacity: 0.92;
}

.item-art.is-glow::after {
  inset: 8px 18%;
  border: 1px solid color-mix(in srgb, var(--quality, #ffd000) 48%, transparent);
  box-shadow:
    0 0 18px color-mix(in srgb, var(--quality, #ffd000) 30%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--quality, #ffd000) 16%, transparent);
  transform: skewX(-12deg);
  opacity: 0.72;
}

.item-art img {
  max-width: 100%;
  max-height: 88px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.item-art.is-glow img {
  filter:
    drop-shadow(0 0 8px color-mix(in srgb, var(--quality, #ffd000) 68%, transparent))
    drop-shadow(0 0 18px color-mix(in srgb, var(--quality, #ffd000) 38%, transparent));
}

.item-name {
  min-height: 44px;
  font-weight: 950;
  line-height: 1.25;
}

.item-meta,
.detail-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.item-price-row {
  display: grid;
  grid-template-rows: auto auto;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.item-price-row .price-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.item-price-row .buy-line {
  grid-template-columns: minmax(0, 1fr) auto;
}

.latest-sold-card {
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(255, 207, 91, 0.62);
  padding: 7px 10px;
  color: #ffd76a;
  background: linear-gradient(135deg, rgba(255, 207, 91, 0.16), rgba(0, 0, 0, 0.46));
  font-size: 12px;
  font-weight: 950;
}

.latest-sold-card.is-empty {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(245, 245, 245, 0.58);
  background: rgba(0, 0, 0, 0.26);
}

.quality-tag {
  color: var(--quality, var(--yellow));
  border: 1px solid color-mix(in srgb, var(--quality, var(--yellow)) 52%, transparent);
  padding: 2px 7px;
  background: color-mix(in srgb, var(--quality, var(--yellow)) 9%, transparent);
  box-shadow: inset 0 0 10px color-mix(in srgb, var(--quality, var(--yellow)) 10%, transparent);
}

.quality-tag.is-glow {
  text-shadow: 0 0 10px color-mix(in srgb, var(--quality, var(--yellow)) 58%, transparent);
  box-shadow:
    0 0 12px color-mix(in srgb, var(--quality, var(--yellow)) 22%, transparent),
    inset 0 0 12px color-mix(in srgb, var(--quality, var(--yellow)) 16%, transparent);
}

.item-price-row strong {
  color: #fff;
  font-size: 20px;
}

.item-price-row b {
  color: var(--yellow);
}

.item-price-row .sell-quantity,
.item-price-row .buy-price,
.item-price-row .buy-quantity {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.item-price-row .sell-quantity {
  color: #ffe66d;
  border-color: rgba(255, 208, 0, 0.36);
  background: rgba(255, 208, 0, 0.08);
}

.item-price-row .buy-price {
  color: #7bdfff;
  border-color: rgba(73, 190, 255, 0.38);
  background: rgba(73, 190, 255, 0.08);
}

.item-price-row .buy-quantity {
  color: #9cffb1;
  border-color: rgba(92, 214, 122, 0.36);
  background: rgba(92, 214, 122, 0.08);
}

.item-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.item-actions button {
  min-height: 34px;
  font-size: 12px;
}

.trade-controls {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--quality, var(--yellow)) 18%, rgba(255, 255, 255, 0.1));
  background: rgba(0, 0, 0, 0.26);
}

.trade-controls label {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.trade-input {
  width: 100%;
  min-height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.trade-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(68px, 1fr));
  gap: 6px;
}

.trade-buttons button {
  min-height: 34px;
  color: var(--text);
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
  word-break: keep-all;
  cursor: pointer;
}

.trade-buttons .trade-save-alert {
  color: #d7ecff;
  border-color: rgba(74, 163, 255, 0.52);
  background: linear-gradient(135deg, rgba(74, 163, 255, 0.2), rgba(10, 24, 42, 0.88));
}

.trade-buttons .trade-one-click {
  color: #fff0d6;
  border-color: rgba(255, 145, 48, 0.58);
  background: linear-gradient(135deg, rgba(255, 145, 48, 0.24), rgba(43, 22, 7, 0.9));
}

.trade-buttons .trade-auto-buy {
  color: #dcffd7;
  border-color: rgba(92, 214, 122, 0.54);
  background: linear-gradient(135deg, rgba(92, 214, 122, 0.22), rgba(10, 38, 18, 0.9));
}

.trade-buttons button:hover,
.trade-buttons button.is-active {
  color: #050505;
  filter: brightness(1.14);
  box-shadow: 0 0 16px rgba(255, 208, 0, 0.18);
}

.trade-buttons .trade-save-alert:hover {
  background: #4ba3ff;
  border-color: #9ad0ff;
}

.trade-buttons .trade-one-click:hover {
  background: #ff9130;
  border-color: #ffc37d;
}

.trade-buttons .trade-auto-buy:hover,
.trade-buttons .trade-auto-buy.is-active {
  background: #5cd67a;
  border-color: #a8f2b8;
}

.trade-controls.is-detail {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
}

.trade-controls.is-detail .trade-buttons {
  grid-column: 1 / -1;
}

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

.list-row,
.report-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.list-row h3,
.report-row h3,
.membership-plan h3 {
  margin: 0;
  font-size: 18px;
}

.list-row p,
.report-row p,
.membership-plan p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.mini-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mini-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.alert-input,
.qty-input {
  width: 96px;
}

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

.membership-activate {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 208, 0, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 208, 0, 0.1), transparent 45%),
    #0d0d0d;
}

.membership-activate h3 {
  margin: 0;
  font-size: 20px;
}

.membership-activate p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.membership-activate form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 10px;
}

.membership-activate input {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #050505;
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}

.membership-activate button {
  min-height: 42px;
  white-space: nowrap;
}

.inline-activate-message {
  min-height: 20px;
  color: var(--yellow);
  font-weight: 800;
}

.membership-plan {
  padding: 20px;
}

.membership-plan.is-active {
  border-color: rgba(255, 208, 0, 0.62);
}

.membership-plan strong {
  display: block;
  margin: 10px 0;
  color: var(--yellow);
  font-size: 28px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

.modal-card {
  position: relative;
  width: min(100%, 440px);
  padding: 26px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.62);
}

.detail-card {
  width: min(100%, 900px);
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.modal-card h2 {
  margin: 0;
  font-family: var(--heavy);
  font-size: 38px;
}

.modal-card p {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
}

.auth-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.auth-switch button {
  height: 36px;
}

.auth-switch button.active {
  color: #050505;
  background: var(--yellow);
  border-color: var(--yellow);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.auth-message {
  min-height: 22px;
  margin-top: 12px;
  color: var(--yellow);
  font-weight: 900;
}

.detail-head {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) minmax(210px, 0.42fr);
  gap: 18px;
}

.detail-latest-sold-panel {
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 108px;
  border: 1px solid rgba(255, 207, 91, 0.68);
  padding: 15px 17px;
  background:
    linear-gradient(135deg, rgba(255, 207, 91, 0.2), rgba(0, 0, 0, 0.78)),
    radial-gradient(circle at 100% 0%, rgba(255, 214, 102, 0.24), transparent 44%);
}

.detail-latest-sold-panel span {
  color: rgba(245, 236, 204, 0.78);
  font-size: 12px;
  font-weight: 950;
}

.detail-latest-sold-panel strong {
  color: #ffe08a;
  font-size: 24px;
  font-weight: 1000;
}

.detail-latest-sold-panel em {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.detail-head img {
  max-width: 130px;
  max-height: 130px;
}

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

.detail-order-grid section {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
}

.detail-order-grid h3 {
  margin: 0 0 10px;
  color: var(--yellow);
  font-size: 14px;
}

.detail-wide-section {
  grid-column: 1 / -1;
}

.order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
}

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

.sale-row {
  grid-template-columns: minmax(0, 1fr) minmax(88px, auto) auto;
}

.sale-row em {
  color: var(--yellow);
  font-style: normal;
  font-weight: 900;
}

.detail-empty {
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #101010;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.download-grid a {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  background: #101010;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.download-grid a.is-disabled {
  opacity: 0.48;
}

.download-grid strong {
  font-size: 24px;
}

@keyframes rainMove {
  from { transform: translate3d(0, -34px, 0); }
  to { transform: translate3d(0, 34px, 0); }
}

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

@media (max-width: 900px) {
  :root {
    --shell: 100vw;
  }

  .site-header {
    grid-template-columns: auto auto 1fr auto;
    gap: 14px;
    padding: 0 14px;
  }

  .site-nav {
    display: none;
  }

  .login-link {
    display: none;
  }

  .hero-stage {
    height: 620px;
  }

  .squad-center {
    left: 8%;
  }

  .squad-left,
  .squad-right {
    opacity: 0.36;
  }

  .hero-brand {
    left: 24px;
    right: auto;
    top: 318px;
    width: min(340px, calc(100% - 48px));
  }

  .hero-brand h1 {
    font-size: 48px;
  }

  .news-layout,
  .features-section,
  .membership-section,
  .download-section {
    width: calc(100% - 28px);
  }

  .news-layout,
  .membership-section {
    grid-template-columns: 1fr;
  }

  .feature-row,
  .download-grid,
  .stats-row,
  .item-grid,
  .membership-grid {
    grid-template-columns: 1fr;
  }

  .membership-activate form {
    grid-template-columns: 1fr;
  }

  .assistant-section {
    width: calc(100% - 28px);
  }

  .assistant-app,
  .toolbar,
  .detail-head {
    grid-template-columns: 1fr;
  }

  .trade-controls.is-detail,
  .detail-order-grid {
    grid-template-columns: 1fr;
  }

  .toolbar-actions {
    justify-content: stretch;
  }

  .toolbar-actions input,
  .toolbar-actions select,
  .toolbar-actions button {
    width: 100%;
  }

  .filter-panel > div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .trade-buttons {
    grid-template-columns: 1fr;
  }

  .trade-controls label {
    grid-template-columns: 1fr;
  }
}
