/* =========================================================
   焰图素材 · SFF5 ASSET STUDIO
   Light paper / gold / cinnabar
   ========================================================= */

:root {
  --bg: #f7f3ea;
  --bg-soft: #fbf8f1;
  --bg-elev: #ffffff;
  --panel: #ffffff;
  --panel-2: #f8f4eb;
  --panel-3: #f1ebdd;
  --line: rgba(168, 132, 62, 0.22);
  --line-soft: rgba(255, 253, 248, 0.595);
  --line-strong: rgba(168, 132, 62, 0.42);
  --gold: #b8862f;
  --gold-bright: #d9a94e;
  --gold-deep: #8a5f1c;
  --gold-dim: rgba(184, 134, 47, 0.7);
  --red: #c0392b;
  --red-bright: #d1513c;
  --red-deep: #8a3227;
  --jade: #2f8f74;
  --blue: #3a7bb5;
  --text: #1d1a15;
  --text-soft: #3d372c;
  --muted: #6f6759;
  --dim: #8c8474;
  --ink: #fdf8ec;
  --danger: #cf5243;
  --success: #2f9c7e;
  --warning: #b98c28;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow: 0 16px 40px rgba(74, 56, 26, 0.10);
  --shadow-gold: 0 10px 30px rgba(184, 134, 47, 0.16);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Segoe UI", sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --header-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 78% -10%, rgba(178, 58, 50, 0.11), transparent 62%),
    radial-gradient(900px 640px at 10% 6%, rgba(168, 126, 46, 0.095), transparent 58%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(168, 126, 46, 0.047) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 126, 46, 0.047) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

::selection {
  background: rgba(168, 126, 46, 0.405);
  color: #fff;
}

h1,
h2,
h3,
h4,
h5,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.02em;
}

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

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 10000;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

.container {
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
}

.container-narrow {
  width: min(980px, calc(100% - 64px));
  margin: 0 auto;
}

.section {
  padding: 86px 0;
  position: relative;
}

.section-tight {
  padding: 48px 0;
}

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

.gold {
  color: var(--gold);
}

.serif {
  font-family: var(--serif);
}

.mono {
  font-family: var(--mono);
}

.nowrap {
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.eyebrow.is-centered {
  justify-content: center;
}

.eyebrow.is-centered::after {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(270deg, var(--gold), transparent);
}

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

.section-head h2 {
  font-size: clamp(26px, 2.5vw, 38px);
  line-height: 1.2;
}

.section-head h2 em {
  color: var(--gold);
  font-style: normal;
}

.section-head p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 600px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  transition: gap 0.25s var(--ease), color 0.25s;
}

.text-link:hover {
  gap: 13px;
  color: var(--gold-bright);
}

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 0;
}

/* ---------- buttons ---------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--btn-bd);
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s,
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}

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

.btn:active {
  transform: translateY(0);
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.btn .icon {
  flex-shrink: 0;
}

.btn-gold {
  --btn-fg: #2a2318;
  border: 1px solid #cfa356;
  background: linear-gradient(135deg, #e0bc78, #b8862f 48%, #9a7333);
  box-shadow:
    0 8px 26px rgba(168, 126, 46, 0.243),
    inset 0 1px 0 rgba(32, 26, 18, 0.605);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #f7e7c4, #c99b4d 50%, #a97f3b);
  box-shadow:
    0 12px 34px rgba(168, 126, 46, 0.378),
    inset 0 1px 0 rgba(32, 26, 18, 0.715);
}

.btn-red {
  --btn-fg: #fdf1ec;
  border-color: rgba(224, 90, 72, 0.5);
  background: linear-gradient(135deg, #c94433, #a3362c);
  box-shadow: 0 8px 26px rgba(178, 58, 50, 0.2);
}

.btn-red:hover {
  background: linear-gradient(135deg, #cf5243, #a53b31);
}

.btn-ghost {
  --btn-bd: var(--line);
  --btn-bg: rgba(32, 26, 18, 0.028);
  color: var(--text-soft);
}

.btn-ghost:hover {
  --btn-bd: var(--line-strong);
  --btn-bg: rgba(168, 126, 46, 0.081);
  color: var(--gold-bright);
}

.btn-outline {
  --btn-bd: var(--line-strong);
  color: var(--gold);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(168, 126, 46, 0.108);
}

.btn-sm {
  min-height: 34px;
  padding: 0 14px;
  font-size: 12.5px;
  border-radius: 8px;
}

.btn-lg {
  min-height: 52px;
  padding: 0 30px;
  font-size: 15px;
  border-radius: 12px;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 38px;
  height: 38px;
  min-height: 0;
  padding: 0;
  border-radius: 9px;
}

.link-btn {
  padding: 0;
  color: var(--gold);
  font-size: inherit;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--gold-bright);
}

/* ---------- badges / tags ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.badge-gold {
  border-color: rgba(168, 126, 46, 0.432);
  background: rgba(168, 126, 46, 0.108);
  color: var(--gold);
}

.badge-red {
  border-color: rgba(224, 90, 72, 0.32);
  background: rgba(178, 58, 50, 0.12);
  color: #dd7a6a;
}

.badge-jade {
  border-color: rgba(84, 179, 154, 0.3);
  background: rgba(84, 179, 154, 0.1);
  color: #41a98f;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.is-ok {
  background: rgba(84, 179, 154, 0.11);
  color: #3aa383;
}

.status-badge.is-muted {
  background: rgba(32, 26, 18, 0.066);
  color: var(--muted);
}

.status-badge.is-danger {
  background: rgba(224, 90, 72, 0.12);
  color: #dd7a6a;
}

.status-badge.is-warn {
  background: rgba(217, 164, 65, 0.12);
  color: #c99b4d;
}

/* ---------- boot ---------- */

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(178, 58, 50, 0.13), transparent 30%),
    var(--bg);
}

.boot-mark {
  filter: drop-shadow(0 0 30px rgba(168, 126, 46, 0.472));
  animation: float 3s ease-in-out infinite;
}

.boot-word {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.35em;
  color: var(--gold-bright);
}

.boot-line {
  width: 150px;
  height: 1px;
  margin: 20px 0 12px;
  overflow: hidden;
  background: var(--line);
}

.boot-line span {
  display: block;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: bootSlide 1.2s ease-in-out infinite;
}

.boot-screen p {
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.2em;
}

@keyframes bootSlide {
  from { transform: translateX(-120%); }
  to { transform: translateX(280%); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes shimmer {
  from { background-position: -400px 0; }
  to { background-position: 400px 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.spinner {
  display: inline-block;
  border: 2px solid rgba(168, 126, 46, 0.297);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* =========================================================
   header
   ========================================================= */

.announcement {
  height: 32px;
  border-bottom: 1px solid rgba(168, 126, 46, 0.108);
  background: #f6f2e9;
  color: var(--dim);
  font-size: 11px;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1320px, calc(100% - 64px));
  height: 100%;
  margin: 0 auto;
}

.announce-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
}

.announce-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-dim);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.announce-live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 8px var(--red-bright);
  animation: pulseGlow 2s ease-in-out infinite;
}

.announce-sep {
  width: 1px;
  height: 10px;
  background: var(--line);
}

.announce-left strong {
  color: var(--text-soft);
  font-weight: 600;
}

.announce-right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8a8170;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 800;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(255, 253, 248, 0.910);
  backdrop-filter: blur(18px);
  transition: border-color 0.3s, background 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 253, 248, 1.000);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  width: min(1320px, calc(100% - 64px));
  height: 100%;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid rgba(168, 126, 46, 0.567);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 35%, rgba(168, 126, 46, 0.270), transparent 65%),
    #f5f1e8;
  color: var(--gold);
  box-shadow: inset 0 0 18px rgba(168, 126, 46, 0.108);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(168, 126, 46, 0.162);
  border-radius: 7px;
  pointer-events: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
}

.brand-sub {
  color: var(--dim);
  font-size: 7.5px;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.28s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--gold-bright);
}

.nav-link.is-active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link .badge {
  margin-left: 6px;
  min-height: 16px;
  padding: 0 5px;
  font-size: 9px;
  color: var(--red-bright);
  border-color: rgba(224, 90, 72, 0.28);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.header-search {
  position: relative;
  width: 230px;
}

.header-search input {
  width: 100%;
  height: 38px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(32, 26, 18, 0.028);
  color: var(--text);
  font-size: 12.5px;
  transition: border-color 0.2s, background 0.2s, width 0.3s;
}

.header-search input::placeholder {
  color: var(--dim);
}

.header-search input:focus {
  outline: none;
  border-color: var(--line-strong);
  background: rgba(168, 126, 46, 0.054);
}

.header-search button {
  position: absolute;
  top: 50%;
  right: 4px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 30px;
  transform: translateY(-50%);
  border-radius: 6px;
  color: var(--muted);
}

.header-search button:hover {
  color: var(--gold);
  background: rgba(168, 126, 46, 0.108);
}

.coin-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(168, 126, 46, 0.378);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(168, 126, 46, 0.135), rgba(168, 126, 46, 0.054));
  color: var(--gold-bright);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}

.coin-chip:hover {
  border-color: var(--gold);
  background: rgba(168, 126, 46, 0.203);
}

.coin-chip small {
  color: var(--dim);
  font-size: 10px;
  font-weight: 500;
}

.user-zone {
  position: relative;
}

.user-button {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 8px 0 5px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--text-soft);
  font-size: 12px;
  transition: background 0.2s, border-color 0.2s;
}

.user-button:hover,
.user-button.is-open {
  border-color: var(--line);
  background: rgba(32, 26, 18, 0.033);
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(32, 26, 18, 0.132);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, hsl(var(--avatar-hue) 42% 42% / 0.75), hsl(var(--avatar-hue) 38% 20% / 0.9));
  color: #fdf3e2;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(74, 56, 26, 0.128);
}

.user-button .chevron {
  color: var(--dim);
  transition: transform 0.25s;
}

.user-button.is-open .chevron {
  transform: rotate(180deg);
}

.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  display: none;
  width: 238px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 253, 248, 1.000);
  box-shadow: 0 24px 60px rgba(74, 56, 26, 0.176);
  backdrop-filter: blur(20px);
  animation: menuIn 0.18s var(--ease);
}

.user-menu.is-open {
  display: block;
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.user-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 6px;
}

.user-menu-head strong {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
}

.user-menu-head span {
  display: block;
  margin-top: 2px;
  color: var(--dim);
  font-size: 10.5px;
}

.user-menu a,
.user-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.user-menu a:hover,
.user-menu button:hover {
  background: rgba(168, 126, 46, 0.108);
  color: var(--gold-bright);
}

.user-menu .menu-sep {
  height: 1px;
  margin: 6px 4px;
  background: var(--line-soft);
}

.user-menu .menu-danger {
  color: #c9766a;
}

.user-menu .menu-danger:hover {
  background: rgba(224, 90, 72, 0.09);
  color: #e08a7b;
}

.mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(74, 56, 26, 0.192);
  backdrop-filter: blur(3px);
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 88vw);
  padding: 22px;
  border-left: 1px solid var(--line);
  background: #f6f2e9;
  overflow-y: auto;
  animation: drawerIn 0.3s var(--ease);
}

@keyframes drawerIn {
  from { transform: translateX(100%); }
  to { transform: none; }
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.drawer-head .brand-name {
  font-size: 17px;
}

.drawer-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 16px;
}

.drawer-nav a {
  padding: 11px 8px;
  border-radius: 7px;
  color: var(--text-soft);
  font-size: 14px;
}

.drawer-nav a:hover,
.drawer-nav a.is-active {
  background: rgba(168, 126, 46, 0.108);
  color: var(--gold-bright);
}

.drawer-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.drawer-section-title {
  margin-bottom: 8px;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.drawer-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(32, 26, 18, 0.022);
}

/* =========================================================
   hero
   ========================================================= */

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 420px at 72% 38%, rgba(178, 58, 50, 0.16), transparent 65%),
    radial-gradient(480px 420px at 20% 30%, rgba(168, 126, 46, 0.108), transparent 65%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.600), var(--bg));
  pointer-events: none;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(168, 126, 46, 0.061) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 126, 46, 0.061) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: radial-gradient(ellipse at 55% 40%, black 10%, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 70px;
}

.hero-ring {
  position: absolute;
  top: 48%;
  right: 1%;
  width: 620px;
  height: 620px;
  transform: translateY(-50%);
  border: 1px solid rgba(168, 126, 46, 0.108);
  border-radius: 50%;
  pointer-events: none;
}

.hero-ring::before,
.hero-ring::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(168, 126, 46, 0.081);
  border-radius: 50%;
}

.hero-ring::before {
  inset: 52px;
}

.hero-ring::after {
  inset: 106px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: block;
  width: min(1320px, calc(100% - 64px));
  min-height: 620px;
  margin: 0 auto;
  padding: 60px 0 66px;
}

