/* ============================================================
   特特电竞 TETE ESPORTS · 打手端 · 设计系统与样式
   金云白主题 / 暖白 + 鎏金 / 衬线字
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #07060a;
  --bg-deep: #040308;
  --sidebar: #0a080f;
  --panel: #0d0b13;
  --panel-2: #12101a;
  --panel-3: #181422;
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.16);
  --border-mint: rgba(255,45,120,.38);
  --text: #f7f4fa;
  --text-2: #b3adc0;
  --text-3: #766f85;
  --text-4: #4d4758;
  --mint: #ff2d78;
  --mint-strong: #ff5c9d;
  --mint-dim: rgba(255,45,120,.14);
  --mint-dim-2: rgba(255,45,120,.07);
  --mint-ink: #1a0410;
  --blue: #7aa2ff;
  --violet: #b18cff;
  --gold: #ffb020;
  --danger: #ff4d5e;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --font-ui: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "HarmonyOS Sans SC", sans-serif;
  --font-num: "Barlow Condensed", "DIN Alternate", "Bahnschrift", "Segoe UI", sans-serif;
  --sidebar-w: 184px;
  --topbar-h: 56px;
  --content-max: 1080px;
}

html[data-theme="violet"] {
  --mint: #a99bff;
  --mint-strong: #c3b9ff;
  --mint-dim: rgba(169, 155, 255, 0.14);
  --mint-dim-2: rgba(169, 155, 255, 0.07);
  --mint-ink: #171230;
  --border-mint: rgba(169, 155, 255, 0.30);
  --glow-mint: rgba(169, 155, 255, 0.05);
}

html[data-theme="violet"] .page-bg::after {
  background:
    radial-gradient(900px 500px at 72% -8%, rgba(96, 82, 170, 0.16), transparent 60%),
    radial-gradient(700px 500px at 12% 105%, rgba(169, 155, 255, 0.06), transparent 65%);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--mint-dim); color: var(--mint-strong); }

/* custom scrollbar */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1a2533; border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #253342; }
* { scrollbar-width: thin; scrollbar-color: #1a2533 transparent; }

/* ---------- Page background ---------- */
.page-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: #05080e;
}
.page-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 72% -8%, rgba(70, 110, 160, 0.13), transparent 60%),
    radial-gradient(700px 500px at 12% 105%, rgba(255, 45, 120, 0.045), transparent 65%),
    #05080e;
}
.page-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(155, 185, 215, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 185, 215, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(1200px 700px at 50% 0%, #000 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(1200px 700px at 50% 0%, #000 40%, transparent 90%);
}
.noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scanline {
  position: fixed; top: 0; left: 0; right: 0; height: 1px; z-index: 40; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(120, 180, 230, 0.12), transparent);
}

/* ---------- Typography helpers ---------- */
.micro {
  font-size: 10.4px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500; color: var(--text-3);
}
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.dim { color: var(--text-3); }
.dim2 { color: var(--text-4); }
.mint-text { color: var(--mint); }
.gold-text { color: var(--gold); }
.danger-text { color: var(--danger); }

/* ---------- App shell ---------- */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w);
  background: var(--sidebar); border-right: 1px solid var(--border);
  z-index: 50; display: flex; flex-direction: column; padding: 20px 14px 16px;
}
.app-main {
  margin-left: var(--sidebar-w); min-height: 100vh;
  display: flex; flex-direction: column;
}

/* ---------- Sidebar ---------- */
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.brand-logo {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px;
  display: grid; place-items: center; color: var(--mint);
  background: var(--mint-dim);
  box-shadow: inset 0 0 0 1px var(--border-mint);
}
.brand-logo svg { width: 20px; height: 20px; }
.brand-name { font-size: 16.1px; font-weight: 700; line-height: 1.15; }
.brand-sub { font-size: 9.2px; letter-spacing: 0.16em; color: var(--text-3); text-transform: uppercase; }

.side-label { margin: 22px 6px 10px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  height: 40px; display: flex; align-items: center; gap: 10px;
  padding: 0 10px; border-radius: var(--radius-sm); color: var(--text-2);
  font-size: 15px; position: relative; transition: background .16s, color .16s;
}
.nav-item svg { width: 17px; height: 17px; flex: 0 0 17px; }
.nav-item:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.nav-item.active {
  background: linear-gradient(90deg, var(--mint-dim), var(--mint-dim-2));
  color: var(--mint);
}
.nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px;
  background: var(--mint); border-radius: 2px;
}
.nav-item.active::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-sm);
  box-shadow: inset 0 0 18px -8px var(--mint); pointer-events: none;
}

.side-spacer { flex: 1; min-height: 12px; }

.delta-card {
  position: relative; overflow: hidden; border-radius: var(--radius-md);
  padding: 14px 14px 12px; margin-bottom: 12px;
  background:
    linear-gradient(150deg, rgba(40, 60, 105, 0.55), rgba(18, 26, 44, 0.9)),
    linear-gradient(120deg, rgba(99,242,194,0.06), transparent);
  border: 1px solid var(--border-strong);
}
.delta-card::before {
  content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px;
  background: linear-gradient(225deg, rgba(120, 150, 220, 0.28), transparent 70%);
  transform: skewX(-16deg);
}
.delta-tag { font-size: 9.2px; letter-spacing: 0.2em; color: var(--blue); text-transform: uppercase; }
.delta-title { font-size: 16.1px; font-weight: 700; line-height: 1.5; margin: 8px 0 6px; }
.delta-sub { font-size: 9.2px; letter-spacing: 0.12em; color: var(--text-3); text-transform: uppercase; }

