/* ============================================================
   盛拓集团 STProsperity CRM — 黑金金融主题设计系统
   色调沿用黑金体系：#0D0F13 / #C79648 / #F0C585 / #FAC487 / #F3E8C8
   ============================================================ */
:root {
  --bg-0: #050608;
  --bg-1: #0d0f13;
  --bg-2: #121418;
  --bg-3: #171a1f;
  --bg-4: #1e2127;
  --glass: rgba(255, 255, 255, .035);
  --glass-2: rgba(255, 255, 255, .06);

  --gold-0: #fbf4e4;
  --gold-1: #f3e8c8;
  --gold-2: #fac487;
  --gold-3: #f0c585;
  --gold-4: #c79648;
  --gold-5: #a67c42;
  --gold-6: #8b6a3e;
  --gold-grad: linear-gradient(135deg, #f3e8c8 0%, #fac487 100%);
  --gold-grad-h: linear-gradient(90deg, #f3e8c8 0%, #fac487 100%);
  --gold-soft: rgba(199, 150, 72, .12);
  --gold-line: rgba(199, 150, 72, .28);
  --gold-line-soft: rgba(199, 150, 72, .14);

  --line: rgba(255, 255, 255, .075);
  --line-strong: rgba(255, 255, 255, .13);
  --text-1: #f4f1ea;
  --text-2: #c7c4bd;
  --text-3: #8e8e8e;
  --text-4: #6f6f6f;
  --ink: #16120d;

  --up: #f2636f;      /* 涨 / 正向：中国习惯红 */
  --down: #35c58a;    /* 跌 / 负向：绿 */
  --ok: #35c58a;
  --warn: #e9b450;
  --danger: #f2636f;
  --info: #6aa9ff;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --shadow: 0 12px 36px rgba(0, 0, 0, .38);
  --shadow-gold: 0 8px 30px rgba(199, 150, 72, .16);
  --sans: "Inter", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, "PingFang SC", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--bg-1);
  color: var(--text-1);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold-3); text-decoration: none; }
a:hover { color: var(--gold-2); }
button, input, select, textarea { font-family: inherit; font-size: inherit; outline: none; }
button { cursor: pointer; }
::selection { background: rgba(240, 197, 133, .3); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(199, 150, 72, .25); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(199, 150, 72, .45); }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-3); }
.dim { color: var(--text-4); }
.gold { color: var(--gold-3); }
.up { color: var(--up); }
.down { color: var(--down); }
.strong { font-weight: 650; }
.tc { text-align: center; }
.tr { text-align: right; }
.nowrap { white-space: nowrap; }
.fs12 { font-size: 12px; }
.fs13 { font-size: 13px; }
.fs16 { font-size: 16px; }
.fs18 { font-size: 18px; }
.fs22 { font-size: 22px; }
.fs28 { font-size: 28px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; } .mb20 { margin-bottom: 20px; }
.flex { display: flex; } .between { display: flex; align-items: center; justify-content: space-between; }
.center { display: flex; align-items: center; }
.gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; } .gap20 { gap: 20px; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--glass);
  color: var(--text-1); font-size: 13px; font-weight: 550; white-space: nowrap;
  transition: .18s ease; letter-spacing: .2px;
}
.btn:hover { border-color: var(--gold-line); color: var(--gold-2); background: var(--gold-soft); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  border: none; background: var(--gold-grad); color: var(--ink); font-weight: 700;
  box-shadow: 0 6px 20px rgba(199, 150, 72, .22);
}
.btn-primary:hover { background: var(--gold-grad-h); color: var(--ink); filter: brightness(1.06); box-shadow: 0 8px 26px rgba(199, 150, 72, .32); }
.btn-outline { border-color: var(--gold-line); color: var(--gold-3); background: transparent; }
.btn-outline:hover { border-color: var(--gold-3); background: var(--gold-soft); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--glass-2); color: var(--gold-2); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12px; border-radius: 6px; }
.btn-lg { height: 46px; font-size: 15px; border-radius: 10px; }
.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link-btn { background: none; border: none; color: var(--gold-3); padding: 0 4px; font-size: 12.5px; }
.link-btn:hover { color: var(--gold-1); text-decoration: underline; }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-label { font-size: 12.5px; color: var(--text-2); font-weight: 550; letter-spacing: .2px; }
.field-label .req { color: var(--danger); margin-left: 3px; }
.input, .select, .textarea {
  width: 100%; height: 38px; padding: 0 12px; color: var(--text-1);
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); transition: .18s ease; font-size: 13px;
}
.textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(199, 150, 72, .35); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold-4); box-shadow: 0 0 0 3px rgba(199, 150, 72, .12); background: rgba(255, 255, 255, .055); }
select.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5 6 8.5 10 4.5' fill='none' stroke='%23c79648' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
select.select option { background: var(--bg-3); color: var(--text-1); }
.input-search { padding-left: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238e8e8e' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 12px center; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-2); font-size: 13px; }
.check input { accent-color: var(--gold-4); width: 15px; height: 15px; }
.form-grid { display: grid; gap: 16px; }
.form-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-note { font-size: 11.5px; color: var(--text-4); }
.upload-box {
  border: 1px dashed var(--gold-line); border-radius: var(--r); min-height: 92px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: var(--text-3); background: var(--gold-soft); cursor: pointer; transition: .2s;
}
.upload-box:hover { border-color: var(--gold-3); color: var(--gold-2); }
.upload-box b { font-size: 20px; font-weight: 400; color: var(--gold-3); }
.upload-box span { font-size: 11.5px; }

/* ---------- Card ---------- */
.card {
  background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(199,150,72,.45), transparent); opacity: .7; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-title { font-size: 15px; font-weight: 650; letter-spacing: .3px; display: flex; align-items: center; gap: 9px; }
.card-title .dot { width: 3px; height: 14px; border-radius: 3px; background: var(--gold-grad); }
.card-sub { font-size: 12px; color: var(--text-3); }
.card-body { padding: 18px 20px; }
.card-body.tight { padding: 12px 16px; }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--line); }