.hero-copy {
  animation: fadeUp 0.8s var(--ease) both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 6px 12px 6px 8px;
  border: 1px solid rgba(168, 126, 46, 0.270);
  border-radius: 999px;
  background: rgba(168, 126, 46, 0.061);
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.hero-kicker .kicker-dot {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(168, 126, 46, 0.189);
  color: var(--gold-bright);
}

.hero-title {
  font-size: clamp(46px, 5.9vw, 82px);
  line-height: 1.09;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.hero-title em {
  position: relative;
  font-style: normal;
  color: transparent;
  background: linear-gradient(100deg, #e3c286 8%, #b8862f 42%, #94692c 82%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-title em::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 0;
  bottom: -2px;
  height: 10px;
  background: radial-gradient(ellipse at center, rgba(168, 126, 46, 0.270), transparent 70%);
}

.hero-desc {
  max-width: 520px;
  margin-top: 24px;
  color: #7d7466;
  font-size: 15px;
  line-height: 1.9;
}

.hero-desc strong {
  color: var(--text-soft);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 32px;
}

.hero-actions .btn {
  min-width: 142px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 520px;
}

.hero-stat {
  flex: 1;
  min-width: 0;
  padding-right: 22px;
}

.hero-stat + .hero-stat {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.hero-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1.2;
}

.hero-stat span {
  display: block;
  margin-top: 4px;
  color: var(--dim);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  margin-top: 22px;
  color: #857c6c;
  font-size: 10.5px;
}

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

.trust-row .icon {
  color: var(--gold-deep);
}

/* hero visual */

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 470px;
  animation: fadeUp 0.9s 0.12s var(--ease) both;
}

.hero-stage {
  position: relative;
  width: min(100%, 500px);
  transform: rotate(-1.4deg);
  transition: transform 0.5s var(--ease);
}

.hero-stage:hover {
  transform: rotate(0deg) translateY(-4px);
}

.hero-frame {
  position: relative;
  display: block;
  padding: 10px;
  border: 1px solid rgba(168, 126, 46, 0.567);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(168, 126, 46, 0.216), transparent 40%),
    #f6f2e9;
  box-shadow:
    0 40px 100px rgba(74, 56, 26, 0.208),
    0 0 60px rgba(178, 58, 50, 0.12);
}

.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--gold);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
}

.hero-frame::before {
  top: -5px;
  left: -5px;
  border-width: 2px 0 0 2px;
}

.hero-frame::after {
  right: -5px;
  bottom: -5px;
  border-width: 0 2px 2px 0;
}

.hero-frame-inner {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(74, 56, 26, 0.256);
  background: #f7f3ea;
}

.hero-frame-inner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.03);
}

.hero-frame-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(255, 253, 248, 0.980) 100%);
  pointer-events: none;
}

.hero-stamp {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid rgba(243, 221, 166, 0.42);
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.825);
  backdrop-filter: blur(8px);
  color: var(--gold-bright);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-frame-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 46px 20px 15px;
  background: linear-gradient(180deg, transparent, rgba(255, 253, 248, 1.000) 52%);
}

.hero-frame-caption > div:first-child > strong,
.hero-frame-caption .caption-tags {
  display: none;
}

.hero-frame-caption .caption-cat {
  color: var(--gold);
  font-size: 9.5px;
  letter-spacing: 0.18em;
}

.hero-frame-caption h3 {
  margin-top: 7px;
  font-size: 23px;
  line-height: 1.35;
  color: #fdf6e9;
  text-shadow: 0 2px 16px rgba(74, 56, 26, 0.192);
}

.hero-frame-caption .caption-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
}

.hero-frame-caption .caption-tags {
  display: flex;
  gap: 6px;
}

.hero-frame-caption .caption-tags span {
  padding: 3px 7px;
  border: 1px solid rgba(32, 26, 18, 0.154);
  border-radius: 3px;
  background: rgba(74, 56, 26, 0.096);
  color: var(--text-soft);
  font-size: 9px;
}

.hero-price {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
}

.hero-price small {
  color: var(--dim);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
}

.hero-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid rgba(168, 126, 46, 0.338);
  border-radius: 9px;
  background: rgba(255, 253, 248, 1.000);
  box-shadow: 0 14px 40px rgba(74, 56, 26, 0.144);
  backdrop-filter: blur(12px);
}

.hero-float strong {
  display: block;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.3;
}

.hero-float span {
  display: block;
  color: var(--dim);
  font-size: 9px;
}

.hero-float .float-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(168, 126, 46, 0.135);
  color: var(--gold);
}

.hero-float.float-a {
  top: 54px;
  right: -12px;
  animation: float 5s ease-in-out infinite;
}

.hero-float.float-b {
  bottom: 148px;
  left: -34px;
  animation: float 5s 1.1s ease-in-out infinite;
}

.hero-float.float-b .float-icon {
  background: rgba(84, 179, 154, 0.1);
  color: var(--jade);
}

.hero-side-word {
  position: absolute;
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  color: rgba(168, 126, 46, 0.243);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.5em;
  pointer-events: none;
}

/* ---------- category strip ---------- */

.category-section {
  padding: 0 0 28px;
  margin-top: -34px;
  position: relative;
  z-index: 5;
}

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

.category-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 96px;
  padding: 18px 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(32, 26, 18, 0.028), transparent 55%),
    rgba(255, 253, 248, 0.990);
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}

.category-card::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -20px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cat-color, var(--gold)) 0%, transparent 68%);
  opacity: 0.08;
  transition: opacity 0.25s;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: rgba(255, 253, 248, 1.000);
}

.category-card:hover::after {
  opacity: 0.16;
}

.category-char {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 43px;
  height: 43px;
  border: 1px solid color-mix(in srgb, var(--cat-color) 35%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--cat-color) 8%, transparent);
  color: var(--cat-color);
  font-family: var(--serif);
  font-size: 19px;
}

.category-info {
  min-width: 0;
}

.category-info strong {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
}

.category-info span {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.55;
}

.category-arrow {
  margin-left: auto;
  color: var(--dim);
  transition: transform 0.25s, color 0.25s;
}

.category-card:hover .category-arrow {
  transform: translateX(3px);
  color: var(--gold);
}

/* =========================================================
   material grid
   ========================================================= */

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

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

.material-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdf8, #fcf8f0);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.material-card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 126, 46, 0.486);
  box-shadow: 0 20px 44px rgba(74, 56, 26, 0.144), 0 0 0 1px rgba(168, 126, 46, 0.081);
}

.material-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 8 / 5;
  background: #f7f3ea;
}

.material-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease), filter 0.4s;
}

.material-card:hover .material-cover img {
  transform: scale(1.055);
  filter: brightness(0.78) saturate(1.06);
}

.material-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.580) 48%, rgba(255, 253, 248, 0.950) 100%);
  pointer-events: none;
}

.material-cat {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 2;
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--cat-color, var(--gold)) 45%, transparent);
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.860);
  backdrop-filter: blur(6px);
  color: var(--cat-color, var(--gold));
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.vip-chip {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border: 1px solid rgba(243, 221, 166, 0.4);
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(178, 58, 50, 0.85), rgba(255, 253, 248, 0.975));
  color: #e6c894;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  backdrop-filter: blur(6px);
}

.rank-badge {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(168, 126, 46, 0.675);
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.910);
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.material-hover {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(243, 221, 166, 0.55);
  border-radius: 5px;
  background: rgba(255, 253, 248, 0.940);
  color: var(--gold-bright);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translate(-50%, -40%);
  transition: opacity 0.3s, transform 0.3s;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.material-card:hover .material-hover {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.material-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 15px 14px;
}

.material-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 42px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--text-soft);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s;
}

.material-card:hover .material-title {
  color: var(--gold-bright);
}

.material-meta {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 9px;
  color: var(--dim);
  font-size: 10px;
}

.material-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.material-meta .icon {
  color: #6f685c;
}

.material-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--gold-bright);
}

.price-tag strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.price-tag span:not(.coin-icon) {
  color: var(--dim);
  font-size: 9px;
}

.price-tag .coin-icon {
  align-self: center;
}

.material-more {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--dim);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.material-card:hover .material-more {
  border-color: var(--line-strong);
  background: rgba(168, 126, 46, 0.108);
  color: var(--gold);
}

.owned-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(84, 179, 154, 0.1);
  color: #3aa383;
  font-size: 9.5px;
  font-weight: 600;
}

/* compact horizontal cards */

.material-card.is-compact {
  flex-direction: row;
  align-items: stretch;
  min-height: 100px;
}

.material-card.is-compact .material-cover {
  width: 132px;
  flex-shrink: 0;
  aspect-ratio: auto;
}

.material-card.is-compact .material-body {
  justify-content: center;
  padding: 11px 13px;
}

.material-card.is-compact .material-title {
  min-height: 0;
  font-size: 12.5px;
  -webkit-line-clamp: 1;
}

.material-card.is-compact .material-meta {
  margin-top: 5px;
}

.material-card.is-compact .material-foot {
  margin-top: 8px;
  padding-top: 0;
}

.material-card.is-compact .price-tag strong {
  font-size: 15px;
}

/* skeleton */

.skeleton-card {
  padding-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcf8f0;
  overflow: hidden;
}

.skeleton {
  background: linear-gradient(90deg, #f4f0e7 25%, #eae4d6 50%, #f4f0e7 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s infinite linear;
}

.skeleton-cover {
  aspect-ratio: 8 / 5;
}

.skeleton-line {
  height: 11px;
  margin: 14px 15px 0;
  border-radius: 3px;
}

.skeleton-line.short {
  width: 55%;
}

/* =========================================================
   home sections
   ========================================================= */

.home-new {
  padding-top: 64px;
}

.feature-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(32, 26, 18, 0.020);
}

.feature-strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11.5px;
}

.feature-strip-item .icon {
  color: var(--gold-deep);
}

.feature-strip-item strong {
  color: var(--text-soft);
  font-weight: 600;
}

.vip-section {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.vip-band {
  position: relative;
  overflow: hidden;
  padding: 52px;
  border: 1px solid rgba(178, 58, 50, 0.26);
  border-radius: 16px;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(178, 58, 50, 0.18), transparent 60%),
    radial-gradient(400px 300px at 6% 100%, rgba(168, 126, 46, 0.121), transparent 65%),
    linear-gradient(120deg, #241d12, #f6f2e9 60%);
}

.vip-band::before {
  content: "VIP";
  position: absolute;
  right: 4%;
  bottom: -44px;
  color: rgba(168, 126, 46, 0.047);
  font-family: var(--serif);
  font-size: 220px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
}

.vip-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.vip-copy .eyebrow {
  color: #d98272;
}

.vip-copy .eyebrow::before {
  background: linear-gradient(90deg, #d98272, transparent);
}

.vip-copy h2 {
  font-size: 34px;
  line-height: 1.25;
}

.vip-copy p {
  margin-top: 13px;
  color: #7b7365;
  font-size: 12.5px;
  line-height: 1.9;
}

.vip-copy .btn {
  margin-top: 24px;
}

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

.vip-grid .material-card.is-compact {
  background: rgba(255, 253, 248, 0.850);
  border-color: rgba(168, 126, 46, 0.189);
}

.vip-grid .material-card.is-compact:hover {
  border-color: rgba(168, 126, 46, 0.513);
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 24px;
  align-items: start;
}

.ranking-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 1.000), rgba(255, 253, 248, 1.000));
}

.rank-list {
  display: flex;
  flex-direction: column;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.2s, padding 0.2s;
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-item:hover {
  background: rgba(168, 126, 46, 0.047);
  padding-left: 8px;
}

.rank-number {
  width: 26px;
  flex-shrink: 0;
  color: var(--dim);
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  text-align: center;
}

.rank-item:nth-child(1) .rank-number {
  color: #d9ad5f;
}

.rank-item:nth-child(2) .rank-number {
  color: #4a463d;
}

.rank-item:nth-child(3) .rank-number {
  color: #9d6238;
}

.rank-cover {
  width: 78px;
  height: 50px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(32, 26, 18, 0.077);
  border-radius: 5px;
}

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

.rank-info {
  min-width: 0;
  flex: 1;
}

.rank-info strong {
  display: block;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info span {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-size: 10px;
}

.rank-sales {
  flex-shrink: 0;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
}

.side-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background:
    radial-gradient(250px 160px at 90% 0%, rgba(168, 126, 46, 0.121), transparent 70%),
    rgba(255, 253, 248, 1.000);
}

.side-card + .side-card {
  margin-top: 18px;
}

.side-card h3 {
  font-size: 19px;
}

.side-card > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}

.step-list {
  margin-top: 19px;
  counter-reset: step;
}

.step-item {
  position: relative;
  display: flex;
  gap: 13px;
  padding-bottom: 19px;
  counter-increment: step;
}

.step-item:last-child {
  padding-bottom: 0;
}

.step-item::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 9px;
}

.step-item strong {
  display: block;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}

.step-item p {
  margin-top: 3px;
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.7;
}

.coin-panel {
  position: relative;
  overflow: hidden;
  padding: 25px;
  border: 1px solid rgba(168, 126, 46, 0.324);
  border-radius: 13px;
  background:
    radial-gradient(260px 180px at 100% 0%, rgba(168, 126, 46, 0.243), transparent 70%),
    linear-gradient(150deg, #2a2318, #f6f2e9);
}

.coin-panel::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(168, 126, 46, 0.270);
  border-radius: 50%;
}

.coin-panel h3 {
  font-size: 20px;
}

.coin-panel p {
  margin-top: 8px;
  color: #7a7264;
  font-size: 11.5px;
}

.coin-panel .coin-big {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 17px 0;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
}

.coin-panel .coin-big small {
  color: var(--dim);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
}

.feature-card {
  padding: 30px 26px;
  background: #fcf8f0;
  transition: background 0.2s;
}

.feature-card:hover {
  background: #fbf9f4;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(168, 126, 46, 0.068);
  color: var(--gold);
}

.feature-card h3 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}

.feature-card p {
  margin-top: 7px;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.75;
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 58px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  text-align: center;
  background:
    radial-gradient(500px 250px at 50% 0%, rgba(168, 126, 46, 0.149), transparent 70%),
    #f7f3ea;
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 26%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
}

.cta-band::before {
  left: 4%;
}

.cta-band::after {
  right: 4%;
  transform: rotate(180deg);
}

.cta-band h2 {
  font-size: clamp(27px, 3vw, 40px);
}

.cta-band h2 em {
  color: var(--gold);
  font-style: normal;
}

.cta-band p {
  max-width: 500px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 12.5px;
}

.cta-band .btn {
  margin-top: 25px;
}

