/* UTRC 用户端样式：白蓝主题（1.md 十一），移动底部 Tab / 电脑左侧 Sidebar 自适应（1.md 三） */
:root {
  --blue: #1a73e8; --blue-d: #1558b0;
  --bg: #f5f7fa; --card: #ffffff; --line: #e4e7ed;
  --t1: #333333; --t2: #888888;
  --ok: #34a853; --warn: #fbbc04; --err: #ea4335;
  --radius: 8px; --shadow: 0 1px 4px rgba(21, 88, 176, .08);
  --tabbar-h: 58px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--t1); font-size: 15px; line-height: 1.5;
  touch-action: manipulation; /* 禁双击缩放（配合 viewport user-scalable=no 全禁缩放） */
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }
.icon { width: 22px; height: 22px; flex: none; display: inline-block; vertical-align: middle; }
.hidden { display: none !important; }

/* ── 顶部栏 ── */
.topbar {
  height: 52px; background: var(--card); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
  position: sticky; top: 0; z-index: 30;
}
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); display: inline-block; margin-right: 8px; }
.brand-name { font-weight: 700; color: var(--blue); letter-spacing: .5px; }
.topbar-right { display: flex; align-items: center; gap: 10px; color: var(--t2); font-size: 13px; }
.topbar-right .icon { width: 18px; height: 18px; }

/* ── 布局 ── */
.app { min-height: 100%; display: flex; flex-direction: column; }
.view { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 14px 14px calc(var(--tabbar-h) + 86px); }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--tabbar-h);
  background: var(--card); border-top: 1px solid var(--line); z-index: 40;
  display: flex;
}
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #888; font-size: 11px; text-decoration: none; min-height: 44px; border: 0; background: none;
}
.tab-item .icon { width: 24px; height: 24px; }
.tab-item.active { color: var(--blue); }
.tab-item.active .icon { stroke-width: 2.4; }

/* 电脑端 Sidebar */
.sidebar { display: none; }

/* ── 通用卡片 / 按钮 ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--blue); color: #fff; border: 0; border-radius: var(--radius);
  padding: 10px 18px; font-size: 15px; min-height: 44px; transition: background .15s;
}
.btn:hover { background: var(--blue-d); }
.btn:disabled { background: #a8c7f0; cursor: not-allowed; }
.btn-plain { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.btn-plain:hover { background: #eef4fe; }
.btn-sm { padding: 6px 12px; min-height: 36px; font-size: 13px; border-radius: 6px; }
.btn-ok { background: var(--ok); } .btn-ok:hover { background: #2b8f47; }
.btn-err { background: var(--err); } .btn-err:hover { background: #c93629; }
.btn-block { width: 100%; }

/* 表单 */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--t2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 12px; min-height: 44px; background: #fff; color: var(--t1); outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row input { flex: 1; }
.captcha-svg { height: 44px; border-radius: 6px; border: 1px solid var(--line); flex: none; cursor: pointer; }
.hint { font-size: 12px; color: var(--t2); margin-top: 6px; }
.link { color: var(--blue); text-decoration: none; cursor: pointer; }
.link:hover { color: var(--blue-d); }

