/* ================= Zohlen Cloud · 设计系统 ================= */
:root {
  --bg: #070a14;
  --bg-2: #0b1020;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-solid: #111731;
  --panel-hi: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-hi: rgba(255, 255, 255, 0.16);
  --text: #eef1fb;
  --muted: #8b93b0;
  --dim: #5d6482;
  --brand: #6366f1;
  --brand-2: #a855f7;
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #f87171;
  --grad: linear-gradient(135deg, #6366f1, #a855f7);
  --grad-soft: linear-gradient(135deg, rgba(99,102,241,.18), rgba(168,85,247,.12));
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(99, 102, 241, .4); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.2); }

/* 背景装饰 */
.bg-glow { position: fixed; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0; opacity: .55; }
.glow-a { width: 620px; height: 620px; background: #4338ca; top: -220px; left: -160px; }
.glow-b { width: 560px; height: 560px; background: #7e22ce; bottom: -240px; right: -140px; opacity: .42; }
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 80%);
  mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 80%);
}

/* ================= 通用组件 ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: var(--panel-hi); color: var(--text);
  border-radius: 12px; padding: 10px 18px; font-size: 14px; font-family: inherit;
  cursor: pointer; transition: all .2s cubic-bezier(.4,0,.2,1); white-space: nowrap;
}
.btn:hover { background: rgba(255,255,255,.1); border-color: var(--line-hi); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); border: none; font-weight: 600; color: #fff; box-shadow: 0 8px 24px rgba(99, 102, 241, .35); }
.btn-primary:hover { box-shadow: 0 12px 32px rgba(99, 102, 241, .5); filter: brightness(1.06); }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; margin-top: 10px; }
.btn-lg { padding: 13px 20px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.btn-danger { color: var(--err); border-color: rgba(248,113,113,.35); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.link-btn { background: none; border: none; color: var(--brand); cursor: pointer; font-size: 13px; font-family: inherit; padding: 0; transition: .2s; }
.link-btn:hover { color: #a5b4fc; text-decoration: underline; }
.grad-text {
  background: linear-gradient(120deg, #818cf8, #c084fc 45%, #22d3ee);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tag-soft { font-size: 11px; padding: 3px 10px; border-radius: 999px; background: rgba(99,102,241,.14); color: #a5b4fc; border: 1px solid rgba(99,102,241,.28); }
.hint { font-size: 12px; color: var(--dim); line-height: 1.7; margin-top: 10px; }

/* ================= 认证页 ================= */
.auth-screen {
  position: relative; z-index: 1; min-height: 100vh;
  display: grid; grid-template-columns: 1.15fr 460px; gap: 64px;
  align-items: center; max-width: 1180px; margin: 0 auto; padding: 60px 32px;
}
.auth-hero { animation: fadeUp .7s ease both; }
.hero-badge {
  display: inline-block; font-size: 12px; letter-spacing: .5px; color: #c7d2fe;
  background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.3);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 26px;
}
.hero-title { font-size: 52px; line-height: 1.15; font-weight: 800; letter-spacing: -1px; }
.hero-sub { color: var(--muted); font-size: 15px; margin-top: 20px; line-height: 1.9; }
.hero-cards { display: flex; flex-direction: column; gap: 12px; margin-top: 38px; max-width: 460px; }
.hero-card {
  display: flex; gap: 14px; align-items: flex-start; padding: 15px 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  backdrop-filter: blur(12px); transition: .25s;
}
.hero-card:hover { border-color: var(--line-hi); transform: translateX(4px); }
.hc-icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: var(--grad-soft); display: grid; place-items: center; font-size: 16px; }
.hero-card b { display: block; font-size: 14px; }
.hero-card span { font-size: 12px; color: var(--muted); }

