/* =========================================================
   接码平台 · 视觉样式表
   深色 + 玻璃质感 + 渐变强调色。所有类名保持不变（JS 依赖）
   ========================================================= */

:root {
  /* 底色：三层递进 */
  --bg:        #06080d;
  --bg-2:      #0a0e16;
  --surface:   #0f1420;
  --surface-2: #141a28;
  --surface-3: #1a2233;

  /* 描边 */
  --line:      #1e2636;
  --line-2:    #2a3448;

  /* 文字 */
  --txt:       #e8edf7;
  --txt-2:     #a9b6cc;
  --muted:     #6f7d95;

  /* 强调色 */
  --accent:    #4d8dff;
  --accent-2:  #2fe3a4;
  --violet:    #8b5cf6;
  --warn:      #ffb020;
  --danger:    #ff5d6c;

  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 10px 30px rgba(0,0,0,.45);
  --shadow-lg: 0 24px 70px rgba(0,0,0,.65);

  --mono: "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
/* 背景光晕 */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 520px at 12% -8%,  rgba(77,141,255,.16), transparent 62%),
    radial-gradient(760px 460px at 92% 4%,   rgba(139,92,246,.13), transparent 60%),
    radial-gradient(680px 420px at 50% 108%, rgba(47,227,164,.07), transparent 62%);
}
body > * { position: relative; z-index: 1; }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.right { text-align: right; }
code, pre, .mono { font-family: var(--mono); }
a { color: var(--accent); text-decoration: none; }
a:hover { opacity: .82; }
::selection { background: rgba(77,141,255,.35); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #232c3e; border-radius: 8px; border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #2f3a52; }

/* =========================================================
   品牌标识
   ========================================================= */
.brand { display: flex; align-items: center; gap: 11px; }
.brand h1,
.brand b {
  margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.2px;
  background: linear-gradient(92deg, #fff, #a8c4ff 60%, #8b5cf6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dot {
  width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(140deg, var(--accent-2), #17b47c);
  box-shadow: 0 0 0 3px rgba(47,227,164,.12), 0 0 16px rgba(47,227,164,.55);
}
.small-brand b { font-size: 15.5px; }

/* =========================================================
   登录 / 注册
   ========================================================= */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr);
  gap: 0;
}
.auth-hero {
  display: flex; flex-direction: column; justify-content: center;
  padding: 8vh 6vw; gap: 26px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(700px 420px at 20% 20%, rgba(77,141,255,.10), transparent 60%),
    linear-gradient(180deg, #080b12, #06080d);
}
.auth-hero h2 {
  margin: 0; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.22;
  letter-spacing: -1px; font-weight: 680;
}
.auth-hero h2 em {
  font-style: normal;
  background: linear-gradient(96deg, var(--accent-2), var(--accent) 70%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-hero p { margin: 0; max-width: 460px; color: var(--txt-2); font-size: 15px; }
.hero-bullets { display: grid; gap: 14px; margin-top: 6px; }
.hero-bullet { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--txt-2); }
.hero-bullet i {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px;
  display: grid; place-items: center; font-size: 12px; font-style: normal;
  background: rgba(77,141,255,.14); color: #8ab4ff; border: 1px solid rgba(77,141,255,.28);
}
.hero-metrics { display: flex; gap: 30px; margin-top: 10px; flex-wrap: wrap; }
.hero-metrics div { display: flex; flex-direction: column; gap: 2px; }
.hero-metrics b {
  font-family: var(--mono); font-size: 22px; color: var(--txt); letter-spacing: -.5px;
}
.hero-metrics span { font-size: 12px; color: var(--muted); }

.auth-card {
  align-self: center;
  width: 100%; max-width: 430px;
  margin: 0 auto;
  padding: 38px 34px;
  background: linear-gradient(180deg, rgba(20,26,40,.92), rgba(13,17,26,.96));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}
.auth-card .brand { margin-bottom: 8px; }
.auth-card > .muted { margin: 0 0 20px; line-height: 1.55; }

.tabs-inline {
  display: flex; gap: 4px; margin: 20px 0 18px;
  padding: 4px; border-radius: 12px;
  background: #0a0e16; border: 1px solid var(--line);
}
.tab {
  flex: 1; padding: 9px 8px; border-radius: 9px; border: 0;
  background: transparent; color: var(--muted); cursor: pointer;
  font-size: 13.5px; font-weight: 500; transition: .18s;
}
.tab:hover { color: var(--txt-2); }
.tab.active {
  background: linear-gradient(180deg, #23304a, #1a2436);
  color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 12px; color: var(--muted);
  margin-bottom: 7px; font-weight: 500; letter-spacing: .2px;
}
input, select, textarea {
  width: 100%; padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: #080b12;
  color: var(--txt); font-size: 14px; outline: none;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
input::placeholder { color: #4d5a70; }
input:hover { border-color: #34415a; }
input:focus, select:focus {
  border-color: var(--accent);
  background: #0a0f1a;
  box-shadow: 0 0 0 3px rgba(77,141,255,.14);
}
select { cursor: pointer; }

/* 邮箱验证面板 */
.verify-box {
  margin-top: 16px; padding: 16px; border-radius: 13px;
  border: 1px solid rgba(77,141,255,.28);
  background: linear-gradient(180deg, rgba(20,33,59,.85), rgba(13,20,34,.9));
}
.verify-box p { margin: 0 0 12px; }
.verify-box input {
  text-align: center; font-family: var(--mono); font-size: 20px;
  letter-spacing: 8px; padding-left: 18px; margin-bottom: 12px;
}

/* =========================================================
   按钮
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--surface-2);
  color: var(--txt); font-size: 13px; font-weight: 500; cursor: pointer;
  white-space: nowrap; transition: transform .12s, box-shadow .18s, border-color .18s, background .18s;
}
.btn:hover { border-color: #3a4a68; background: #1b2334; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(180deg, #5b95ff, #3d73e8);
  border-color: #4d8dff; color: #fff; font-weight: 600;
  box-shadow: 0 6px 18px rgba(61,115,232,.32), inset 0 1px 0 rgba(255,255,255,.14);
}
.btn.primary:hover {
  background: linear-gradient(180deg, #6ba0ff, #4a80f0);
  box-shadow: 0 8px 24px rgba(61,115,232,.42), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--txt-2); }
.btn.ghost:hover { background: rgba(255,255,255,.03); color: var(--txt); border-color: #3a4a68; }
.btn.danger { color: #ff8d97; border-color: #4a2730; background: rgba(255,93,108,.07); }
.btn.danger:hover { background: rgba(255,93,108,.13); border-color: #6b3540; }
.btn.block { width: 100%; padding: 12px; margin-top: 6px; }
.btn.small { padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.btn.icon { padding: 4px 9px; font-size: 11.5px; border-radius: 7px; }
.btn:disabled { opacity: .42; cursor: not-allowed; transform: none !important; }

/* =========================================================
   顶栏
   ========================================================= */
.topbar {
  display: flex; align-items: center; gap: 22px;
  padding: 13px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(8,11,18,.82);
  backdrop-filter: blur(16px) saturate(140%);
  position: sticky; top: 0; z-index: 40;
}
.nav { display: flex; gap: 3px; }
.navbtn {
  position: relative; background: transparent; border: 0;
  color: var(--muted); padding: 8px 14px; border-radius: 9px;
  cursor: pointer; font-size: 13.5px; font-weight: 500; transition: .16s;
}
.navbtn:hover { color: var(--txt); background: rgba(255,255,255,.04); }
.navbtn.active { color: #fff; background: linear-gradient(180deg, #22304a, #1a2436); }
.navbtn.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -13px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
}
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.balance-chip {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(47,227,164,.16), rgba(47,227,164,.07));
  border: 1px solid rgba(47,227,164,.34);
  color: var(--accent-2);
  box-shadow: 0 0 18px rgba(47,227,164,.12);
}
.user-chip {
  font-size: 12.5px; color: var(--muted); max-width: 190px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.role-badge {
  font-size: 11px; padding: 3px 9px; border-radius: 999px; font-weight: 500;
  background: rgba(255,255,255,.05); color: var(--muted);
  border: 1px solid var(--line-2); white-space: nowrap;
}
.role-badge.admin {
  background: rgba(255,176,32,.12); color: var(--warn);
  border-color: rgba(255,176,32,.32);
}

/* =========================================================
   主区域
   ========================================================= */
main { max-width: 1240px; margin: 0 auto; padding: 26px; }
.tabpane { animation: fadeUp .26s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.pane-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 16px; flex-wrap: wrap;
}
.pane-head h2 {
  font-size: 17px; margin: 0; font-weight: 620; letter-spacing: -.2px;
}

/* 统计条 */
.ov-strip {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch;
  margin-bottom: 18px;
}
.ov-strip span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 15px; border-radius: 11px; font-size: 12.5px;
  background: linear-gradient(180deg, rgba(20,26,40,.9), rgba(13,17,26,.9));
  border: 1px solid var(--line); color: var(--muted);
  font-family: var(--mono); box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.ov-strip b {
  color: var(--accent-2); font-weight: 650;
  text-shadow: 0 0 14px rgba(47,227,164,.22);
}

/* =========================================================
   买号：双栏
   ========================================================= */
.buy-grid {
  display: grid; grid-template-columns: 296px minmax(0, 1fr);
  gap: 16px; align-items: start;
}
.svc-panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18,24,36,.96), rgba(12,16,24,.98));
  padding: 15px; position: sticky; top: 78px;
  max-height: calc(100vh - 100px); display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.svc-panel input { margin-bottom: 12px; }
.svc-group-title {
  font-size: 11px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .9px; margin: 12px 0 9px; font-weight: 600;
}
.svc-list { overflow: auto; flex: 1; margin: 0 -6px; padding: 0 6px; }
.svc-item {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 9px 11px; border-radius: 9px; cursor: pointer; font-size: 13px;
  border: 1px solid transparent; transition: .14s; color: var(--txt-2);
}
.svc-item:hover { background: rgba(255,255,255,.045); color: var(--txt); }
.svc-item.active {
  background: linear-gradient(90deg, rgba(77,141,255,.18), rgba(77,141,255,.04));
  border-color: rgba(77,141,255,.4); color: #fff;
}
.svc-item .n { color: var(--muted); font-size: 11px; font-family: var(--mono); }
.svc-item .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-panel { min-width: 0; }

.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  padding: 7px 13px; border-radius: 999px; font-size: 12.5px;
  border: 1px solid var(--line-2); background: var(--surface-2);
  color: var(--txt-2); cursor: pointer; transition: .15s; white-space: nowrap;
}
.chip:hover { border-color: #3d4d6c; color: var(--txt); transform: translateY(-1px); }
.chip.active {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(77,141,255,.22), rgba(77,141,255,.08));
  color: #fff; box-shadow: 0 0 0 3px rgba(77,141,255,.1);
}

/* =========================================================
   表格
   ========================================================= */
.table-wrap {
  overflow: auto; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16,21,32,.9), rgba(11,15,22,.95));
  box-shadow: var(--shadow);
}
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th {
  text-align: left; padding: 12px 15px; font-size: 11.5px; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: .5px;
  background: rgba(10,14,22,.95); border-bottom: 1px solid var(--line);
  white-space: nowrap; position: sticky; top: 0; z-index: 2;
}
table.grid td {
  padding: 12px 15px; border-bottom: 1px solid rgba(30,38,54,.7);
  font-family: var(--mono); font-size: 12.5px; color: var(--txt-2);
}
table.grid tbody tr { transition: background .14s; }
table.grid tbody tr:hover { background: rgba(77,141,255,.05); }
table.grid tr:last-child td { border-bottom: 0; }
.price-cell { color: var(--accent-2); font-weight: 650; }
.warn-text { color: var(--warn); }
.danger-text { color: var(--danger); }
.sold-out { color: var(--danger); }
tr.row-dead td { opacity: .42; }

/* =========================================================
   卡片 / 统计卡
   ========================================================= */
.card {
  background: linear-gradient(180deg, rgba(17,23,35,.94), rgba(11,15,23,.97));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: #26314a; }
.card h3 {
  margin: 0 0 16px; font-size: 14.5px; font-weight: 620;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
}
.card h3 a.btn { font-weight: 400; }

.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 12px; margin-bottom: 18px;
}
.stat-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(18,24,38,.95), rgba(11,15,23,.96));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 17px; display: flex; flex-direction: column; gap: 3px;
  box-shadow: var(--shadow); transition: transform .18s, border-color .18s;
}
.stat-card:hover { transform: translateY(-2px); border-color: #2b3650; }
.stat-card::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(77,141,255,.14), transparent 70%);
}
.stat-card span { font-size: 12px; color: var(--muted); }
.stat-card b {
  font-family: var(--mono); font-size: 21px; font-weight: 650;
  letter-spacing: -.5px; color: var(--txt);
}
.stat-card em { font-style: normal; font-size: 11px; color: var(--muted); }