.side-bottom { display: flex; flex-direction: column; gap: 10px; }
.cs-btn {
  height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 10px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  color: var(--text-2); font-size: 13.8px; transition: all .16s;
}
.cs-btn svg { width: 15px; height: 15px; }
.cs-btn:hover { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--border-strong); }

.user-card {
  display: flex; align-items: center; gap: 9px; padding: 8px;
  border-radius: var(--radius-md); border: 1px solid var(--border);
  background: var(--panel); transition: border-color .16s;
}
.user-card:hover { border-color: var(--border-strong); }
.avatar {
  position: relative; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  background: linear-gradient(140deg, #20324a, #0c1522);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center; color: var(--mint-strong);
  font-size: 15px; font-weight: 700; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .dot {
  position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--mint); border: 2px solid var(--panel);
}
.avatar.xl { width: 48px; height: 48px; flex-basis: 48px; font-size: 19.5px; }
.avatar.lg { width: 56px; height: 56px; flex-basis: 56px; font-size: 23px; }
.user-meta { min-width: 0; flex: 1; }
.user-meta .name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta .sub { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card .chev { color: var(--text-4); flex: 0 0 auto; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 45; height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; background: rgba(5, 8, 14, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.tb-left { display: flex; align-items: center; gap: 12px; }
.tb-grid { color: var(--text-3); display: grid; place-items: center; }
.tb-grid svg { width: 16px; height: 16px; }
.breadcrumb { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.breadcrumb .crumb-root { color: var(--text-3); }
.breadcrumb .crumb-sep { color: var(--text-4); }
.breadcrumb .crumb-cur { color: var(--text); font-weight: 600; }
.tb-right { display: flex; align-items: center; gap: 10px; }
.tb-date { font-size: 13.8px; color: var(--text-2); }
.tb-sep { width: 1px; height: 18px; background: var(--border-strong); }
.icon-btn {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: grid; place-items: center; color: var(--text-2); position: relative;
  transition: all .16s;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.icon-btn .badge-dot {
  position: absolute; right: 6px; top: 6px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--danger); box-shadow: 0 0 0 2px var(--bg);
}
.text-btn {
  height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  color: var(--text-2); font-size: 13.8px; transition: all .16s;
}
.text-btn svg { width: 15px; height: 15px; }
.text-btn:hover { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--border-strong); }

/* ---------- Main content ---------- */
.main {
  width: 100%; max-width: var(--content-max); margin: 0 auto;
  padding: 22px 32px 40px; flex: 1;
}
.page-enter { animation: fadeUp .24s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-title { font-size: 36.8px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; margin: 4px 0 6px; }
.page-sub { font-size: 15px; color: var(--text-2); }
.info-round {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
  display: grid; place-items: center; border: 1px solid var(--border); color: var(--text-3);
  transition: all .16s;
}
.info-round svg { width: 16px; height: 16px; }
.info-round:hover { color: var(--text); border-color: var(--border-strong); }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(145deg, rgba(17, 27, 43, 0.88), rgba(7, 12, 20, 0.94));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.025);
}
.card-hover { transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.card-hover:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: 0 22px 55px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.03); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 500; transition: all .16s; border: 1px solid transparent;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--mint); color: var(--mint-ink); font-weight: 600; }
.btn-primary:hover:not(:disabled) { background: var(--mint-strong); }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn-secondary { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-secondary:hover:not(:disabled) { border-color: var(--mint); color: var(--mint-strong); background: var(--mint-dim-2); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { color: var(--text); background: rgba(255,255,255,0.04); }
.btn-danger { background: transparent; border-color: rgba(255,107,122,0.4); color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: rgba(255,107,122,0.1); border-color: var(--danger); }
.btn-lg { height: 48px; font-size: 16.1px; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13.8px; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }

/* ---------- Inputs ---------- */
.field { display: block; width: 100%; height: 40px; padding: 0 12px;
  background: rgba(5, 10, 18, 0.6); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text); font-size: 15px; transition: all .16s; }
.field::placeholder { color: var(--text-4); }
.field:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(99,242,194,0.12); }
textarea.field { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
.field-error { font-size: 11.5px; color: var(--danger); margin-top: 5px; }
.field-label { font-size: 13.8px; color: var(--text-2); margin-bottom: 7px; display: block; }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-4); pointer-events: none; }
.search-wrap .field { padding-left: 36px; padding-right: 32px; }
.search-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: var(--text-3);
}
.search-clear:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.search-clear svg { position: static; transform: none; width: 13px; height: 13px; }