/* ── 首页 ── */
.hero {
  background: linear-gradient(135deg, var(--blue), var(--blue-d)); color: #fff;
  border-radius: var(--radius); padding: 22px 18px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.hero-welcome { font-size: 13px; opacity: .92; }
.hero-balance { font-size: 34px; font-weight: 700; margin: 8px 0 2px; }
.hero-balance small { font-size: 14px; font-weight: 400; opacity: .9; }
.hero-sub { display: flex; gap: 18px; margin-top: 10px; font-size: 13px; opacity: .95; flex-wrap: wrap; }
.hero-chips { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.chip { background: rgba(255,255,255,.16); border-radius: 20px; padding: 4px 12px; font-size: 12px; }
.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
@media (max-width: 480px) { .grid5 { grid-template-columns: repeat(5, 1fr); gap: 4px; } }
.gbtn {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 4px; color: var(--t1); text-decoration: none; min-height: 84px; cursor: pointer;
  transition: box-shadow .15s, transform .05s;
}
.gbtn:hover { box-shadow: 0 3px 10px rgba(26,115,232,.15); }
.gbtn:active { transform: scale(.97); }
.gbtn .icon { width: 26px; height: 26px; color: var(--blue); }
.gbtn span { font-size: 12px; }
.notice {
  display: flex; gap: 8px; align-items: flex-start; background: #eef4fe; border: 1px solid #cfe0fb;
  color: var(--blue-d); border-radius: var(--radius); padding: 10px 12px; font-size: 13px; margin-bottom: 14px;
}
.notice .icon { width: 16px; height: 16px; margin-top: 2px; }

/* ── 认证徽章 ── */
.verified-badge { display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; }
.verified-badge .vicon { width: 15px; height: 15px; }
.verified-badge .vtext { color: var(--ok); font-size: 12px; }
.cdot { width: 17px; height: 17px; flex: none; }

/* ── 通道选择 ── */
.ch-item {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; margin-bottom: 10px; cursor: pointer; background: #fff;
}
.ch-item.sel { border-color: var(--blue); background: #eef4fe; }
.ch-ico {
  width: 42px; height: 42px; border-radius: 50%; background: #eef4fe; color: var(--blue);
  display: flex; align-items: center; justify-content: center; flex: none; font-weight: 700; font-size: 16px;
}
.ch-ico img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ch-main { flex: 1; min-width: 0; }
.ch-name { font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ch-sub { font-size: 12px; color: var(--t2); margin-top: 2px; }

/* ── 搬砖任务 ── */
.task-card { display: flex; align-items: center; gap: 12px; }
.task-pair { font-weight: 700; font-size: 16px; }
.task-meta { font-size: 12px; color: var(--t2); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.task-rate { color: var(--ok); font-weight: 700; }
.task-right { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.task-amt { width: 110px; border: 1px solid var(--line); border-radius: 6px; padding: 7px 8px; min-height: 36px; font-size: 14px; }
.countdown { font-variant-numeric: tabular-nums; color: var(--warn); font-size: 12px; }
.frozen-tip { background: #fff8e6; border: 1px solid #f6e3a8; color: #8a6d1a; border-radius: var(--radius); padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }

/* ── 订单 ── */
.tabs4 { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.tabs4 button {
  flex: 1; border: 0; background: none; padding: 11px 0; min-height: 44px; font-size: 14px; color: var(--t2);
}
.tabs4 button.active { color: var(--blue); font-weight: 700; background: #eef4fe; }
.order-card { padding: 14px; }
.order-row1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.order-no { font-size: 13px; color: var(--t2); font-variant-numeric: tabular-nums; }
.order-type { font-weight: 700; }
.st { font-size: 12px; border-radius: 4px; padding: 3px 8px; white-space: nowrap; }
.st-processing { background: #eef4fe; color: var(--blue); }
.st-pending_review { background: #fff8e6; color: #a07706; }
.st-completed { background: #e6f6ea; color: var(--ok); }
.st-cancelled { background: #f2f2f2; color: var(--t2); }
.order-row2 { display: flex; justify-content: space-between; margin-top: 8px; font-size: 14px; }
.order-amt { font-weight: 700; }
.order-time { font-size: 12px; color: var(--t2); }
.audit-line { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.audit-line:last-child { border-bottom: 0; }
.audit-ok { color: var(--ok); display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.kv { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; gap: 10px; }
.kv b { font-weight: 400; color: var(--t2); flex: none; }
.kv span { text-align: right; word-break: break-all; }

/* ── 交流群（只读群聊样式）── */
.chat-wrap { display: flex; flex-direction: column; gap: 14px; }
.msg-row { display: flex; gap: 10px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; flex: none;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.msg-body { max-width: 78%; }
.msg-head { font-size: 12px; color: var(--t2); margin-bottom: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.official-badge {
  background: var(--blue); color: #fff; font-size: 11px; border-radius: 4px; padding: 1px 6px; font-weight: 600;
}
.bubble {
  background: var(--card); border: 1px solid var(--line); border-radius: 0 10px 10px 10px; padding: 9px 12px;
  font-size: 14px; word-break: break-word; box-shadow: var(--shadow);
}
.bubble img { max-width: 220px; max-height: 160px; border-radius: 6px; display: block; }
.chat-muted {
  text-align: center; color: var(--t2); font-size: 12px; background: var(--card);
  border: 1px dashed var(--line); border-radius: 20px; padding: 8px; margin-top: 6px;
}

/* ── 我的 ── */
.pcell {
  display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; margin-bottom: 10px; cursor: pointer; text-decoration: none; color: var(--t1);
  min-height: 56px;
}
.pcell:hover { box-shadow: 0 3px 10px rgba(26,115,232,.12); }
.pcell .icon { color: var(--blue); }
.pcell-main { flex: 1; font-size: 15px; }
.pcell .chev { color: #c0c6cf; width: 18px; height: 18px; }
.pfoot { text-align: center; color: var(--t2); font-size: 12px; padding: 14px 0 4px; line-height: 2; }

/* ── 交易所列表 ── */
.ex-card { display: flex; align-items: center; gap: 12px; }
.ex-card .ch-ico { width: 46px; height: 46px; }
.ex-main { flex: 1; min-width: 0; }
.ex-margin { font-size: 12px; color: var(--t2); margin-top: 3px; }
.tut-step { display: flex; gap: 12px; margin-bottom: 16px; }
.tut-no {
  width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.tut-body { flex: 1; }
.tut-title { font-weight: 600; margin-bottom: 4px; }
.tut-text { color: var(--t2); font-size: 14px; }

/* ── 资金明细 ── */
.ledger-item { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ledger-item:last-child { border-bottom: 0; }
.ledger-type { font-weight: 600; font-size: 14px; }
.ledger-remark { font-size: 12px; color: var(--t2); margin-top: 2px; }
.ledger-amt { text-align: right; font-variant-numeric: tabular-nums; }
.ledger-amt.pos { color: var(--ok); }
.ledger-amt.neg { color: var(--err); }
.ledger-time { font-size: 11px; color: var(--t2); }

/* ── 全局加载动画 + 页面过渡 ── */
.loader {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(245, 247, 250, .45); backdrop-filter: blur(1px); pointer-events: none;
}
.spinner {
  width: 42px; height: 42px; border-radius: 50%;
  border: 4px solid #cfe0fb; border-top-color: var(--blue);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.view { animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.card, .pcell, .gbtn, .ch-item { animation: fadeIn .3s ease; }

/* ── 充值：金额选择 + 支付等待页 ── */
.grid-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amt-btn {
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 14px 0;
  font-size: 16px; font-weight: 700; color: var(--t1); min-height: 48px;
}
.amt-btn.sel { border-color: var(--blue); background: #eef4fe; color: var(--blue); }
.pay-amount { font-size: 34px; font-weight: 800; color: var(--blue); margin: 6px 0 4px; }
.pay-amount small { font-size: 14px; font-weight: 400; color: var(--t2); }
.pay-count { color: var(--t2); font-size: 13px; margin: 10px 0; }
.pay-count b { color: var(--err); font-variant-numeric: tabular-nums; }
.pay-status { background: #eef4fe; color: var(--blue-d); border-radius: var(--radius); padding: 10px 12px; font-size: 13px; }

/* ── 客服独立页 ── */
.cs-page-head { background: linear-gradient(135deg, var(--blue), var(--blue-d)); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.cs-page-head .cs-head-ic .icon { width: 24px; height: 24px; }
.msg-card { background: #eef4fe; border: 1px solid #cfe0fb; border-radius: 8px; padding: 10px; font-size: 13px; }
.cs-time { font-size: 10px; color: var(--t2); margin-bottom: 2px; }
.cs-row.me .cs-time { text-align: right; }

/* ── 顶部消息图标 ── */
.top-ic { position: relative; color: var(--t2); display: inline-flex; }
.top-ic .icon { width: 20px; height: 20px; }
.top-ic.has-dot::after {
  content: ''; position: absolute; top: -2px; right: -4px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--err); border: 1.5px solid #fff;
}

/* ── 接单列表卡片（金额大字突出，按钮右下角）── */
.pf-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.pf-top { display: flex; align-items: center; gap: 12px; }
.pf-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.pf-amount { margin-top: 4px; }
.pf-amount span {
  font-size: 26px; font-weight: 800; color: var(--blue); font-variant-numeric: tabular-nums;
}
.pf-amount small { color: var(--t2); font-size: 12px; }
.pf-amount .flash { animation: flashAmt .6s ease; }
@keyframes flashAmt { 0% { color: var(--ok); } 100% { color: var(--blue); } }

/* ── 接单流程页 ── */
.flow-steps { display: flex; flex-direction: column; gap: 0; }
.flow-step { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; position: relative; }
.flow-step .cdot { margin-top: 2px; opacity: .35; }
.flow-step.done .cdot { opacity: 1; }
.flow-step.cur .cdot { opacity: 1; outline: 3px solid #d6e7ff; border-radius: 50%; }
.flow-step:not(:last-child)::before {
  content: ''; position: absolute; left: 8px; top: 34px; bottom: -8px; width: 2px; background: var(--line);
}
.flow-step.cur b { color: var(--blue); }

/* ── 常见问题（客服入口）── */
.faq-item { border-bottom: 1px dashed var(--line); }
.faq-item:last-of-type { border-bottom: 0; }
.faq-q { display: flex; align-items: center; gap: 8px; padding: 11px 0; font-size: 14px; cursor: pointer; font-weight: 600; }
.faq-q .icon { width: 16px; height: 16px; color: var(--blue); transition: transform .15s; }
.faq-a { padding: 0 4px 12px 26px; color: var(--t2); font-size: 13px; }

/* ── 客服系统消息 / 星级评价 ── */
.sys-msg {
  align-self: center; text-align: center; color: var(--t2); font-size: 12px;
  background: var(--bg); border-radius: 14px; padding: 5px 14px; max-width: 90%;
}
.rate-row { display: flex; gap: 6px; margin-bottom: 12px; }
.rate-star { border: 0; background: none; padding: 4px; }
.rate-star .icon { width: 28px; height: 28px; fill: #dfe5ec; stroke: none; }
.rate-star.on .icon { fill: var(--warn); }

/* ── 客服浮动入口 + 面板 ── */
.cs-fab {
  position: fixed; right: 16px; bottom: calc(var(--tabbar-h) + 16px); z-index: 50;
  width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(26,115,232,.4);
}
.cs-fab .icon { width: 26px; height: 26px; }
.cs-fab:hover { background: var(--blue-d); }
.cs-fab .dot { position: absolute; top: 2px; right: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--warn); border: 2px solid #fff; }
.cs-panel {
  position: fixed; right: 12px; bottom: calc(var(--tabbar-h) + 78px); z-index: 60;
  width: min(360px, calc(100vw - 24px)); height: min(480px, 70vh);
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 34px rgba(21,88,176,.25);
  display: flex; flex-direction: column; overflow: hidden;
}
.cs-head { background: var(--blue); color: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.cs-head-ic .icon { width: 22px; height: 22px; }
.cs-head-txt { flex: 1; line-height: 1.3; }
.cs-head-txt small { opacity: .85; font-size: 11px; }
.cs-close { background: none; border: 0; color: #fff; }
.cs-msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.cs-row { display: flex; gap: 8px; }
.cs-row.me { flex-direction: row-reverse; }
.cs-bubble { max-width: 76%; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; font-size: 14px; word-break: break-word; }
.cs-row.me .cs-bubble { background: var(--blue); color: #fff; border-color: var(--blue); }
.cs-bubble img { max-width: 180px; border-radius: 6px; display: block; }
.cs-time { font-size: 10px; color: var(--t2); align-self: flex-end; }
.cs-foot { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); align-items: center; }
.cs-attach { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; color: var(--t2); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.cs-input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-height: 38px; outline: none; }
.cs-input:focus { border-color: var(--blue); }
.cs-send { width: 38px; height: 38px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; }
.cs-send .icon { width: 18px; height: 18px; }
.cs-offline { text-align: center; color: var(--t2); font-size: 12px; padding: 8px; }

/* ── 弹层 / 提示 ── */
.modal-mask {
  position: fixed; inset: 0; background: rgba(17, 24, 39, .45); z-index: 80;
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.modal {
  background: var(--card); border-radius: 12px; width: 100%; max-width: 420px; max-height: 84vh;
  overflow-y: auto; padding: 20px;
}
.modal h3 { margin-bottom: 14px; font-size: 16px; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 24px); transform: translateX(-50%);
  background: rgba(17,24,39,.85); color: #fff; font-size: 14px; border-radius: 8px; padding: 10px 18px;
  z-index: 100; max-width: 80vw; text-align: center;
}
.toast.ok { background: rgba(52,168,83,.95); }
.toast.err { background: rgba(234,67,53,.95); }

/* ── 登录/注册 ── */
.auth-wrap { max-width: 400px; margin: 24px auto 0; }
.auth-tabs { display: flex; margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.auth-tabs button { flex: 1; border: 0; background: var(--card); padding: 11px; font-size: 15px; color: var(--t2); min-height: 44px; }
.auth-tabs button.active { background: var(--blue); color: #fff; }
.invite-banner { background: #eef4fe; color: var(--blue-d); border-radius: var(--radius); padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }

/* ── 表格（电脑端后台风格组件，用户端也用于简单列表）── */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.tbl th { background: var(--bg); color: var(--t2); font-weight: 600; text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.tbl tr:nth-child(even) td { background: #fafbfc; }

.empty { text-align: center; color: var(--t2); font-size: 13px; padding: 34px 0; }
.section-gap { height: 6px; }

/* ══════════ 电脑端（≥768px）：左侧 Sidebar + 右侧内容（1.md 三）══════════ */
@media (min-width: 768px) {
  body { display: flex; }
  .sidebar {
    display: flex; flex-direction: column; width: 216px; flex: none;
    background: var(--card); border-right: 1px solid var(--line);
    position: sticky; top: 0; height: 100vh; overflow-y: auto; /* 固定侧栏：内容滚动时侧栏不动 */
    padding: 18px 12px;
  }
  .side-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--blue); font-size: 16px; padding: 4px 10px 18px; letter-spacing: .5px; }
  .side-brand .brand-dot { width: 12px; height: 12px; }
  .side-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius);
    color: #888; text-decoration: none; font-size: 15px; margin-bottom: 4px; border: 0; background: none; text-align: left;
  }
  .side-item:hover { background: var(--bg); color: var(--t1); }
  .side-item.active { background: #eef4fe; color: var(--blue); font-weight: 600; }
  .side-foot { margin-top: auto; font-size: 12px; color: var(--t2); padding: 10px; line-height: 1.8; }
  .tabbar { display: none; }
  .app { flex: 1; min-width: 0; }
  .topbar { position: sticky; }
  .view { padding-bottom: 90px; }
  .cs-fab { bottom: 24px; }
  .cs-panel { bottom: 86px; }
}

/* 鈹€鈹€ fullscreen auth view (auth gate) 鈹€鈹€ */
body.auth-mode .sidebar,
body.auth-mode .topbar,
body.auth-mode .tabbar,
body.auth-mode .cs-fab { display: none !important; }
body.auth-mode { background: linear-gradient(160deg, #0a0f1e 0%, #101a33 55%, #0c1428 100%); }
body.auth-mode .app { max-width: 480px; margin: 0 auto; }
body.auth-mode .view { padding-top: 7vh; animation: fadeIn .35s ease; }
body.auth-mode .auth-wrap .card { box-shadow: 0 24px 64px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.08); }

/* fullscreen auth view (auth gate) */
body.auth-mode .sidebar,
body.auth-mode .topbar,
body.auth-mode .tabbar,
body.auth-mode .cs-fab { display: none !important; }
body.auth-mode { background: linear-gradient(160deg, #0a0f1e 0%, #101a33 55%, #0c1428 100%); }
body.auth-mode .app { max-width: 480px; margin: 0 auto; }
body.auth-mode .view { padding-top: 7vh; animation: fadeIn .35s ease; }
body.auth-mode .auth-wrap .card { box-shadow: 0 24px 64px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.08); }


/* merchant card */
.pf-ico-sm { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; flex: none; background: var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: var(--t2); }
.pf-ico-sm img { width: 100%; height: 100%; object-fit: cover; }
.pf-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--t2); }
.pf-stats b { color: var(--t1); }
/* pf detail */
.pd-hero { background: linear-gradient(135deg, var(--blue), var(--blue-d)); color: #fff; border-radius: 16px; padding: 20px 16px; text-align: center; margin-bottom: 12px; }
.pd-head { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 17px; flex-wrap: wrap; }
.pd-head img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.pd-cap { font-size: 12px; opacity: .85; margin-top: 14px; letter-spacing: .5px; }
.pd-today { font-size: 32px; font-weight: 800; line-height: 1.3; }
.pd-sub { font-size: 12px; opacity: .8; }
.pd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.pd-grid b { font-size: 16px; }
.cert-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.cert-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(22,139,255,.08); border: 1px solid rgba(22,139,255,.25); color: var(--blue); border-radius: 999px; padding: 5px 12px; font-size: 12px; }
.cert-badge small { color: var(--t2); }
/* profile */
.profile-hero { background: linear-gradient(135deg, var(--blue), var(--blue-d)); border-radius: 16px; padding: 18px 16px; color: #fff; margin-bottom: 12px; }
.ph-top { display: flex; align-items: center; gap: 12px; }
.ph-main { flex: 1; }
.ph-name { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ph-id { font-size: 12px; opacity: .85; margin-top: 2px; }
.ph-lang { color: #fff; opacity: .8; }
.ph-balance { margin-top: 14px; }
.ph-balance small { font-size: 11px; opacity: .85; letter-spacing: .5px; }
.ph-num { font-size: 30px; font-weight: 800; line-height: 1.25; }
.ph-balance .chip { background: rgba(255,255,255,.18); border-radius: 999px; padding: 2px 10px; font-size: 12px; display: inline-block; margin-top: 6px; }
.g-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.g-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; background: var(--card, rgba(255,255,255,.04)); border: 1px solid var(--line); border-radius: 12px; padding: 13px 4px 11px; text-decoration: none; color: var(--t1); }
.g-ic { color: var(--blue); }
.g-label { font-size: 11px; color: var(--t2); text-align: center; }
.g-badge { position: absolute; top: 5px; right: 6px; background: var(--err); color: #fff; border-radius: 999px; font-size: 10px; padding: 1px 5px; }
.big-apply-banner { display: flex; align-items: center; gap: 8px; background: rgba(255,212,90,.1); border: 1px solid rgba(233,167,45,.45); color: #8a6a12; border-radius: 12px; padding: 11px 14px; margin-bottom: 12px; text-decoration: none; font-weight: 600; font-size: 13px; }
.big-apply-banner .chev { margin-left: auto; }
.logout-card { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: rgba(220,53,69,.08); border: 1px solid rgba(220,53,69,.35); color: var(--err); border-radius: 12px; padding: 13px; font-size: 14px; font-weight: 600; cursor: pointer; margin-bottom: 12px; }


/* channel cards side by side */
.ch-row { display: flex; gap: 8px; }
.ch-row .ch-item { flex: 1; min-width: 0; }
.ch-item.ch-locked { opacity: .55; }


/* live feed */
.lv-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; background: rgba(255,255,255,.03); }
.lv-enter { animation: lvIn .35s ease; }
@keyframes lvIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.lv-top { display: flex; align-items: center; gap: 10px; }
.lv-ava { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.lv-main { flex: 1; min-width: 0; }
.lv-name { font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lv-sub { font-size: 11px; color: var(--t2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-amt { text-align: right; color: var(--ok); font-weight: 800; }
.lv-amt small { display: block; font-size: 10px; color: var(--t2); font-weight: 400; }
.lv-flow { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.lv-node { width: 26px; height: 26px; border-radius: 50%; background: var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--t2); flex: none; }
.lv-track { flex: 1; position: relative; height: 18px; border-bottom: 1px dashed var(--line); }
.lv-coin { position: absolute; top: -3px; left: 0; color: #FFD45A; }
.lv-coin.to-merchant { animation: lvFlyR 2.2s ease-in-out infinite alternate; }
.lv-coin.to-bot { animation: lvFlyL 2.2s ease-in-out infinite alternate; }
.lv-coin svg { animation: lvSpin 1.1s linear infinite; }
@keyframes lvFlyR { from { left: 0; } to { left: calc(100% - 20px); } }
@keyframes lvFlyL { from { left: calc(100% - 20px); } to { left: 0; } }
@keyframes lvSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.lv-state { margin-left: auto; flex: none; }
.lv-repay { margin-top: 8px; font-size: 12px; color: var(--t2); }
.lv-repay b { color: var(--t1); }


/* notice marquee */
.tip-marquee { display: flex; align-items: center; gap: 8px; overflow: hidden; }
.tip-marquee > svg { flex: none; }
.mq-viewport { flex: 1; overflow: hidden; white-space: nowrap; }
.mq-track { display: inline-flex; white-space: nowrap; animation: mqScroll 26s linear infinite; will-change: transform; }
.mq-track span { padding-right: 70px; }
@keyframes mqScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* marquee compact overrides */
.tip-marquee { display: flex !important; flex-wrap: nowrap; align-items: center; gap: 6px; padding: 5px 10px; font-size: 12px; line-height: 1.4; }
.tip-marquee > svg { width: 14px; height: 14px; flex: 0 0 auto; }
.tip-marquee .mq-viewport { font-size: 12px; line-height: 1.5; }
.tip-marquee .mq-track span { font-size: 12px; }

/* icon scrolls with text */
.tip-marquee .mq-track span.mq-item { display: inline-flex; align-items: center; gap: 6px; }
.tip-marquee .mq-track svg { width: 14px; height: 14px; flex: none; }