/* =========================================================
   footer
   ========================================================= */

.site-footer {
  position: relative;
  margin-top: 90px;
  border-top: 1px solid var(--line);
  background: #f5f1e8;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 50px;
  padding: 58px 0 44px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 280px;
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.9;
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.footer-social span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 9.5px;
}

.footer-col h4 {
  margin-bottom: 15px;
  color: var(--text-soft);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  color: var(--dim);
  font-size: 11.5px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-contact span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--dim);
  font-size: 11px;
}

.footer-contact .icon {
  color: var(--gold-deep);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-top: 1px solid var(--line-soft);
  color: #6b6459;
  font-size: 10px;
}

.footer-demo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 7px;
  border: 1px solid rgba(217, 164, 65, 0.2);
  border-radius: 4px;
  color: #8a6f3f;
}

/* =========================================================
   page hero / breadcrumb / market
   ========================================================= */

.page-wrap {
  min-height: 55vh;
  padding-bottom: 20px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 46px 0 34px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(600px 240px at 82% 10%, rgba(178, 58, 50, 0.09), transparent 70%),
    linear-gradient(180deg, rgba(168, 126, 46, 0.034), transparent);
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -60px;
  right: 8%;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(168, 126, 46, 0.081);
  border-radius: 50%;
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
  color: var(--dim);
  font-size: 10.5px;
}

.breadcrumb a {
  color: var(--dim);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb .icon {
  color: #585349;
}

.page-hero h1 {
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.2;
}

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

.page-hero p {
  max-width: 640px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.9;
}

.page-hero-stats {
  display: flex;
  gap: 38px;
  margin-top: 25px;
}

.page-hero-stats div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.page-hero-stats strong {
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}

.page-hero-stats span {
  color: var(--dim);
  font-size: 10px;
}

.market-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 30px;
  padding-top: 30px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 253, 248, 0.900);
}

.filter-group + .filter-group {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.filter-title span {
  color: var(--dim);
  font-size: 9px;
  font-weight: 400;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  transition: background 0.18s, color 0.18s;
}

.filter-link span {
  color: var(--dim);
  font-size: 9.5px;
}

.filter-link:hover {
  background: rgba(32, 26, 18, 0.033);
  color: var(--text-soft);
}

.filter-link.is-active {
  background: rgba(168, 126, 46, 0.121);
  color: var(--gold-bright);
}

.filter-link.is-active span {
  color: var(--gold-dim);
}

.filter-reset {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  color: var(--dim);
  font-size: 10px;
}

.filter-reset:hover {
  color: var(--gold);
}

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

.market-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.result-info {
  color: var(--dim);
  font-size: 11px;
}

.result-info strong {
  color: var(--gold);
  font-weight: 600;
}

.sort-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(32, 26, 18, 0.022);
}

.sort-tab {
  padding: 5px 10px;
  border-radius: 5px;
  color: var(--dim);
  font-size: 10.5px;
  transition: background 0.18s, color 0.18s;
}

.sort-tab:hover {
  color: var(--text-soft);
}

.sort-tab.is-active {
  background: rgba(168, 126, 46, 0.149);
  color: var(--gold-bright);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(168, 126, 46, 0.081);
  color: var(--gold);
  font-size: 10px;
}

.filter-chip .icon {
  opacity: 0.7;
}

.mobile-filter-toggle {
  display: none;
}

/* =========================================================
   detail
   ========================================================= */

.detail-page {
  padding-top: 26px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 32px;
  align-items: start;
}

.detail-gallery {
  min-width: 0;
}

.detail-cover {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1024px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #f6f2e9;
  cursor: zoom-in;
}

.detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(32, 26, 18, 0.039);
  border-radius: 10px;
  pointer-events: none;
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-cover .zoom-hint {
  position: absolute;
  right: 13px;
  bottom: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(32, 26, 18, 0.176);
  border-radius: 5px;
  background: rgba(255, 253, 248, 0.850);
  color: var(--text-soft);
  font-size: 9.5px;
  backdrop-filter: blur(8px);
}

.detail-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 15px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(32, 26, 18, 0.020);
}

.detail-sub .sub-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.detail-sub .sub-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--dim);
  font-size: 10px;
}

.detail-sub .sub-item .icon {
  color: var(--gold-deep);
}

.detail-sub .sub-item strong {
  display: block;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 500;
}

.detail-sub .demo-tag {
  color: #6f6249;
  font-size: 9px;
}

.detail-panel {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background:
    radial-gradient(300px 160px at 100% 0%, rgba(168, 126, 46, 0.108), transparent 70%),
    linear-gradient(180deg, #f8f4ec, #fcf8f0);
  box-shadow: var(--shadow);
}

.detail-cat-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-title {
  margin-top: 11px;
  font-size: clamp(25px, 2.6vw, 34px);
  line-height: 1.35;
  color: #1d1a15;
}

.detail-summary {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.detail-price-box {
  margin-top: 21px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(168, 126, 46, 0.047);
}

.detail-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--gold-bright);
}

.detail-price .coin-icon {
  align-self: center;
}

.detail-price strong {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}

.detail-price span {
  color: var(--dim);
  font-size: 10px;
}

.detail-price-note {
  color: var(--dim);
  font-size: 9.5px;
  text-align: right;
  line-height: 1.6;
}

.balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 10.5px;
}

.balance-row a {
  color: var(--gold);
}

.balance-row strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-soft);
  font-weight: 600;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 17px;
}

.detail-actions .btn {
  width: 100%;
  min-height: 50px;
  font-size: 14px;
}

.owned-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid rgba(84, 179, 154, 0.2);
  border-radius: 6px;
  background: rgba(84, 179, 154, 0.06);
  color: #46a892;
  font-size: 10.5px;
}

.detail-guarantee {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 9.5px;
}

.detail-guarantee span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.detail-guarantee .icon {
  color: var(--gold-deep);
}

.detail-content {
  margin-top: 40px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.tab {
  position: relative;
  padding: 12px 20px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 500;
}

.tab::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: -1px;
  left: 16px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}

.tab:hover {
  color: var(--text-soft);
}

.tab.is-active {
  color: var(--gold-bright);
}

.tab.is-active::after {
  transform: scaleX(1);
}

.tab-panel {
  padding: 26px 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 2;
}

.tab-panel h3 {
  margin-bottom: 12px;
  color: var(--text-soft);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}

.tab-panel p + p {
  margin-top: 10px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.spec-item {
  padding: 15px 16px;
  background: #fcf8f0;
}

.spec-item span {
  display: block;
  color: var(--dim);
  font-size: 9.5px;
}

.spec-item strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.notice-list li {
  position: relative;
  padding-left: 16px;
}

.notice-list li::before {
  content: "·";
  position: absolute;
  left: 2px;
  color: var(--gold);
}

.related-section {
  margin-top: 48px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

/* =========================================================
   forms / auth
   ========================================================= */

.auth-page {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  overflow: hidden;
  background:
    radial-gradient(700px 500px at 18% 42%, rgba(178, 58, 50, 0.14), transparent 65%),
    radial-gradient(600px 500px at 88% 12%, rgba(168, 126, 46, 0.108), transparent 65%);
}

.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(168, 126, 46, 0.054) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 126, 46, 0.054) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 30% 45%, black, transparent 70%);
  pointer-events: none;
}

.auth-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 60px;
  align-items: center;
  width: min(1180px, calc(100% - 64px));
  min-height: calc(100vh - var(--header-h) - 80px);
  margin: 0 auto;
  padding: 56px 0;
}

.auth-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 20px;
}

.auth-watermark {
  position: absolute;
  top: 50%;
  left: -50px;
  transform: translateY(-50%);
  color: rgba(168, 126, 46, 0.047);
  font-family: var(--serif);
  font-size: 240px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
}

.auth-quote {
  position: relative;
}

.auth-quote h1 {
  font-size: clamp(38px, 4.5vw, 60px);
  line-height: 1.22;
}

.auth-quote h1 em {
  color: var(--gold);
  font-style: normal;
}

.auth-quote p {
  max-width: 470px;
  margin-top: 18px;
  color: #7c7468;
  font-size: 13.5px;
  line-height: 1.95;
}

.auth-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 500px;
  margin-top: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--line);
}

.auth-feature {
  padding: 17px 15px;
  background: rgba(255, 253, 248, 0.925);
}

.auth-feature .icon {
  margin-bottom: 8px;
  color: var(--gold);
}

.auth-feature strong {
  display: block;
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 600;
}

.auth-feature span {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-size: 9px;
}

.auth-art {
  position: absolute;
  right: -20px;
  bottom: 0;
  width: 300px;
  opacity: 0.55;
  transform: rotate(-5deg);
  filter: saturate(0.9);
  pointer-events: none;
  mask-image: linear-gradient(180deg, black 20%, transparent 92%);
}

.auth-art img {
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(74, 56, 26, 0.176);
}

.auth-panel {
  position: relative;
}

.auth-card {
  position: relative;
  padding: 34px 34px 30px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background:
    radial-gradient(300px 200px at 100% 0%, rgba(168, 126, 46, 0.095), transparent 70%),
    rgba(255, 253, 248, 1.000);
  box-shadow: 0 35px 90px rgba(74, 56, 26, 0.160);
  backdrop-filter: blur(20px);
}

.auth-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 30px;
  right: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.auth-card-head {
  margin-bottom: 25px;
}

.auth-card-head .eyebrow {
  margin-bottom: 10px;
}

.auth-card-head h2 {
  font-size: 29px;
}

.auth-card-head p {
  margin-top: 7px;
  color: var(--dim);
  font-size: 11.5px;
}

.auth-card-head p a {
  color: var(--gold);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 500;
}

.form-label .label-hint {
  color: var(--dim);
  font-size: 9.5px;
  font-weight: 400;
}

.form-label a {
  color: var(--gold);
  font-size: 10px;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 13px;
  z-index: 1;
  transform: translateY(-50%);
  color: #6b6459;
  pointer-events: none;
  transition: color 0.2s;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(32, 26, 18, 0.028);
  color: var(--text);
  font-size: 13px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.form-input,
.form-select {
  height: 45px;
  padding: 0 13px;
}

.input-wrap .form-input {
  padding-left: 41px;
}

.input-wrap.has-toggle .form-input {
  padding-right: 44px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #6b6459;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: rgba(168, 126, 46, 0.297);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--line-strong);
  background: rgba(168, 126, 46, 0.047);
  box-shadow: 0 0 0 3px rgba(168, 126, 46, 0.081);
}

.input-wrap:focus-within .input-icon {
  color: var(--gold);
}

.form-select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239b9587' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  cursor: pointer;
}

.form-select option {
  background: #f7f3ea;
  color: var(--text);
}

.form-textarea {
  min-height: 104px;
  padding: 11px 13px;
  resize: vertical;
  line-height: 1.75;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border-radius: 6px;
  color: var(--dim);
}

.password-toggle:hover {
  color: var(--gold);
  background: rgba(168, 126, 46, 0.081);
}

.form-hint {
  margin-top: 6px;
  color: var(--dim);
  font-size: 9.5px;
  line-height: 1.7;
}

.form-error {
  display: none;
  margin-top: 6px;
  color: #d97f70;
  font-size: 10px;
}

.form-error.is-visible {
  display: block;
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: rgba(224, 90, 72, 0.5);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
  cursor: pointer;
}

.check-row input {
  appearance: none;
  width: 14px;
  height: 14px;
  margin: 2px 0 0;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.check-row input:checked {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: inset 0 0 0 2px #fffdf8;
}

.check-row a {
  color: var(--gold);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-actions {
  margin-top: 20px;
}

.form-actions .btn {
  width: 100%;
  min-height: 48px;
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 10.5px;
}

.auth-links a {
  color: var(--gold);
}

.auth-links a:hover {
  color: var(--gold-bright);
}

.demo-box {
  margin-top: 16px;
  padding: 11px 13px;
  border: 1px dashed rgba(168, 126, 46, 0.324);
  border-radius: 7px;
  background: rgba(168, 126, 46, 0.047);
}

.demo-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
}

.demo-box p {
  margin-top: 4px;
  color: var(--dim);
  font-size: 9.5px;
  line-height: 1.7;
}

.demo-box code {
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 9.5px;
}

.strength-meter {
  display: flex;
  gap: 4px;
  margin-top: 7px;
}

.strength-meter span {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: rgba(32, 26, 18, 0.077);
  transition: background 0.25s;
}

.strength-meter span.is-on {
  background: var(--gold);
}

.strength-meter span.is-strong {
  background: var(--jade);
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: block;
  animation: fadeUp 0.35s var(--ease);
}

.recover-account {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(32, 26, 18, 0.022);
  margin-bottom: 18px;
}

.recover-account .avatar {
  width: 38px;
  height: 38px;
  font-size: 15px;
}

.recover-account strong {
  display: block;
  color: var(--text-soft);
  font-size: 12.5px;
}

.recover-account span {
  display: block;
  margin-top: 2px;
  color: var(--dim);
  font-size: 10px;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.step-indicator span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  font-size: 10px;
}

.step-indicator span::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--dim);
  font-size: 8px;
}

.step-indicator span.is-active {
  color: var(--gold);
}

.step-indicator span.is-active::before {
  content: "1";
  border-color: var(--gold);
  color: var(--gold);
}

.step-indicator span.is-done::before {
  content: "✓";
  border-color: var(--jade);
  color: var(--jade);
}

.step-indicator span + span::after {
  content: "";
}

/* =========================================================
   account
   ========================================================= */

.account-page {
  padding: 36px 0 60px;
}

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

.account-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.profile-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(260px 160px at 100% 0%, rgba(168, 126, 46, 0.135), transparent 70%),
    #fffdf8;
}