/* ---------- Tabs / chips ---------- */
.tabs { display: inline-flex; background: rgba(8, 13, 22, 0.6); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 3px; gap: 2px; }
.tab {
  height: 30px; padding: 0 14px; border-radius: 7px; font-size: 13.8px; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 6px; transition: all .16s; white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--mint-dim); color: var(--mint); box-shadow: inset 0 0 0 1px var(--border-mint); }
.tab svg { width: 14px; height: 14px; }

.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px;
  border-radius: 999px; font-size: 11.5px; border: 1px solid var(--border); color: var(--text-2);
}
.chip-mint { color: var(--mint); border-color: var(--border-mint); background: var(--mint-dim-2); }
.chip-gold { color: var(--gold); border-color: rgba(240,198,116,0.3); }
.chip-blue { color: var(--blue); border-color: rgba(145,168,255,0.3); }

.status-capsule {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px;
  border-radius: 999px; font-size: 12.6px; font-weight: 500;
}
.status-capsule .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sc-online { color: var(--mint); background: rgba(99,242,194,0.12); }
.sc-settled { color: var(--mint); background: rgba(99,242,194,0.10); }
.sc-active { color: var(--blue); background: rgba(145,168,255,0.12); }
.sc-review { color: var(--gold); background: rgba(240,198,116,0.12); }
.sc-report { color: var(--violet); background: rgba(169,155,255,0.12); }
.sc-open { color: var(--mint); background: rgba(99,242,194,0.12); }