/* ---------- Stat card ---------- */
.stat {
  background: linear-gradient(155deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 18px 14px;
  position: relative; overflow: hidden; transition: .2s;
}
.stat:hover { border-color: var(--gold-line); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.stat::after { content: ""; position: absolute; left: 0; top: 0; width: 42%; height: 2px; background: var(--gold-grad-h); opacity: .8; }
.stat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.stat-label { font-size: 12.5px; color: var(--text-3); letter-spacing: .3px; }
.stat-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--gold-soft); border: 1px solid var(--gold-line-soft); color: var(--gold-3); font-size: 15px; }
.stat-val { font-size: 23px; font-weight: 680; letter-spacing: .2px; margin-top: 9px; line-height: 1.2; }
.stat-val.sm { font-size: 19px; }
.stat-val .cur { font-size: 14px; color: var(--gold-3); margin-right: 2px; font-weight: 600; }
.stat-foot { margin-top: 9px; font-size: 11.5px; color: var(--text-4); display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 9px; }
.stat-foot b { color: var(--text-2); font-weight: 600; }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.4px; white-space: nowrap; }
table.tbl th {
  background: rgba(255,255,255,.028); color: var(--text-3); font-weight: 600; font-size: 11.6px;
  text-align: left; padding: 10px 11px; border-bottom: 1px solid var(--line); letter-spacing: .2px;
}
table.tbl th.sortable { cursor: pointer; user-select: none; }
table.tbl th.sortable:hover { color: var(--gold-3); }
table.tbl th .arrows { opacity: .4; margin-left: 3px; font-size: 9px; }
table.tbl td { padding: 10px 11px; border-bottom: 1px solid rgba(255,255,255,.045); color: var(--text-2); }
table.tbl tbody tr { transition: background .15s; }
table.tbl tbody tr:hover { background: rgba(199,150,72,.055); }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl th.sticky-col, table.tbl td.sticky-col {
  position: sticky; right: 0; z-index: 3; background: #17191e;
  box-shadow: -10px 0 14px rgba(0, 0, 0, .32);
}
table.tbl th.sticky-col { background: #1c1f24; }
table.tbl tbody tr:hover td.sticky-col { background: #202228; }
table.tbl td.main { color: var(--text-1); font-weight: 600; }
table.tbl td.num { text-align: right; }
table.tbl th.num { text-align: right; }
.empty { padding: 46px 20px; text-align: center; color: var(--text-4); font-size: 12.5px; }
.empty .ico { font-size: 30px; opacity: .35; display: block; margin-bottom: 8px; }

/* ---------- Tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 20px; font-size: 11.5px; font-weight: 550; border: 1px solid transparent; white-space: nowrap; }
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag.ok { background: rgba(53,197,138,.11); color: var(--ok); border-color: rgba(53,197,138,.2); }
.tag.warn { background: rgba(233,180,80,.11); color: var(--warn); border-color: rgba(233,180,80,.2); }
.tag.danger { background: rgba(242,99,111,.11); color: var(--danger); border-color: rgba(242,99,111,.2); }
.tag.info { background: rgba(106,169,255,.11); color: var(--info); border-color: rgba(106,169,255,.2); }
.tag.gold { background: var(--gold-soft); color: var(--gold-3); border-color: var(--gold-line-soft); }
.tag.muted { background: rgba(255,255,255,.05); color: var(--text-3); border-color: var(--line); }
.tag.flat::before { display: none; }

/* ---------- Tabs / Segmented ---------- */
.tabs { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid var(--line); }
.tab { padding: 9px 16px; font-size: 13px; color: var(--text-3); cursor: pointer; position: relative; border: none; background: none; transition: .18s; }
.tab:hover { color: var(--gold-2); }
.tab.active { color: var(--gold-2); font-weight: 600; }
.tab.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--gold-grad-h); border-radius: 2px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-2); gap: 2px; }
.seg button { border: none; background: transparent; color: var(--text-3); padding: 5px 13px; border-radius: 6px; font-size: 12.5px; transition: .18s; }
.seg button:hover { color: var(--gold-2); }
.seg button.active { background: var(--gold-grad); color: var(--ink); font-weight: 650; }