.profile-card::after {
  content: "";
  position: absolute;
  top: -45px;
  right: -35px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(168, 126, 46, 0.149);
  border-radius: 50%;
  pointer-events: none;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.profile-top .avatar {
  width: 48px;
  height: 48px;
  font-size: 19px;
  border-color: rgba(168, 126, 46, 0.472);
}

.profile-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.profile-badges .badge {
  min-height: 18px;
  padding: 0 5px;
  font-size: 8.5px;
}

.balance-mini {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.balance-mini span {
  display: block;
  color: var(--dim);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.balance-mini strong {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}

.balance-mini .btn {
  margin-top: 13px;
}

.account-nav {
  margin-top: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.900);
}

.account-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  transition: background 0.18s, color 0.18s;
}

.account-nav a .icon {
  color: var(--dim);
}

.account-nav a:hover {
  background: rgba(32, 26, 18, 0.033);
  color: var(--text-soft);
}

.account-nav a.is-active {
  background: rgba(168, 126, 46, 0.121);
  color: var(--gold-bright);
}

.account-nav a.is-active .icon {
  color: var(--gold);
}

.account-nav .nav-divider {
  height: 1px;
  margin: 6px 8px;
  background: var(--line-soft);
}

.account-content {
  min-width: 0;
}

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

.account-head h1 {
  font-size: 29px;
}

.account-head p {
  margin-top: 5px;
  color: var(--dim);
  font-size: 10.5px;
}

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

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(32, 26, 18, 0.020);
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -25px;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(168, 126, 46, 0.081);
  border-radius: 50%;
}

.stat-card span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--dim);
  font-size: 9.5px;
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.stat-card small {
  color: var(--dim);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 253, 248, 0.875);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 19px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-head h2,
.panel-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
}

.panel-head .icon {
  color: var(--gold);
}

.panel-head span {
  color: var(--dim);
  font-size: 9.5px;
}

.panel-body {
  padding: 19px;
}

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

.asset-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f6f2e9;
}

.asset-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 8 / 5;
}

.asset-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.asset-card:hover .asset-cover img {
  transform: scale(1.04);
}

.asset-body {
  padding: 11px 12px 12px;
}

.asset-body strong {
  display: block;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-title {
  display: block;
  color: inherit;
}

.asset-title:hover strong {
  color: var(--gold-bright);
}

.asset-body .asset-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  color: var(--dim);
  font-size: 9px;
}

.asset-body .btn {
  width: 100%;
  margin-top: 9px;
  min-height: 31px;
  font-size: 10.5px;
}

.tx-list {
  display: flex;
  flex-direction: column;
}

.tx-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 19px;
  border-bottom: 1px solid var(--line-soft);
}

.tx-item:last-child {
  border-bottom: 0;
}

.tx-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 33px;
  height: 33px;
  border-radius: 8px;
  background: rgba(32, 26, 18, 0.044);
  color: var(--muted);
}

.tx-icon.is-plus {
  background: rgba(84, 179, 154, 0.09);
  color: var(--jade);
}

.tx-icon.is-minus {
  background: rgba(224, 90, 72, 0.09);
  color: #d97f70;
}

.tx-info {
  min-width: 0;
  flex: 1;
}

.tx-info strong {
  display: block;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tx-info span {
  display: block;
  margin-top: 2px;
  color: var(--dim);
  font-size: 9px;
}

.tx-amount {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.tx-amount.is-plus {
  color: var(--jade);
}

.tx-amount.is-minus {
  color: #d97f70;
}

.tx-balance {
  flex-shrink: 0;
  width: 84px;
  text-align: right;
  color: var(--dim);
  font-size: 9px;
}

.tx-balance strong {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
}

.order-list {
  display: flex;
  flex-direction: column;
}

.order-item {
  padding: 15px 19px;
  border-bottom: 1px solid var(--line-soft);
}

.order-item:last-child {
  border-bottom: 0;
}

.order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-no {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
}

.order-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 8px;
}

.order-main strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.order-main span {
  color: var(--dim);
  font-size: 9.5px;
}

.order-amount {
  text-align: right;
}

.order-amount strong {
  display: block;
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
}

.order-amount span {
  display: block;
  margin-top: 2px;
  color: var(--dim);
  font-size: 9px;
}

.settings-card {
  padding: 24px;
}

.settings-card h2 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
}

.settings-card > p {
  margin-top: 6px;
  color: var(--dim);
  font-size: 10.5px;
}

.settings-form {
  max-width: 430px;
  margin-top: 22px;
}

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

.info-cell {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(32, 26, 18, 0.020);
}

.info-cell span {
  display: block;
  color: var(--dim);
  font-size: 9px;
}

.info-cell strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   recharge
   ========================================================= */

.recharge-page {
  padding: 38px 0 70px;
}

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

.recharge-head h1 {
  font-size: 32px;
}

.recharge-head p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11.5px;
}

.recharge-balance {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border: 1px solid rgba(168, 126, 46, 0.378);
  border-radius: 9px;
  background: rgba(168, 126, 46, 0.068);
}

.recharge-balance span {
  color: var(--dim);
  font-size: 9.5px;
}

.recharge-balance strong {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}

.recharge-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
}

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

.package-card {
  position: relative;
  overflow: hidden;
  padding: 21px 19px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(150deg, rgba(32, 26, 18, 0.028), transparent 55%),
    #fffdf8;
  transition: transform 0.22s var(--ease), border-color 0.22s, background 0.22s;
}

.package-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(168, 126, 46, 0.121);
  border-radius: 50%;
}

.package-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.package-card.is-selected {
  border-color: var(--gold);
  background:
    radial-gradient(240px 160px at 100% 0%, rgba(168, 126, 46, 0.216), transparent 70%),
    #2a2318;
  box-shadow: 0 0 0 1px rgba(168, 126, 46, 0.243), 0 12px 30px rgba(74, 56, 26, 0.096);
}

.package-tag {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 9px;
  border-bottom-left-radius: 7px;
  background: linear-gradient(135deg, #c94433, #a3362c);
  color: #fbe6d8;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.package-coins {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.package-coins .coin-icon {
  width: 24px;
  height: 24px;
}

.package-coins small {
  color: var(--dim);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
}

.package-bonus {
  min-height: 17px;
  margin-top: 7px;
  color: #d97f70;
  font-size: 9.5px;
}

.package-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line-soft);
  color: var(--text);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
}

.package-price span {
  color: var(--dim);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
}

.package-note {
  margin-top: 4px;
  color: var(--dim);
  font-size: 9px;
}

.recharge-summary {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 23px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fffdf8;
}

.recharge-summary h2 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}

.summary-rows {
  margin-top: 17px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  color: var(--dim);
  font-size: 10.5px;
}

.summary-row strong {
  color: var(--text-soft);
  font-weight: 500;
}

.summary-row.total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 11.5px;
}

.summary-row.total strong {
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 600;
}

.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 10.5px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.pay-method:has(input:checked) {
  border-color: var(--line-strong);
  background: rgba(168, 126, 46, 0.081);
  color: var(--gold-bright);
}

.pay-method input {
  appearance: none;
  width: 12px;
  height: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  margin: 0;
}

.pay-method input:checked {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 3px #fffdf8;
  background: var(--gold);
}

.pay-method .pay-dot {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 700;
}

.pay-dot.alipay {
  background: #1677ff;
  color: #fff;
}

.pay-dot.wechat {
  background: #07c160;
  color: #fff;
}

.recharge-summary .btn {
  width: 100%;
  margin-top: 16px;
}

.recharge-safe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--dim);
  font-size: 9px;
}

.recharge-tips {
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(32, 26, 18, 0.017);
}

.recharge-tips h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
}

.recharge-tips ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 26px;
  margin-top: 11px;
  color: var(--dim);
  font-size: 10px;
}

.recharge-tips li {
  position: relative;
  padding-left: 13px;
}

.recharge-tips li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* =========================================================
   admin
   ========================================================= */

.admin-page {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(800px 500px at 90% -10%, rgba(168, 126, 46, 0.061), transparent 60%),
    #f5f1e8;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 22px 14px 16px;
  border-right: 1px solid var(--line);
  background: #f7f3ea;
  z-index: 20;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 9px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.admin-brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(168, 126, 46, 0.095);
  color: var(--gold);
}

.admin-brand strong {
  display: block;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.admin-brand span {
  display: block;
  margin-top: 1px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.16em;
}

.admin-nav {
  flex: 1;
  padding-top: 16px;
  overflow-y: auto;
}

.admin-nav-label {
  padding: 12px 10px 6px;
  color: #6b6459;
  font-size: 8.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 11.5px;
  transition: background 0.18s, color 0.18s;
}

.admin-nav a .icon {
  color: var(--dim);
}

.admin-nav a .nav-count {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(32, 26, 18, 0.066);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8.5px;
}

.admin-nav a:hover {
  color: var(--text-soft);
  background: rgba(32, 26, 18, 0.033);
}

.admin-nav a.is-active {
  color: var(--gold-bright);
  background: linear-gradient(90deg, rgba(168, 126, 46, 0.189), rgba(168, 126, 46, 0.041));
  box-shadow: inset 2px 0 0 var(--gold);
}

.admin-nav a.is-active .icon {
  color: var(--gold);
}

.admin-sidebar-foot {
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.admin-sidebar-foot a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--dim);
  font-size: 10.5px;
}

.admin-sidebar-foot a:hover {
  color: var(--gold);
  background: rgba(32, 26, 18, 0.033);
}

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

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 61px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.980);
  backdrop-filter: blur(18px);
}

.admin-crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--dim);
  font-size: 10.5px;
}

.admin-crumb .icon {
  opacity: 0.6;
}

.admin-crumb strong {
  color: var(--text-soft);
  font-weight: 500;
}

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

.admin-search {
  position: relative;
}

.admin-search .icon {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: var(--dim);
}

.admin-search input {
  width: 210px;
  height: 33px;
  padding: 0 10px 0 31px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(32, 26, 18, 0.028);
  color: var(--text);
  font-size: 10.5px;
}

.admin-search input:focus {
  outline: none;
  border-color: var(--line-strong);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 11px;
  border-left: 1px solid var(--line);
}

.admin-user .avatar {
  width: 29px;
  height: 29px;
  font-size: 11px;
}

.admin-user strong {
  display: block;
  color: var(--text-soft);
  font-size: 10.5px;
  font-weight: 500;
}

.admin-user span {
  display: block;
  color: var(--dim);
  font-size: 8px;
}

.admin-content {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 27px 28px 55px;
}

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

.admin-head h1 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.admin-head p {
  margin-top: 5px;
  color: var(--dim);
  font-size: 10px;
}

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

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

.admin-stat {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffdf8;
}

.admin-stat::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -40px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(168, 126, 46, 0.074);
  border-radius: 50%;
}

.admin-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-stat-top span {
  color: var(--dim);
  font-size: 9.5px;
}

.admin-stat-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 7px;
  background: rgba(168, 126, 46, 0.108);
  color: var(--gold);
}

.admin-stat strong {
  display: block;
  margin-top: 9px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
}

.admin-stat-foot {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  color: var(--dim);
  font-size: 8.5px;
}

.admin-stat-foot .up {
  color: var(--jade);
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 13px;
  margin-top: 13px;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffdf8;
  overflow: hidden;
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 17px;
  border-bottom: 1px solid var(--line-soft);
}

.admin-card-head h2 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
}

.admin-card-head span {
  color: var(--dim);
  font-size: 9px;
}

.admin-card-body {
  padding: 17px;
}

.chart-box {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 196px;
  padding-top: 10px;
}

.chart-col {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 7px;
}

.chart-bar {
  position: relative;
  width: 100%;
  max-width: 34px;
  min-height: 4px;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, #c89a4c, #8f6420);
  transition: height 0.6s var(--ease), filter 0.2s;
}

.chart-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(32, 26, 18, 0.275), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.chart-col:hover .chart-bar {
  filter: brightness(1.15);
}

.chart-col:hover .chart-bar::after {
  opacity: 1;
}

.chart-col span {
  color: var(--dim);
  font-size: 8px;
  white-space: nowrap;
}

.chart-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f5f1e8;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

.chart-col:hover .chart-tooltip {
  opacity: 1;
}