/* ---------- Section header ---------- */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-title { font-size: 20.7px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.sec-title .sup {
  font-family: var(--font-num); font-size: 12.6px; color: var(--mint); font-weight: 600;
  background: var(--mint-dim); padding: 0 6px; border-radius: 999px; line-height: 18px;
}

/* ---------- Hall ---------- */
.hall-top { display: grid; grid-template-columns: 1.78fr 1fr; gap: 24px; margin-bottom: 16px; }
.banner {
  position: relative; overflow: hidden; min-height: 212px; border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(120deg, rgba(16, 28, 48, 0.92) 0%, rgba(10, 17, 30, 0.9) 55%, rgba(24, 34, 58, 0.7) 100%);
  display: flex;
}
.banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 45%, rgba(80, 110, 180, 0.10) 60%, transparent 75%);
}
.banner::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--border-mint), transparent 70%);
}
.banner-body { position: relative; z-index: 2; padding: 24px 0 20px 26px; display: flex; flex-direction: column; max-width: 62%; }
.banner-tag { color: var(--mint); font-size: 10.4px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }
.banner-hello { font-size: 46px; font-weight: 800; line-height: 1.12; margin-top: 12px; }
.banner-hello .row { display: block; }
.banner-hello .row.mint { color: var(--mint); }
.banner-desc { font-size: 13.8px; color: var(--text-2); margin-top: 12px; max-width: 380px; }
.banner-watermark {
  position: absolute; left: 26px; bottom: 16px; z-index: 2;
  font-family: var(--font-num); font-size: 9.2px; letter-spacing: 0.24em; color: var(--text-4); text-transform: uppercase;
}
.banner-art {
  position: absolute; right: 0; top: 0; bottom: 0; width: 46%; z-index: 1;
  mask-image: linear-gradient(90deg, transparent, #000 30%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%);
  overflow: hidden;
}
.banner-art .hud { position: absolute; inset: 0; color: rgba(99,242,194,0.16); }
.banner-art .figure {
  position: absolute; right: -8px; bottom: 0; top: 0; width: 100%;
  background: radial-gradient(circle at 60% 40%, rgba(90, 120, 190, 0.5), transparent 60%);
}
.banner-art .figure-silhouette {
  position: absolute; right: 8%; bottom: 0; width: 150px; height: 92%; opacity: 0.9;
  background:
    radial-gradient(50px 64px at 50% 22%, #243650 0%, #142030 70%, transparent 71%),
    radial-gradient(30px 30px at 34% 20%, rgba(99,242,194,0.25), transparent 70%),
    radial-gradient(30px 30px at 66% 20%, rgba(99,242,194,0.25), transparent 70%),
    linear-gradient(160deg, #1b2c46 20%, #0f1a2c 60%, #0a1320 100%);
  clip-path: polygon(46% 0%, 62% 6%, 60% 22%, 78% 34%, 74% 60%, 58% 66%, 58% 100%, 42% 100%, 42% 66%, 26% 60%, 22% 34%, 40% 22%, 38% 6%);
  filter: drop-shadow(0 0 18px rgba(99,242,194,0.12));
}

.status-card { padding: 22px; display: flex; flex-direction: column; min-height: 212px; }
.sc-top { display: flex; align-items: center; gap: 12px; }
.sc-top .info { min-width: 0; flex: 1; }
.sc-name { font-size: 18.4px; font-weight: 600; }
.sc-sub { font-size: 12.6px; color: var(--text-3); margin-top: 2px; }
.sc-mid { font-size: 13.8px; color: var(--text-2); margin: 18px 0; }
.sc-stats { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr 1fr; }
.sc-stat { text-align: center; position: relative; }
.sc-stat + .sc-stat::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--border); }
.sc-stat .val { font-family: var(--font-num); font-size: 32.2px; font-weight: 600; line-height: 1.05; }
.sc-stat .val .small { font-size: 17.2px; font-weight: 500; color: var(--text-3); }
.sc-stat .lbl { font-size: 11.5px; color: var(--text-3); margin-top: 6px; }

.tip-bar {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px;
  border-radius: var(--radius-md); border: 1px solid var(--border);
  background: rgba(11, 18, 29, 0.6); margin-bottom: 20px; transition: all .16s;
}
.tip-bar:hover { border-color: var(--border-strong); }
.tip-bar svg { width: 16px; height: 16px; color: var(--mint); flex: 0 0 auto; }
.tip-bar .txt { font-size: 13.8px; color: var(--text-2); flex: 1; }
.tip-bar .arrow { color: var(--text-4); }

.hall-body { display: grid; grid-template-columns: minmax(0, 1fr) 208px; gap: 20px; align-items: start; }
.hall-main { min-width: 0; }
.filter-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-row .search-wrap { width: 300px; max-width: 100%; }

/* empty state */
.empty-card { min-height: 370px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; position: relative; }
.empty-icon {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(155,185,215,0.06); border: 1px solid var(--border); color: var(--text-3);
  margin-bottom: 16px;
}
.empty-icon svg { width: 20px; height: 20px; }
.empty-title { font-size: 16.1px; font-weight: 500; }
.empty-sub { font-size: 12.6px; color: var(--text-3); margin-top: 6px; margin-bottom: 18px; }
.empty-foot-l { position: absolute; left: 18px; bottom: 16px; font-size: 11.5px; color: var(--text-4); }
.empty-foot-r { position: absolute; right: 18px; bottom: 16px; font-family: var(--font-num); font-size: 10.4px; letter-spacing: 0.2em; color: var(--text-4); text-transform: uppercase; }

/* order card */
.order-card { padding: 16px 18px; }
.order-card .oc-top { display: flex; align-items: center; gap: 6px; }
.order-card .oc-status { margin-left: auto; }
.order-title { font-size: 17.2px; font-weight: 600; margin-top: 10px; }
.order-no { font-size: 11.5px; color: var(--text-4); font-family: var(--font-num); margin-top: 3px; }
.order-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.order-meta .om { font-size: 12.6px; color: var(--text-3); }
.order-meta .om b { color: var(--text-2); font-weight: 500; margin-left: 3px; }
.order-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.amount { font-family: var(--font-num); color: var(--mint); font-weight: 600; line-height: 1; }
.amount .cur { font-size: 15px; }
.amount .int { font-size: 27.6px; }
.amount .frac { font-size: 13.8px; color: var(--mint-strong); opacity: 0.75; }
.amount.big .int { font-size: 46px; }
.amount.big .cur { font-size: 23px; }
.amount.white { color: var(--text); }
.amount.white .frac { color: var(--text-3); }
.amount.gold { color: var(--gold); }
.amount.gold .frac { color: var(--gold); opacity: 0.75; }

/* right column cards */
.side-card { padding: 16px; }
.side-card .sc-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.side-card .sc-head svg { width: 15px; height: 15px; color: var(--text-3); }
.side-card .sc-body { font-size: 12.6px; color: var(--text-3); line-height: 1.7; }
.steps { margin-top: 4px; }
.step { display: flex; gap: 10px; position: relative; padding-bottom: 16px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 1px; background: var(--border); }
.step:last-child::before { display: none; }
.step-num {
  width: 22px; height: 22px; flex: 0 0 22px; border-radius: 6px; display: grid; place-items: center;
  font-family: var(--font-num); font-size: 11.5px; color: var(--mint); background: var(--mint-dim);
  box-shadow: inset 0 0 0 1px var(--border-mint); position: relative; z-index: 1;
}
.step .s-t { font-size: 13.8px; color: var(--text); font-weight: 500; }
.step .s-d { font-size: 11.5px; color: var(--text-3); margin-top: 2px; line-height: 1.55; }

/* ---------- Orders page ---------- */
.dual-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 20px; background: rgba(8,13,22,0.5); }
.dual-tab {
  height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; color: var(--text-2); position: relative; transition: all .16s;
}
.dual-tab svg { width: 16px; height: 16px; }
.dual-tab:hover { color: var(--text); }
.dual-tab.active { color: var(--mint); background: var(--mint-dim-2); }
.dual-tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--mint); }
.dual-tab + .dual-tab { border-left: 1px solid var(--border); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { height: 86px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; }
.stat-card .st-lbl { font-size: 13.8px; color: var(--text-2); display: flex; align-items: center; justify-content: space-between; }
.stat-card .st-lbl svg { width: 14px; height: 14px; color: var(--text-4); }
.stat-card .st-val { font-family: var(--font-num); font-size: 34.5px; font-weight: 600; line-height: 1; }
.stat-card .st-val.mint { color: var(--mint); }

.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.seats-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { width: 24px; height: 24px; flex-basis: 24px; font-size: 11.5px; border: 2px solid var(--panel); margin-right: -7px; }
.avatar-stack .avatar:last-child { margin-right: 0; }
.seats-info { font-size: 12.6px; color: var(--text-3); }
.seats-info b { color: var(--text-2); font-weight: 500; }
.progress-line { flex: 1; height: 3px; background: rgba(155,185,215,0.1); border-radius: 99px; overflow: hidden; }
.progress-line i { display: block; height: 100%; background: var(--mint); border-radius: 99px; }

/* ---------- Wallet ---------- */
.wallet-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-bottom: 16px; }
.balance-card { position: relative; overflow: hidden; min-height: 300px; padding: 26px; display: flex; flex-direction: column;
  background: linear-gradient(150deg, rgba(16, 30, 50, 0.94), rgba(9, 18, 30, 0.96)); }