/* ---------- Filters / toolbar ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.filter-item { display: flex; align-items: center; gap: 8px; }
.filter-item > label { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.filter-item .input, .filter-item .select { width: 158px; height: 34px; }
.filter-item .input.wide { width: 210px; }
.filter-item .input.date { width: 140px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- Modal ---------- */
.mask { position: fixed; inset: 0; background: rgba(3,4,6,.76); backdrop-filter: blur(5px); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.modal {
  width: min(680px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column;
  background: linear-gradient(160deg, #17191e, #101216); border: 1px solid var(--gold-line);
  border-radius: var(--r-xl); box-shadow: 0 30px 90px rgba(0,0,0,.65), 0 0 60px rgba(199,150,72,.08);
  animation: pop .24s cubic-bezier(.2,.8,.2,1);
}
.modal.wide { width: min(940px, 100%); }
.modal.narrow { width: min(460px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: .3px; }
.modal-close { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--glass); color: var(--text-3); font-size: 17px; line-height: 1; }
.modal-close:hover { color: var(--gold-2); border-color: var(--gold-line); }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 15px 22px; border-top: 1px solid var(--line); }

/* ---------- Steps ---------- */
.steps { display: flex; flex-direction: column; gap: 4px; }
.step { display: flex; gap: 12px; padding: 12px 10px; border-radius: 10px; transition: .18s; }
.step.active { background: var(--gold-soft); }
.step-no { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; border: 1px solid var(--line-strong); color: var(--text-3); }
.step.active .step-no { background: var(--gold-grad); color: var(--ink); border-color: transparent; }
.step.done .step-no { background: rgba(53,197,138,.15); color: var(--ok); border-color: rgba(53,197,138,.3); }
.step-t { font-size: 13px; font-weight: 600; color: var(--text-2); }
.step.active .step-t { color: var(--gold-2); }
.step-d { font-size: 11.5px; color: var(--text-4); margin-top: 2px; }
.step-bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; margin: 10px 0 18px; }
.step-bar > i { display: block; height: 100%; background: var(--gold-grad-h); border-radius: 3px; transition: width .3s; }

/* ---------- Misc ---------- */
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: var(--ink); font-weight: 700; font-size: 13px; flex: 0 0 auto; box-shadow: 0 0 0 2px rgba(199,150,72,.2); }
.avatar.lg { width: 44px; height: 44px; font-size: 16px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); flex-wrap: wrap; }
.pages { display: flex; gap: 5px; align-items: center; }
.pages button { min-width: 28px; height: 28px; padding: 0 6px; border: 1px solid var(--line); background: transparent; color: var(--text-3); border-radius: 6px; font-size: 12px; }
.pages button:hover { color: var(--gold-2); border-color: var(--gold-line); }
.pages button.active { background: var(--gold-grad); color: var(--ink); border-color: transparent; font-weight: 700; }
.progress { height: 6px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--gold-grad-h); border-radius: 6px; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.list-row:last-child { border-bottom: none; }
.list-row .l { color: var(--text-2); }
.list-row .r { color: var(--text-1); font-weight: 600; }
.hint { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--gold-soft); border: 1px solid var(--gold-line-soft); color: var(--text-2); font-size: 12px; line-height: 1.6; }
.hint b { color: var(--gold-2); }
.toast-wrap { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { padding: 10px 18px; border-radius: 10px; background: #1b1e23; border: 1px solid var(--gold-line); color: var(--text-1); font-size: 13px; box-shadow: var(--shadow); animation: pop .2s ease; }
.toast.ok { border-color: rgba(53,197,138,.4); }
.toast.err { border-color: rgba(242,99,111,.4); }
.badge { position: absolute; top: -3px; right: -3px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10px; line-height: 15px; text-align: center; font-weight: 700; }
.icon-btn { position: relative; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--glass); color: var(--text-2); display: grid; place-items: center; font-size: 15px; }
.icon-btn:hover { color: var(--gold-2); border-color: var(--gold-line); background: var(--gold-soft); }
.dropdown { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; background: #17191e; border: 1px solid var(--gold-line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 120; }
.dropdown button, .dropdown a { display: flex; width: 100%; align-items: center; gap: 9px; padding: 9px 11px; border: none; background: none; color: var(--text-2); font-size: 13px; border-radius: 7px; text-align: left; }
.dropdown button:hover, .dropdown a:hover { background: var(--gold-soft); color: var(--gold-2); }
.dropdown .sep { height: 1px; background: var(--line); margin: 5px 2px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--text-3); }
.chart-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.qr { width: 112px; height: 112px; border-radius: 8px; background: #fff; padding: 7px; }
.qr svg { width: 100%; height: 100%; display: block; }

@media (max-width: 1200px) {
  .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .g2, .g3, .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid.c3, .form-grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .g2, .g3, .g4, .g5, .form-grid.c2, .form-grid.c3, .form-grid.c4 { grid-template-columns: 1fr; }
  .filters { gap: 10px; }
  .filter-item .input, .filter-item .select, .filter-item .input.wide { width: 100%; }
  .filter-item { width: 100%; flex-direction: column; align-items: flex-start; gap: 5px; }
}

/* ===================== 盛拓集团 / STProsperity 品牌锁版（三页共用） ===================== */
/* 图形为透明底 SVG：深色版用于系统，浅色版留作印刷 / 邮件备用素材。
   品牌文字恒为原文，切到任何语种都不翻译、不变形（容器带 data-no-i18n）。 */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; flex: 0 0 42px; object-fit: contain; display: block;
  filter: drop-shadow(0 5px 16px rgba(0, 0, 0, .45));
}
.brand-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.brand-name {
  font-size: 20px; font-weight: 800; letter-spacing: 4.5px; line-height: 1.06;
  color: #f5f6f8; white-space: nowrap; text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.brand-sub { display: flex; align-items: baseline; line-height: 1; white-space: nowrap; }
.brand-sub .stp {
  font-size: 16px; font-weight: 800; font-style: italic; letter-spacing: -.5px; color: #f7a431;
}
.brand-sub .pros { font-size: 12.5px; font-style: italic; letter-spacing: .2px; color: #cfd4dc; }
.brand-sub .brand-bar {
  display: inline-block; width: 1px; height: 11px; margin: 0 9px;
  align-self: center; background: var(--gold-line);
}
.brand-sub .brand-tag { font-size: 8.5px; letter-spacing: 2.2px; font-style: normal; color: var(--text-4); }

/* ===================== 多语言切换控件（三页共用） ===================== */
.lang-wrap { position: relative; flex: 0 0 auto; }
.lang-btn {
  display: flex; align-items: center; gap: 7px; height: 33px; padding: 0 12px;
  border-radius: 9px; border: 1px solid var(--line); background: var(--glass);
  color: var(--text-2); font-size: 12px; cursor: pointer; white-space: nowrap;
}
.lang-btn:hover { border-color: var(--gold-line); color: var(--gold-2); }
.lang-btn > span:first-child { color: var(--gold-3); font-size: 12px; }
.lang-btn > span:last-child { color: var(--text-4); font-size: 10px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 152px;
  background: #191b20; border: 1px solid var(--gold-line); border-radius: 10px;
  padding: 5px; box-shadow: var(--shadow); z-index: 130; display: none;
}
.lang-menu.open { display: block; }
.lang-menu button {
  display: block; width: 100%; text-align: left; padding: 8px 10px; border: none;
  background: none; color: var(--text-2); font-size: 12.5px; border-radius: 6px; cursor: pointer;
}
.lang-menu button:hover { background: var(--gold-soft); color: var(--gold-2); }
.lang-menu button.on { background: var(--gold-soft); color: var(--gold-1); font-weight: 600; }
.top-lang { margin-left: 6px; }
/* 统计卡里的单位：独立成元素，多语言下整体换行而不被拆字 */
.stat-val .unit {
  display: inline-block; margin-left: 4px; font-size: .52em; font-weight: 600;
  color: var(--text-3); letter-spacing: .2px; white-space: nowrap; vertical-align: baseline;
}
html[dir="rtl"] .stat-val .unit { margin-left: 0; margin-right: 4px; }
.promo-link { word-break: break-all; }

/* ===================== 阿拉伯语 RTL 镜像 ===================== */
html[dir="rtl"] body { direction: rtl; }
html[lang="ar-SA"] body { font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif; }
html[dir="rtl"] .sidebar { left: auto; right: 0; }
html[dir="rtl"] .sidebar::after { right: auto; left: 0; }
html[dir="rtl"] .menu-item.active::before { left: auto; right: -10px; }
html[dir="rtl"] .sub-item { padding-left: 0; padding-right: 41px; }
html[dir="rtl"] .sub-item.active::before { left: auto; right: 27px; }
html[dir="rtl"] .menu-item .mi-arrow { margin-left: 0; margin-right: auto; transform: scaleX(-1); }
html[dir="rtl"] .menu-item.open .mi-arrow { transform: scaleX(-1) rotate(90deg); }
html[dir="rtl"] .side-ver { padding-left: 0; padding-right: 4px; }
html[dir="rtl"] .main { margin-left: 0; margin-right: 248px; }
html[dir="rtl"] .sidebar.collapsed ~ .main { margin-left: 0; margin-right: 68px; }
html[dir="rtl"] .top-search { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .top-user { padding-left: 0; padding-right: 4px; }
html[dir="rtl"] .notif-panel, html[dir="rtl"] .dropdown, html[dir="rtl"] .lang-menu { right: auto; left: 0; }
html[dir="rtl"] .badge { right: auto; left: -3px; }
html[dir="rtl"] .lang-menu button, html[dir="rtl"] .suggest button,
html[dir="rtl"] .dropdown button { text-align: right; }
html[dir="rtl"] table.tbl th, html[dir="rtl"] table.tbl td { text-align: right; }
html[dir="rtl"] table.tbl th.sticky-col, html[dir="rtl"] table.tbl td.sticky-col {
  right: auto; left: 0; box-shadow: 10px 0 14px rgba(0, 0, 0, .32);
}
html[dir="rtl"] table.tbl td.num, html[dir="rtl"] table.tbl th.num { text-align: left; direction: ltr; }
html[dir="rtl"] .input, html[dir="rtl"] .auth-input, html[dir="rtl"] select.select { direction: ltr; text-align: right; }
html[dir="rtl"] .input-search { padding-left: 12px; padding-right: 34px; background-position: right 12px center; }
html[dir="rtl"] select.select { padding-right: 12px; padding-left: 30px; background-position: left 12px center; }
html[dir="rtl"] .pw-toggle { right: auto; left: 11px; }
html[dir="rtl"] .captcha-img { right: auto; left: 5px; }
html[dir="rtl"] .cap-wrap .auth-input { padding-right: 13px !important; padding-left: 112px !important; }
html[dir="rtl"] .auth-invite .ok { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .auth-shell { direction: rtl; }
html[dir="rtl"] .auth-top { direction: rtl; }
html[dir="rtl"] .auth-glow { left: auto; right: -240px; }
html[dir="rtl"] .auth-glow.two { left: auto; right: -100px; }
html[dir="rtl"] .fc-1 { left: auto; right: 14px; }
html[dir="rtl"] .fc-2 { left: auto; right: 204px; }
html[dir="rtl"] .fc-3 { left: auto; right: 118px; }
html[dir="rtl"] .auth-left .float-card { direction: ltr; text-align: left; }
html[dir="rtl"] .promo-link, html[dir="rtl"] .promo-code b {
  direction: ltr; unicode-bidi: isolate; text-align: left; display: inline-block;
}
html[dir="rtl"] .chart-legend i { margin-right: 0; margin-left: 6px; }
html[dir="rtl"] .field-label .req { margin-left: 0; margin-right: 3px; }
html[dir="rtl"] table.tbl th .arrows { margin-left: 0; margin-right: 3px; }
html[dir="rtl"] .stat-val .cur { margin-right: 0; margin-left: 2px; }
html[dir="rtl"] .card-title, html[dir="rtl"] .card-sub { direction: rtl; }
html[dir="rtl"] .num, html[dir="rtl"] .stat-val, html[dir="rtl"] .u-role { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .toast { direction: rtl; text-align: right; }
/* 品牌锁版在阿语下整体镜像，但拉丁字标与中文名保持原有方向 */
html[dir="rtl"] .brand-txt { align-items: flex-end; }
html[dir="rtl"] .brand-sub { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .brand-name { direction: ltr; unicode-bidi: isolate; }