.kv {
  display: flex; gap: 12px; align-items: center;
  padding: 6px 0; font-size: 13px; flex-wrap: wrap;
}
.kv > span { color: var(--muted); min-width: 76px; font-size: 12px; }
.kv code {
  background: #080b12; padding: 5px 10px; border-radius: 8px;
  border: 1px solid var(--line); font-size: 12.5px; color: #9fc4ff;
  word-break: break-all;
}
.row-inline {
  display: flex; gap: 10px; align-items: center;
  margin-top: 12px; flex-wrap: wrap;
}
.row-inline input { flex: 1; min-width: 170px; }
.row-inline input.narrow { max-width: 150px; flex: 0 0 auto; }
.keybox {
  flex: 1; background: #080b12; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 13px;
  font-size: 12.5px; word-break: break-all; color: var(--accent-2);
}
pre {
  background: #080b12; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; overflow: auto; font-size: 12.5px; color: #9fd0ff;
  margin: 0; line-height: 1.65;
}
details summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }
details summary:hover { color: var(--txt-2); }
details[open] summary { margin-bottom: 10px; }

/* =========================================================
   订单卡
   ========================================================= */
.order-list { display: grid; gap: 12px; }
.order-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(17,23,35,.95), rgba(11,15,23,.97));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px 18px 24px;
  display: grid; grid-template-columns: minmax(0,1fr) auto;
  gap: 16px; box-shadow: var(--shadow);
  transition: transform .16s, border-color .16s;
}
.order-card:hover { transform: translateY(-1px); border-color: #2b3650; }
.order-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--line-2);
}
.order-card.s-wait::before { background: linear-gradient(180deg, var(--accent), #2b5fd0); }
.order-card.s-code::before { background: linear-gradient(180deg, var(--accent-2), #14a577); }
.order-card.s-done::before { background: #35405a; }
.order-card.s-refund::before { background: linear-gradient(180deg, var(--warn), #c47d0a); }

.oc-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge {
  font-size: 11px; padding: 3px 10px; border-radius: 999px;
  background: rgba(255,255,255,.05); color: var(--muted);
  border: 1px solid var(--line-2); font-weight: 500;
}
.badge.wait { background: rgba(77,141,255,.14); color: #8ab4ff; border-color: rgba(77,141,255,.32); }
.badge.code { background: rgba(47,227,164,.13); color: var(--accent-2); border-color: rgba(47,227,164,.3); }
.badge.done { background: rgba(255,255,255,.05); color: #93a1b8; }
.badge.refund { background: rgba(255,176,32,.12); color: var(--warn); border-color: rgba(255,176,32,.3); }

.oc-phone {
  font-family: var(--mono); font-size: 15.5px; font-weight: 600;
  letter-spacing: .4px; color: var(--txt); cursor: pointer;
  user-select: all; -webkit-user-select: all;
  border-bottom: 1px dashed transparent; transition: .15s;
}
.oc-phone:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }
.oc-phone:active { opacity: .6; }
.oc-sub { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.oc-code {
  font-family: var(--mono); font-size: 30px; font-weight: 650;
  letter-spacing: 6px; color: var(--accent-2); margin: 10px 0 2px;
  text-shadow: 0 0 26px rgba(47,227,164,.36);
  cursor: pointer; user-select: all; -webkit-user-select: all;
}
.oc-code:active { opacity: .6; }
.oc-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; justify-content: center; }
.countdown { font-family: var(--mono); font-size: 15px; color: #8ab4ff; font-weight: 600; }
.empty-hint { text-align: center; padding: 44px 0; }

/* =========================================================
   自动充值
   ========================================================= */
.pay-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.qr-wrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.qr-img {
  width: 172px; height: 172px; flex: 0 0 auto;
  background: #fff; border-radius: 14px; padding: 11px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.qr-img svg { width: 100%; height: 100%; display: block; }
.qr-side { flex: 1; min-width: 220px; }
.qr-side .kv code { font-size: 12px; }
.pay-manual { text-align: center; padding: 10px 0; }
.pay-qr {
  width: 220px; max-width: 80%; margin: 0 auto 14px; display: block;
  border-radius: 14px; background: #fff; padding: 9px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.intent-box {
  margin-top: 14px; padding: 18px; border-radius: var(--radius);
  border: 1px solid rgba(47,227,164,.3);
  background: linear-gradient(180deg, rgba(16,36,28,.9), rgba(10,22,18,.95));
}
.intent-amount { font-size: 15px; color: var(--txt-2); margin-bottom: 8px; }
.intent-amount b {
  font-family: var(--mono); font-size: 30px; font-weight: 700;
  color: var(--accent-2); letter-spacing: .5px;
  text-shadow: 0 0 26px rgba(47,227,164,.4);
}

/* =========================================================
   提示 / 告警
   ========================================================= */
.alert-box { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.alert-item {
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px;
  border: 1px solid var(--line); background: var(--surface-2);
  display: flex; align-items: center; gap: 10px; line-height: 1.5;
}
.alert-item.danger {
  border-color: rgba(255,93,108,.4); background: rgba(255,93,108,.09); color: #ffb3bb;
}
.alert-item.warn {
  border-color: rgba(255,176,32,.4); background: rgba(255,176,32,.09); color: #ffd18a;
}
.alert-item.info {
  border-color: rgba(77,141,255,.34); background: rgba(77,141,255,.09); color: #9fc4ff;
}

/* =========================================================
   客服浮窗
   ========================================================= */
.support-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  padding: 13px 20px; border-radius: 999px; border: 1px solid rgba(77,141,255,.5);
  background: linear-gradient(180deg, #4d8dff, #2f63cc);
  color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: 0 10px 30px rgba(47,99,204,.45), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .16s, box-shadow .18s;
}
.support-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(47,99,204,.55), inset 0 1px 0 rgba(255,255,255,.25);
}
.support-panel {
  position: fixed; right: 22px; bottom: 82px; width: 292px; z-index: 91;
  background: linear-gradient(180deg, rgba(20,26,40,.98), rgba(12,16,24,.99));
  border: 1px solid var(--line-2); border-radius: 16px; padding: 16px;
  box-shadow: var(--shadow-lg); backdrop-filter: blur(14px);
  animation: fadeUp .2s ease both;
}
.sp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sp-item {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 12px; margin-top: 9px; border-radius: 10px;
  background: rgba(8,11,18,.85); border: 1px solid var(--line); font-size: 13px;
}
.sp-item .v { font-family: var(--mono); font-size: 12px; color: var(--accent-2); }
.sp-item a { color: var(--accent-2); }

/* =========================================================
   弹窗
   ========================================================= */
.dlg-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(3,5,9,.78); backdrop-filter: blur(5px);
  display: grid; place-items: center; padding: 20px;
  animation: fadeIn .16s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.dlg {
  width: 100%; max-width: 412px;
  background: linear-gradient(180deg, rgba(22,28,44,.99), rgba(13,17,26,.99));
  border: 1px solid var(--line-2); border-radius: 18px; padding: 24px;
  box-shadow: var(--shadow-lg); animation: fadeUp .2s ease both;
}
.dlg-title { font-size: 16.5px; font-weight: 650; margin-bottom: 5px; letter-spacing: -.2px; }
.dlg-field { display: block; margin-top: 15px; }
.dlg-field span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.dlg-extra { margin-top: 13px; }
.dlg-status { font-size: 12.5px; color: var(--accent-2); margin-top: 11px; min-height: 17px; }
.dlg-status.err { color: var(--danger); }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.dlg-actions .btn { min-width: 92px; }

/* =========================================================
   Toast
   ========================================================= */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 300; max-width: 90vw;
  padding: 12px 22px; border-radius: 12px; font-size: 13px;
  background: linear-gradient(180deg, rgba(28,36,53,.98), rgba(17,23,35,.99));
  border: 1px solid var(--line-2); color: var(--txt);
  box-shadow: 0 16px 44px rgba(0,0,0,.6);
  animation: toastIn .22s cubic-bezier(.2,.9,.3,1.2) both;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.toast.err { border-color: rgba(255,93,108,.45); background: linear-gradient(180deg, #2b171d, #1d1013); color: #ffb3bb; }
.toast.ok  { border-color: rgba(47,227,164,.45); background: linear-gradient(180deg, #10241c, #0b1a15); color: var(--accent-2); }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 980px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .buy-grid { grid-template-columns: 1fr; }
  .svc-panel { position: static; max-height: 300px; }
}
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  main { padding: 16px; }
  .order-card { grid-template-columns: 1fr; }
  .oc-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .user-chip { display: none; }
  .auth-card { padding: 26px 20px; margin: 16px; max-width: none; }
  .qr-wrap { flex-direction: column; align-items: flex-start; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   已登录界面 · 细节强化
   ========================================================= */

/* 页面标题区 */
.page-head { margin-bottom: 18px; }
.page-head h2 {
  margin: 0 0 5px; font-size: 19px; font-weight: 650; letter-spacing: -.3px;
}
.page-head p { margin: 0; color: var(--muted); font-size: 13px; }

/* 服务列表头像 */
.svc-avatar {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
  background: linear-gradient(150deg, #24314a, #18202f);
  border: 1px solid var(--line-2); color: #9fb4d8;
  font-family: var(--mono);
}
.svc-item.active .svc-avatar {
  background: linear-gradient(150deg, #3d73e8, #2a55b8);
  border-color: #4d8dff; color: #fff;
}
.svc-item { gap: 10px; }
.svc-item .t { flex: 1; }

/* 国家行 */
.td-country { font-family: inherit !important; display: flex; align-items: center; gap: 10px; }
.flag-pill {
  width: 26px; height: 26px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 15px; border-radius: 8px;
  background: rgba(255,255,255,.045); border: 1px solid var(--line);
}
.cty-name { font-size: 13.5px; color: var(--txt); }
.price-pill {
  font-family: var(--mono); font-weight: 650; color: var(--accent-2);
  font-size: 14px; padding: 2px 9px; border-radius: 7px;
  background: rgba(47,227,164,.09); border: 1px solid rgba(47,227,164,.22);
}
.price-unit { font-size: 10.5px; color: var(--muted); margin-left: 5px; letter-spacing: .5px; }
.stock-pill {
  display: inline-block; min-width: 46px; text-align: center;
  font-family: var(--mono); font-size: 12px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--txt-2); background: rgba(255,255,255,.03);
}
.stock-pill.ok  { color: var(--accent-2); border-color: rgba(47,227,164,.28); background: rgba(47,227,164,.08); }
.stock-pill.low { color: var(--warn); border-color: rgba(255,176,32,.3); background: rgba(255,176,32,.08); }
.stock-pill.no  { color: var(--danger); border-color: rgba(255,93,108,.3); background: rgba(255,93,108,.08); }

/* 订单卡细节 */
.oc-main { min-width: 0; }
.oc-meta { font-size: 12px; color: var(--muted); }
.oc-waiting {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); margin: 10px 0 4px;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(77,141,255,.6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(77,141,255,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(77,141,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(77,141,255,0); }
}
.oc-foot {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(30,38,54,.7);
}
.oc-timer { font-size: 12.5px; color: var(--muted); }

/* 空状态 */
.empty-state {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 34px 16px; text-align: center;
}
.empty-state b { font-size: 14px; color: var(--txt-2); font-weight: 600; }
.empty-state span { font-size: 12.5px; color: var(--muted); }
.empty-icon {
  width: 46px; height: 46px; border-radius: 14px; margin-bottom: 6px;
  display: grid; place-items: center; font-size: 21px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
}

/* 骨架屏 */
.skeleton-row { height: 44px; border-radius: 8px; margin: 8px 14px; }
.skeleton-row, .skeleton-line {
  background: linear-gradient(90deg, #121826 25%, #1a2233 50%, #121826 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* 充值 / 钱包微调 */
.stat-card b { font-variant-numeric: tabular-nums; }
.card h3 .badge { font-weight: 500; }
#w-balance, #w-frozen, #w-deposit, #w-spent { font-variant-numeric: tabular-nums; }

/* 管理页表格里的操作按钮排布 */
table.grid td .btn.icon + .btn.icon { margin-left: 5px; }

/* API 页 action 表格 */
#api-actions td:first-child { color: #9fc4ff; }
#api-actions tr:hover td { background: rgba(77,141,255,.04); }