.rank-list {
  display: flex;
  flex-direction: column;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-no {
  width: 18px;
  color: var(--dim);
  font-family: var(--serif);
  font-size: 12px;
  text-align: center;
}

.rank-item:nth-child(1) .rank-no {
  color: var(--gold);
}

.rank-item:nth-child(2) .rank-no {
  color: #4a463d;
}

.rank-item:nth-child(3) .rank-no {
  color: #93602f;
}

.rank-thumb {
  width: 39px;
  height: 27px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.rank-info {
  min-width: 0;
  flex: 1;
}

.rank-info strong {
  display: block;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 10.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info span {
  display: block;
  margin-top: 2px;
  color: var(--dim);
  font-size: 8px;
}

.rank-value {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.admin-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-filter {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  font-size: 9.5px;
  transition: all 0.18s;
}

.admin-filter:hover {
  border-color: var(--line-strong);
  color: var(--text-soft);
}

.admin-filter.is-active {
  border-color: rgba(168, 126, 46, 0.675);
  background: rgba(168, 126, 46, 0.135);
  color: var(--gold-bright);
}

.admin-select {
  height: 30px;
  padding: 0 28px 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf8;
  color: var(--muted);
  font-size: 9.5px;
}

.admin-toolbar-right {
  display: flex;
  align-items: center;
  gap: 7px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffdf8;
}

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

.admin-table th {
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(32, 26, 18, 0.022);
  color: var(--dim);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: left;
  white-space: nowrap;
  text-transform: uppercase;
}

.admin-table td {
  padding: 10px 13px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 10.5px;
  vertical-align: middle;
}

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

.admin-table tbody tr {
  transition: background 0.15s;
}

.admin-table tbody tr:hover {
  background: rgba(32, 26, 18, 0.020);
}

.cell-material {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 190px;
}

.cell-material img {
  width: 44px;
  height: 29px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.cell-material strong {
  display: block;
  overflow: hidden;
  max-width: 190px;
  color: var(--text-soft);
  font-size: 10.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-material span {
  display: block;
  margin-top: 1px;
  color: var(--dim);
  font-size: 8px;
}

.cell-mono {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
}

.cell-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--dim);
  transition: all 0.16s;
}

.icon-btn:hover {
  border-color: var(--line);
  background: rgba(32, 26, 18, 0.044);
  color: var(--gold);
}

.icon-btn.is-danger:hover {
  border-color: rgba(224, 90, 72, 0.3);
  background: rgba(224, 90, 72, 0.08);
  color: #d97f70;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 14px;
  color: var(--dim);
  font-size: 9.5px;
}

.mini-pager {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mini-pager button {
  min-width: 27px;
  height: 27px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 9.5px;
}

.mini-pager button:hover:not(:disabled) {
  border-color: var(--line-strong);
  color: var(--gold);
}

.mini-pager button.is-active {
  border-color: var(--gold);
  background: rgba(168, 126, 46, 0.162);
  color: var(--gold-bright);
}

.mini-pager button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* upload */
.upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 245px;
  padding: 30px;
  border: 1px dashed rgba(168, 126, 46, 0.432);
  border-radius: 10px;
  background: rgba(168, 126, 46, 0.030);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.dropzone:hover,
.dropzone.is-drag {
  border-color: var(--gold);
  background: rgba(168, 126, 46, 0.081);
}

.dropzone.is-drag {
  transform: scale(1.005);
}

.dropzone input {
  display: none;
}

.dropzone-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(168, 126, 46, 0.095);
  color: var(--gold);
}

.dropzone h3 {
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}

.dropzone p {
  margin-top: 6px;
  color: var(--dim);
  font-size: 10px;
}

.dropzone .btn {
  margin-top: 14px;
  pointer-events: none;
}

.upload-hint {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 14px;
  margin-top: 14px;
  color: var(--dim);
  font-size: 8.5px;
}

.upload-hint span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.upload-queue {
  margin-top: 13px;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffdf8;
  margin-bottom: 6px;
}

.queue-ext {
  display: grid;
  place-items: center;
  width: 35px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 4px;
  background: rgba(168, 126, 46, 0.108);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.queue-info {
  min-width: 0;
  flex: 1;
}

.queue-info strong {
  display: block;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 10.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-info span {
  color: var(--dim);
  font-size: 8.5px;
}

.queue-progress {
  height: 2px;
  margin-top: 4px;
  border-radius: 2px;
  background: rgba(32, 26, 18, 0.066);
  overflow: hidden;
}

.queue-progress i {
  display: block;
  height: 100%;
  background: var(--gold);
  transition: width 0.2s;
}

.queue-remove {
  color: var(--dim);
  flex-shrink: 0;
}

.queue-remove:hover {
  color: #d97f70;
}

.upload-settings .form-group:last-of-type {
  margin-bottom: 0;
}

.upload-settings .form-input,
.upload-settings .form-select {
  height: 38px;
  font-size: 11px;
}

.upload-settings textarea.form-textarea {
  min-height: 74px;
  font-size: 11px;
}

.upload-submit {
  margin-top: 15px;
}

.upload-submit .btn {
  width: 100%;
}

.upload-progress-big {
  display: none;
  margin-top: 12px;
}

.upload-progress-big.is-visible {
  display: block;
}

.upload-progress-big .bar {
  height: 4px;
  border-radius: 3px;
  background: rgba(32, 26, 18, 0.077);
  overflow: hidden;
}

.upload-progress-big .bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #8f6420, #c89a4c);
  transition: width 0.2s;
}

.upload-progress-big p {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--dim);
  font-size: 9px;
}

/* =========================================================
   modal / toast / lightbox
   ========================================================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(255, 253, 248, 0.940);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
}

.modal {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #fffdf8;
  box-shadow: 0 40px 100px rgba(74, 56, 26, 0.208);
  animation: modalIn 0.28s var(--ease);
}

.modal.modal-lg {
  width: min(680px, 100%);
}

.modal.modal-sm {
  width: min(390px, 100%);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 22px 15px;
  border-bottom: 1px solid var(--line-soft);
}

.modal-head h2 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
}

.modal-head p {
  margin-top: 4px;
  color: var(--dim);
  font-size: 10px;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  border-radius: 6px;
  color: var(--dim);
}

.modal-close:hover {
  background: rgba(32, 26, 18, 0.055);
  color: var(--text);
}

.modal-body {
  padding: 20px 22px;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid var(--line-soft);
  background: rgba(32, 26, 18, 0.013);
}

.modal-foot .btn {
  min-width: 92px;
}

.confirm-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 13px;
  border-radius: 50%;
  background: rgba(224, 90, 72, 0.09);
  color: #d97f70;
}

.confirm-icon.is-gold {
  background: rgba(168, 126, 46, 0.121);
  color: var(--gold);
}

.confirm-icon.is-success {
  background: rgba(79, 195, 161, 0.1);
  color: #2fa687;
}

.modal-body h3 {
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}

.modal-body > p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.8;
}

.modal-detail {
  display: flex;
  gap: 14px;
  margin-top: 15px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(32, 26, 18, 0.020);
}

.modal-detail.is-column {
  flex-direction: column;
}

.modal-detail > p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.8;
}

.modal-detail > p strong {
  display: inline;
  color: var(--gold-bright);
  font-size: 13px;
}

.modal-detail img {
  width: 100px;
  height: 63px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.modal-detail strong {
  display: block;
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 500;
}

.modal-detail span {
  display: block;
  margin-top: 4px;
  color: var(--dim);
  font-size: 9px;
}

.purchase-summary {
  margin-top: 15px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(32, 26, 18, 0.020);
}

.purchase-summary .purchase-material {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.purchase-summary .purchase-material img {
  width: 78px;
  height: 49px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.purchase-summary .purchase-material strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
}

.purchase-summary > div:not(.purchase-material) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
}

.purchase-summary > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.purchase-summary > div > span {
  margin-top: 0;
}

.purchase-summary > div > strong {
  display: inline;
  color: var(--gold-bright);
  font-size: 11px;
  text-align: right;
}

.purchase-summary .summary-row {
  padding: 4px 0;
}

.purchase-balance-warn {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(224, 90, 72, 0.25);
  border-radius: 6px;
  background: rgba(224, 90, 72, 0.06);
  color: #d97f70;
  font-size: 9.5px;
}

.purchase-balance-warn.is-visible {
  display: flex;
}

.purchase-balance-warn a {
  color: var(--gold);
  text-decoration: underline;
}

/* toast */
.toast-wrap {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(420px, calc(100% - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 253, 248, 1.000);
  box-shadow: 0 14px 40px rgba(74, 56, 26, 0.160);
  backdrop-filter: blur(12px);
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.55;
  animation: toastIn 0.3s var(--ease);
}

.toast.is-leaving {
  animation: toastOut 0.25s ease forwards;
}

.toast .icon {
  flex-shrink: 0;
}

.toast.is-success .icon {
  color: var(--jade);
}

.toast.is-error .icon {
  color: #d97f70;
}

.toast.is-info .icon {
  color: var(--gold);
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(255, 253, 248, 1.000);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.22s ease;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 100px);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  box-shadow: 0 40px 120px rgba(74, 56, 26, 0.256);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(32, 26, 18, 0.044);
  color: var(--text-soft);
}

.lightbox-close:hover {
  border-color: var(--line-strong);
  color: var(--gold);
}

/* =========================================================
   misc pages / states
   ========================================================= */

.notfound-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h) - 180px);
  padding: 70px 24px;
  text-align: center;
}

.notfound-code {
  color: transparent;
  font-family: var(--serif);
  font-size: clamp(90px, 16vw, 190px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, rgba(168, 126, 46, 0.675), rgba(168, 126, 46, 0.054));
  -webkit-background-clip: text;
  background-clip: text;
}

.notfound-page h1 {
  margin-top: 10px;
  font-size: 25px;
}

.notfound-page p {
  margin-top: 9px;
  color: var(--dim);
  font-size: 11.5px;
}

.notfound-page .btn {
  margin-top: 22px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding: 45px 0 70px;
}

.guide-toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.guide-toc a {
  display: block;
  padding: 6px 0;
  color: var(--dim);
  font-size: 10.5px;
}

.guide-toc a:hover,
.guide-toc a.is-active {
  color: var(--gold);
}

.guide-body h1 {
  font-size: 34px;
}

.guide-body .lead {
  margin-top: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.9;
}

.guide-section {
  padding-top: 32px;
}

.guide-section h2 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
}

.guide-section h3 {
  margin-top: 20px;
  color: var(--text-soft);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
}

.guide-section p,
.guide-section li {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.95;
}

.guide-section ul,
.guide-section ol {
  padding-left: 19px;
}

.guide-section li::marker {
  color: var(--gold);
}

.guide-section code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(32, 26, 18, 0.033);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
}

.guide-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 2px solid var(--gold);
  border-radius: 0 7px 7px 0;
  background: rgba(168, 126, 46, 0.061);
}

.guide-note strong {
  color: var(--gold-bright);
  font-size: 11px;
}

.guide-note p {
  margin-top: 4px;
  font-size: 10.5px;
}

.faq-item {
  border-bottom: 1px solid var(--line-soft);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
  padding: 13px 0;
  color: var(--text-soft);
  font-size: 11.5px;
  text-align: left;
}

.faq-q .icon {
  flex-shrink: 0;
  color: var(--dim);
  transition: transform 0.25s;
}

.faq-item.is-open .faq-q .icon {
  transform: rotate(45deg);
  color: var(--gold);
}

.faq-a {
  display: none;
  padding: 0 0 13px;
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.85;
}

.faq-item.is-open .faq-a {
  display: block;
}

.section-loading {
  padding: 60px 0;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 24px;
  text-align: center;
}

.empty-state .icon {
  margin-bottom: 13px;
  color: #585349;
}

.empty-state h3 {
  color: var(--text-soft);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}

.empty-state p {
  margin-top: 6px;
  color: var(--dim);
  font-size: 10.5px;
}

.empty-state .btn {
  margin-top: 17px;
}

.error-state {
  padding: 50px 24px;
  text-align: center;
}

.error-state .icon {
  color: #d97f70;
}

.error-state h3 {
  margin-top: 10px;
  color: var(--text-soft);
  font-family: var(--sans);
  font-size: 14px;
}

.error-state p {
  margin-top: 5px;
  color: var(--dim);
  font-size: 10.5px;
}

.error-state .btn {
  margin-top: 16px;
}

/* animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(-8px) scale(0.97); }
}

/* =========================================================
   responsive
   ========================================================= */

@media (max-width: 1200px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr) 430px; gap: 40px; }
  .auth-watermark { font-size: 190px; left: -30px; }
  .auth-art { width: 250px; }
  .package-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .asset-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; }
  .auth-visual { min-height: 0; }
  .auth-art { display: none; }
  .auth-watermark { display: none; }
  .auth-features { grid-template-columns: 1fr; max-width: 340px; }
  .auth-feature { display: flex; align-items: center; gap: 10px; padding: 11px 14px; }
  .auth-feature .icon { margin: 0; }
  .account-layout { grid-template-columns: 215px minmax(0, 1fr); gap: 20px; }
  .account-nav a { font-size: 11px; padding: 8px 9px; }
  .recharge-layout { grid-template-columns: minmax(0, 1fr) 285px; gap: 18px; }
  .package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-page { grid-template-columns: 205px minmax(0, 1fr); }
  .admin-content { padding: 23px 20px 45px; }
  .admin-topbar { padding: 0 20px; }
  .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid-2 { grid-template-columns: 1fr; }
  .upload-grid { grid-template-columns: 1fr; }
  .admin-search input { width: 165px; }
}

