/* 合作伙伴后台（12-03）。顶栏和控制台一样（cx-*，从 console.css 抄过来的那几条），其余 pt- 开头 */
.cx-app { min-height: 100vh; display: flex; flex-direction: column; }
.cx-top { position: sticky; top: 0; z-index: 50; height: 56px; display: flex; align-items: center; gap: 18px; padding: 0 24px; background: var(--card); box-shadow: inset 0 -1px 0 var(--line); min-width: 0; }
.cx-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); flex: none; white-space: nowrap; }
.cx-brand b { font-size: 16px; font-weight: 650; letter-spacing: -.2px; }
.cx-brand span { font-size: 12px; color: var(--p); background: var(--p-soft); padding: 2px 7px; border-radius: 5px; font-weight: 600; }
.cx-nav { display: flex; gap: 2px; align-items: center; flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.cx-nav::-webkit-scrollbar { display: none; }
.cx-nav a { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 11px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 13.5px; font-weight: 500; transition: color .16s, background .16s; }
.cx-nav a svg.i { width: 16px; height: 16px; }
.cx-nav a:hover { color: var(--ink); background: var(--hover); }
.cx-nav a.on { color: var(--p); background: var(--p-soft); }
.cx-nav a:focus-visible { outline: 2px solid var(--p); outline-offset: -2px; }
.cx-top .grow { flex: 1; }
.cx-me { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; flex: none; max-width: 220px; }
.cx-me span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-me:hover, .cx-me.pop-open { background: var(--hover); color: var(--ink); }
.cx-me svg.i { width: 16px; height: 16px; flex: none; }
.cx-main { flex: 1; min-width: 0; }
.cx-main .page { max-width: 1280px; margin: 0 auto; overflow: visible; padding-top: 22px; width: 100%; box-sizing: border-box; }
.cx-main .page-hd { margin-bottom: 16px; align-items: center; }
.cx-main .page-hd h1 { font-size: 20px; font-weight: 650; }
.cx-main .page-hd .sub { margin-top: 3px; font-size: 13px; color: var(--ink-3); }
.cx-main .page-hd .acts { display: flex; gap: 8px; }
.cx-main .btn:active:not(:disabled) { transform: scale(.975); }
.cx-main .tb { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cx-main .tb tbody tr:hover > td { background: var(--hover); }
.cx-main .tb .acts { display: flex; justify-content: flex-end; gap: 6px; flex-wrap: nowrap; }
.cx-red { color: var(--bad); }
.cx-warn { color: var(--warn); }
.cx-ok { color: var(--ok); }
.pt-okc { color: var(--ok); display: inline-flex; align-items: center; gap: 3px; }
.pt-okc svg.i { width: 14px; height: 14px; }
.cx-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cx-search { margin-left: auto; width: 260px; }
.cx-search .input { height: 34px; }

/* 登录页 */
.brand-w { font-weight: 650; letter-spacing: -.3px; }
.lg3-copy { display: flex; align-items: center; gap: 12px; }
.lg3-lang { border: 0; background: none; color: var(--ink-3); font: inherit; font-size: 12px; cursor: pointer; padding: 2px 6px; border-radius: 5px; }
.lg3-lang:hover { background: var(--hover); color: var(--ink); }
.pt-forgot { display: block; text-align: center; margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.pt-forgot:hover { color: var(--p); }
.pt-sent { margin: 12px 0 4px; }

/* 顶栏余额 */
.pt-bal { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 8px; background: var(--fill); text-decoration: none; color: var(--ink); font-size: 13px; flex: none; white-space: nowrap; transition: background .16s; }
.pt-bal span { color: var(--ink-3); }
.pt-bal b { font-weight: 650; font-variant-numeric: tabular-nums; }
.pt-bal:hover { background: var(--hover); }

/* 卡片 */
.pt-page .card { margin-bottom: 16px; }
.pt-card { padding: 0 20px 18px; border-radius: 12px; min-width: 0; }
.pt-card > .tb, .pt-card > div > .tb { margin: 0 -20px; width: calc(100% + 40px); }
.pt-card > .tb td:first-child, .pt-card > .tb th:first-child { padding-left: 20px; }
.pt-card > .tb td:last-child, .pt-card > .tb th:last-child { padding-right: 20px; }
.pt-card-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; margin: 0 -20px 14px; padding: 0 20px; border-bottom: 1px solid var(--line-2); }
.pt-card-hd h3 { font-size: 14.5px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 8px; }
.pt-card-hd a.muted { font-size: 12.5px; display: inline-flex; align-items: center; gap: 2px; text-decoration: none; }
.pt-card-hd a.muted:hover { color: var(--p); }
.pt-card-hd a.muted svg.i { width: 14px; height: 14px; }
.pt-card-hd code { font-size: 12px; color: var(--ink-3); }
.pt-card-hd + .tb { margin-top: -14px; }
.pt-card .sub { color: var(--ink-3); font-size: 13px; margin: 0 0 14px; line-height: 1.6; }
.pt-card > .hint, .pt-form .hint, .pt-card .hint { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; margin: 10px 0 0; }
.pt-card code, .modal code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--fill); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
.pt-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.pt-grid2 > .card { margin-bottom: 0; }
.pt-none { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13px; padding: 18px 0 6px; }
.pt-none svg.i { width: 18px; height: 18px; color: var(--ink-4); }
.pt-loading { display: grid; place-items: center; height: 240px; }
.pt-loading .spin { width: 22px; height: 22px; border: 2px solid var(--p); border-right-color: transparent; border-radius: 50%; animation: rot .7s linear infinite; }
.pt-h4 { font-size: 13.5px; font-weight: 600; margin: 20px 0 8px; }
.pt-sub { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; }
.btn.sm.icon-only { width: 30px; padding: 0; }
.pt-page .kpis { margin-bottom: 16px; }
.pt-page .kpi .d b { color: var(--ink-2); font-weight: 600; }

/* 概览 */
.pt-bar { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; margin: 10px 0 6px; }
.pt-bar i { display: block; height: 100%; background: var(--p); border-radius: 3px; transition: width .5s var(--ease); }
.pt-bar-in { flex-basis: 100%; margin: 8px 0 0; background: rgba(var(--p-rgb), .14); }
.pt-co b { display: block; font-weight: 600; }
.pt-co small { color: var(--ink-3); font-size: 12px; }
.pt-exp { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.pt-exp small { font-size: 11.5px; color: var(--ink-3); }
.pt-exp small.cx-warn { color: var(--warn); } .pt-exp small.cx-red { color: var(--bad); }
.pt-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pt-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 10px; background: var(--fill); text-decoration: none; color: var(--ink-2); transition: background .16s, transform .16s; }
.pt-stat:hover { background: var(--hover); }
.pt-stat b { font-size: 24px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.pt-stat span { font-size: 12.5px; }
.pt-stat.ok b { color: var(--ok); } .pt-stat.info b { color: var(--info); } .pt-stat.warn b { color: var(--warn); } .pt-stat.bad b { color: var(--bad); }
.pt-refmini { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: var(--fill); font-size: 13px; color: var(--ink-2); }
.pt-refmini svg.i { width: 16px; height: 16px; color: var(--p); flex: none; }
.pt-refmini span { flex: 1; min-width: 0; }
.pt-refmini a { flex: none; }

/* 客户表 */
.pt-ctb td { vertical-align: middle; }
.pt-ctb .switch { vertical-align: middle; }

/* 表单 */
.pt-form .field { margin-bottom: 14px; }
.pt-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.pt-slug { display: flex; align-items: center; gap: 8px; }
.pt-slug .input { flex: 1; min-width: 0; }
.pt-slug > span { flex: none; font-size: 12px; white-space: nowrap; }
.pt-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pt-plan { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 10px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .16s, background .16s; }
.pt-plan:hover { background: var(--hover); }
.pt-plan.on { box-shadow: inset 0 0 0 2px var(--p); background: var(--p-soft); }
.pt-plan input { position: absolute; opacity: 0; pointer-events: none; }
.pt-plan b { font-size: 13.5px; font-weight: 600; }
.pt-plan span { font-size: 12px; color: var(--ink-3); }
.pt-plan em { font-style: normal; font-size: 16px; font-weight: 650; margin-top: 6px; font-variant-numeric: tabular-nums; }
.pt-plan small { font-size: 11px; color: var(--ink-3); }
.pt-plan small s { color: var(--ink-4); }
.pt-chk { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin: 2px 0 14px; cursor: pointer; }
.pt-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 12px 14px; border-radius: 10px; background: var(--fill); font-size: 13px; color: var(--ink-2); }
.pt-sum > div { display: flex; flex-direction: column; gap: 2px; }
.pt-sum > div span { font-size: 12px; color: var(--ink-3); }
.pt-sum > div b { font-size: 16px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.pt-sum > div b.cx-red { color: var(--bad); }
.pt-sum > span { display: inline-flex; align-items: center; gap: 6px; }
.pt-sum > span svg.i { width: 16px; height: 16px; color: var(--p); }
.pt-sum > .btn { margin-left: auto; }
.pt-seg { display: flex; width: 100%; }
.pt-seg button { flex: 1; justify-content: center; }
.pt-formft { display: flex; gap: 8px; margin-top: 4px; }
.pt-kv { display: flex; flex-direction: column; gap: 10px; }
.pt-kv > div { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; }
.pt-kv > div > span:first-child { flex: none; width: 76px; color: var(--ink-3); font-size: 12.5px; }
.pt-kv code { flex: 1; min-width: 0; padding: 5px 8px !important; }
.pt-kv .btn { flex: none; }
.pt-secret { letter-spacing: .2px; }
.pt-ev { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.pt-ev li span { color: var(--ink-3); margin-right: 10px; font-variant-numeric: tabular-nums; }

/* 充值和账单 */
.pt-balbig { font-size: 36px; font-weight: 700; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.pt-low { font-size: 12.5px; margin: 4px 0 16px; }
.pt-amts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pt-amts .btn { font-variant-numeric: tabular-nums; }
.pt-amts .btn.on { box-shadow: inset 0 0 0 2px var(--p); color: var(--p); background: var(--p-soft); }
.pt-amt-in { width: 150px; }
.pt-amt-in .pt-cur { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 12.5px; color: var(--ink-3); pointer-events: none; }
.pt-amt-in .input { padding-left: 42px; height: 36px; }
.pt-paybtns { display: flex; gap: 8px; }
.pt-wlhint { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: var(--fill); font-size: 12.5px; color: var(--ink-2); }
.pt-wlhint svg.i { width: 16px; height: 16px; color: var(--p); flex: none; }
.pt-usdt { display: flex; gap: 18px; align-items: flex-start; }
.pt-qr { flex: none; width: 148px; height: 148px; padding: 6px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.pt-qr svg { width: 100%; height: 100%; display: block; }
.pt-usdt-i { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.pt-usdt-i > div:not(.hint):not(.pt-claim) { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pt-usdt-i > div > span:first-child { flex: none; width: 56px; color: var(--ink-3); font-size: 12.5px; }
.pt-usdt-i code { flex: 1; min-width: 0; }
.pt-big { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pt-usdt-i .hint { margin: 0 !important; }
.pt-claim { display: flex; gap: 6px; }
.pt-claim .input { height: 30px; font-size: 12.5px; flex: 1; min-width: 0; }
.pt-cancel { align-self: flex-start; }
.pt-paid { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px 0; color: var(--ok); }
.pt-paid svg.i { width: 34px; height: 34px; }
.pt-paid b { font-size: 16px; }
.pt-paid span { color: var(--ink-3); font-size: 13px; }
.pt-note { max-width: 420px; }

/* 白标 */
.info-box.ok { background: var(--ok-soft); color: var(--ok); }
.info-box.bad { background: var(--bad-soft); color: var(--bad); }
.pt-page > .info-box { margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.pt-page > .info-box > span { flex: 1; min-width: 0; }
.pt-color { display: flex; gap: 8px; }
.pt-color input[type=color] { width: 40px; height: 36px; padding: 3px; border: 0; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); background: var(--card); cursor: pointer; flex: none; }
.pt-color .input { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; }
.pt-logo { display: flex; align-items: center; gap: 14px; }
.pt-logo > div:nth-child(2) { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pt-logo .hint { flex-basis: 100%; margin: 2px 0 0 !important; }
.pt-logo-pv { width: 56px; height: 56px; border-radius: 12px; background: var(--fill); display: grid; place-items: center; color: var(--ink-4); flex: none; overflow: hidden; }
.pt-logo-pv img { width: 100%; height: 100%; object-fit: contain; }
.pt-pv { display: flex; flex-direction: column; gap: 14px; }
.pt-pv-login { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 16px 14px; border-radius: 10px; background: var(--bg); }
.pt-pv-brand { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.pt-pv-brand img, .pt-pv-brand i { width: 28px; height: 28px; border-radius: 7px; object-fit: contain; display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 700; font-size: 14px; }
.pt-pv-box { width: 220px; background: var(--card); border-radius: 8px; box-shadow: var(--shadow-s); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.pt-pv-l { width: 40%; height: 6px; border-radius: 3px; background: var(--line); }
.pt-pv-in { height: 22px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 4px; }
.pt-pv-btn { height: 26px; border-radius: 5px; color: #fff; font-size: 12px; display: grid; place-items: center; margin-top: 2px; }
.pt-pv-copy { font-size: 11px; color: var(--ink-4); }
.pt-pv-tab { display: flex; align-items: center; gap: 8px; align-self: flex-start; padding: 7px 14px 7px 10px; border-radius: 8px 8px 0 0; background: var(--fill); font-size: 12px; color: var(--ink-2); max-width: 100%; }
.pt-pv-tab > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-pv-fav img, .pt-pv-fav i { width: 16px; height: 16px; border-radius: 4px; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 10px; font-weight: 700; object-fit: contain; }
.pt-dom { display: flex; gap: 8px; margin-bottom: 4px; }
.pt-dom .input { flex: 1; min-width: 0; max-width: 420px; }
.pt-dns { margin-top: 14px !important; }

/* 开发接口 */
.pt-m { display: inline-block; min-width: 44px; text-align: center; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 5px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.pt-m.get { background: var(--info-soft); color: var(--info); }
.pt-m.post { background: var(--ok-soft); color: var(--ok); }
.pt-pre { background: #14161f; color: #e6e8f0; border-radius: 10px; padding: 14px 16px; font-size: 12.5px; line-height: 1.6; overflow-x: auto; margin: 0; white-space: pre; }

/* 账户 */
.pt-modes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.pt-mode { text-align: left; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; font: inherit; color: var(--ink-2); transition: box-shadow .16s, background .16s; }
.pt-mode:hover { background: var(--hover); }
.pt-mode.on { box-shadow: inset 0 0 0 2px var(--p); background: var(--p-soft); cursor: default; }
.pt-mode b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink); }
.pt-mode b svg.i { width: 18px; height: 18px; color: var(--p); }
.pt-mode span { font-size: 12.5px; line-height: 1.6; }
.pt-sec { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.pt-sec:last-child { border-bottom: 0; }
.pt-sec b { display: block; font-size: 13.5px; font-weight: 600; }
.pt-sec span { font-size: 12.5px; color: var(--ink-3); }
.pt-totp { display: flex; gap: 16px; align-items: center; margin: 12px 0 16px; }
.pt-totp > div:last-child { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; min-width: 0; }

/* 窄屏 */
@media (max-width: 1360px) {
  .cx-nav a { padding: 0 9px; }
  .cx-top { gap: 12px; padding: 0 18px; }
}
@media (max-width: 1220px) {
  .cx-nav a svg.i { display: none; }
  .pt-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pt-grid2, .pt-modes { grid-template-columns: minmax(0, 1fr); }
  .cx-brand span, .pt-bal span { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-search { width: 100%; margin-left: 0; }
}
@media (max-width: 600px) {
  .pt-row2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pt-usdt { flex-direction: column; }
  .cx-me span { display: none; }
}