.balance-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,242,194,0.12), transparent 70%); }
.balance-label { display: flex; align-items: center; gap: 7px; font-size: 13.8px; color: var(--text-2); }
.balance-label svg { width: 14px; height: 14px; color: var(--text-4); }
.balance-amount { margin: 18px 0 6px; }
.balance-note { font-size: 11.5px; color: var(--text-3); margin-bottom: 22px; }
.balance-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.balance-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-family: var(--font-num); font-size: 10.4px; letter-spacing: 0.12em; color: var(--text-4); text-transform: uppercase; }
.wallet-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wstat-card { padding: 16px; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; }
.wstat-card .w-lbl { display: flex; align-items: center; justify-content: space-between; font-size: 12.6px; color: var(--text-2); }
.wstat-card .w-lbl svg { width: 15px; height: 15px; color: var(--text-4); }
.wstat-card .w-val { font-family: var(--font-num); font-size: 25.3px; font-weight: 600; }
.wstat-card .w-val .cur { font-size: 15px; }
.wstat-card .w-val .frac { font-size: 13.8px; color: var(--text-3); }
.wstat-card .w-val.gold { color: var(--gold); }

.balance-bar {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px;
  border-radius: var(--radius-md); border: 1px solid var(--border); background: rgba(11,18,29,0.6); margin-bottom: 22px;
  transition: border-color .3s, box-shadow .3s;
}
.balance-bar.highlight { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(99,242,194,0.1); }
.balance-bar svg { width: 16px; height: 16px; color: var(--mint); flex: 0 0 auto; }
.balance-bar .txt { font-size: 13.8px; color: var(--text-2); flex: 1; }
.balance-bar .link { font-size: 13.8px; color: var(--mint); display: flex; align-items: center; gap: 3px; }
.balance-bar .link svg { width: 13px; height: 13px; }

.ledger-row { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--border); transition: background .16s; }
.ledger-row:last-child { border-bottom: none; }
.ledger-row:hover { background: rgba(255,255,255,0.02); }
.ledger-icon {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(155,185,215,0.06); border: 1px solid var(--border); color: var(--text-3);
}
.ledger-icon svg { width: 14px; height: 14px; }
.ledger-icon.mint { color: var(--mint); background: var(--mint-dim); border-color: var(--border-mint); }
.ledger-icon.danger { color: var(--danger); background: rgba(255,107,122,0.1); border-color: rgba(255,107,122,0.3); }
.ledger-icon.gold { color: var(--gold); background: rgba(240,198,116,0.1); border-color: rgba(240,198,116,0.3); }
.ledger-main { flex: 1; min-width: 0; }
.ledger-title { font-size: 15px; font-weight: 500; }
.ledger-meta { font-size: 11.5px; color: var(--text-4); font-family: var(--font-num); margin-top: 2px; }
.ledger-right { text-align: right; }
.ledger-amount { font-family: var(--font-num); font-size: 16.1px; font-weight: 600; }
.ledger-amount.pos { color: var(--mint); }
.ledger-amount.neg { color: var(--text); }
.ledger-amount.zero { color: var(--text-2); }
.ledger-status { font-size: 10.4px; color: var(--text-4); margin-top: 2px; }

/* ---------- Profile ---------- */
.profile-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 20px; align-items: start; }
.name-card { position: relative; overflow: hidden; min-height: 300px; padding: 24px;
  background: linear-gradient(150deg, rgba(24, 30, 58, 0.9), rgba(11, 15, 28, 0.96)); }
.name-card::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(145,168,255,0.1), transparent 70%); }
.nc-head { display: flex; align-items: flex-start; justify-content: space-between; }
.nc-edit { width: 30px; height: 30px; border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--text-2); border: 1px solid var(--border); transition: all .16s; }
.nc-edit:hover { color: var(--text); border-color: var(--border-strong); }
.nc-edit svg { width: 15px; height: 15px; }
.nc-body { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.nc-name { font-size: 27.6px; font-weight: 700; }
.nc-sub { font-size: 12.6px; color: var(--text-3); margin-top: 3px; }
.nc-skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.skill-tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12.6px; color: var(--text-2); border: 1px solid var(--border-strong); background: rgba(255,255,255,0.02); }
.skill-tag svg { width: 12px; height: 12px; color: var(--mint); }
.nc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.nc-cell .k { font-size: 10.4px; letter-spacing: 0.08em; color: var(--text-4); text-transform: uppercase; }
.nc-cell .v { font-family: var(--font-num); font-size: 15px; color: var(--text); margin-top: 3px; }
.nc-foot { display: flex; align-items: center; gap: 7px; margin-top: 18px; font-size: 10.4px; color: var(--text-4); }
.nc-foot svg { width: 12px; height: 12px; }