@media (max-width: 860px) {
  .auth-shell {
    grid-template-columns: 1fr;
    width: min(480px, calc(100% - 32px));
    min-height: 0;
    padding: 28px 0 50px;
    gap: 22px;
  }
  .auth-visual { display: none; }
  .auth-card { padding: 26px 22px 23px; }
  .auth-features { display: none; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .profile-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 15px; }
  .balance-mini { margin: 0; padding: 0; border: 0; text-align: right; }
  .balance-mini .btn { display: none; }
  .account-nav { display: flex; overflow-x: auto; padding: 5px; }
  .account-nav a { flex: 0 0 auto; white-space: nowrap; }
  .account-nav .nav-divider { display: none; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .recharge-layout { grid-template-columns: 1fr; }
  .recharge-summary { position: static; }
  .recharge-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recharge-tips ul { grid-template-columns: 1fr; }
  .admin-page { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 235px;
    transform: translateX(-100%);
    transition: transform 0.25s var(--ease);
    box-shadow: 20px 0 60px rgba(74, 56, 26, 0.160);
  }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 19;
    background: rgba(74, 56, 26, 0.176);
    backdrop-filter: blur(3px);
  }
  .admin-mobile-toggle { display: grid; }
  .admin-search { display: none; }
  .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-layout { grid-template-columns: 1fr; gap: 20px; }
  .guide-toc { position: static; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0 0 12px; border-left: 0; border-bottom: 1px solid var(--line); }
  .guide-toc a { padding: 2px 0; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .asset-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .package-grid { grid-template-columns: 1fr; }
  .package-card { display: grid; grid-template-columns: 1fr auto; gap: 4px 15px; align-items: center; padding: 16px; }
  .package-coins { font-size: 25px; }
  .package-bonus { margin: 0; grid-column: 1; }
  .package-price { margin: 0; padding: 0; border: 0; grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-items: flex-end; gap: 0; }
  .package-price span { display: none; }
  .package-note { display: none; }
  .account-info-grid { grid-template-columns: 1fr; }
  .stat-card strong { font-size: 19px; }
  .asset-body .btn { min-height: 29px; }
  .profile-card { grid-template-columns: 1fr; }
  .balance-mini { text-align: left; }
  .tx-balance { display: none; }
  .tx-item { padding: 11px 14px; }
  .panel-head { padding: 13px 14px; }
  .panel-body { padding: 14px; }
  .settings-card { padding: 18px; }
  .modal-backdrop { padding: 12px; align-items: flex-end; }
  .modal { max-height: 90vh; border-radius: 13px 13px 0 0; width: 100%; }
  .modal-head { padding: 17px 17px 13px; }
  .modal-body { padding: 16px 17px; }
  .modal-foot { padding: 12px 17px; }
  .modal-foot .btn { flex: 1; min-width: 0; }
  .confirm-icon { width: 38px; height: 38px; }
  .admin-content { padding: 18px 13px 40px; }
  .admin-topbar { padding: 0 13px; height: 55px; }
  .admin-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .admin-head-actions { width: 100%; }
  .admin-head-actions .btn { flex: 1; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .admin-stat { padding: 14px; }
  .admin-stat strong { font-size: 23px; }
  .admin-toolbar { flex-direction: column; align-items: stretch; gap: 9px; }
  .admin-toolbar-right { justify-content: space-between; }
  .admin-filters { flex-wrap: nowrap; overflow-x: auto; }
  .admin-filter { flex: 0 0 auto; }
  .admin-user strong, .admin-user span { display: none; }
  .admin-user { padding-left: 8px; }
  .admin-pagination { flex-direction: column; align-items: flex-start; }
  .chart-box { height: 160px; gap: 7px; }
  .auth-card { padding: 23px 18px 20px; }
  .auth-card-head h2 { font-size: 25px; }
  .auth-links { flex-direction: column; align-items: flex-start; gap: 8px; }
  .recharge-page { padding-top: 24px; }
  .recharge-head h1 { font-size: 26px; }
  .account-page { padding-top: 22px; }
  .guide-body h1 { font-size: 27px; }
  .order-main { flex-direction: column; align-items: flex-start; gap: 6px; }
  .order-amount { text-align: left; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .admin-stat-grid { grid-template-columns: 1fr; }
  .form-actions .btn { min-height: 45px; }
  .dropzone { min-height: 205px; padding: 22px 16px; }
  .dropzone h3 { font-size: 13px; }
  .toast-wrap { top: 12px; }
  .toast { font-size: 10.5px; padding: 9px 12px; }
  .lightbox { padding: 12px; }
  .lightbox img { max-height: calc(100vh - 90px); }
  .auth-shell { width: calc(100% - 24px); }
  .auth-card { padding: 21px 15px 18px; }
  .modal-detail img { width: 74px; height: 47px; }
}

.admin-mobile-toggle {
  display: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}




/* =========================================================
   mobile / tablet refinements
   ========================================================= */

@media (max-width: 1024px) {
  .header-inner { width: calc(100% - 40px); gap: 16px; }
  .brand-sub { display: none; }
  .nav-link { padding: 0 8px; font-size: 12px; }
  .header-search { width: 180px; }
  .hero-grid { gap: 34px; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
  .page-hero { padding: 36px 0 28px; }
}

@media (max-width: 860px) {
  .site-header { height: 64px; }
  .header-inner { width: calc(100% - 28px); gap: 10px; }
  .main-nav, .header-search { display: none; }
  .header-tools { margin-left: auto; gap: 8px; }
  .mobile-toggle { display: grid; }
  .brand-name { font-size: 20px; }
  .brand-mark { width: 34px; height: 34px; }
  .coin-chip { padding: 0 9px; gap: 5px; }
  .user-name { display: none; }
  .announcement-inner { width: calc(100% - 28px); }
  .announce-right { display: none; }

  .hero { padding: 34px 0 42px; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-copy { max-width: 620px; }
  .hero-title { font-size: clamp(42px, 9.5vw, 64px); }
  .hero-desc { margin-top: 18px; font-size: 14px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
  .hero-stat strong { font-size: 25px; }
  .hero-visual { width: 100%; max-width: 560px; margin: 0 auto; }
  .hero-side-word { display: none; }
  .hero-float.float-a { right: 8px; top: 18px; }
  .hero-float.float-b { left: 4px; bottom: 118px; }

  .section { padding: 52px 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vip-layout, .ranking-layout { grid-template-columns: 1fr; gap: 24px; }
  .vip-copy h2 { font-size: 29px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { padding: 44px 24px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; padding: 42px 0 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  .page-hero { padding: 30px 0 24px; }
  .page-hero h1 { font-size: 34px; }
  .market-layout { grid-template-columns: 1fr; gap: 18px; padding-top: 22px; }
  .filter-panel { display: none; position: static; }
  .filter-panel.is-open { display: block; }
  .mobile-filter-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .market-toolbar { flex-wrap: wrap; gap: 10px; }
  .sort-tabs { max-width: 100%; overflow-x: auto; }
  .sort-tab { flex: 0 0 auto; white-space: nowrap; }

  .detail-page { padding-top: 20px; }
  .detail-layout { grid-template-columns: 1fr; gap: 22px; }
  .detail-panel { position: static; }
  .detail-title { font-size: 30px; }
  .related-section .material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 28px); }
  .announcement-inner { width: calc(100% - 24px); font-size: 9.5px; gap: 8px; }
  .announce-left { gap: 7px; overflow: hidden; white-space: nowrap; }
  .announce-sep { display: none; }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 31px; height: 31px; }
  .header-tools { gap: 6px; }
  .coin-chip span { display: none; }
  .coin-chip strong { font-size: 11px; }
  .header-tools .btn-sm { min-height: 34px; padding: 0 11px; font-size: 11px; }
  .user-button { padding: 3px; }

  .hero { padding: 26px 0 36px; }
  .hero-kicker { font-size: 9px; letter-spacing: 0.1em; }
  .hero-title { font-size: clamp(40px, 12vw, 54px); }
  .hero-desc { font-size: 13px; line-height: 1.85; }
  .hero-actions { gap: 9px; }
  .hero-actions .btn { min-height: 44px; padding: 0 17px; font-size: 12px; }
  .hero-float { display: none; }
  .hero-frame-caption { padding: 14px; }
  .hero-frame-caption .caption-tags { display: none; }
  .hero-stats { gap: 12px; margin-top: 22px; }
  .hero-stat strong { font-size: 22px; }
  .trust-row { flex-wrap: wrap; gap: 8px 14px; }

  .category-grid { grid-template-columns: 1fr; gap: 9px; }
  .category-card { min-height: 82px; padding: 14px; }
  .feature-grid { grid-template-columns: 1fr; }
  .vip-grid { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 27px; }
  .cta-band { padding: 36px 18px; }
  .cta-band h2 { font-size: 26px; }
  .footer-main { grid-template-columns: 1fr; gap: 24px; padding: 34px 0 26px; }
  .footer-social { flex-wrap: wrap; }
  .footer-brand p { max-width: none; }
  .footer-bottom { font-size: 9px; }

  .page-hero h1 { font-size: 30px; }
  .page-hero-stats { flex-wrap: wrap; gap: 12px 22px; }
  .breadcrumb { margin-bottom: 14px; }
  .material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .material-grid.is-compact { grid-template-columns: 1fr; }
  .market-toolbar { align-items: flex-start; flex-direction: column; }
  .sort-tabs { width: 100%; }
  .result-info { font-size: 10px; }

  .detail-title { font-size: 27px; }
  .detail-sub { flex-wrap: wrap; gap: 8px 14px; }
  .detail-price-box { padding: 14px; }
  .detail-price { font-size: 30px; }
  .detail-actions { flex-direction: column; }
  .detail-actions .btn { width: 100%; }
  .tabs { overflow-x: auto; }
  .tab { flex: 0 0 auto; }
  .spec-grid { grid-template-columns: 1fr; }
  .related-section .material-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  .drawer-search { display: flex; align-items: center; gap: 8px; margin: 0 18px 14px; padding: 0 12px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: rgba(32, 26, 18, 0.033); color: var(--muted); }
  .drawer-search input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; color: var(--text); font-size: 12px; outline: 0; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 22px); }
  .hero-title { font-size: 40px; }
  .hero-desc { font-size: 12.5px; }
  .hero-actions .btn { flex: 1; justify-content: center; padding: 0 10px; }
  .hero-actions { display: flex; width: 100%; }
  .announce-left { font-size: 9px; }
  .brand-name { font-size: 17px; }
  .material-grid { grid-template-columns: 1fr; }
  .related-section .material-grid { grid-template-columns: 1fr; }
  .panel { border-radius: 9px; }
  .detail-title { font-size: 24px; }
  .detail-price-row { align-items: flex-start; }
  .empty-state { padding: 34px 18px; }
}

@media (max-width: 860px) {
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    max-width: none;
  }

  .hero-stat {
    padding: 10px 0;
  }

  .hero-stat:nth-child(odd) { padding-right: 14px; }
  .hero-stat:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
  .hero-stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

.drawer-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 18px 14px;
  padding: 0 12px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(32, 26, 18, 0.033);
  color: var(--muted);
}

.drawer-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  outline: 0;
}

.drawer-user > div strong {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.drawer-user > div span {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-size: 10.5px;
}

.drawer-section a {
  display: block;
  padding: 9px 8px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
}

.drawer-section a:hover {
  background: rgba(168, 126, 46, 0.108);
  color: var(--gold-bright);
}

.drawer-section a.menu-danger {
  color: #c9766a;
}

.account-nav {
  scrollbar-width: none;
}

.account-nav::-webkit-scrollbar {
  display: none;
}

.balance-mini > a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 12px;
  color: var(--gold);
  font-size: 10px;
}

@media (max-width: 640px) {
  .balance-mini {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-top: 12px;
    padding-top: 12px;
  }

  .balance-mini > span:first-child {
    width: 100%;
  }

  .balance-mini strong {
    margin-top: 0;
    font-size: 23px;
  }

  .balance-mini > a {
    margin-top: 0;
  }

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

@media (max-width: 480px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.stat-card span {
  display: block;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
@media (max-width: 860px) {
  .admin-mobile-toggle {
    display: grid;
  }
}

@media (max-width: 480px) {
  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.admin-table td.cell-mono {
  white-space: nowrap;
}

/* membership */
.member-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  white-space: nowrap;
}

.member-badge .icon {
  color: currentColor;
}

.member-badge.is-normal {
  background: rgba(152, 162, 179, 0.08);
  border-color: rgba(152, 162, 179, 0.22);
}

.member-badge.is-gold {
  background: rgba(225, 160, 75, 0.1);
  border-color: rgba(225, 160, 75, 0.32);
  color: #b07a2c;
}

.member-badge.is-diamond {
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.32);
  color: #4a86d8;
}

.member-badge.is-supreme {
  background: rgba(192, 132, 252, 0.12);
  border-color: rgba(192, 132, 252, 0.35);
  color: #8b5cf6;
}

.price-tag s,
.detail-price s,
.purchase-summary strong s {
  color: var(--dim);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  text-decoration: line-through;
}

.price-tag .price-off,
.detail-price .price-off {
  padding: 2px 5px;
  border: 1px solid rgba(126, 208, 185, 0.3);
  border-radius: 3px;
  background: rgba(84, 179, 154, 0.09);
  color: #3aa383;
  font-family: var(--sans);
  font-size: 9px;
  font-style: normal;
  line-height: 1.3;
}

.detail-member-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 14px;
}

.member-price-item {
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(32, 26, 18, 0.017);
}

.member-price-item.is-current {
  border-color: rgba(168, 126, 46, 0.540);
  background: rgba(168, 126, 46, 0.095);
}

.member-price-item span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  color: var(--muted);
  font-size: 9px;
}

.member-price-item span em {
  color: var(--dim);
  font-size: 8px;
  font-style: normal;
}

.member-price-item strong {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 5px;
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 600;
}

.detail-member-hint {
  margin-top: 9px;
  color: var(--dim);
  font-size: 9.5px;
  line-height: 1.6;
}

.purchase-saving {
  color: #3aa383 !important;
}

@media (max-width: 640px) {
  .detail-member-prices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 7px;
}

.admin-member-field {
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(32, 26, 18, 0.017);
}

.admin-member-field span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9.5px;
}

.admin-member-field span em {
  color: var(--dim);
  font-size: 8.5px;
  font-style: normal;
}

.admin-member-field .form-input {
  height: 34px;
  font-size: 11px;
}

.subcategory-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid color-mix(in srgb, var(--cat-color, var(--gold)) 35%, transparent);
  border-radius: 20px;
  color: color-mix(in srgb, var(--cat-color, var(--gold)) 80%, white);
  background: color-mix(in srgb, var(--cat-color, var(--gold)) 10%, transparent);
  font-size: 9.5px;
}

.filter-subgroup {
  padding-top: 12px;
  border-top: 1px dashed var(--line-soft);
}

.filter-subgroup .filter-link em {
  color: var(--dim);
}

.admin-subfilters {
  margin-top: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(32, 26, 18, 0.020);
}