.auth-card {
  position: relative; background: rgba(17, 23, 49, .72); border: 1px solid var(--line);
  border-radius: 24px; padding: 38px 34px; backdrop-filter: blur(24px);
  box-shadow: var(--shadow); animation: fadeUp .7s .1s ease both;
}
.auth-logo { display: flex; justify-content: center; margin-bottom: 18px; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 13px; background: var(--grad);
  display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #fff;
  box-shadow: 0 8px 24px rgba(99,102,241,.45);
}
.auth-card h2 { text-align: center; font-size: 23px; font-weight: 700; }
.auth-desc { text-align: center; color: var(--muted); font-size: 13px; margin-top: 6px; margin-bottom: 24px; }
.tab-switch { display: flex; background: rgba(0,0,0,.28); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.tab { flex: 1; border: none; background: transparent; color: var(--muted); padding: 9px; border-radius: 9px; cursor: pointer; font-size: 14px; font-family: inherit; transition: .25s; }
.tab.active { background: var(--panel-hi); color: var(--text); font-weight: 600; box-shadow: 0 2px 10px rgba(0,0,0,.3); }

.field { display: block; margin-bottom: 16px; }
.field > span { font-size: 12px; color: var(--muted); margin-bottom: 7px; display: block; letter-spacing: .2px; }
.field input, .field textarea, .select {
  width: 100%; padding: 12px 14px; font-size: 14px; font-family: inherit;
  background: rgba(0,0,0,.28); border: 1px solid var(--line); border-radius: 11px;
  color: var(--text); outline: none; transition: .2s;
}
.field input:focus, .field textarea:focus, .select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(99,102,241,.16); background: rgba(0,0,0,.4);
}
.field textarea { resize: vertical; }
.select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.pwd-meter { height: 3px; background: rgba(255,255,255,.08); border-radius: 3px; margin: -8px 0 14px; overflow: hidden; }
.pwd-meter i { display: block; height: 100%; width: 0; border-radius: 3px; transition: .3s; background: var(--err); }
.msg { text-align: center; font-size: 13px; margin-top: 14px; min-height: 18px; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--err); }

/* ================= 应用框架 ================= */
.app-shell { position: relative; z-index: 1; display: flex; min-height: 100vh; }
.sidebar {
  width: 236px; flex-shrink: 0; display: flex; flex-direction: column;
  background: rgba(10, 14, 28, .72); backdrop-filter: blur(20px);
  border-right: 1px solid var(--line); padding: 22px 16px; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 22px; }