.settings-card { overflow: hidden; }
.setting-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); transition: background .16s; }
.setting-row:last-child { border-bottom: none; }
.setting-row:hover { background: rgba(255,255,255,0.02); }
.setting-row .si { width: 32px; height: 32px; flex: 0 0 32px; border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--text-2); background: rgba(155,185,215,0.05); border: 1px solid var(--border); }
.setting-row .si svg { width: 16px; height: 16px; }
.setting-row .s-main { flex: 1; min-width: 0; }
.setting-row .s-title { font-size: 15px; font-weight: 500; }
.setting-row .s-sub { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
.setting-row .s-chev { color: var(--text-4); display: flex; }
.setting-row .s-chev svg { width: 16px; height: 16px; }

.toggle { width: 40px; height: 22px; border-radius: 999px; background: rgba(155,185,215,0.15); position: relative; transition: background .18s; flex: 0 0 auto; }
.toggle::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #9aa9b7; transition: all .18s; }
.toggle.on { background: var(--mint); }
.toggle.on::after { left: 21px; background: var(--mint-ink); }

.theme-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-top: 14px; }
.theme-opts { display: flex; gap: 8px; margin-left: auto; }
.theme-opt { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: var(--radius-sm);
  font-size: 13.8px; color: var(--text-2); border: 1px solid var(--border); transition: all .16s; }
.theme-opt .swatch { width: 10px; height: 10px; border-radius: 50%; }
.theme-opt.active { color: var(--text); border-color: var(--border-strong); background: rgba(255,255,255,0.04); }
.theme-opt.sw-mint .swatch { background: #ff2d78; }
.theme-opt.sw-violet .swatch { background: #a99bff; }

.profile-foot-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: rgba(11,18,29,0.5); font-size: 12.6px; color: var(--text-3); }
.profile-foot-note svg { width: 14px; height: 14px; color: var(--mint); flex: 0 0 auto; }
.logout-btn { width: 100%; margin-top: 14px; height: 44px; border: 1px solid var(--border-strong); color: var(--text-2); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; transition: all .16s; }
.logout-btn:hover { color: var(--danger); border-color: rgba(255,107,122,0.4); background: rgba(255,107,122,0.05); }
.logout-btn svg { width: 16px; height: 16px; }

/* ---------- Modal / Drawer ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(2, 6, 12, 0.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: overlayIn .16s ease;
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 520px; max-height: 88vh; overflow: auto;
  background: linear-gradient(160deg, #0e1724, #0a111c);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5); padding: 22px;
  animation: modalIn .16s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-title { font-size: 18.4px; font-weight: 600; }
.modal-close { width: 30px; height: 30px; border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--text-3); transition: all .16s; }
.modal-close:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.modal-close svg { width: 16px; height: 16px; }
.modal-foot { display: flex; gap: 10px; margin-top: 20px; }
.modal-foot .btn { flex: 1; }

.drawer-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(2,6,12,0.72); backdrop-filter: blur(6px); animation: overlayIn .16s ease; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 201; width: 480px; max-width: 100vw;
  background: linear-gradient(180deg, #0c1420, #080e17);
  border-left: 1px solid var(--border-strong); box-shadow: -30px 0 80px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; animation: drawerIn .26s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: none; } }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.drawer-head .dh-title { flex: 1; min-width: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.drawer-foot .btn { flex: 1; }

/* detail drawer */
.dd-status-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dd-title { font-size: 18.4px; font-weight: 600; }
.dd-no { font-size: 11.5px; color: var(--text-4); font-family: var(--font-num); margin-top: 3px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.info-cell { padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(155,185,215,0.04); border: 1px solid var(--border); }
.info-cell .k { font-size: 10.4px; letter-spacing: 0.08em; color: var(--text-4); text-transform: uppercase; }
.info-cell .v { font-size: 13.8px; color: var(--text); margin-top: 3px; }
.section-label { font-size: 12.6px; letter-spacing: 0.08em; color: var(--text-3); text-transform: uppercase; margin: 18px 0 10px; }
.seat-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); margin-bottom: 8px; }
.seat-row .sr-tag { font-family: var(--font-num); font-size: 11.5px; color: var(--text-3); }
.seat-row .sr-name { font-size: 13.8px; font-weight: 500; flex: 1; }
.timeline { position: relative; padding-left: 0; }
.tl-item { display: flex; gap: 12px; position: relative; padding-bottom: 18px; }
.tl-item::before { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--border); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 17px; height: 17px; flex: 0 0 17px; border-radius: 50%; background: rgba(155,185,215,0.1); border: 1px solid var(--border-strong); position: relative; z-index: 1; }
.tl-item.done .tl-dot { background: var(--mint); border-color: var(--mint); box-shadow: 0 0 0 4px var(--mint-dim); }
.tl-item.done .tl-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--mint-ink); }
.tl-t { font-size: 13.8px; font-weight: 500; color: var(--text); }
.tl-item:not(.done) .tl-t { color: var(--text-3); }
.tl-d { font-size: 11.5px; color: var(--text-4); margin-top: 1px; }
.settle-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 13.8px; }
.settle-row .sv { font-family: var(--font-num); }
.settle-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; font-weight: 600; }
.settle-row.total .sv { color: var(--mint); font-size: 18.4px; }