.admin-subfilters-label {
  margin-right: 3px;
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.cell-subcat {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-size: 9px;
}

.admin-toolbar {
  flex-wrap: wrap;
  align-items: flex-start;
}

.admin-filter-area {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.admin-status-filters {
  gap: 6px;
}

.admin-toolbar-right {
  margin-left: auto;
  padding-top: 1px;
}

.admin-subfilters {
  width: 100%;
  margin-top: 0;
}

/* =========================================================
   Light theme layer · SFF5 ASSET STUDIO
   Warm paper surfaces, cinnabar accents, gold prices
   ========================================================= */

:root {
  --surface: #ffffff;
  --surface-2: #fbf7ee;
  --surface-3: #f5efe2;
  --border: rgba(168, 132, 62, 0.18);
  --border-soft: rgba(32, 26, 18, 0.08);
  --accent: #c0392b;
  --accent-soft: rgba(192, 57, 43, 0.08);
  --radius-card: 16px;
}

body {
  background:
    radial-gradient(900px 500px at 82% -8%, rgba(192, 57, 43, 0.06), transparent 62%),
    radial-gradient(800px 560px at 8% 2%, rgba(184, 134, 47, 0.07), transparent 60%),
    var(--bg);
}

body::before {
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(168, 132, 62, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 132, 62, 0.05) 1px, transparent 1px);
}

body::after {
  opacity: 0.012;
}

::selection {
  background: rgba(184, 134, 47, 0.28);
  color: #1d1a15;
}

/* ---------- shell ---------- */

.announcement {
  background: linear-gradient(90deg, rgba(192, 57, 43, 0.07), rgba(184, 134, 47, 0.07));
  border-bottom: 1px solid var(--border-soft);
  color: var(--muted);
}

.site-header {
  background: rgba(255, 253, 248, 0.88);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.site-header.is-scrolled,
.site-header.is-stuck {
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 10px 30px rgba(74, 56, 26, 0.08);
}

.nav-link {
  height: auto;
  line-height: 1;
  color: var(--text-soft);
  border-radius: 999px;
  padding: 9px 16px;
}

.nav-link::after {
  display: none;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, #c0392b, #a83224);
  box-shadow: 0 6px 16px rgba(192, 57, 43, 0.22);
}

.header-search {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(74, 56, 26, 0.04);
}

.header-search input {
  color: var(--text);
}

.header-search input::placeholder {
  color: var(--dim);
}

.header-search kbd {
  background: var(--surface-3);
  border: 1px solid var(--border-soft);
  color: var(--dim);
}

.coin-chip {
  background: linear-gradient(135deg, #fdf3dd, #f8e9c9);
  border: 1px solid rgba(184, 134, 47, 0.28);
  color: #8a5f1c;
}

.coin-chip strong {
  color: #7a5316;
}

.user-button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.user-button:hover {
  border-color: rgba(184, 134, 47, 0.4);
  background: var(--surface-2);
}

.user-menu {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 20px 46px rgba(74, 56, 26, 0.14);
}

.user-menu a:hover {
  background: var(--surface-2);
}

.user-menu-head {
  border-bottom: 1px solid var(--border-soft);
}

.mobile-drawer-panel {
  background: var(--surface);
  border-left: 1px solid var(--border);
}

.drawer-nav a:hover,
.drawer-section a:hover {
  background: var(--surface-2);
}

/* ---------- header cart ---------- */

.header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.header-cart:hover {
  color: var(--accent);
  border-color: rgba(192, 57, 43, 0.35);
  background: var(--accent-soft);
}

.header-cart.has-items {
  color: #8a5f1c;
  border-color: rgba(184, 134, 47, 0.34);
  background: linear-gradient(135deg, #fdf4e1, #f9eccd);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c0392b, #a83224);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(192, 57, 43, 0.3);
}

.cart-badge[hidden] {
  display: none;
}

/* ---------- market hero ---------- */

.market-page {
  padding-bottom: 64px;
}

.market-hero {
  position: relative;
  margin: 26px 0 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(680px 300px at 88% 0%, rgba(192, 57, 43, 0.07), transparent 66%),
    radial-gradient(560px 280px at 4% 100%, rgba(184, 134, 47, 0.1), transparent 62%),
    linear-gradient(180deg, #fffdf7, #fbf6e9);
  box-shadow: 0 18px 44px rgba(74, 56, 26, 0.07);
  overflow: hidden;
}

.market-hero::after {
  content: "";
  position: absolute;
  inset: auto -60px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 57, 43, 0.12), transparent 68%);
  pointer-events: none;
}

.market-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: center;
  padding: 34px 38px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.16);
  color: #a83224;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.market-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.24;
  color: var(--text);
}

.market-hero h1 em {
  font-style: normal;
  color: #b8862f;
}

.market-hero-sub {
  max-width: 520px;
  color: var(--muted);
  font-size: 14px;
}

.market-hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 22px;
}

.market-hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.market-hero-stats strong {
  font-family: var(--serif);
  font-size: 24px;
  color: #a83224;
}

.market-hero-stats span {
  font-size: 12px;
  color: var(--dim);
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 6px 8px 6px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(74, 56, 26, 0.06);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.hero-search input::placeholder {
  color: var(--dim);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-tags a {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.hero-tags a:hover {
  color: #a83224;
  border-color: rgba(192, 57, 43, 0.28);
  background: var(--accent-soft);
}

/* ---------- market toolbar ---------- */

.market-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-soft);
}

.market-toolbar .toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sort-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
}

.sort-tab {
  padding: 6px 13px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.sort-tab:hover {
  color: var(--text);
}

.sort-tab.is-active {
  background: var(--surface);
  color: #a83224;
  box-shadow: 0 3px 10px rgba(74, 56, 26, 0.1);
  font-weight: 600;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.tool-chip:hover {
  color: #a83224;
  border-color: rgba(192, 57, 43, 0.3);
}

.tool-chip.is-active {
  background: var(--accent-soft);
  border-color: rgba(192, 57, 43, 0.32);
  color: #a83224;
}

.active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: none;
}

.filter-chip:hover {
  color: #a83224;
  border-color: rgba(192, 57, 43, 0.3);
}

.filter-chip.is-reset {
  background: transparent;
  border-style: dashed;
  color: var(--dim);
}

/* ---------- category sections ---------- */

.market-sections {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.cat-section {
  padding: 22px 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 30px rgba(74, 56, 26, 0.05);
}

.cat-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cat-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 14px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
}

.cat-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 20px;
  border-radius: 3px;
  background: linear-gradient(180deg, #c0392b, #a83224);
}

.cat-title em {
  font-style: normal;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--dim);
}

.cat-right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.cat-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.cat-chips::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  flex: none;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.18s var(--ease);
}

.cat-chip:hover {
  color: var(--text);
  border-color: var(--border);
  background: #fff;
}

.cat-chip.is-active {
  background: #2b2418;
  border-color: #2b2418;
  color: #fdf3dd;
}

.cat-more {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--dim);
  font-size: 12.5px;
  text-decoration: none;
  white-space: nowrap;
}

.cat-more:hover {
  color: #a83224;
}

.cat-empty {
  padding: 34px 16px;
  text-align: center;
  color: var(--dim);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.cat-empty p {
  margin-top: 8px;
  font-size: 13px;
}

/* ---------- cards (article markup) ---------- */

.material-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(74, 56, 26, 0.05);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.material-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 134, 47, 0.34);
  box-shadow: 0 18px 40px rgba(74, 56, 26, 0.12);
}

.material-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.material-title {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.card-cart {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(192, 57, 43, 0.24);
  background: var(--accent-soft);
  color: #a83224;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}

.card-cart:hover {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}

.card-cart:disabled {
  opacity: 0.6;
  cursor: default;
}

.owned-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(47, 156, 126, 0.1);
  color: #2f8a70;
  font-size: 12px;
  font-weight: 600;
}

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

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

@media (max-width: 860px) {
  .material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .market-hero-inner {
    grid-template-columns: 1fr;
    padding: 26px 22px;
  }
}

@media (max-width: 560px) {
  .material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .cat-section {
    padding: 16px 14px 18px;
  }
  .cat-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .cat-right {
    width: 100%;
  }
}

/* ---------- cart page ---------- */

.cart-page {
  padding: 28px 0 64px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 22px;
  align-items: start;
}

.cart-list {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(74, 56, 26, 0.05);
  overflow: hidden;
}

.cart-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-soft);
}

.cart-row:last-child {
  border-bottom: 0;
}

.cart-thumb {
  width: 104px;
  height: 78px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-info {
  min-width: 0;
}

.cart-name {
  display: block;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-name:hover {
  color: #a83224;
}

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

.cart-tags .tag {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  color: var(--dim);
  font-size: 11.5px;
}

.cart-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cart-remove {
  border: 0;
  background: transparent;
  color: var(--dim);
  font-size: 12.5px;
  cursor: pointer;
}

.cart-remove:hover {
  color: #c0392b;
}

.cart-list-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface-2);
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 13px;
}

.cart-clear {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px dashed var(--border);
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  cursor: pointer;
}

.cart-clear:hover {
  color: #c0392b;
  border-color: rgba(192, 57, 43, 0.3);
}

.cart-summary {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fffdf8, #fbf6e9);
  box-shadow: 0 16px 40px rgba(74, 56, 26, 0.08);
}

.summary-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
  font-size: 13.5px;
  color: var(--muted);
}

.summary-lines > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.summary-lines .is-save {
  color: #2f8a70;
}

.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px dashed var(--border);
  color: var(--text-soft);
}

.summary-total strong {
  font-family: var(--serif);
  font-size: 26px;
  color: #a83224;
}

.summary-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--muted);
}

.summary-checkout {
  width: 100%;
}

.summary-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 12px;
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.6;
}

.summary-recharge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #a83224;
  font-size: 12px;
  text-decoration: none;
}

.detail-cart {
  margin-top: 10px;
}

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

