/* ============================================================
   USDT量化 · 纸感 Neo-Brutalist 主题
   设计参考：导航网前端（硬边 2px + 硬投影 + 蓝橙撞色 + 纸感网格底）
   开奖走势珠球：对齐竞品格式（绿=单 / 红=双 / 发光=预测）
============================================================ */
:root {
  --paper: #f3f0e8;
  --paper-dark: #e6e1d5;
  --ink: #111111;
  --muted: #69665f;
  --blue: #2d5bff;
  --orange: #ff6b35;
  --line: #151515;
  --card: #fbfaf6;
  --shadow: 7px 7px 0 #151515;
  --shadow-sm: 4px 4px 0 #151515;
  --green: #12a150;
  --red: #e4332f;
  --gold: #f0a020;
  --radius: 4px;
  --max-width: 640px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0; padding: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(17, 17, 17, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, .05) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
button { font-family: inherit; cursor: pointer; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

/* ============ 登录页 ============ */
.login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.login-card {
  width: 100%; max-width: 420px;
  background: var(--card);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  padding: 30px 26px;
}
.brand { text-align: center; margin-bottom: 22px; }
.brand-logo {
  width: 76px; height: 76px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--orange);
  padding: 5px;
  object-fit: contain;
}
.brand h1 {
  margin: 8px 0 4px;
  font-size: 30px; letter-spacing: 2px; font-weight: 900;
  display: inline-flex; align-items: center; gap: 10px;
}
.brand h1 .accent {
  color: #fff; background: var(--blue);
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--orange);
  padding: 2px 10px;
  transform: rotate(-1.5deg);
}
.brand .sub {
  color: var(--muted); font-size: 10px; letter-spacing: .22em;
  font-family: Consolas, monospace; font-weight: 700;
}
.login-tabs {
  display: flex; gap: 0; margin-bottom: 20px;
  border: 2px solid var(--line);
  background: var(--paper-dark);
}
.login-tabs button {
  flex: 1; border: 0; color: var(--muted);
  padding: 10px 0; font-size: 14px; font-weight: 900;
  transition: background .15s, color .15s;
}
.login-tabs button + button { border-left: 2px solid var(--line); }
.login-tabs button.active {
  background: var(--ink); color: #fff;
}
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 11px; font-weight: 900;
  letter-spacing: .06em; margin-bottom: 6px;
}
.field input {
  width: 100%; padding: 11px 12px;
  background: #fff; color: var(--ink);
  border: 2px solid var(--line); outline: none;
  font-size: 14px;
}
.field input:focus { box-shadow: inset 0 0 0 2px var(--blue); }
.field input::placeholder { color: #a8a499; }
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row input { flex: 1; }
.captcha-img {
  height: auto; cursor: pointer;
  border: 2px solid var(--line); background: #f6f8fa;
}
.btn {
  width: 100%; border: 2px solid var(--line); padding: 12px 0;
  font-size: 15px; font-weight: 900; color: #fff;
  background: var(--blue);
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-secondary {
  background: #fff; color: var(--ink);
}
.btn-danger { background: var(--red); }
.btn-warn { background: var(--orange); }
.btn-sm {
  width: auto; padding: 7px 12px; font-size: 12px; white-space: nowrap;
  box-shadow: 2px 2px 0 var(--line);
}
.btn-sm:hover { box-shadow: 3px 3px 0 var(--line); }
.login-foot {
  margin-top: 16px; text-align: center; color: var(--muted); font-size: 12px;
  line-height: 1.8;
}

/* ============ 主应用 ============ */
.app-wrap {
  min-height: 100vh;
  padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  max-width: var(--max-width);
  margin: 0 auto;
  border-left: 2px solid var(--line);
  border-right: 2px solid var(--line);
  background:
    linear-gradient(rgba(17, 17, 17, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, .045) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
}
.app-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(243, 240, 232, .96);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}
.app-header .logo {
  font-weight: 900; font-size: 17px; letter-spacing: 1px;
  display: inline-flex; align-items: center; gap: 8px;
}
.app-header .logo .accent { color: var(--blue); }
.logo-img {
  width: 34px; height: 34px; flex: none;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 9px;
  padding: 2px;
  object-fit: contain;
}
.app-header .right { display: flex; align-items: center; gap: 10px; }
.balance-chip {
  background: var(--ink); color: #fff;
  border: 2px solid var(--line);
  padding: 5px 12px; font-size: 12px; font-weight: 700;
  cursor: pointer; user-select: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.balance-chip:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.balance-chip b { color: #7d9bff; }
/* 已对接平台：平台名标绿，余额随币种切换 */
.balance-chip.on { border-color: var(--green); }
.balance-chip.on #platformName { color: var(--green); margin-right: 4px; }
.balance-chip #balanceUnit { color: #a3a3c2; font-weight: 700; margin-left: 2px; }

/* 平台管理按钮 */
.platform-btn {
  background: var(--card); color: var(--ink);
  border: 2px solid var(--line);
  padding: 5px 14px; font-size: 12px; font-weight: 900;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.platform-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--blue); }
.platform-btn.active { background: var(--blue); color: #fff; border-color: var(--line); }

/* 平台选择网格 */
.pf-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px;
}
.pf-card {
  border: 2px solid var(--line); background: #fff;
  padding: 10px 6px; text-align: center; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.pf-card:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.pf-card .nm { font-weight: 900; font-size: 14px; }
.pf-card .st { font-size: 10px; margin-top: 3px; font-weight: 700; }
.pf-card .st.on { color: var(--green); }
.pf-card .st.off { color: var(--muted); }
.pf-card.sel { border-color: var(--blue); box-shadow: 3px 3px 0 var(--blue); }
.pf-card.locked { opacity: .5; cursor: not-allowed; }
.pf-bal-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 700; padding: 6px 2px;
  border-bottom: 1px dashed var(--line);
}

.view { display: none; padding: 16px; }
.view.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }

.card {
  background: var(--card);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 16px; margin-bottom: 16px;
}
.card h2 {
  margin: 0 0 12px; font-size: 16px; font-weight: 900;
  letter-spacing: .02em;
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 8px; border-bottom: 2px solid var(--line);
}
.card h2::before {
  content: ""; width: 12px; height: 12px; flex-shrink: 0;
  background: var(--orange); border: 2px solid var(--line);
}
.section-title {
  font-size: 12px; letter-spacing: 2px; color: var(--muted);
  font-weight: 900; margin: 18px 0 10px;
}

/* 统计 */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-item {
  background: var(--paper-dark);
  border: 2px solid var(--line);
  padding: 12px 8px; text-align: center;
}
.stat-item .label { font-size: 11px; color: var(--muted); margin-bottom: 4px; font-weight: 700; }
.stat-item .value { font-size: 18px; font-weight: 900; font-family: Consolas, monospace; }
.stat-item .value.up { color: var(--green); }
.stat-item .value.down { color: var(--red); }
.stat-item .unit { font-size: 11px; color: var(--muted); }

/* 周期/币种切换 */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-width: 52px; text-align: center;
  background: #fff; color: var(--ink);
  border: 2px solid var(--line);
  padding: 7px 14px; font-size: 13px; font-weight: 900;
  transition: transform .12s ease, box-shadow .12s ease;
}
.chip:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.chip.active {
  background: var(--ink); color: #fff;
  box-shadow: 3px 3px 0 var(--orange);
}
.chip.huge { flex: 1; }

/* 个人中心 / 充值卡内的小型币种切换条 */
.cur-switch { display: flex; gap: 8px; margin-bottom: 12px; }
.cur-switch .chip { min-width: 64px; padding: 6px 16px; font-size: 12px; }

/* 币种切换：与下方三张统计卡（.stat-grid）同尺寸、上下左右对齐 */
#currencyRow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
#currencyRow .chip { width: 100%; }

/* ============ 开奖走势（竞品格式） ============ */
.draw-panel { display: grid; gap: 12px; }

/* 核验条：最新区块 / 圆形倒计时 / 待开奖区块 */
.verify-strip {
  display: grid;
  grid-template-columns: 1fr 58px 1fr;
  gap: 10px;
  align-items: stretch;
}
.verify-block {
  border: 2px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
}
.verify-block span { font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.verify-block strong {
  font-family: Consolas, monospace; font-size: 17px; font-weight: 900;
  letter-spacing: -.02em;
}
.verify-block small { font-size: 11px; color: var(--ink); font-weight: 700; }
.verify-block small b { color: var(--red); }
.pending-block { border-color: var(--blue); background: #fff; }
.pending-block strong { color: var(--blue); }

/* 圆形倒计时（conic 进度） */
.verify-countdown {
  width: 54px; height: 54px; justify-self: center; align-self: center;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--line);
  background:
    radial-gradient(circle, #fff 0 60%, transparent 62%),
    conic-gradient(var(--blue) 0 var(--pct, 0%), rgba(17, 17, 17, .14) var(--pct, 0%) 100%);
  font-family: Consolas, monospace;
  font-size: 20px; font-weight: 900;
  box-shadow: 0 0 0 5px rgba(17, 17, 17, .06);
  font-variant-numeric: tabular-nums;
}

/* 当前预测期卡片 */
.current-prediction-card {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  border: 2px solid var(--line);
  background: linear-gradient(135deg, rgba(45, 91, 255, .1), rgba(255, 107, 53, .06)), #fff;
  padding: 12px 14px;
}
.current-prediction-card span { font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.current-prediction-card strong {
  display: block; font-family: Consolas, monospace;
  font-size: 17px; font-weight: 900; margin-top: 2px;
}
.current-prediction-card small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.pred-badge {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--line);
  font-size: 19px; font-weight: 900; color: #fff;
  background: radial-gradient(circle, #18c997 0 45%, #087c59 58%, transparent 61%), #fff;
  box-shadow: 3px 3px 0 var(--line);
}
.pred-badge.even {
  background: radial-gradient(circle, #ff686d 0 45%, #df1f38 58%, transparent 61%), #fff;
}
.pred-badge-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pred-status {
  font-size: 10px; font-weight: 900; letter-spacing: .06em; color: #8a5a00;
  background: #ffc107; border: 1.5px solid #c98a00; border-radius: 999px;
  padding: 1px 8px; white-space: nowrap;
}

/* 走势珠盘路（列状连珠）：同结果纵向堆叠成列，结果变化另起一列，最高 5 行；
   空位补空格子形成填满的矩形网格，对齐竞品 grid 布局 */
.draw-trend {
  display: grid;
  grid-template-columns: repeat(var(--road-cols, 10), 26px);
  grid-template-rows: repeat(5, 26px);
  gap: 0;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .5);
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.draw-trend::-webkit-scrollbar { display: none; }
.draw-trend span {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  padding: 0;
  color: #fff; font-size: 10px; font-weight: 900;
  background: radial-gradient(circle, #18c997 0 45%, #087c59 58%, rgba(0, 0, 0, 0) 61%);
  position: relative;
  border-right: 1.5px solid rgba(16, 24, 32, .78);
  border-bottom: 1.5px solid rgba(16, 24, 32, .78);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .24);
}
.draw-trend span.even {
  background: radial-gradient(circle, #ff686d 0 45%, #df1f38 58%, rgba(0, 0, 0, 0) 61%);
}
/* 预测珠：呼吸缩放 + 光晕环（对齐竞品 predictionBallBlink / predictionBallHalo） */
.draw-trend span.predicting {
  color: #fff;
  background: radial-gradient(circle, #ffffff 0 11%, #33ffd0 12% 43%, #049b6d 57%, rgba(0, 0, 0, 0) 63%), rgba(18, 189, 134, .18);
  outline: 2px solid rgba(18, 255, 189, .86);
  outline-offset: -5px;
  font-size: 9px;
  letter-spacing: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .42), 0 0 8px rgba(255, 255, 255, .72);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .52), 0 0 0 3px rgba(18, 189, 134, .16), 0 0 22px rgba(18, 189, 134, .62);
  animation: prediction-blink .72s ease-in-out infinite;
  z-index: 1;
}
.draw-trend span.predicting.even {
  background: radial-gradient(circle, #ffffff 0 11%, #ff8b8b 12% 43%, #df1f38 57%, rgba(0, 0, 0, 0) 63%), rgba(239, 68, 68, .2);
  outline-color: rgba(255, 100, 100, .9);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .52), 0 0 0 3px rgba(239, 68, 68, .18), 0 0 24px rgba(239, 68, 68, .68);
}
.draw-trend span.predicting::before {
  content: "";
  position: absolute;
  top: 2px; right: 2px; bottom: 2px; left: 2px;
  display: block;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .78);
  box-shadow: 0 0 20px rgba(18, 255, 189, .78), 0 0 34px rgba(18, 189, 134, .52);
  animation: prediction-halo .58s ease-in-out infinite;
  pointer-events: none;
}
.draw-trend span.predicting.even::before {
  box-shadow: 0 0 22px rgba(255, 100, 100, .82), 0 0 36px rgba(239, 68, 68, .56);
}
@keyframes prediction-blink {
  0%, 100% { opacity: .62; transform: scale(.88); filter: brightness(.94) saturate(1.08); }
  50%      { opacity: 1;   transform: scale(1.16); filter: brightness(1.45) saturate(1.28); }
}
@keyframes prediction-halo {
  0%, 100% { opacity: .22; transform: scale(.78); }
  50%      { opacity: 1;   transform: scale(1.28); }
}
.draw-trend span.empty {
  background: transparent;
  color: transparent;
}
.draw-note {
  font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.6;
}

/* 样本胜率概览 · 近期走势（单/双 序列，左老右新） */
.recent-trend {
  margin-top: 10px; padding-top: 10px;
  border-top: 1.5px dashed rgba(17, 17, 17, .25);
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.recent-label {
  font-size: 11px; font-weight: 900; letter-spacing: .06em; color: var(--muted);
  flex-shrink: 0;
}
.recent-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.rt-chip {
  display: inline-block; min-width: 20px; text-align: center;
  color: #fff; background: #18c997; border: 1.5px solid #087c59;
  font-weight: 900; font-size: 10px; padding: 1px 5px; border-radius: 3px;
}
.rt-chip.even {
  background: #ff686d; border-color: #df1f38;
}

/* 直播表 */
.table-wrap { overflow-x: auto; border: 2px solid var(--line); background: #fff; }
.live-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 420px; }
.live-table th {
  text-align: left; color: #fff; font-weight: 900; font-size: 11px;
  padding: 8px 10px; background: var(--ink);
  letter-spacing: .04em;
}
.live-table td { padding: 8px 10px; border-top: 1px solid rgba(17, 17, 17, .18); }
.live-table td.mono { font-family: Consolas, monospace; color: var(--muted); }
.tag-dan {
  display: inline-block; min-width: 22px; text-align: center;
  color: #fff; background: #18c997; border: 1.5px solid #087c59;
  font-weight: 900; padding: 1px 6px; font-size: 11px;
}
.tag-shuang {
  display: inline-block; min-width: 22px; text-align: center;
  color: #fff; background: #ff686d; border: 1.5px solid #df1f38;
  font-weight: 900; padding: 1px 6px; font-size: 11px;
}
/* AI 直播进行中的下注（等待开奖） */
.live-table tr.pending-row td { background: rgba(255, 193, 7, .12); }
/* 特性调高，避免行底色覆盖预测标签的绿/红底，导致白字不可读 */
.live-table tr.pending-row td.tag-dan { background: #18c997; }
.live-table tr.pending-row td.tag-shuang { background: #ff686d; }
.tag-pending {
  display: inline-block; min-width: 34px; text-align: center;
  color: #8a5a00; background: #ffc107; border: 1.5px solid #c98a00;
  font-weight: 900; padding: 1px 6px; font-size: 11px;
}
.profit-up { color: var(--green); font-weight: 900; font-family: Consolas, monospace; }
.profit-down { color: var(--red); font-weight: 900; font-family: Consolas, monospace; }

/* 策略 */
.strat-item {
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
  padding: 12px; margin-bottom: 10px;
}
.strat-item .name {
  font-weight: 900; margin-bottom: 6px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.strat-item .meta { font-size: 12px; color: var(--muted); line-height: 1.8; }
.strat-item .ops { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.strat-item .ops button {
  border: 2px solid var(--line); background: #fff; color: var(--ink);
  padding: 6px 12px; font-size: 12px; font-weight: 900;
  box-shadow: 2px 2px 0 var(--line);
  transition: transform .1s ease, box-shadow .1s ease;
}
.strat-item .ops button:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.strat-item .ops button.primary { background: var(--blue); color: #fff; }
.strat-item .ops button.danger { background: var(--red); color: #fff; }
.badge {
  font-size: 10px; padding: 2px 8px;
  background: var(--paper-dark); color: var(--ink);
  border: 1.5px solid var(--line); font-weight: 900;
}
.badge.running { background: var(--blue); color: #fff; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid .full { grid-column: 1 / -1; }
.form-item label {
  display: block; font-size: 11px; font-weight: 900;
  letter-spacing: .04em; margin-bottom: 5px;
}
.form-item input, .form-item select {
  width: 100%; padding: 9px 10px;
  background: #fff; color: var(--ink);
  border: 2px solid var(--line); outline: none; font-size: 13px;
}
.form-item input:focus, .form-item select:focus { box-shadow: inset 0 0 0 2px var(--blue); }
.btn-row { display: flex; gap: 10px; margin-top: 14px; }
.btn-row button { flex: 1; }

/* 达摩院 */
.rank-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
  padding: 12px; margin-bottom: 10px;
}
.rank-no {
  width: 28px; height: 28px; flex-shrink: 0;
  display: grid; place-items: center;
  font-weight: 900; font-size: 13px; color: #fff;
  background: var(--ink); border: 2px solid var(--line);
}
.rank-no.top1 { background: var(--gold); }
.rank-no.top2 { background: #9aa3b2; }
.rank-no.top3 { background: var(--orange); }
.rank-body { flex: 1; min-width: 0; }
.rank-body .name { font-weight: 900; font-size: 13px; }
.rank-body .intro { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.rank-stats { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin-top: 6px; font-family: Consolas, monospace; }
.rank-price { text-align: right; flex-shrink: 0; }
.rank-price .p { color: var(--orange); font-weight: 900; font-family: Consolas, monospace; }
.rank-price button {
  margin-top: 6px; border: 2px solid var(--line); background: var(--orange);
  color: #fff; padding: 4px 12px; font-size: 12px; font-weight: 900;
  box-shadow: 2px 2px 0 var(--line);
}

/* 我的 */
.profile-head { text-align: center; padding: 20px 0 8px; }
.avatar {
  width: 64px; height: 64px; margin: 0 auto 10px;
  background: var(--blue); color: #fff;
  border: 2px solid var(--line); box-shadow: 4px 4px 0 var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900;
  overflow: hidden; cursor: pointer; position: relative;
  transition: transform .12s ease;
}
.avatar:hover { transform: scale(1.05); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar .cam {
  position: absolute; right: 2px; bottom: 2px;
  background: var(--orange); color: #111; font-size: 10px; font-weight: 900;
  padding: 1px 5px; border-radius: 8px; border: 1px solid var(--line);
}
/* 头像选择器弹层 */
.avatar-picker-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
}
.avatar-picker {
  background: var(--paper); border: 2px solid var(--line);
  box-shadow: 6px 6px 0 rgba(17,17,17,.35);
  width: min(420px, 92vw); padding: 16px; border-radius: 14px 14px 0 0;
}
.avatar-picker h3 { font-size: 15px; margin: 0 0 4px; }
.avatar-picker .tip { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.avatar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.avatar-grid .cell {
  aspect-ratio: 1; border: 2px solid var(--line); cursor: pointer;
  overflow: hidden; background: var(--paper-dark); padding: 0;
  transition: transform .12s ease, box-shadow .12s ease;
}
.avatar-grid .cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-grid .cell:hover { transform: scale(1.06); }
.avatar-grid .cell.active { border-color: var(--orange); box-shadow: 3px 3px 0 var(--orange); }
.profile-head .nick { font-weight: 900; font-size: 17px; }
.profile-head .id { color: var(--muted); font-size: 12px; font-family: Consolas, monospace; }
.menu-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 4px; border-bottom: 2px solid rgba(17, 17, 17, .25);
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.menu-item:last-child { border-bottom: 0; }
.menu-item .v { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
/* 展开时只旋转箭头指示器，不带动状态文字（长文字旋转会竖排悬浮） */
.menu-item .v .arrow { display: inline-block; transition: transform .15s ease; }
.menu-item.open .v .arrow { transform: rotate(90deg); }
.invite-box {
  background: var(--paper-dark);
  border: 2px dashed var(--line);
  padding: 12px; margin-top: 10px;
}
.invite-box .code {
  color: var(--blue); font-weight: 900; letter-spacing: 2px;
  font-family: Consolas, monospace; font-size: 16px;
}
.invite-box .link { word-break: break-all; font-size: 11px; color: var(--muted); margin-top: 6px; }

/* USDT 充值订单卡片 */
.pay-order {
  display: flex; gap: 12px; margin-top: 12px;
  background: #fff; border: 2px solid var(--line);
  box-shadow: var(--shadow-sm); padding: 12px;
}
.pay-qr { flex-shrink: 0; }
.pay-qr img { width: 140px; height: 140px; display: block; }
.pay-detail { flex: 1; min-width: 0; font-size: 12px; }
.pay-amount {
  font-size: 22px; font-weight: 900; color: var(--orange);
  font-family: Consolas, monospace; line-height: 1.2; margin: 2px 0 6px;
}
.pay-amount .tail { font-size: 12px; color: var(--muted); font-weight: 700; }
.pay-row {
  display: flex; align-items: center; gap: 6px;
  margin-top: 8px; word-break: break-all;
}
.pay-row .lbl { color: var(--muted); flex-shrink: 0; font-weight: 700; }
.pay-row .val { font-family: Consolas, monospace; font-size: 11px; }
.pay-copy {
  flex-shrink: 0; border: 1.5px solid var(--line); background: var(--paper-dark);
  font-size: 10px; font-weight: 900; padding: 2px 6px; cursor: pointer;
}
.pay-copy:active { box-shadow: inset 0 0 0 2px var(--blue); }
.pay-status {
  margin-top: 10px; padding: 6px 8px; border: 2px solid var(--gold);
  background: #fff8e6; font-size: 12px; font-weight: 700;
}
.pay-status.ok { border-color: var(--green); background: #e9f9ef; color: var(--green); }
.pay-status.expired { border-color: var(--muted); background: var(--paper-dark); color: var(--muted); }
.pay-timer { font-family: Consolas, monospace; color: var(--orange); font-weight: 900; }
.pay-mini-list { margin-top: 8px; }
.pay-mini-item {
  display: flex; justify-content: space-between; gap: 8px;
  border-top: 1px dashed var(--line); padding: 7px 2px; font-size: 12px;
}
.pay-mini-item .no { font-family: Consolas, monospace; font-size: 10px; color: var(--muted); }
.pay-mini-item .amt { font-family: Consolas, monospace; font-weight: 900; }
.pay-st { font-size: 11px; font-weight: 900; }
.pay-st.pending { color: var(--gold); }
.pay-st.paid { color: var(--green); }
.pay-st.expired { color: var(--muted); }

/* 底部导航 */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex;
  background: var(--ink);
  border-top: 3px solid var(--line);
  padding: 4px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  max-width: var(--max-width); margin: 0 auto;
}
.tabbar button {
  flex: 1; border: 0; background: transparent; color: rgba(255, 255, 255, .6);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 800; padding: 6px 0;
  letter-spacing: .04em;
}
.tabbar button.active {
  color: #fff; background: var(--blue);
  box-shadow: inset 0 3px 0 var(--orange);
}
.tabbar .ico { font-size: 17px; line-height: 1; }

/* 公告 */
/* 首页公告跑马灯（对齐竞品 home-announcement-marquee，套用纸感令牌） */
.ann-marquee {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center; gap: 10px;
  min-height: 38px; overflow: hidden;
  margin-bottom: 12px; padding: 6px 10px;
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: 3px 3px 0 var(--orange);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.ann-marquee:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--orange); }
.ann-marquee:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--orange); }
.ann-marquee:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.ann-marquee-label {
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; flex-shrink: 0;
  font-size: 11px; font-weight: 900; letter-spacing: .04em;
  color: #fff; background: var(--green);
  border: 2px solid var(--line);
  padding: 3px 9px;
}
.ann-marquee-label .dot {
  width: 7px; height: 7px; flex-shrink: 0;
  background: var(--orange); border: 1px solid var(--line);
  animation: annDotBlink 1.4s ease-in-out infinite;
}
@keyframes annDotBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.ann-marquee-viewport {
  min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ann-marquee-track {
  display: inline-flex; width: max-content; align-items: center; gap: 28px;
  white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--ink);
  animation: annMarqueeScroll 24s linear infinite;
}
.ann-marquee-track span { display: inline-flex; align-items: center; }
.ann-marquee-track span::after {
  content: ""; width: 5px; height: 5px; margin-left: 28px; flex-shrink: 0;
  background: var(--green); border: 1px solid var(--line);
}
.ann-marquee:hover .ann-marquee-track { animation-play-state: paused; }
@keyframes annMarqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
/* 内容过短无需滚动时，居中展示且不循环 */
.ann-marquee-track.static {
  width: 100%; justify-content: center;
  animation: none;
}

.ann-card {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(17, 17, 17, .55);
  padding: 20px;
}
.ann-inner {
  width: 100%; max-width: 420px; max-height: 70vh; overflow-y: auto;
  background: var(--card); border: 2px solid var(--line);
  box-shadow: var(--shadow); padding: 20px;
}
.ann-inner h3 { margin: 0 0 12px; font-size: 17px; font-weight: 900; }
.ann-inner .content { white-space: pre-wrap; color: #34322e; line-height: 1.8; font-size: 13px; }
.ann-inner .foot { margin-top: 16px; display: flex; align-items: center; gap: 10px; }
.ann-inner .foot label { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.ann-inner .foot button { margin-left: auto; }

/* Toast */
.toast {
  position: fixed; top: 64px; left: 50%; transform: translateX(-50%);
  z-index: 200; background: var(--ink); color: #fff;
  border: 2px solid var(--line); box-shadow: var(--shadow-sm);
  padding: 10px 18px; font-size: 13px; font-weight: 700;
  animation: toast-in .25s ease; max-width: 80vw;
}
.toast.ok { background: var(--green); }
.toast.err { background: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; } }

.empty { text-align: center; color: var(--muted); padding: 30px 0; font-size: 13px; }
.mono { font-family: Consolas, monospace; }
.row-flex { display: flex; gap: 10px; align-items: center; }
.spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 运行状态条 */
.status-bar {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
  padding: 10px 12px; margin-bottom: 14px;
  font-size: 12px; font-weight: 700;
}
.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #c9c4b8; border: 2px solid var(--line);
}
.status-bar.running .status-dot { background: var(--green); box-shadow: 0 0 8px rgba(18, 201, 151, .8); }
.status-bar.running { color: var(--green); }

@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  #currencyRow { grid-template-columns: 1fr 1fr; }
  .verify-strip { grid-template-columns: 1fr 48px 1fr; }
  .verify-block strong { font-size: 14px; }
  .card { box-shadow: 3px 3px 0 var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}
