/* ============================================================
   MetaHero theme refinement · black / #E02222 / #F26028
   Loaded after style.css so it can refine the base theme.
   ============================================================ */
:root {
  --text: #f8f2ee;
  --muted: #ae9f98;
  --dim: #7f716b;
  --line: rgba(255, 180, 150, 0.11);
  --line-strong: rgba(255, 180, 150, 0.2);
  --gold: #ffb15c;
  --danger: #ff5a5a;
  --success: #63d6a3;
}
body {
  background:
    radial-gradient(950px 520px at 4% -12%, rgba(224, 34, 34, 0.16), transparent 62%),
    radial-gradient(760px 480px at 100% 0%, rgba(242, 96, 40, 0.1), transparent 58%),
    #050505;
}
a:hover { color: #ffb08a; }
.login-panel { background: #060606; }
.login-card {
  background: linear-gradient(180deg, rgba(24, 21, 21, 0.98), rgba(10, 10, 10, 0.98));
  border-color: rgba(242, 96, 40, 0.2);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}
.login-card .sub { margin-bottom: 20px; }
.login-tip b { color: #ff9a66; }
.login-mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 18px; letter-spacing: 0.08em; }
.login-mobile-brand .brand-mark { width: 34px; height: 34px; border-radius: 11px; font-size: 16px; }
.brand-mark { background: linear-gradient(140deg, #e02222, #f26028); box-shadow: 0 10px 28px rgba(224, 34, 34, 0.35); color: #fff; font-weight: 800; }
.hero-copy h1 span { background: linear-gradient(115deg, #e02222, #f26028 58%, #ff9a66); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { color: #ff9a66; }
.sidebar { background: rgba(8, 8, 8, 0.96); }
.topbar { background: rgba(5, 5, 5, 0.82); }
.card, .stat { background: linear-gradient(180deg, rgba(24, 22, 22, 0.94), rgba(12, 12, 12, 0.96)); }
.btn.primary { background: linear-gradient(115deg, #e02222, #f26028); box-shadow: 0 8px 22px rgba(224, 34, 34, 0.25); }
.btn.primary:hover { filter: brightness(1.08); }
.modal { background: #101010; border-color: rgba(242, 96, 40, 0.18); }
.toast { background: #181414; }
.badge.pink { color: #ffb08a; border-color: rgba(242, 96, 40, 0.32); background: rgba(242, 96, 40, 0.1); }
.badge.cyan { color: #ffc3a6; border-color: rgba(255, 154, 102, 0.26); background: rgba(255, 154, 102, 0.08); }
.badge.violet { color: #ff9a9a; border-color: rgba(224, 34, 34, 0.3); background: rgba(224, 34, 34, 0.1); }
.hero-banner { background: radial-gradient(700px 200px at 90% -20%, rgba(242, 96, 40, 0.25), transparent 70%), linear-gradient(120deg, rgba(224, 34, 34, 0.18), rgba(12, 12, 12, 0.96) 60%); }
.points-big { background: linear-gradient(100deg, #fff, #ff9a66 48%, #f26028); -webkit-background-clip: text; background-clip: text; }
.trend-pair i.earn { background: linear-gradient(180deg, #f26028, rgba(242, 96, 40, 0.3)); }
.trend-pair i.spend { background: linear-gradient(180deg, #e02222, rgba(224, 34, 34, 0.28)); }
.btn.cyan { color: #2a0b05; background: #ff9a66; }
select option { background: #171312; }
input::placeholder, textarea::placeholder { color: #7a6a64; }
::-webkit-scrollbar-thumb { background: #3b302c; }

/* auth tabs + register */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 4px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
}
.auth-tab {
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.auth-tab.active {
  color: #fff;
  background: linear-gradient(115deg, rgba(224, 34, 34, 0.9), rgba(242, 96, 40, 0.9));
  box-shadow: 0 5px 16px rgba(224, 34, 34, 0.2);
}
.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff9a66;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-switch { margin-top: 16px; color: var(--muted); font-size: 12.5px; }
.login-card .btn.block { margin-top: 4px; }
#auth-register .login-tip { margin-top: 14px; }

/* onboarding guide */
.guide-hero {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(242, 96, 40, 0.24);
  background: linear-gradient(120deg, rgba(224, 34, 34, 0.16), rgba(242, 96, 40, 0.05));
  margin-bottom: 14px;
}
.guide-kicker { color: #ff9a66; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.guide-hero h3 { font-size: 18px; margin-top: 4px; }
.guide-hero p { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.guide-steps { display: flex; flex-direction: column; gap: 8px; }
.guide-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  text-decoration: none;
  transition: 0.15s ease;
}
.guide-step:hover { border-color: rgba(242, 96, 40, 0.35); background: rgba(242, 96, 40, 0.06); color: var(--text); }
.guide-num {
  flex: none;
  width: 27px; height: 27px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #e02222, #f26028);
  color: #fff; font-weight: 700; font-size: 12px;
}
.guide-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.guide-copy b { font-size: 13px; }
.guide-copy span { color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.guide-go { color: #ff9a66; font-size: 11px; white-space: nowrap; }
.guide-footnote { color: var(--dim); font-size: 11px; margin-top: 12px; }

/* obvious logout */
.side-logout { margin-top: 10px; color: #ffb0a0; border-color: rgba(224, 34, 34, 0.28); background: rgba(224, 34, 34, 0.07); }
.side-logout:hover { color: #fff; border-color: rgba(242, 96, 40, 0.55); background: rgba(224, 34, 34, 0.16); }
.logout-top { color: #ffb0a0; border-color: rgba(224, 34, 34, 0.3); background: rgba(224, 34, 34, 0.07); }
.logout-top:hover { color: #fff; background: rgba(224, 34, 34, 0.16); }
.sidebar-close { display: none; position: absolute; top: 16px; right: 12px; }
.sidebar-overlay { display: none; }

/* dual-tag filters for hot topics */
.filter-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-label { flex: none; min-width: 38px; color: var(--dim); font-size: 11px; letter-spacing: 0.08em; }
.filter-scroll { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.tag-chip {
  flex: none;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
}
.tag-chip:hover { color: var(--text); border-color: rgba(242, 96, 40, 0.3); }
.tag-chip.active { color: #fff; border-color: transparent; background: linear-gradient(115deg, #e02222, #f26028); }
.tag-chip.track.active { background: linear-gradient(115deg, #e02222, #f26028); }
.tag-chip.category.active { background: rgba(255, 154, 102, 0.18); color: #ffd0b8; border-color: rgba(255, 154, 102, 0.4); }
.hot-tag-track { color: #ffb08a; }
.hot-tag-category { color: #ffd0b8; }

/* mobile polish */
@media (max-width: 900px) {
  .login-panel { align-items: start; padding: 24px 18px 40px; }
  .login-mobile-brand { display: flex; }
  .login-card { width: min(440px, 100%); margin: 0 auto; padding: 26px 22px; }
  .sidebar { left: -290px; width: 272px; padding-top: 18px; }
  .sidebar.open { left: 0; }
  .sidebar-close { display: grid; }
  .sidebar-overlay {
    display: block;
    position: fixed; inset: 0; z-index: 19;
    background: rgba(0, 0, 0, 0.62);
    opacity: 0; pointer-events: none; transition: 0.2s ease;
    backdrop-filter: blur(2px);
  }
  .sidebar-overlay.show { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .topbar { min-height: 58px; gap: 8px; padding: 0 12px; }
  .topbar .crumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .content { padding: 18px 14px 48px; }
  .page-head { margin-bottom: 18px; }
  .page-head h1 { font-size: 22px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .tabs > * { flex: none; }
  .modal { width: calc(100vw - 24px); max-height: 90vh; }
  .modal-body { padding: 15px 16px; }
  .modal-foot { padding: 0 16px 16px; }
}
@media (max-width: 700px) {
  .role-badge, .password-btn { display: none; }
  .topbar .crumb { max-width: 36vw; }
  .guide-btn { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 620px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { min-height: 96px; padding: 14px 15px; }
  .stat .value { font-size: 24px; }
  .login-card h2 { font-size: 21px; }
  .auth-tabs { margin-bottom: 18px; }
  .guide-step { align-items: flex-start; }
  .guide-go { display: none; }
  .filter-row { align-items: flex-start; }
  .filter-scroll { padding-right: 8px; }
  .side-logout { min-height: 36px; }
  .login-shell { min-height: 100svh; }
  #auth-register .field { margin-bottom: 9px; }
  .login-panel { min-height: 100svh; }
}
@media (max-width: 480px) {
  .topbar .crumb { display: none; }
  .topbar { gap: 6px; }
  .guide-btn, .logout-top { padding: 0 8px; font-size: 11px; min-height: 32px; }
  .content { padding: 14px 11px 42px; }
  .page-head h1 { font-size: 20px; }
  .page-head p { font-size: 12px; }
  .card-body { padding: 12px; }
  .login-panel { padding: 18px 12px 30px; }
  .login-card { padding: 22px 16px; border-radius: 16px; }
  .hero-meta { display: none; }
  .filter-label { min-width: 100%; }
}

/* ============================================================
   Tokusatsu mecha × anime layer · final overrides
   Angular panels, hardsuit detailing, hazard accents.
   ============================================================ */
:root {
  --font-display: "STHupo", "YouYuan", "Microsoft YaHei", sans-serif;
  --font-tech: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --mecha-red: #e02222;
  --mecha-orange: #f26028;
  --mecha-ember: #ff9a66;
  --mecha-ink: #050505;
}

body {
  background:
    radial-gradient(1100px 640px at 2% -16%, rgba(224, 34, 34, 0.18), transparent 60%),
    radial-gradient(900px 560px at 104% 8%, rgba(242, 96, 40, 0.1), transparent 58%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0, rgba(255, 255, 255, 0.012) 1px, transparent 1px, transparent 4px),
    #050505;
}

/* Login: hero logo, hangar grid, diagonal energy slash */
.login-hero {
  isolation: isolate;
  background:
    linear-gradient(120deg, rgba(224, 34, 34, 0.13), transparent 42%),
    linear-gradient(180deg, #080606, #050505 64%, #0b0605);
}
.login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(224, 34, 34, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 34, 34, 0.075) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(105deg, #000 10%, transparent 72%);
  transform: perspective(700px) rotateX(1deg);
}
.login-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 46vw;
  height: 2px;
  right: -12vw;
  top: 31%;
  background: linear-gradient(90deg, transparent, rgba(224, 34, 34, 0.8), rgba(242, 96, 40, 0.15));
  box-shadow: 0 0 28px rgba(224, 34, 34, 0.55);
  transform: rotate(-28deg);
}
.hero-logo {
  display: block;
  width: min(520px, 78%);
  max-height: 188px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  margin: 6px 0 26px -10px;
  filter: drop-shadow(0 0 26px rgba(224, 34, 34, 0.28)) drop-shadow(0 8px 22px rgba(0, 0, 0, 0.55));
  mix-blend-mode: screen;
}
.brand-mark {
  border-radius: 3px;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
}
.hero-copy h1 span {
  filter: drop-shadow(0 0 18px rgba(224, 34, 34, 0.35));
}
.eyebrow { font-family: var(--font-tech); letter-spacing: 0.28em; }
.hero-meta b { font-family: var(--font-display); letter-spacing: 0.04em; }
.login-card {
  position: relative;
  border-radius: 2px;
  border-left: 3px solid var(--mecha-red);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}
.login-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 78px; height: 4px;
  background: linear-gradient(90deg, transparent, var(--mecha-orange));
  transform: rotate(45deg) translate(15px, -14px);
  transform-origin: right top;
}
.login-tip { border-left: 2px solid rgba(242, 96, 40, 0.55); border-radius: 0; }
.auth-switch { border-top: 1px dashed rgba(242, 96, 40, 0.2); padding-top: 14px; }

/* Shell detailing */
.sidebar {
  border-right: 1px solid rgba(224, 34, 34, 0.3);
  background:
    linear-gradient(180deg, rgba(224, 34, 34, 0.09), transparent 22%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0, rgba(255, 255, 255, 0.018) 1px, transparent 1px, transparent 5px),
    rgba(7, 7, 7, 0.98);
}
.sidebar::after {
  content: "META HERO // GUILD OS";
  position: absolute;
  bottom: 12px;
  left: 22px;
  color: rgba(255, 154, 102, 0.26);
  font-family: var(--font-tech);
  font-size: 8px;
  letter-spacing: 0.18em;
  pointer-events: none;
}
.sidebar .brand { border-bottom: 1px solid rgba(224, 34, 34, 0.22); padding-bottom: 18px; }
.nav-group-label { font-family: var(--font-tech); letter-spacing: 0.2em; }
.nav a {
  border-radius: 0;
  border-left: 2px solid transparent;
  letter-spacing: 0.04em;
}
.nav a .ico { color: rgba(255, 154, 102, 0.68); }
.nav a:hover { background: rgba(224, 34, 34, 0.08); border-left-color: rgba(242, 96, 40, 0.45); }
.nav a.active {
  background: linear-gradient(90deg, rgba(224, 34, 34, 0.24), rgba(242, 96, 40, 0.055) 72%, transparent);
  border-left-color: var(--mecha-orange);
  box-shadow: inset 0 0 22px rgba(224, 34, 34, 0.06);
}
.nav a.active::after {
  content: "▸";
  margin-left: auto;
  color: var(--mecha-orange);
  font-size: 10px;
}
.topbar {
  border-bottom: 1px solid rgba(224, 34, 34, 0.28);
  background:
    linear-gradient(90deg, rgba(224, 34, 34, 0.07), transparent 34%),
    rgba(5, 5, 5, 0.9);
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--mecha-red), var(--mecha-orange) 28%, transparent 68%);
  opacity: 0.8;
}
.crumb { font-family: var(--font-tech); letter-spacing: 0.06em; }
.crumb b { color: var(--mecha-ember); }

/* Page surfaces */
.content {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 64px 64px;
}
.page-head h1 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.page-head h1::before {
  content: "//";
  margin-right: 8px;
  color: var(--mecha-red);
  font-family: var(--font-tech);
  font-size: 0.55em;
  vertical-align: 0.22em;
  letter-spacing: -0.16em;
}
.page-head p { max-width: 760px; }
.card, .stat {
  border-radius: 2px;
  border-color: rgba(255, 154, 102, 0.15);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}
.card { position: relative; }
.card::before, .stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 34px; height: 2px;
  background: linear-gradient(90deg, var(--mecha-red), var(--mecha-orange));
  pointer-events: none;
}
.stat {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(224, 34, 34, 0.06), transparent 38%),
    linear-gradient(180deg, rgba(24, 22, 22, 0.96), rgba(10, 10, 10, 0.98));
}
.stat::after {
  content: "";
  position: absolute;
  right: -24px; bottom: -30px;
  width: 104px; height: 104px;
  border: 1px solid rgba(242, 96, 40, 0.1);
  transform: rotate(45deg);
  pointer-events: none;
}
.stat .label { font-family: var(--font-tech); letter-spacing: 0.1em; text-transform: uppercase; }
.stat .value { font-family: var(--font-display); letter-spacing: 0.02em; text-shadow: 0 0 26px rgba(242, 96, 40, 0.12); }
.section-title, .card-head h3 { letter-spacing: 0.035em; }
.card-head h3::before {
  content: "";
  display: inline-block;
  width: 4px; height: 13px;
  margin-right: 8px;
  background: linear-gradient(180deg, var(--mecha-orange), var(--mecha-red));
  transform: skewX(-14deg);
}

/* Buttons, chips, tables */
.btn {
  border-radius: 1px;
  font-family: var(--font-tech);
  letter-spacing: 0.06em;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.btn.primary {
  background: linear-gradient(112deg, var(--mecha-red), var(--mecha-orange));
  box-shadow: 0 8px 22px rgba(224, 34, 34, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn.ghost { background: rgba(255, 255, 255, 0.018); }
.btn.danger { background: rgba(224, 34, 34, 0.14); border-color: rgba(224, 34, 34, 0.42); }
.badge {
  border-radius: 1px;
  font-family: var(--font-tech);
  letter-spacing: 0.04em;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}
.uid-chip, .user-uid {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffb08a;
  font-family: var(--font-tech);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  border: 1px solid rgba(242, 96, 40, 0.24);
  background: rgba(224, 34, 34, 0.07);
  padding: 3px 7px;
  white-space: nowrap;
}
.user-uid { margin-top: 5px; align-self: flex-start; font-size: 9.5px; padding: 1px 5px; }
.uid-text { color: #ffb08a; letter-spacing: 0.04em; }
.table th {
  font-family: var(--font-tech);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 176, 138, 0.82);
  border-bottom: 1px solid rgba(224, 34, 34, 0.26);
}
.table td { border-bottom-color: rgba(255, 255, 255, 0.055); }
.table tbody tr:hover { background: rgba(224, 34, 34, 0.045); }
.input, input, select, textarea { border-radius: 1px; }
input:focus, select:focus, textarea:focus { border-color: rgba(242, 96, 40, 0.65); box-shadow: 0 0 0 3px rgba(224, 34, 34, 0.12); }
.tabs { border-bottom: 1px solid rgba(224, 34, 34, 0.2); }
.tab.active { color: #fff; border-color: var(--mecha-orange); }
.hero-banner {
  border-left: 4px solid var(--mecha-red);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.callout {
  border-left: 3px solid var(--mecha-orange);
  border-radius: 0;
  background: linear-gradient(90deg, rgba(224, 34, 34, 0.11), rgba(242, 96, 40, 0.025));
}
.tag-chip, .product-card, .auction-card, .hot-card { border-radius: 2px; }
.tag-chip.active { clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }

/* Angular dialog and toasts */
.modal { border-radius: 2px; border-top: 2px solid var(--mecha-red); }
.toast { border-radius: 1px; border-left: 3px solid var(--mecha-orange); }

@media (max-width: 900px) {
  .hero-logo { width: min(460px, 82%); max-height: 150px; margin-bottom: 20px; }
  .uid-chip { display: none; }
}
@media (max-width: 700px) {
  .logout-top { display: inline-flex; }
  .page-head h1::before { display: none; }
  .page-head h1 { letter-spacing: 0.015em; }
}
@media (max-width: 620px) {
  .hero-logo { width: 92%; max-height: 120px; margin-left: -4px; }
  .stat .value { font-size: 24px; }
  .card::before, .stat::before { width: 26px; }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar .password-btn, .topbar .role-badge, .topbar .guide-btn { display: none; }
  .topbar .crumb { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11.5px; }
}
@media (max-width: 420px) {
  .grid.cols-4 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .logout-top { padding: 0 7px; font-size: 10.5px; }
  .guide-btn { font-size: 10.5px; }
  .sidebar { width: 286px; }
}

/* Sidebar logo lockup */
.sidebar .brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.brand-logo {
  display: block;
  width: 168px;
  max-width: 88%;
  height: auto;
  object-fit: contain;
  object-position: left center;
  margin-left: -6px;
  filter: drop-shadow(0 0 12px rgba(224, 34, 34, 0.2));
  mix-blend-mode: screen;
}
.sidebar .brand-sub {
  padding-left: 2px;
  font-family: var(--font-tech);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  color: rgba(255, 176, 138, 0.42);
}
@media (max-width: 620px) {
  .brand-logo { width: 146px; }
}

/* ================= MetaHero v3: brand band, comic skin, card grids ================= */
body {
  background-color: #050505;
  background-image:
    radial-gradient(ellipse at 12% 8%, rgba(224, 34, 34, 0.13), transparent 44%),
    radial-gradient(ellipse at 88% 92%, rgba(242, 96, 40, 0.09), transparent 46%),
    repeating-linear-gradient(116deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 36px),
    radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1.4px);
  background-size: auto, auto, auto, 18px 18px;
  background-attachment: fixed;
}

/* Brand lockup: logo + wordmark between two hairlines */
.brand.brand-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  width: 100%;
  padding: 14px 0 12px;
  position: relative;
}
.brand.brand-band::before,
.brand.brand-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 96, 40, 0.62), rgba(224, 34, 34, 0.32), transparent);
}
.brand.brand-band::before { top: 0; }
.brand.brand-band::after { bottom: 0; }
.brand-band .brand-logo {
  display: block;
  width: 176px;
  max-width: 88%;
  height: auto;
  margin: 0;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 16px rgba(224, 34, 34, 0.24));
  mix-blend-mode: screen;
}
.brand-band .brand-sub {
  font-family: var(--font-tech);
  font-size: 8.5px;
  line-height: 1.4;
  letter-spacing: 0.34em;
  text-align: center;
  color: rgba(255, 176, 138, 0.58);
  padding: 0;
}
.sidebar .brand.brand-band {
  align-items: center;
  margin: 4px 0 2px;
  padding: 12px 0 11px;
}
.sidebar .brand.brand-band::before,
.sidebar .brand.brand-band::after { left: 8px; right: 8px; }
.sidebar .brand-band .brand-logo { width: 170px; }

/* Login: logo band + tagline only */
.login-hero {
  justify-content: center;
  gap: 38px;
}
.login-hero .brand.brand-band {
  width: min(560px, 100%);
  max-width: 560px;
  padding: 16px 0 14px;
}
.login-hero .brand-band .brand-logo { width: min(360px, 82%); }
.login-hero .brand-band .brand-sub { font-size: 10px; letter-spacing: 0.42em; }
.login-hero .hero-copy { padding: 0; }
.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 6.2vw, 88px);
  line-height: 1.02;
  letter-spacing: 0.025em;
  transform: rotate(-1.6deg);
  text-shadow: 4px 4px 0 rgba(224, 34, 34, 0.16);
}
.hero-copy h1 span {
  background: linear-gradient(102deg, #ffd1b8, #f26028 42%, #e02222 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy .eyebrow {
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #ffb08a;
}
.login-card h2,
.page-head h1,
.card-head h2,
.modal-head h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.035em;
}
.page-head h1 { text-shadow: 3px 3px 0 rgba(224, 34, 34, 0.13); }
.login-mobile-brand {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.login-mobile-brand .brand-logo { width: 150px; }

/* Identity partition tabs */
.identity-tabs {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin: 4px 0 18px;
  padding-bottom: 0;
  border-bottom: 1px solid rgba(242, 96, 40, 0.18);
}
.identity-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
  border: 1px solid transparent;
  border-bottom: 0;
}
.identity-tabs a:hover { color: var(--text); background: rgba(242, 96, 40, 0.06); }
.identity-tabs a.active {
  color: #fff;
  background: linear-gradient(100deg, rgba(224, 34, 34, 0.38), rgba(242, 96, 40, 0.16));
  border-color: rgba(242, 96, 40, 0.45);
}
.identity-tabs a.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, #e02222, #f26028);
  box-shadow: 0 0 12px rgba(242, 96, 40, 0.55);
}

/* Workbench: 12-col balance instead of one tall right rail */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.dashboard-grid > .stack { display: contents; }
.dashboard-grid .stack:first-child > section:nth-child(1) { grid-column: span 8; }
.dashboard-grid .stack:first-child > section:nth-child(2) { grid-column: span 7; }
.dashboard-grid .stack:first-child > section:nth-child(3) { grid-column: span 5; }
.dashboard-grid .stack:last-child > section:nth-child(1) { grid-column: span 4; }
.dashboard-grid .stack:last-child > section:nth-child(2) { grid-column: span 4; }
.dashboard-grid .stack:last-child > section:nth-child(3) { grid-column: span 4; }
.dashboard-grid .stack:last-child > section:nth-child(4) { grid-column: span 4; }
.dashboard-grid .stack:last-child > section:nth-child(5) { grid-column: span 12; }

/* Shop / auctions: multi-column card walls, never a single horizontal strip */
.product-grid,
.auction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.auction-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.product-grid .product-card,
.auction-grid .auction-card { height: 100%; }
.product-grid .product-card .body { display: flex; flex-direction: column; flex: 1; }
.product-grid .product-card .product-foot { margin-top: auto; }
.grid.cols-4 .product-card,
.grid.cols-4 .auction-card { height: 100%; }

/* A barely-there comic screentone corner */
.login-hero .hero-copy::after,
.content::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 140px;
  height: 84px;
  pointer-events: none;
  opacity: 0.18;
  background:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.32) 0 1px, transparent 1px 8px);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.content { position: relative; }
.login-hero .hero-copy { position: relative; }

@media (max-width: 1100px) {
  .dashboard-grid .stack:first-child > section:nth-child(1),
  .dashboard-grid .stack:first-child > section:nth-child(2),
  .dashboard-grid .stack:first-child > section:nth-child(3),
  .dashboard-grid .stack:last-child > section:nth-child(1),
  .dashboard-grid .stack:last-child > section:nth-child(2),
  .dashboard-grid .stack:last-child > section:nth-child(3),
  .dashboard-grid .stack:last-child > section:nth-child(4) { grid-column: span 6; }
  .dashboard-grid .stack:last-child > section:nth-child(5) { grid-column: span 12; }
}
@media (max-width: 720px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-grid .stack:first-child > section,
  .dashboard-grid .stack:last-child > section { grid-column: 1 / -1 !important; }
  .product-grid,
  .auction-grid { grid-template-columns: 1fr; }
  .login-hero { gap: 24px; }
  .login-hero .brand.brand-band { max-width: 92%; }
  .login-hero .brand-band .brand-logo { width: min(300px, 78%); }
  .login-hero .hero-copy h1 { font-size: clamp(42px, 12vw, 64px); }
}
@media (max-width: 620px) {
  .brand-band .brand-logo,
  .sidebar .brand-band .brand-logo { width: 154px; }
  .login-mobile-brand { display: flex; margin-bottom: 16px; }
  .login-mobile-brand .brand-logo { width: 128px; }
  .identity-tabs a { padding: 0 14px; font-size: 12px; }
}

/* Flow page AI module */
.ai-module-card { border-color: rgba(242, 96, 40, 0.22); background: linear-gradient(120deg, rgba(224, 34, 34, 0.07), rgba(12, 12, 14, 0.9) 58%); }
.ai-module-body { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.ai-module-copy { max-width: 720px; }
.ai-module-copy b { font-size: 15px; letter-spacing: 0.04em; }
.ai-module-copy p { margin-top: 7px; color: var(--muted); font-size: 12.5px; line-height: 1.75; }
.ai-module-copy p strong { color: #ffb08a; }
.ai-module-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ai-module-actions { display: flex; flex-direction: column; gap: 8px; min-width: 120px; text-align: center; }
@media (max-width: 700px) {
  .ai-module-body { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ai-module-actions { flex-direction: row; flex-wrap: wrap; text-align: left; }
}

/* Shop card body consistency */
.product-card .product-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  padding: 14px 16px 16px;
}
.product-card .product-body h3 { font-size: 15px; }
.product-card .product-body .product-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}
.product-card .product-body .btn { margin-top: 6px; }

.dashboard-grid { grid-auto-flow: dense; }
.dashboard-grid .kanban { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
.dashboard-grid .kanban-col { min-height: 132px; }

/* Member filters: compact one-line toolbar */
.members-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) 210px 180px auto auto;
  gap: 10px;
  align-items: center;
}
.members-filter .search-input { width: 100%; }
.members-filter select { width: 100%; }
@media (max-width: 900px) {
  .members-filter { grid-template-columns: 1fr 1fr; }
  .members-filter .search-input { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .members-filter { grid-template-columns: 1fr; }
  .members-filter .search-input { grid-column: auto; }
}

/* Keep the reminder rail from stretching the first dashboard row */
.dashboard-grid .stack:last-child > section:nth-child(1) .list {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Product cards read as real cards, not loose columns */
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(24, 24, 26, 0.96), rgba(14, 14, 16, 0.98));
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}
.product-card:hover { border-color: rgba(242, 96, 40, 0.3); }

/* Final dashboard density + product card surface */
.dashboard-grid .stack:last-child > section:nth-child(1) .list {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}
.product-grid .product-card {
  background: linear-gradient(160deg, rgba(28, 18, 18, 0.96), rgba(10, 10, 11, 0.98));
  border: 1px solid rgba(242, 96, 40, 0.2);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.product-grid .product-card:hover {
  border-color: rgba(242, 96, 40, 0.5);
  transform: translateY(-2px);
}
.product-grid .product-card .product-cover { background: radial-gradient(circle at 50% 40%, rgba(224,34,34,.22), rgba(10,10,11,.9)); }

.auction-grid .auction-card {
  background: linear-gradient(160deg, rgba(28, 18, 18, 0.96), rgba(10, 10, 11, 0.98));
  border: 1px solid rgba(242, 96, 40, 0.2);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.auction-grid .auction-card:hover { border-color: rgba(242, 96, 40, 0.5); transform: translateY(-2px); }
.auction-grid .auction-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.auction-grid .auction-top h3 { font-size: 15px; margin: 3px 0 0; }
.auction-grid .auction-image { height: 130px; border-radius: 4px; overflow: hidden; background: radial-gradient(circle at 50% 40%, rgba(224,34,34,.2), rgba(10,10,11,.9)); }
.auction-grid .auction-image img { width: 100%; height: 100%; object-fit: cover; }
.auction-grid .auction-stats { display: flex; gap: 20px; margin-top: auto; }
.auction-grid .auction-stats b { display: block; font-size: 16px; }
.auction-grid .auction-stats .price { color: #ff9a66; }

/* ================= Home-only v4: corner logo + irregular two-line slogan ================= */
.login-hero {
  justify-content: flex-start;
  gap: 0;
  padding-top: 46px;
}
.login-brand {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
}
.hero-corner-logo {
  display: block;
  width: clamp(190px, 20vw, 270px);
  height: auto;
  object-fit: contain;
  margin-left: -8px;
  filter: drop-shadow(0 0 18px rgba(224, 34, 34, 0.24));
  mix-blend-mode: screen;
}
.hero-copy.hero-copy-v4 {
  position: relative;
  margin-top: auto;
  margin-bottom: auto;
  padding: 0;
  max-width: 860px;
}
.hero-copy-v4::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 10%;
  width: 4px;
  height: 72%;
  background: linear-gradient(180deg, #e02222, #f26028 48%, transparent);
  transform: skewX(-9deg);
  opacity: 0.75;
}
.hero-copy-v4 h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(64px, 7.4vw, 112px);
  line-height: 1.07;
  letter-spacing: 0.02em;
  transform: none;
  text-shadow: none;
}
.hero-copy-v4 h1 .line {
  display: block;
  width: max-content;
  max-width: 100%;
  text-shadow: 5px 5px 0 rgba(224, 34, 34, 0.16);
}
.hero-copy-v4 .line-1 {
  margin-left: 0;
  transform: rotate(-1.4deg);
  color: #fff7f0;
}
.hero-copy-v4 .line-2 {
  margin-top: 0.08em;
  margin-left: 1.18em;
  transform: rotate(1.2deg);
  background: linear-gradient(102deg, #ffd1b8, #f26028 40%, #e02222 86%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.hero-copy-v4 .line-2::after {
  content: "";
  display: block;
  width: 88%;
  height: 7px;
  margin-top: 10px;
  margin-left: 4%;
  background: linear-gradient(90deg, rgba(224,34,34,.85), rgba(242,96,40,.15), transparent);
  transform: skewX(-28deg) rotate(-1deg);
  clip-path: polygon(0 38%, 100% 0, 97% 100%, 2% 70%);
}

/* Non-home pages: light mecha panel texture + comic hatching, no layout changes */
.shell .main { position: relative; }
.shell .main::before {
  content: "";
  position: fixed;
  inset: 0 0 0 var(--sidebar);
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  background:
    repeating-linear-gradient(118deg, transparent 0 46px, rgba(242, 96, 40, 0.045) 46px 47px),
    repeating-linear-gradient(28deg, transparent 0 92px, rgba(255, 255, 255, 0.03) 92px 93px);
  mask-image: radial-gradient(ellipse at 78% 18%, #000 0 26%, transparent 68%);
}
.shell .content { z-index: 1; }
.shell .card { position: relative; overflow: hidden; }
.shell .card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(242, 96, 40, 0.16);
  transform: rotate(45deg);
  pointer-events: none;
}
.shell .stat::after,
.shell .product-card::after,
.shell .auction-card::after { content: none; }

@media (max-width: 1100px) {
  .hero-copy-v4 .line-2 { margin-left: 0.8em; }
}
@media (max-width: 900px) {
  .login-hero { display: none; }
}
@media (max-width: 720px) {
  .hero-copy-v4 h1 { font-size: clamp(48px, 13vw, 72px); }
  .hero-copy-v4 .line-2 { margin-left: 0.62em; }
  .hero-corner-logo { width: 190px; }
}

.hero-copy-v4 .line-1 {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #fff7f0;
  color: #fff7f0;
}
.hero-copy-v4 .line-2 { -webkit-text-fill-color: transparent; }
@media (max-width: 900px) {
  .shell .main::before { left: 0; }
}

@media (max-width: 900px) and (min-width: 621px) {
  .login-mobile-brand { display: flex; margin-bottom: 18px; }
  .login-panel { padding-top: 34px; }
}

/* Home v5: compact corner logo, parallel graffiti lettering, bilingual signature */
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.hero-corner-logo {
  width: clamp(150px, 14.5vw, 205px);
  margin-left: -4px;
}
.guild-en {
  display: block;
  margin-left: 3px;
  color: rgba(255, 255, 255, 0.38);
  font-family: var(--font-tech);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.34em;
  line-height: 1;
  text-transform: uppercase;
}
.hero-copy-v4 h1 {
  font-family: var(--font-display);
  font-size: clamp(58px, 6.9vw, 104px);
  line-height: 1.06;
  letter-spacing: 0.015em;
  transform: skewX(-5.5deg) rotate(-1.6deg);
  transform-origin: left center;
  filter: drop-shadow(0 0 22px rgba(224, 34, 34, 0.18));
}
.hero-copy-v4 h1 .line {
  display: block;
  width: max-content;
  max-width: 100%;
  transform: none;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55);
  paint-order: stroke fill;
}
.hero-copy-v4 .line-1 {
  margin-left: 0;
  color: #fff8f1;
  -webkit-text-fill-color: #fff8f1;
  text-shadow:
    5px 5px 0 #d91f1f,
    9px 9px 0 rgba(7, 7, 8, 0.72),
    0 0 24px rgba(242, 96, 40, 0.26);
}
.hero-copy-v4 .line-2 {
  margin-left: 1.18em;
  margin-top: 0.1em;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(102deg, #fff0e3 0%, #ff9a66 28%, #f26028 58%, #e02222 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(6px 6px 0 rgba(88, 8, 8, 0.9));
}
.hero-copy-v4 .line-2::after {
  height: 6px;
  margin-top: 12px;
  background: linear-gradient(90deg, rgba(224, 34, 34, 0.9), rgba(242, 96, 40, 0.12), transparent);
}
.hero-en {
  margin: 24px 0 0 0.3em;
  color: rgba(255, 255, 255, 0.44);
  font-family: var(--font-tech);
  font-size: clamp(9px, 0.82vw, 11px);
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.6;
  text-transform: none;
  transform: skewX(-5.5deg);
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .hero-copy-v4 .line-2 { margin-left: 0.82em; }
  .hero-en { letter-spacing: 0.13em; }
}
@media (max-width: 900px) {
  .login-hero { display: none; }
}
@media (max-width: 720px) {
  .hero-corner-logo { width: 160px; }
  .hero-copy-v4 h1 { font-size: clamp(46px, 12vw, 66px); }
  .hero-copy-v4 .line-2 { margin-left: 0.62em; }
  .hero-en { white-space: normal; font-size: 8.5px; letter-spacing: 0.1em; }
}

/* Home v6: centered lockup, straight parallel lines, sharp mecha lettering */
.login-brand {
  align-items: center;
  width: max-content;
}
.guild-en {
  margin-left: 0;
  padding-left: 0.3em;
  color: rgba(255, 255, 255, 0.4);
  font-size: 8px;
  letter-spacing: 0.3em;
  text-align: center;
}
.hero-copy-v4 h1 {
  font-family: "Impact", "Arial Black", "SimHei", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  font-size: clamp(60px, 7.1vw, 108px);
  letter-spacing: -0.055em;
  line-height: 1.02;
  transform: none;
  filter: drop-shadow(0 0 20px rgba(224, 34, 34, 0.16));
}
.hero-copy-v4 h1 .line {
  transform: none;
  -webkit-text-stroke: 1.15px rgba(255, 255, 255, 0.62);
}
.hero-copy-v4 .line-1 {
  text-shadow:
    4px 4px 0 #d91f1f,
    7px 7px 0 rgba(7, 7, 8, 0.8);
}
.hero-copy-v4 .line-2 {
  margin-left: 0.95em;
  margin-top: 0.06em;
  filter: drop-shadow(5px 5px 0 rgba(88, 8, 8, 0.92));
}
.hero-copy-v4 .line-2::after {
  height: 4px;
  margin-top: 10px;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}
.hero-en {
  transform: none;
  margin-left: 0.15em;
  letter-spacing: 0.18em;
}
@media (max-width: 1100px) {
  .hero-copy-v4 .line-2 { margin-left: 0.58em; }
}
@media (max-width: 720px) {
  .hero-copy-v4 .line-2 { margin-left: 0.34em; }
}

/* Dedicated eight-character display face: YouShe BiaoTiHei, subset to 8 glyphs */
@font-face {
  font-family: "MetaHeroTitle";
  src: url("/fonts/metahero-title.ttf?v=2") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.hero-copy-v4 h1 {
  font-family: "MetaHeroTitle", "YouSheBiaoTiHei", "SimHei", sans-serif;
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
}

.ink-filter { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.hero-copy-v4 h1 { filter: url("#meta-ink") drop-shadow(0 0 20px rgba(224, 34, 34, 0.16)); }