.brand-text b { display: block; font-size: 15px; letter-spacing: .2px; }
.brand-text span { font-size: 11px; color: var(--dim); }
.side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 11px;
  color: var(--muted); text-decoration: none; font-size: 13.5px; transition: .2s; position: relative;
}
.nav-item svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { background: rgba(255,255,255,.05); color: var(--text); }
.nav-item.active { background: var(--grad-soft); color: #c7d2fe; border: 1px solid rgba(99,102,241,.25); }
.nav-badge { margin-left: auto; background: var(--err); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 999px; font-weight: 700; }
.side-foot { border-top: 1px solid var(--line); padding-top: 14px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 0 6px 10px; }
.avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; flex-shrink: 0; }
.side-user-info { min-width: 0; }
.side-user-info b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-info span { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 32px 18px; border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 20, .6); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 20px; font-weight: 700; letter-spacing: -.2px; }
.page-sub { font-size: 12px; color: var(--dim); margin-top: 2px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.balance-pill { display: flex; align-items: baseline; gap: 8px; padding: 8px 16px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.balance-pill b { font-size: 15px; color: var(--warn); font-variant-numeric: tabular-nums; }
.main-scroll { padding: 26px 32px 60px; animation: fadeIn .35s ease both; }

/* ================= 卡片 / 面板 ================= */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(16px); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h3 { font-size: 15px; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.grid-2 > * { min-width: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; backdrop-filter: blur(16px); transition: .25s; }
.stat-card:hover { border-color: var(--line-hi); transform: translateY(-2px); }
.stat-card.primary { background: linear-gradient(140deg, rgba(99,102,241,.22), rgba(168,85,247,.1) 60%, transparent); border-color: rgba(99,102,241,.32); }
.stat-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.stat-ico { font-size: 15px; opacity: .85; }
.stat-value { font-size: 30px; font-weight: 750; letter-spacing: -1px; margin: 10px 0 8px; font-variant-numeric: tabular-nums; }
.stat-value.sm { font-size: 24px; }
.stat-foot { font-size: 11.5px; color: var(--dim); }

/* ================= 表格 ================= */
.table-wrap { border-radius: 14px; overflow: auto; border: 1px solid var(--line); background: rgba(0,0,0,.14); max-width: 100%; }
.table-wrap.bare { border: none; background: transparent; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.05); white-space: nowrap; }
th { color: var(--dim); font-weight: 500; font-size: 11.5px; letter-spacing: .3px; text-transform: uppercase; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(255,255,255,.025); }
tbody tr:last-child td { border-bottom: none; }
td.mono, .mono { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: 12px; color: var(--muted); }
.in { color: var(--ok); font-weight: 600; }
.out { color: var(--err); font-weight: 600; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 500; }
.tag.paid, .tag.ok, .tag.succeeded { background: rgba(52,211,153,.14); color: var(--ok); }
.tag.pending, .tag.requested { background: rgba(251,191,36,.14); color: var(--warn); }
.tag.cancelled, .tag.rejected, .tag.failed { background: rgba(248,113,113,.14); color: var(--err); }
.tag.processing, .tag.refunded { background: rgba(34,211,238,.14); color: #22d3ee; }
.empty { text-align: center; color: var(--dim); padding: 34px 20px; font-size: 13px; }
.tx-compact td:nth-child(2) { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.tx-compact td:nth-child(3), .tx-compact th:nth-child(3) { text-align: right; }
.tx-compact td, .tx-compact th { padding: 11px 10px; }

/* ================= 支付页 ================= */
.quick-amounts { display: flex; gap: 9px; margin-bottom: 16px; flex-wrap: wrap; }
.chip { background: rgba(0,0,0,.26); border: 1px solid var(--line); color: var(--text); padding: 8px 17px; border-radius: 10px; cursor: pointer; font-size: 13px; font-family: inherit; transition: .2s; }
.chip:hover { border-color: rgba(99,102,241,.5); }
.chip.active { border-color: var(--brand); background: rgba(99,102,241,.16); color: #c7d2fe; }
.products { display: flex; flex-direction: column; gap: 10px; }
.product {
  display: flex; align-items: center; gap: 13px; text-align: left;
  background: rgba(0,0,0,.2); border: 1px solid var(--line); color: var(--text);
  padding: 14px 16px; border-radius: 13px; cursor: pointer; font-family: inherit; transition: .22s;
}
.product:hover { border-color: rgba(99,102,241,.45); background: rgba(99,102,241,.08); transform: translateX(3px); }
.p-ico { font-size: 20px; width: 38px; height: 38px; display: grid; place-items: center; background: var(--panel-hi); border-radius: 10px; }
.p-info { flex: 1; min-width: 0; }
.p-info b { display: block; font-size: 13.5px; }
.p-info span { font-size: 11.5px; color: var(--dim); }
.p-price { font-size: 17px; font-weight: 700; color: var(--warn); }
.p-price i { font-size: 11px; font-weight: 400; color: var(--dim); font-style: normal; }

/* 渠道能力 */
.cap-list { display: flex; flex-direction: column; gap: 9px; }
.cap-item { display: flex; align-items: flex-start; gap: 11px; padding: 12px 14px; background: rgba(0,0,0,.18); border: 1px solid var(--line); border-radius: 12px; }
.cap-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.cap-dot.on { background: var(--ok); box-shadow: 0 0 8px rgba(52,211,153,.8); }
.cap-dot.off { background: var(--dim); }
.cap-main b { font-size: 13px; }
.cap-main p { font-size: 11.5px; color: var(--dim); margin-top: 2px; line-height: 1.6; }
.cap-badge { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; margin-left: 6px; white-space: nowrap; }
.cap-badge.auto { background: rgba(52,211,153,.14); color: var(--ok); }
.cap-badge.manual { background: rgba(251,191,36,.14); color: var(--warn); }

/* ================= 收款码管理 ================= */
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.qr-card { background: rgba(0,0,0,.2); border: 1px solid var(--line); border-radius: 14px; padding: 13px; display: flex; flex-direction: column; gap: 10px; transition: .2s; }
.qr-card:hover { border-color: var(--line-hi); }
.qr-card.off { opacity: .45; }
.qr-card img { width: 100%; height: 150px; object-fit: contain; background: #fff; border-radius: 10px; }
.qr-name { font-weight: 600; font-size: 13.5px; line-height: 1.4; min-height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qr-meta { font-size: 11.5px; color: var(--dim); margin-top: 3px; }
.qr-ops { display: flex; gap: 7px; margin-top: auto; }
.qr-preview-wrap { text-align: center; margin-bottom: 10px; }
.qr-preview-wrap img { max-width: 150px; max-height: 150px; border-radius: 11px; border: 1px solid var(--line); }
.file-field { position: relative; }
.file-field input[type=file] { position: absolute; width: 100%; height: 100%; opacity: 0; cursor: pointer; top: 0; left: 0; }
.file-drop { border: 1px dashed var(--line-hi); border-radius: 11px; padding: 22px; text-align: center; color: var(--dim); font-size: 12.5px; transition: .2s; }
.file-field:hover .file-drop { border-color: var(--brand); color: #a5b4fc; }

/* ================= 退款 ================= */
.refund-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rule { display: flex; gap: 12px; padding: 15px; background: rgba(0,0,0,.18); border: 1px solid var(--line); border-radius: 13px; }
.rule-ico { font-size: 18px; }
.rule b { font-size: 13px; display: block; margin-bottom: 3px; }
.rule p { font-size: 11.5px; color: var(--dim); line-height: 1.65; }
.refund-order-info { background: rgba(0,0,0,.22); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; font-size: 12.5px; color: var(--muted); margin-bottom: 16px; line-height: 1.9; }
.refund-order-info b { color: var(--text); }
.refund-mode-tip { font-size: 12px; color: var(--warn); background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.25); border-radius: 11px; padding: 11px 14px; margin-bottom: 14px; line-height: 1.7; }

/* ================= 支付方式选择 ================= */
.pay-method-block { margin: 6px 0 16px; }
.pm-label { font-size: 12px; color: var(--muted); margin-bottom: 9px; display: flex; align-items: center; gap: 7px; }
.pm-skeleton, .pm-empty { font-size: 12.5px; color: var(--dim); padding: 16px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; }
.pay-methods { display: flex; flex-direction: column; gap: 9px; }
.pm-item {
  position: relative; display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 11px 13px; border-radius: 13px; background: rgba(255,255,255,.03);
  border: 1px solid var(--line); cursor: pointer; text-align: left; transition: .18s;
  color: var(--text); font-family: inherit; font-size: 13px;
}
.pm-item:hover:not(.disabled) { border-color: var(--line-hi); background: rgba(255,255,255,.055); }
.pm-item.active { border-color: var(--pm-color, var(--brand)); background: rgba(99,102,241,.09); box-shadow: 0 0 0 3px rgba(99,102,241,.08); }
.pm-logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; flex: none; }
.pm-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.pm-text b { font-size: 13.5px; font-weight: 600; }
.pm-text i { font-style: normal; font-size: 11px; color: var(--dim); }
.pm-rec { margin-left: auto; font-size: 10px; padding: 2px 7px; border-radius: 999px; background: rgba(52,211,153,.14); color: var(--ok); border: 1px solid rgba(52,211,153,.3); flex: none; }
.pm-check { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-hi); display: grid; place-items: center; font-size: 11px; color: transparent; flex: none; transition: .18s; }
.pm-item.active .pm-check { background: var(--pm-color, var(--brand)); border-color: transparent; color: #fff; }
.pm-item.disabled { opacity: .42; cursor: not-allowed; }

/* ================= 收银台 ================= */
.modal { position: fixed; inset: 0; background: rgba(3, 5, 12, .78); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(6px); animation: fadeIn .2s ease both; }
.modal-box { width: 400px; max-height: 92vh; overflow: auto; background: linear-gradient(180deg, #131a35, #0d1226); border: 1px solid var(--line-hi); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); animation: slideUp .3s cubic-bezier(.34,1.4,.64,1) both; }
.modal-box.sm { width: 400px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-head h3 { font-size: 16px; }
.btn-close { background: rgba(255,255,255,.06); border: none; color: var(--muted); width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 13px; transition: .2s; }
.btn-close:hover { background: rgba(255,255,255,.12); color: var(--text); }
.cashier-amount-row { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.cashier-amount-row span { font-size: 12.5px; color: var(--muted); }
.cashier-amount-row b { font-size: 26px; color: var(--text); font-variant-numeric: tabular-nums; }
.match-amount { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.3); border-radius: 12px; padding: 12px 15px; margin-bottom: 12px; }
.ma-left { display: flex; flex-direction: column; }
.ma-left span { font-size: 11px; color: var(--muted); }
.ma-left b { font-size: 21px; color: var(--warn); font-variant-numeric: tabular-nums; }
.match-amount .hint { width: 100%; margin: 0; }
.order-no { font-size: 11.5px; color: var(--dim); margin-bottom: 14px; }
.order-no span { font-family: ui-monospace, monospace; color: var(--muted); }
.qr-area { text-align: center; margin-bottom: 14px; }
.qr-frame { width: 186px; height: 186px; margin: 0 auto 10px; border-radius: 14px; background: #fff; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line-hi); }
.qr-frame img { width: 100%; height: 100%; object-fit: contain; }
.qr-tip { font-size: 12px; color: var(--muted); line-height: 1.7; }
.qr-tip b { color: var(--warn); }
.countdown { text-align: center; font-size: 12px; color: var(--dim); margin-bottom: 12px; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.pay-status { display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,.035); border: 1px dashed var(--line); border-radius: 11px; padding: 12px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); animation: pulse 1.4s infinite; }

/* 新版收银台（微信优先主题） */
.modal-box.cashier { width: 424px; padding: 0; overflow: hidden; }
.modal-box.cashier .modal-head { margin: 0; padding: 18px 20px 15px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.045), transparent); }
.ch-brand { display: flex; align-items: center; gap: 11px; }
.ch-logo { width: 37px; height: 37px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; background: var(--pay-color, var(--brand)); flex: none; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.ch-brand h3 { font-size: 15.5px; line-height: 1.3; }
.ch-sub { font-size: 11.5px; color: var(--dim); }
.modal-box.cashier .modal-body { padding: 18px 20px 20px; }
.cashier-hero { text-align: center; margin-bottom: 16px; }
.ch-amount-label { font-size: 11.5px; color: var(--muted); letter-spacing: .6px; }
.ch-amount { font-size: 34px; font-weight: 700; letter-spacing: -.6px; font-variant-numeric: tabular-nums; line-height: 1.25; }
.ch-amount-split { font-size: 11.5px; color: var(--dim); }
.ch-amount-split b { color: var(--warn); font-weight: 600; }
.ch-amount-split .plus { margin: 0 3px; opacity: .6; }
.cashier .qr-card { background: #fff; border-radius: 16px; padding: 11px 11px 9px; width: fit-content; margin: 0 auto 12px; box-shadow: 0 12px 34px rgba(0,0,0,.38); }
.cashier .qr-card .qr-frame { width: 192px; height: 192px; border: none; border-radius: 8px; margin: 0 auto 7px; }
.cashier .qr-card .qr-tip { font-size: 11.5px; color: #545c6b; }
.cashier .qr-card .qr-tip b { color: inherit; font-weight: 600; }
.cashier-actions { display: flex; gap: 9px; justify-content: center; margin-bottom: 14px; }
.btn-soft { background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--text); }
.btn-soft:hover { background: rgba(255,255,255,.1); }
.pay-steps { display: flex; flex-direction: column; gap: 7px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.step { display: flex; gap: 9px; font-size: 12px; color: var(--muted); line-height: 1.55; }
.step-n { width: 17px; height: 17px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--muted); font-size: 10px; display: grid; place-items: center; flex: none; margin-top: 2px; }
.cashier-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.cashier-foot .countdown, .cashier-foot .order-no { margin: 0; }
.cashier-actions2 { display: flex; gap: 8px; margin-top: 10px; }
.cashier-actions2 .btn { flex: 1; }
.btn.danger { color: var(--err); }

/* 账单批量导入 */
.bill-import textarea { width: 100%; background: rgba(0,0,0,.28); border: 1px solid var(--line); border-radius: 12px; padding: 12px; color: var(--text); font-family: ui-monospace, monospace; font-size: 11.5px; line-height: 1.65; resize: vertical; margin-bottom: 10px; }
.bill-import textarea:focus { outline: none; border-color: var(--brand); }
.import-row { display: flex; gap: 10px; align-items: center; }
.import-row .select { width: 148px; flex: none; }
.import-row .btn { flex: none; min-width: 132px; }
.import-result:not(:empty) { margin-top: 12px; }
.imp-ok { font-size: 12.5px; color: var(--ok); background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.28); border-radius: 10px; padding: 10px 12px; }
.imp-err { font-size: 12.5px; color: var(--err); background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.28); border-radius: 10px; padding: 10px 12px; }
.imp-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.imp-stats b { color: var(--text); }
.imp-stats .in b { color: var(--ok); }

/* ================= 抽屉 ================= */
.drawer-mask { position: fixed; inset: 0; background: rgba(3,5,12,.7); z-index: 90; backdrop-filter: blur(4px); animation: fadeIn .2s both; }
.drawer { position: absolute; right: 0; top: 0; bottom: 0; width: 430px; max-width: 92vw; background: linear-gradient(180deg, #10162c, #0a0f1f); border-left: 1px solid var(--line-hi); padding: 24px; overflow: auto; animation: slideLeft .28s cubic-bezier(.4,0,.2,1) both; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.drawer-body h4 { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .5px; margin: 20px 0 10px; }
.order-kv { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,.06); font-size: 13px; }
.order-kv span { color: var(--muted); }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item::before { content: ""; position: absolute; left: -20px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--panel-solid); border: 2px solid var(--dim); }
.tl-item.done::before { border-color: var(--brand); background: var(--brand); }
.tl-item.ok::before { border-color: var(--ok); background: var(--ok); }
.tl-label { font-size: 13px; }
.tl-time { font-size: 11.5px; color: var(--dim); }

/* ================= 开放 API ================= */
.new-key { margin-top: 14px; background: rgba(52,211,153,.07); border: 1px solid rgba(52,211,153,.35); border-radius: 12px; padding: 13px 15px; font-size: 12px; line-height: 2; word-break: break-all; }
.new-key b { color: var(--ok); }
.new-key .warn { color: var(--warn); }
.code { background: rgba(0,0,0,.34); border: 1px solid var(--line); border-radius: 11px; padding: 13px; font-size: 11.5px; line-height: 1.8; overflow: auto; white-space: pre-wrap; font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; color: #c7d2fe; margin-bottom: 10px; }
.debug-out { min-height: 60px; margin-top: 10px; }
.api-list { display: flex; flex-direction: column; gap: 8px; }
.api-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); padding: 8px 10px; background: rgba(0,0,0,.18); border-radius: 9px; }
.method { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 5px; flex-shrink: 0; }
.method.post { background: rgba(99,102,241,.2); color: #a5b4fc; }
.method.get { background: rgba(52,211,153,.16); color: var(--ok); }
.api-row code { font-size: 11.5px; color: var(--text); font-family: ui-monospace, monospace; }
.api-row span:last-child { margin-left: auto; font-size: 11px; color: var(--dim); }
.gateway-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 12px; }
.gateway-item { display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,.18); border: 1px solid var(--line); border-radius: 11px; padding: 11px 14px; font-size: 13px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.dot.off { background: var(--dim); }
.gw-state { font-size: 11.5px; color: var(--dim); }
.gw-state.on { color: var(--ok); }

/* ================= Toast ================= */
.toast { position: fixed; top: 22px; left: 50%; transform: translateX(-50%) translateY(-18px); background: rgba(20, 27, 52, .96); border: 1px solid var(--line-hi); color: var(--text); padding: 12px 22px; border-radius: 13px; font-size: 13.5px; opacity: 0; pointer-events: none; transition: .28s cubic-bezier(.4,0,.2,1); z-index: 300; box-shadow: var(--shadow); max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: rgba(52,211,153,.5); }
.toast.err { border-color: rgba(248,113,113,.5); }

/* ================= 动画 ================= */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes slideLeft { from { transform: translateX(100%); } to { transform: none; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(251,191,36,.5); }
  70% { box-shadow: 0 0 0 8px rgba(251,191,36,0); }
  100% { box-shadow: 0 0 0 0 rgba(251,191,36,0); }
}
.view { animation: fadeUp .35s ease both; }

/* ================= 响应式 ================= */
@media (max-width: 1080px) {
  .auth-screen { grid-template-columns: 1fr; gap: 40px; padding: 40px 24px; }
  .auth-hero { text-align: center; }
  .hero-title { font-size: 38px; }
  .hero-cards { margin: 28px auto 0; }
  .auth-card { margin: 0 auto; width: 100%; max-width: 440px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .refund-rules { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; padding: 12px 16px; border-right: none; border-bottom: 1px solid var(--line); gap: 12px; }
  .brand { padding: 0; }
  .brand-text { display: none; }
  .side-nav { flex-direction: row; overflow-x: auto; gap: 2px; }
  .nav-item { padding: 8px 12px; font-size: 12.5px; white-space: nowrap; }
  .nav-item svg { display: none; }
  .side-foot { border: none; padding: 0; }
  .side-user { display: none; }
  .main-scroll { padding: 18px 16px 50px; }
  .topbar { padding: 16px; }
  .stat-grid { gap: 12px; }
  .stat-value { font-size: 24px; }
  .drawer { width: 100%; }
}

@media (max-width: 520px) {
  .modal { padding: 12px; align-items: flex-end; }
  .modal-box.cashier { width: 100%; border-radius: 20px 20px 0 0; }
  .modal-box.cashier .modal-body { padding: 16px 16px 20px; }
  .ch-amount { font-size: 30px; }
  .cashier .qr-card .qr-frame { width: 172px; height: 172px; }
  .cashier-actions .btn { flex: 1; }
  .import-row { flex-direction: column; }
  .import-row .select { width: 100%; }
}

/* ================= 账单导入指南 ================= */
.bill-guide { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; padding: 13px 15px;
  background: linear-gradient(135deg, rgba(99,102,241,.10), rgba(168,85,247,.05)); border: 1px solid rgba(99,102,241,.22); border-radius: 13px; }
.guide-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.guide-head b { font-size: 13px; }
.guide-head span { font-size: 11.5px; color: var(--dim); line-height: 1.6; }
.guide-steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.guide-steps li { font-size: 12px; color: var(--muted); line-height: 1.6; }
.guide-cols { font-family: ui-monospace, monospace; font-size: 10.5px; color: var(--dim); background: rgba(0,0,0,.28); border-radius: 8px; padding: 7px 9px; overflow-x: auto; white-space: nowrap; }
.bill-import textarea.dragging { border-color: var(--brand); background: rgba(99,102,241,.1); }
.file-inline { position: relative; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 9px 14px; font-size: 12.5px; border-radius: 10px; border: 1px solid var(--line); white-space: nowrap; }
.file-inline:hover { border-color: rgba(99,102,241,.5); }

/* ================= 通知接入 ================= */
.notify-token { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; background: rgba(52,211,153,.06); border: 1px solid rgba(52,211,153,.3); border-radius: 12px; padding: 13px; }
.nt-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nt-row > span { font-size: 11px; color: var(--dim); width: 62px; flex: none; }
.nt-row code { flex: 1; min-width: 200px; font-family: ui-monospace, monospace; font-size: 11px; color: #c7d2fe; background: rgba(0,0,0,.32); border-radius: 8px; padding: 7px 9px; overflow-x: auto; white-space: nowrap; }
.pill { font-size: 11px; padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--dim); }
.pill.on { background: rgba(52,211,153,.14); color: var(--ok); }
.sub { font-size: 11px; color: var(--dim); margin-top: 2px; font-family: ui-monospace, monospace; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
.row-ops { display: flex; gap: 6px; justify-content: flex-end; }
.import-row .input { flex: 1; min-width: 150px; padding: 12px 14px; font-size: 13px; font-family: inherit;
  background: rgba(0,0,0,.28); border: 1px solid var(--line); border-radius: 11px; color: var(--text); outline: none; transition: .2s; }
.import-row .input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(99,102,241,.16); }

/* 账号安全 */
.pwd-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pwd-row .input { flex: 1; min-width: 180px; padding: 12px 14px; font-size: 13px; font-family: inherit;
  background: rgba(0,0,0,.28); border: 1px solid var(--line); border-radius: 11px; color: var(--text); outline: none; }
.pwd-row .input:focus { border-color: var(--brand); }
.pwd-row .btn { flex: none; min-width: 120px; }