@media (max-width: 560px) {
  .cart-row {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
  }
  .cart-thumb {
    width: 74px;
    height: 60px;
  }
  .cart-price {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ---------- light tuning: panels, buttons, forms, footer ---------- */

.panel,
.hero-stage,
.feature-card,
.step-item,
.auth-card,
.detail-panel,
.spec-card,
.order-card,
.tx-table {
  background: var(--surface);
  border-color: var(--border-soft);
}

.btn {
  border-radius: 999px;
  font-weight: 600;
}

.btn-gold {
  --btn-bg: linear-gradient(135deg, #c0392b, #a83224);
  --btn-fg: #fff;
  --btn-bd: transparent;
  box-shadow: 0 10px 24px rgba(192, 57, 43, 0.22);
}

.btn-gold:hover {
  box-shadow: 0 14px 30px rgba(192, 57, 43, 0.3);
}

.btn-outline,
.btn-ghost {
  --btn-bg: #fff;
  --btn-fg: var(--text-soft);
  --btn-bd: var(--border);
}

.btn-outline:hover,
.btn-ghost:hover {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  border-color: rgba(184, 134, 47, 0.42);
}

.form-input,
.form-select,
.form-textarea,
input[type="text"],
input[type="search"],
input[type="password"],
input[type="email"],
select,
textarea {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(192, 57, 43, 0.4);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.modal-card,
.modal-panel {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(74, 56, 26, 0.22);
}

.modal-backdrop {
  background: rgba(38, 30, 18, 0.42);
}

.site-footer {
  background: linear-gradient(180deg, #fffdf8, #f6f0e3);
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
}

.site-footer a:hover {
  color: #a83224;
}

.section-head h2,
.page-head h1,
.account-head h1 {
  color: var(--text);
}

.eyebrow {
  color: #a83224;
}

.price-tag {
  background: linear-gradient(135deg, #fdf3dd, #f8e9c9);
  border: 1px solid rgba(184, 134, 47, 0.3);
  color: #8a5f1c;
}

.badge-gold {
  background: rgba(184, 134, 47, 0.12);
  color: #8a5f1c;
  border: 1px solid rgba(184, 134, 47, 0.24);
}

.badge {
  border-radius: 999px;
}

.tag {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  color: var(--muted);
}

.tag-ok {
  background: rgba(47, 156, 126, 0.1);
  border-color: rgba(47, 156, 126, 0.24);
  color: #2f8a70;
}

.skeleton,
.skeleton-block {
  background: linear-gradient(90deg, #f4eee1, #fbf7ee, #f4eee1);
}

.empty-state,
.error-state {
  color: var(--muted);
}

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

::-webkit-scrollbar-track {
  background: #f4eee1;
}

::-webkit-scrollbar-thumb {
  background: rgba(168, 132, 62, 0.32);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 132, 62, 0.5);
}

/* ---------- cover overlays on light cards ---------- */

.material-cover-shade {
  background: linear-gradient(180deg, rgba(20, 16, 10, 0) 55%, rgba(20, 16, 10, 0.34) 100%);
}

.material-card:hover .material-cover img {
  filter: brightness(0.9) saturate(1.03);
}

.material-cat {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(20, 16, 10, 0.5);
  color: #f6e8cc;
  backdrop-filter: blur(8px);
}

.vip-chip {
  border-color: rgba(243, 221, 166, 0.42);
  background: linear-gradient(135deg, rgba(178, 58, 50, 0.9), rgba(122, 38, 30, 0.9));
  color: #ffe9c2;
}

.rank-badge {
  border-color: rgba(243, 221, 166, 0.5);
  background: rgba(20, 16, 10, 0.55);
  color: #f3dda6;
}

.material-hover {
  border-color: rgba(243, 221, 166, 0.5);
  background: rgba(20, 16, 10, 0.62);
  color: #f7e8ca;
}

.price-tag {
  color: #8a5f1c;
}

.price-tag strong,
.price-tag b {
  color: #7a5316;
}

/* ---------- cart row refinements ---------- */

.cart-price .price-tag {
  gap: 5px;
  padding: 5px 10px;
  font-size: 12.5px;
}

.cart-remove {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cart-row {
  align-items: start;
}

.cart-thumb {
  align-self: start;
}

/* ---------- section head alignment ---------- */

.cat-head {
  align-items: center;
}

.cat-title {
  padding-left: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.cat-title::before {
  display: none;
}

.cat-bar {
  flex: none;
  width: 5px;
  height: 38px;
  border-radius: 3px;
  background: linear-gradient(180deg, #c0392b, #a83224);
}

.cat-title h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.cat-title p {
  margin: 5px 0 0;
  font-size: 12.5px;
  color: var(--dim);
}

.cat-right {
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

@media (max-width: 900px) {
  .cat-title h2 {
    font-size: 19px;
  }
  .cat-right {
    justify-content: flex-start;
  }
}

/* ---------- anchor offset for sticky header ---------- */

.cat-section,
section[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* ---------- mobile toolbar ---------- */

@media (max-width: 720px) {
  .market-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .market-toolbar .toolbar-right {
    justify-content: flex-start;
  }
  .sort-tabs {
    flex-wrap: wrap;
    justify-content: flex-start;
    border-radius: 14px;
  }
  .sort-tab {
    flex: 1 1 auto;
    text-align: center;
  }
  .market-hero-stats {
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .sort-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .sort-tabs::-webkit-scrollbar {
    display: none;
  }
  .sort-tab {
    flex: 0 0 auto;
    text-align: left;
  }
}

/* ---------- mobile card foot ---------- */

.price-tag,
.price-tag * {
  white-space: nowrap;
}

@media (max-width: 620px) {
  .material-foot {
    flex-wrap: wrap;
    gap: 8px;
  }
  .material-foot .price-tag {
    flex: 0 0 auto;
    font-size: 11px;
    padding: 4px 8px;
    gap: 4px;
  }
  .card-cart,
  .owned-chip {
    flex: 1 1 100%;
    justify-content: center;
    padding: 7px 10px;
    font-size: 11.5px;
  }
  .material-title {
    font-size: 13px;
  }
  .material-meta {
    font-size: 11px;
  }
}

/* ---------- auth visual on light ---------- */

.auth-art {
  right: -34px;
  bottom: -18px;
  width: 268px;
  opacity: 0.82;
  filter: saturate(1) contrast(1.02);
}

.auth-feature {
  background: #ffffff;
}

.auth-features {
  box-shadow: 0 14px 34px rgba(74, 56, 26, 0.1);
}

.auth-watermark {
  color: rgba(168, 126, 46, 0.07);
}

.auth-card {
  box-shadow: 0 24px 60px rgba(74, 56, 26, 0.12);
}

.auth-art img {
  display: block;
  width: 100%;
  height: auto;
}

.auth-art {
  right: -96px;
  bottom: -54px;
  width: 232px;
  opacity: 0.5;
}

@media (max-width: 1080px) {
  .auth-art {
    display: none;
  }
}

/* ---------- recharge selected card on light ---------- */

.package-card.is-selected {
  background:
    radial-gradient(240px 160px at 100% 0%, rgba(184, 134, 47, 0.16), transparent 70%),
    #fffdf6;
  border-color: rgba(184, 134, 47, 0.7);
  box-shadow: inset 0 0 0 1px rgba(184, 134, 47, 0.18), 0 14px 32px rgba(74, 56, 26, 0.1);
}

.package-card.is-selected .package-coins {
  color: #8a5f1c;
}

.package-card.is-selected .package-bonus {
  color: #a83224;
}

.package-card.is-selected .package-price {
  color: #8a5f1c;
  border-top-color: rgba(184, 134, 47, 0.28);
}

.package-card.is-selected .package-note {
  color: #6f6759;
}

/* ---------- header search: real flex layout ---------- */

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 236px;
  height: 40px;
  padding: 0 10px 0 14px;
  border-radius: 999px;
}

.header-search > .icon {
  flex: none;
  color: var(--dim);
}

.header-search input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.header-search input:focus {
  background: transparent;
  border: 0;
}

.header-search kbd {
  flex: none;
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  line-height: 15px;
  text-align: center;
}

@media (max-width: 1180px) {
  .header-search {
    width: 190px;
  }
}
/* ---- detail page quick actions (加入购物车 / 立即购买) ---- */
.detail-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.detail-quick .btn {
  width: 100%;
  min-height: 46px;
  font-size: 14px;
  justify-content: center;
}
.detail-quick .btn-ghost {
  background: #fffdf8;
  border-color: rgba(168, 132, 62, 0.34);
  color: var(--gold-deep);
}
.detail-quick .btn-ghost:hover {
  background: #fff6e6;
  border-color: rgba(168, 132, 62, 0.6);
  color: #8a5f1c;
}
.detail-actions .owned-notice { margin-top: 12px; }
@media (max-width: 520px) {
  .detail-quick { grid-template-columns: 1fr; }
}
/* ---- responsive header: drop inline search below 900px (drawer has its own) ---- */
@media (max-width: 900px) {
  .header-search { display: none; }
}
@media (max-width: 640px) {
  .header-tools { gap: 8px; }
  .coin-chip { padding: 0 10px; }
}
.upload-section-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
}

.upload-section-label em {
  color: var(--dim);
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
}

.dropzone-compact {
  min-height: 128px;
  padding: 18px;
}

.dropzone-compact .dropzone-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 9px;
}

.dropzone-compact strong {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}

.dropzone-compact > span:not(.dropzone-icon):not(.btn) {
  margin-top: 5px;
  color: var(--dim);
  font-size: 9px;
}

.archive-selected {
  margin-top: 9px;
}

.upload-image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.upload-image-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-soft);
}

.upload-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-image-item span {
  position: absolute;
  left: 5px;
  bottom: 5px;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.68);
  color: var(--text-soft);
  font-size: 8px;
}

.upload-image-item button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  cursor: pointer;
}

.detail-cover img {
  display: block;
}

.detail-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.detail-thumb {
  flex: 0 0 82px;
  width: 82px;
  height: 58px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
  cursor: pointer;
  opacity: 0.58;
  transition: opacity 0.18s, border-color 0.18s;
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-thumb:hover,
.detail-thumb.is-active {
  border-color: var(--gold);
  opacity: 1;
}

/* =========================================================
   compact asset cards (5-up library grid)
   ========================================================= */

.material-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.material-card {
  padding: 9px 9px 0;
  border: 1px solid #d8d4ca;
  border-radius: 8px;
  background: #e9e7e2;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.material-card:hover {
  transform: translateY(-3px);
  border-color: #c9a45c;
  box-shadow: 0 12px 28px rgba(74, 56, 26, 0.14);
}

.material-cover {
  aspect-ratio: 4 / 3;
  border: 1px solid #d2cec4;
  border-radius: 2px;
  background: #171513;
}

.material-cover-link {
  display: block;
  width: 100%;
  height: 100%;
}

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

.material-card:hover .material-cover img {
  transform: scale(1.03);
  filter: brightness(0.86) saturate(1.02);
}

.material-cover-shade {
  background: linear-gradient(180deg, transparent 62%, rgba(17, 14, 10, 0.28));
}

.material-cat {
  top: 7px;
  left: 7px;
  padding: 2px 5px;
  border-color: rgba(232, 206, 158, 0.42);
  background: rgba(20, 17, 13, 0.68);
  color: #ecd09a;
  font-size: 8px;
  letter-spacing: 0.04em;
}

.vip-chip {
  top: 7px;
  right: 7px;
  padding: 2px 5px;
  border-color: rgba(238, 210, 155, 0.5);
  background: rgba(35, 28, 20, 0.72);
  color: #f1d29a;
  font-size: 8px;
}

.material-body {
  padding: 9px 2px 8px;
  text-align: center;
}

.material-title {
  display: block;
  overflow: hidden;
  color: #2b2925;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-title::after {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  margin: 7px auto 0;
  background: #c49a45;
}

.material-card:hover .material-title {
  color: #8a5d1f;
}

.material-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(74, 56, 26, 0.08);
}

.material-downloads {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #7c7467;
  font-size: 11px;
  white-space: nowrap;
}

.material-downloads .icon {
  color: #8d8476;
}

.material-price {
  display: inline-flex;
  min-width: 0;
}

.material-price .price-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border: 1px solid #ddc58f;
  border-radius: 999px;
  background: #f4e8cd;
  color: #7c5117;
  white-space: nowrap;
}

.material-price .price-tag strong {
  color: #704411;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
}

.material-price .price-tag > span:not(.coin-icon) {
  color: #8d672d;
  font-size: 9px;
}

.material-price .price-tag .coin-icon {
  width: 12px;
  height: 12px;
}

.material-price .price-tag s,
.material-price .price-tag .price-off {
  display: none;
}

.card-hover-actions {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(20, 17, 12, 0.05), rgba(20, 17, 12, 0.58));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}

.material-card:hover .card-hover-actions {
  opacity: 1;
  pointer-events: auto;
}

.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}

.card-action:hover {
  transform: translateY(-1px);
}

.card-action-cart {
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.9);
  color: #514636;
}

.card-action-cart:hover {
  background: #fff;
  color: #2d251a;
}

.card-action-download {
  border: 1px solid #c08f2f;
  background: #d7aa4f;
  color: #2d210e;
}

.card-action-download:hover {
  background: #e3b85e;
}

.card-owned {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(47, 138, 112, 0.9);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
}

.material-card.is-compact {
  padding: 7px;
}

.material-card.is-compact .material-cover {
  width: 112px;
  aspect-ratio: auto;
  border-radius: 3px;
}

.material-card.is-compact .material-body {
  padding: 6px 8px;
  text-align: left;
}

.material-card.is-compact .material-title {
  text-align: left;
}

.material-card.is-compact .material-title::after {
  display: none;
}

.material-card.is-compact .card-hover-actions {
  display: none;
}

@media (max-width: 1280px) {
  .material-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

@media (max-width: 700px) {
  .material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .material-card {
    padding: 7px 7px 0;
  }

  .material-title {
    font-size: 12.5px;
  }

  .material-downloads {
    font-size: 10px;
  }

  .material-price .price-tag {
    padding: 3px 6px;
  }

  .card-hover-actions {
    gap: 4px;
    padding: 7px;
  }

  .card-action {
    padding: 5px 6px;
    font-size: 9.5px;
  }

  .card-action span {
    display: none;
  }
}

/* ---------- wider desktop + immersive asset cards ---------- */

.container {
  width: min(1600px, calc(100% - 48px));
}

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

.material-card {
  padding: 8px;
  border-radius: 10px;
}

.material-cover {
  aspect-ratio: 1 / 1;
  border-radius: 3px;
}

.material-body {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  z-index: 4;
  padding: 40px 10px 8px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(180deg, transparent, rgba(12, 10, 7, 0.84) 62%);
  text-align: left;
  pointer-events: none;
}

.material-title {
  color: #fffdf7;
  font-size: 13px;
  text-align: left;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}

.material-title::after {
  width: 30px;
  margin: 5px 0 0;
  background: #e2b35b;
}

.material-card:hover .material-title {
  color: #ffe2a4;
}

.material-stats {
  margin-top: 6px;
  padding-top: 6px;
  border-top-color: rgba(255, 255, 255, 0.18);
}

.material-downloads {
  color: rgba(255, 253, 247, 0.86);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.material-downloads .icon {
  color: rgba(255, 253, 247, 0.72);
}

.material-price .price-tag {
  border-color: rgba(226, 190, 121, 0.85);
  background: rgba(247, 233, 202, 0.96);
}

.card-hover-actions {
  align-items: center;
  background: rgba(18, 14, 9, 0.38);
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 28px);
  }

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

  .material-body {
    position: static;
    padding: 8px 2px 7px;
    background: none;
    text-align: center;
  }

  .material-title {
    color: #2b2925;
    font-size: 12.5px;
    text-align: center;
    text-shadow: none;
  }

  .material-title::after {
    width: 28px;
    margin: 6px auto 0;
  }

  .material-card:hover .material-title {
    color: #8a5d1f;
  }

  .material-stats {
    border-top-color: rgba(74, 56, 26, 0.08);
  }

  .material-downloads {
    color: #7c7467;
    text-shadow: none;
  }

  .material-downloads .icon {
    color: #8d8476;
  }
}
.material-card.is-compact .material-body {
  position: static;
  padding: 6px 4px 4px;
  background: none;
}

.material-card.is-compact .material-title {
  color: #2b2925;
  text-shadow: none;
}

.material-card.is-compact .material-stats {
  border-top-color: rgba(74, 56, 26, 0.08);
}

.material-card.is-compact .material-downloads {
  color: #7c7467;
  text-shadow: none;
}

/* ---------- card image 8:5, info below, thumbnail fully clickable ---------- */

.material-cover {
  aspect-ratio: 8 / 5;
}

.material-body {
  position: static;
  padding: 10px 3px 8px;
  background: none;
  text-align: center;
}

.material-title {
  color: #2b2925;
  font-size: 13.5px;
  text-align: center;
  text-shadow: none;
}

.material-title::after {
  width: 34px;
  margin: 7px auto 0;
  background: #c49a45;
}

.material-card:hover .material-title {
  color: #8a5d1f;
}

.material-stats {
  margin-top: 8px;
  padding-top: 8px;
  border-top-color: rgba(74, 56, 26, 0.08);
}

.material-downloads {
  color: #7c7467;
  text-shadow: none;
}

.material-downloads .icon {
  color: #8d8476;
}

.card-hover-actions {
  align-items: flex-end;
  padding: 10px;
  pointer-events: none;
}

.material-card:hover .card-hover-actions {
  pointer-events: none;
}

.card-hover-actions .card-action,
.card-hover-actions .card-owned {
  pointer-events: auto;
}

.material-cover-shade,
.material-cat,
.vip-chip,
.rank-badge {
  pointer-events: none;
}

@media (max-width: 700px) {
  .material-cover {
    aspect-ratio: 8 / 5;
  }

  .material-body {
    padding: 8px 2px 7px;
  }

  .material-title {
    font-size: 12.5px;
  }
}