/* upload */
.upload-zone { border: 1px dashed var(--border-strong); border-radius: var(--radius-md); padding: 22px; text-align: center; color: var(--text-3); font-size: 13.8px; transition: all .16s; cursor: pointer; }
.upload-zone:hover { border-color: var(--mint); color: var(--text-2); background: var(--mint-dim-2); }
.upload-previews { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.upload-preview { position: relative; width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview .rm { position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; display: grid; place-items: center; font-size: 11.5px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; width: 320px; max-width: calc(100vw - 40px); }
.toast {
  position: relative; padding: 13px 14px 13px 16px; border-radius: var(--radius-md);
  background: rgba(10, 16, 26, 0.92); border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px); box-shadow: 0 18px 50px rgba(0,0,0,0.4);
  display: flex; gap: 10px; align-items: flex-start; animation: toastIn .22s cubic-bezier(0.22,1,0.36,1);
}
.toast::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--mint); }
.toast.error::before { background: var(--danger); }
.toast.info::before { background: var(--blue); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.toast.out { animation: toastOut .2s ease forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }
.toast .ti { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; }
.toast .ti svg { width: 18px; height: 18px; }
.toast .ti.mint { color: var(--mint); }
.toast .ti.danger { color: var(--danger); }
.toast .ti.info { color: var(--blue); }
.toast .tt { font-size: 15px; font-weight: 500; }
.toast .td { font-size: 12.6px; color: var(--text-2); margin-top: 1px; }

/* ---------- Skeleton ---------- */
.skeleton { border-radius: var(--radius-sm); background: linear-gradient(90deg, rgba(155,185,215,0.06) 25%, rgba(155,185,215,0.12) 37%, rgba(155,185,215,0.06) 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.sk-card { padding: 18px; }
.sk-line { height: 12px; margin-bottom: 10px; }
.sk-line.w40 { width: 40%; }
.sk-line.w70 { width: 70%; }
.sk-line.w90 { width: 90%; }

/* ---------- Notification dropdown ---------- */
.pop { position: absolute; top: 46px; right: 0; width: 320px; z-index: 100;
  background: rgba(11, 17, 27, 0.97); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5); overflow: hidden; animation: modalIn .16s ease; }
.pop-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 15px; font-weight: 600; }
.pop-head .clear { font-size: 12.6px; color: var(--mint); }
.pop-head .clear:hover { color: var(--mint-strong); }
.notif { display: flex; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.notif:last-child { border-bottom: none; }
.notif .n-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--danger); margin-top: 6px; flex: 0 0 6px; }
.notif.read .n-dot { background: transparent; }
.notif .n-title { font-size: 13.8px; font-weight: 500; }
.notif .n-body { font-size: 12.6px; color: var(--text-3); margin-top: 2px; }
.notif .n-time { font-size: 11.5px; color: var(--text-4); margin-top: 3px; font-family: var(--font-num); }

/* ---------- Poster ---------- */
.poster { width: 260px; height: 360px; margin: 0 auto; border-radius: 12px; border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, #101a2c, #080e18); padding: 20px; display: flex; flex-direction: column; align-items: center;
  position: relative; overflow: hidden; }
.poster::before { content: ""; position: absolute; inset: 0; background: radial-gradient(200px 200px at 50% 0%, rgba(99,242,194,0.12), transparent 70%); }
.poster .p-brand { font-size: 12.6px; letter-spacing: 0.16em; color: var(--mint); }
.poster .p-name { font-size: 20.7px; font-weight: 700; margin-top: 10px; }
.poster .p-code { font-family: var(--font-num); font-size: 12.6px; color: var(--text-2); margin-top: 4px; }
.qr { width: 130px; height: 130px; margin-top: 20px; display: grid; grid-template-columns: repeat(21, 1fr); gap: 1px; padding: 6px; background: #fff; border-radius: 8px; }
.qr i { background: #081018; border-radius: 1px; }
.qr i.l { background: transparent; }
.poster .p-foot { margin-top: auto; font-family: var(--font-num); font-size: 9.2px; letter-spacing: 0.2em; color: var(--text-4); text-transform: uppercase; }

/* ---------- 404 ---------- */
.p404 { min-height: 50vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.p404 .code { font-family: var(--font-num); font-size: 73.6px; font-weight: 700; color: var(--mint); opacity: 0.5; }
.p404 .msg { font-size: 16.1px; }
.p404 .sub { font-size: 12.6px; color: var(--text-3); margin-bottom: 16px; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--content-max); margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px 22px; margin-top: 32px;
  font-size: 10.4px; letter-spacing: 0.1em; color: var(--text-3); text-transform: uppercase;
}

/* ---------- Responsive ---------- */
@media (max-width: 1439px) {
  .main { padding-left: 24px; padding-right: 24px; }
  .footer { padding-left: 24px; padding-right: 24px; }
  .hall-body { grid-template-columns: minmax(0, 1fr) 200px; }
}
@media (max-width: 1199px) {
  :root { --sidebar-w: 72px; }
  .sidebar { padding: 18px 10px 14px; align-items: center; }
  .brand { padding: 0; }
  .brand .brand-meta { display: none; }
  .brand-logo { width: 38px; height: 38px; flex-basis: 38px; }
  .side-label { display: none; }
  .side-nav { width: 100%; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-item span { display: none; }
  .nav-item.active::before { left: -10px; }
  .delta-card { display: none; }
  .cs-btn { justify-content: center; padding: 0; }
  .cs-btn span { display: none; }
  .user-card { justify-content: center; padding: 6px; }
  .user-card .user-meta, .user-card .chev { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .topbar { padding: 0 20px; }
}
@media (max-width: 1023px) {
  .hall-top { grid-template-columns: 1fr; }
  .hall-body { grid-template-columns: 1fr; }
  .hall-body .right-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .wallet-top { grid-template-columns: 1fr; }
  .order-grid { grid-template-columns: 1fr; }
  .banner-hello { font-size: 39.1px; }
}
@media (max-width: 767px) {
  .sidebar { display: none; }
  .app-main { margin-left: 0; }
  .topbar { padding: 0 12px; }
  .tb-date { display: none; }
  .main { padding: 16px 14px 90px; }
  .footer { display: none; }
  .banner { min-height: 180px; }
  .banner-hello { font-size: 29.9px; }
  .banner-desc { display: none; }
  .banner-art { opacity: 0.4; }
  .hall-body .right-col { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .filter-row .search-wrap { width: 100%; }
  .page-title { font-size: 29.9px; }
  .modal { padding: 18px; border-radius: 16px 16px 0 0; }
  .overlay { align-items: flex-end; padding: 0; }
  .drawer { width: 100%; }
  .toast-wrap { right: 12px; bottom: 76px; }
  .mobile-nav { display: flex; }
}
.mobile-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; height: 60px;
  background: rgba(7, 11, 18, 0.92); backdrop-filter: blur(14px); border-top: 1px solid var(--border);
}
.mobile-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-3); font-size: 11.5px; }
.mobile-nav a svg { width: 19px; height: 19px; }
.mobile-nav a.active { color: var(--mint); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* amount size overrides inside stat cards */
.sc-stat .val .amount .int { font-size: 32.2px; }
.sc-stat .val .amount .cur { font-size: 17.2px; }
.sc-stat .val .amount .frac { font-size: 17.2px; }
.wstat-card .w-val .amount .int { font-size: 25.3px; }
.wstat-card .w-val .amount .cur { font-size: 15px; }
.wstat-card .w-val .amount .frac { font-size: 13.8px; }

/* ---------- Login ---------- */
body:not(.authed) .sidebar,
body:not(.authed) .app-main,
body:not(.authed) .mobile-nav { display: none !important; }
.login-screen {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background:
    radial-gradient(900px 500px at 72% -8%, rgba(70,110,160,.13), transparent 60%),
    radial-gradient(700px 500px at 12% 105%, rgba(99,242,194,.05), transparent 65%),
    #05080e;
}
.login-screen.hidden { display: none; }
.login-card {
  width: 100%; max-width: 380px; padding: 32px 28px;
  background: linear-gradient(145deg, rgba(17,27,43,.92), rgba(7,12,20,.96));
  border: 1px solid var(--border-strong); border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.login-logo { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px; display: grid; place-items: center;
  background: var(--mint-dim); box-shadow: inset 0 0 0 1px var(--border-mint); color: var(--mint); }
.login-logo svg { width: 30px; height: 30px; }
.login-brand { text-align: center; font-size: 25.3px; font-weight: 800; }
.login-brand-sub { text-align: center; color: var(--text-3); margin-top: 4px; }
.login-title { font-size: 15px; color: var(--text-2); margin: 22px 0 14px; }
.login-label { display: block; font-size: 13.8px; color: var(--text-2); margin-bottom: 6px; }
.login-input { display: block; width: 100%; height: 40px; padding: 0 12px; margin-bottom: 14px;
  background: rgba(5,10,18,.6); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 15px; }
.login-input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(99,242,194,.12); }
.login-err { min-height: 16px; font-size: 12.6px; color: var(--danger); margin-bottom: 8px; }
.login-btn { height: 44px; }
.login-hint { text-align: center; font-size: 12.6px; color: var(--text-4); margin-top: 16px; }
.login-back { text-align: center; font-size: 12.6px; margin-top: 10px; }
.login-back a { color: var(--text-3); }
.login-back a:hover { color: var(--mint); }



/* 原生下拉框/表单控件深色适配 */
select, .select { color-scheme: dark; background-color: #0f0c15; color: var(--text); border: 1px solid var(--border-strong); border-radius: 8px; padding: 0 10px; height: 38px; font-size: 14px; }
select option, .select option, option { background-color: #0d0b13; color: var(--text); }
input, textarea { color-scheme: dark; }
