/* ==========================================================================
   MGM · 新前端账户体系 · 共享样式（深蓝暗金，零依赖）
   页面：/newfront/auth|wallet|me|texas/*
   与 /hall/ 的 tokens 同源（同色系），但本目录自包含、可独立部署。
   ========================================================================== */

:root {
  --nf-bg: #050d18;
  --nf-bg-2: #0a1a2d;
  --nf-surface: #0d2338;
  --nf-surface-2: #123049;
  --nf-surface-3: #183d5c;
  --nf-line: rgba(120, 180, 240, .24);
  --nf-line-strong: rgba(150, 205, 255, .5);
  --nf-text: #eaf3fc;
  --nf-text-dim: #9db9d4;
  --nf-text-faint: #6f8ca8;
  --nf-gold: #ffd782;
  --nf-gold-2: #e9b64a;
  --nf-gold-grad: linear-gradient(180deg, #ffe6a8 0%, #e9b64a 55%, #c8932c 100%);
  --nf-accent: #2a7dd4;
  --nf-accent-2: #7fc4ff;
  --nf-danger: #e05a67;
  --nf-win: #7fe3a1;
  --nf-warn: #ffb648;
  --nf-radius-xs: 8px;
  --nf-radius-sm: 12px;
  --nf-radius: 16px;
  --nf-radius-lg: 22px;
  --nf-radius-pill: 999px;
  --nf-shadow-1: 0 6px 16px rgba(0, 0, 0, .35);
  --nf-shadow-2: 0 14px 34px rgba(0, 0, 0, .5);
  --nf-inset: inset 0 1px 0 rgba(255, 255, 255, .08);
  --nf-max: 520px;
  --nf-font: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --nf-serif: Georgia, 'Times New Roman', 'Songti SC', serif;
  --nf-top-h: 56px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { background: var(--nf-bg); }
body {
  min-height: 100vh;
  color: var(--nf-text);
  font-family: var(--nf-font);
  font-size: 14px;
  line-height: 1.5;
  background:
    radial-gradient(ellipse 90% 46% at 50% -6%, rgba(110, 190, 255, .16), transparent 62%),
    radial-gradient(ellipse 70% 34% at 50% 104%, rgba(233, 182, 74, .10), transparent 62%),
    linear-gradient(180deg, #071426 0%, #050d18 42%, #040a13 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--nf-accent-2); text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }
::selection { background: rgba(255, 215, 130, .28); }

/* ---------- 应用容器 ---------- */
.nf-app {
  position: relative;
  max-width: var(--nf-max);
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}
.nf-app::before {
  content: '';
  position: fixed; left: 50%; top: 0; transform: translateX(-50%);
  width: min(var(--nf-max), 100vw); height: 2px; z-index: 40; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 130, .65), transparent);
}

/* ---------- 顶栏 ---------- */
.nf-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  height: var(--nf-top-h);
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(7, 20, 38, .97), rgba(6, 17, 31, .82));
  border-bottom: 1px solid var(--nf-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nf-back {
  display: inline-flex; align-items: center; gap: 2px;
  height: 34px; padding: 0 10px 0 6px; border-radius: var(--nf-radius-pill);
  color: var(--nf-text-dim); font-size: 12.5px;
  background: rgba(10, 28, 48, .7); border: 1px solid var(--nf-line);
}
.nf-back:active { transform: scale(.96); }
.nf-top-mid { flex: 1; min-width: 0; text-align: center; }
.nf-top-mid b { display: block; font-size: 16px; letter-spacing: 1.5px; font-weight: 800; }
.nf-top-mid small { display: block; font-size: 10.5px; color: var(--nf-text-faint); letter-spacing: .5px; }
.nf-top-right { min-width: 66px; display: flex; justify-content: flex-end; }
.nf-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 12px; border-radius: var(--nf-radius-pill);
  background: rgba(8, 24, 40, .82); border: 1px solid var(--nf-line-strong);
  color: var(--nf-gold); font-size: 12px; font-weight: 800;
}
.nf-chip.link { cursor: pointer; }
.nf-chip.link:active { transform: scale(.96); }

/* ---------- 页面与分区 ---------- */
.nf-page { padding: 16px 16px 8px; animation: nf-fade .28s ease both; }
.nf-section { margin-bottom: 16px; }
.nf-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 2px 2px 10px;
}
.nf-section-head b { font-size: 15.5px; letter-spacing: 1px; }
.nf-section-head span { font-size: 11.5px; color: var(--nf-text-faint); }
.nf-card {
  position: relative;
  border-radius: var(--nf-radius);
  padding: 16px;
  background: linear-gradient(165deg, rgba(21, 50, 78, .92), rgba(8, 22, 38, .94));
  border: 1px solid var(--nf-line);
  box-shadow: var(--nf-inset), var(--nf-shadow-1);
}
.nf-card + .nf-card { margin-top: 12px; }
.nf-card.flat { background: rgba(9, 24, 41, .72); }
.nf-card.gold-line::after {
  content: ''; position: absolute; left: 16px; right: 16px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 130, .5), transparent);
}
.nf-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 12px;
}
.nf-card-head b { font-size: 14.5px; letter-spacing: .8px; }
.nf-card-head small { color: var(--nf-text-faint); font-size: 11.5px; }
.nf-divider { height: 1px; margin: 14px 0; background: linear-gradient(90deg, transparent, rgba(120, 180, 240, .28), transparent); }
.muted { color: var(--nf-text-dim); }
.faint { color: var(--nf-text-faint); }
.gold { color: var(--nf-gold); }
.tiny { font-size: 11px; line-height: 1.6; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.hide { display: none !important; }

/* ---------- 按钮 ---------- */
.nf-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--nf-radius-pill);
  background: linear-gradient(180deg, #1d3f64, #0b1e33);
  color: var(--nf-text);
  font-size: 14.5px; font-weight: 800; letter-spacing: 1px;
  cursor: pointer;
  box-shadow: var(--nf-inset), 0 6px 16px rgba(0, 0, 0, .35);
  transition: transform .08s ease, filter .15s ease, opacity .15s ease;
}
.nf-btn:active { transform: scale(.975); filter: brightness(1.08); }
.nf-btn.block { display: flex; width: 100%; }
.nf-btn.primary {
  background: var(--nf-gold-grad);
  border-color: rgba(255, 240, 200, .75);
  color: #2a1a00;
  box-shadow: 0 8px 22px rgba(233, 182, 74, .28), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.nf-btn.ghost { background: rgba(12, 32, 54, .6); border-color: var(--nf-line-strong); color: var(--nf-text-dim); }
.nf-btn.danger { background: linear-gradient(180deg, rgba(90, 28, 38, .9), rgba(48, 14, 22, .9)); border-color: rgba(255, 140, 150, .45); color: #ffd3d6; }
.nf-btn.small { height: 34px; padding: 0 14px; font-size: 12.5px; letter-spacing: .5px; }
.nf-btn.mini { height: 30px; padding: 0 12px; font-size: 11.5px; border-radius: var(--nf-radius-pill); }
.nf-btn[disabled] { opacity: .5; pointer-events: none; }
.nf-btn.loading { pointer-events: none; }
.nf-btn-row { display: flex; gap: 10px; }
.nf-btn-row .nf-btn { flex: 1; }
.nf-link-btn {
  background: none; border: 0; padding: 0; color: var(--nf-gold);
  font-size: 12.5px; cursor: pointer; letter-spacing: .5px;
}
.nf-link-btn:active { opacity: .7; }

/* ---------- 表单 ---------- */
.nf-form { display: flex; flex-direction: column; gap: 14px; }
.nf-field { display: flex; flex-direction: column; gap: 6px; }
.nf-label { font-size: 12px; color: var(--nf-text-dim); letter-spacing: .5px; display: flex; justify-content: space-between; align-items: baseline; }
.nf-label em { font-style: normal; color: var(--nf-text-faint); font-size: 11px; }
.nf-input-wrap { position: relative; }
.nf-input {
  width: 100%; height: 46px;
  padding: 0 14px;
  border-radius: var(--nf-radius-sm);
  border: 1px solid var(--nf-line);
  background: rgba(4, 14, 25, .82);
  color: var(--nf-text);
  font-size: 14.5px; letter-spacing: .3px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
.nf-input::placeholder { color: #566f88; }
.nf-input:focus { border-color: rgba(255, 215, 130, .62); box-shadow: 0 0 0 3px rgba(255, 215, 130, .12); }
textarea.nf-input { height: auto; min-height: 76px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.nf-input.suffix { padding-right: 46px; }
.nf-suffix-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--nf-text-faint); cursor: pointer;
}
.nf-suffix-btn:active { color: var(--nf-gold); }
.nf-field .nf-err { display: none; color: #ff9aa3; font-size: 11.5px; line-height: 1.5; }
.nf-field.invalid .nf-input { border-color: rgba(224, 90, 103, .7); box-shadow: 0 0 0 3px rgba(224, 90, 103, .1); }
.nf-field.invalid .nf-err { display: block; }
.nf-hint { font-size: 11px; color: var(--nf-text-faint); line-height: 1.6; }
.nf-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--nf-text-dim); cursor: pointer; user-select: none;
}
.nf-check input { width: 16px; height: 16px; accent-color: var(--nf-gold-2); }
.nf-strength { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.nf-strength i { flex: 1; height: 3px; border-radius: 2px; background: rgba(120, 180, 240, .16); }
.nf-strength.lv1 i.on { background: var(--nf-danger); }
.nf-strength.lv2 i.on { background: var(--nf-warn); }
.nf-strength.lv3 i.on { background: var(--nf-win); }
.nf-strength small { font-size: 10.5px; color: var(--nf-text-faint); min-width: 34px; text-align: right; }

/* ---------- 提示条 / banner ---------- */
.nf-banner {
  display: none;
  padding: 11px 14px; border-radius: var(--nf-radius-sm);
  font-size: 12.5px; line-height: 1.6;
  border: 1px solid rgba(255, 140, 150, .5);
  background: rgba(80, 22, 32, .55);
  color: #ffd3d6;
}
.nf-banner.on { display: block; }
.nf-banner.ok { border-color: rgba(127, 227, 161, .5); background: rgba(18, 62, 40, .5); color: #c8ffe0; }
.nf-banner.warn { border-color: rgba(255, 182, 72, .5); background: rgba(72, 48, 12, .5); color: #ffe4b8; }
.nf-note {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--nf-radius-sm);
  background: rgba(10, 30, 50, .58);
  border: 1px solid var(--nf-line);
  color: var(--nf-text-dim); font-size: 12px; line-height: 1.7;
}
.nf-note .ico { flex: none; color: var(--nf-gold); display: flex; margin-top: 1px; }
.nf-note b { color: var(--nf-text); }

/* ---------- 余额卡 ---------- */
.nf-balance {
  position: relative; overflow: hidden;
  border-radius: var(--nf-radius-lg);
  padding: 18px 18px 16px;
  background:
    radial-gradient(ellipse 100% 120% at 12% 0%, rgba(255, 215, 130, .16), transparent 55%),
    linear-gradient(150deg, #1a4266 0%, #0e2742 46%, #08182b 100%);
  border: 1px solid rgba(255, 215, 130, .3);
  box-shadow: var(--nf-shadow-2), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.nf-balance::after {
  content: ''; position: absolute; right: -30px; top: -40px;
  width: 168px; height: 168px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 130, .16), transparent 68%);
  pointer-events: none;
}
.nf-balance .label { font-size: 12px; color: rgba(220, 238, 255, .72); letter-spacing: 1.5px; }
.nf-balance .amount {
  display: flex; align-items: baseline; gap: 6px;
  margin: 6px 0 2px;
  font-family: var(--nf-serif);
  font-size: 34px; font-weight: 800; letter-spacing: .5px;
  color: var(--nf-gold);
  text-shadow: 0 2px 16px rgba(255, 190, 80, .3);
  font-variant-numeric: tabular-nums;
}
.nf-balance .amount small { font-size: 13px; color: rgba(255, 215, 130, .8); font-family: var(--nf-font); letter-spacing: 1px; }
.nf-balance .meta { display: flex; gap: 14px; font-size: 11.5px; color: rgba(200, 224, 250, .62); }
.nf-balance .actions { display: flex; gap: 8px; margin-top: 14px; }
.nf-balance .actions .nf-btn { flex: 1; height: 38px; font-size: 13px; }
.nf-mini-balance { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--nf-gold); font-weight: 800; }
.nf-mini-balance small { color: var(--nf-text-faint); font-weight: 400; }

/* ---------- 金额档位 / chips ---------- */
.nf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nf-chips.cols-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.nf-chip-btn {
  min-width: 76px; height: 38px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--nf-radius-sm);
  background: rgba(10, 30, 50, .7);
  border: 1px solid var(--nf-line);
  color: var(--nf-text-dim);
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all .14s ease;
}
.nf-chips.cols-5 .nf-chip-btn { min-width: 0; padding: 0 4px; font-size: 12.5px; }
.nf-chip-btn:active { transform: scale(.96); }
.nf-chip-btn.on {
  background: linear-gradient(180deg, rgba(255, 230, 168, .18), rgba(233, 182, 74, .12));
  border-color: rgba(255, 215, 130, .7);
  color: var(--nf-gold);
  box-shadow: 0 0 0 1px rgba(255, 215, 130, .25), 0 4px 12px rgba(0, 0, 0, .3);
}

/* ---------- 渠道卡 / 地址 / 二维码 ---------- */
.nf-channel-list { display: flex; flex-direction: column; gap: 10px; }
.nf-channel {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--nf-radius-sm);
  background: rgba(8, 24, 40, .72);
  border: 1px solid var(--nf-line);
  cursor: pointer;
  transition: all .14s ease;
}
.nf-channel:active { transform: scale(.995); }
.nf-channel.on { border-color: rgba(255, 215, 130, .68); background: rgba(28, 52, 74, .8); box-shadow: 0 0 0 1px rgba(255, 215, 130, .22); }
.nf-channel .ch-ico {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #2a1a00;
  background: var(--nf-gold-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 10px rgba(0, 0, 0, .35);
}
.nf-channel .ch-body { flex: 1; min-width: 0; }
.nf-channel .ch-body b { display: block; font-size: 13.5px; }
.nf-channel .ch-body small { display: block; color: var(--nf-text-faint); font-size: 11px; margin-top: 2px; }
.nf-channel .ch-radio {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  border: 2px solid rgba(150, 200, 240, .4);
  position: relative;
}
.nf-channel.on .ch-radio { border-color: var(--nf-gold); }
.nf-channel.on .ch-radio::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--nf-gold);
}
.nf-paybox {
  margin-top: 12px; padding: 14px;
  border-radius: var(--nf-radius-sm);
  background: rgba(5, 16, 28, .72);
  border: 1px dashed rgba(150, 200, 245, .34);
}
.nf-addr {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 10px;
  background: rgba(12, 32, 52, .8);
  border: 1px solid var(--nf-line);
  font-size: 12px; word-break: break-all; color: var(--nf-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.nf-addr .grow { flex: 1; }
.nf-copy {
  flex: none; padding: 4px 10px; border-radius: 8px;
  background: rgba(255, 215, 130, .12); border: 1px solid rgba(255, 215, 130, .45);
  color: var(--nf-gold); font-size: 11px; font-weight: 700; cursor: pointer;
}
.nf-qr { display: flex; justify-content: center; padding: 6px 0 2px; }
.nf-qr img {
  width: 172px; height: 172px; border-radius: 12px;
  background: #fff; padding: 8px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
}

/* ---------- 订单 / 列表行 ---------- */
.nf-list { display: flex; flex-direction: column; gap: 10px; }
.nf-order {
  padding: 12px 14px; border-radius: var(--nf-radius-sm);
  background: rgba(8, 24, 40, .66);
  border: 1px solid var(--nf-line);
}
.nf-order .o-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nf-order .o-top b { font-size: 13.5px; letter-spacing: .3px; }
.nf-order .o-sub { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.nf-order .o-sub span { font-size: 11px; color: var(--nf-text-faint); }
.nf-order .o-amt { font-size: 15px; font-weight: 800; color: var(--nf-gold); font-variant-numeric: tabular-nums; }
.nf-order .o-reason { margin-top: 6px; font-size: 11.5px; color: #ff9aa3; }
.nf-info-list { display: flex; flex-direction: column; }
.nf-info-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(120, 180, 240, .1);
  font-size: 13px;
}
.nf-info-row:last-child { border-bottom: 0; }
.nf-info-row .k { color: var(--nf-text-dim); }
.nf-info-row .v { color: var(--nf-text); font-weight: 600; text-align: right; word-break: break-all; }
.nf-info-row .v.gold { color: var(--nf-gold); }
.nf-info-row.tap { cursor: pointer; }
.nf-info-row.tap .v { color: var(--nf-accent-2); }
.nf-info-row .arr { color: var(--nf-text-faint); flex: none; }

/* ---------- 徽章 ---------- */
.nf-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: var(--nf-radius-pill);
  font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
  border: 1px solid transparent; vertical-align: middle;
}
.nf-badge.ok { color: #b9ffd2; background: rgba(20, 80, 50, .55); border-color: rgba(127, 227, 161, .5); }
.nf-badge.warn { color: #ffe2b0; background: rgba(80, 54, 14, .55); border-color: rgba(255, 182, 72, .5); }
.nf-badge.bad { color: #ffc3c8; background: rgba(84, 26, 34, .55); border-color: rgba(224, 90, 103, .5); }
.nf-badge.info { color: #c6e6ff; background: rgba(20, 52, 84, .6); border-color: rgba(127, 196, 255, .45); }
.nf-badge.muted { color: var(--nf-text-faint); background: rgba(40, 54, 70, .5); border-color: rgba(150, 180, 210, .25); }
.nf-tag {
  display: inline-flex; align-items: center;
  padding: 1px 8px; border-radius: 7px;
  font-size: 10px; letter-spacing: .5px;
  color: var(--nf-gold); background: rgba(255, 215, 130, .12);
  border: 1px solid rgba(255, 215, 130, .4);
}

/* ---------- 空态 / 骨架 / loading ---------- */
.nf-empty {
  padding: 30px 18px; text-align: center;
  border-radius: var(--nf-radius);
  background: rgba(8, 22, 38, .55);
  border: 1px dashed rgba(120, 180, 240, .24);
}
.nf-empty-ico {
  width: 54px; height: 54px; margin: 0 auto 12px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 215, 130, .8);
  background: radial-gradient(circle, rgba(255, 215, 130, .14), transparent 70%);
  border: 1px solid rgba(255, 215, 130, .24);
}
.nf-empty b { display: block; font-size: 14px; letter-spacing: .5px; }
.nf-empty p { margin: 7px auto 0; max-width: 280px; font-size: 12px; color: var(--nf-text-faint); line-height: 1.7; }
.nf-empty .nf-btn { margin-top: 14px; }
.nf-skel-wrap { display: flex; flex-direction: column; gap: 10px; }
.nf-skel {
  height: 74px; border-radius: var(--nf-radius-sm);
  background: linear-gradient(90deg, rgba(15, 36, 58, .7), rgba(24, 52, 80, .9), rgba(15, 36, 58, .7));
  background-size: 220% 100%;
  animation: nf-shimmer 1.25s linear infinite;
}
.nf-spin {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, .25);
  border-top-color: currentColor;
  display: inline-block;
  animation: nf-rotate .8s linear infinite;
}
.nf-btn.ghost .nf-spin, .nf-btn:not(.primary) .nf-spin { border-color: rgba(255, 255, 255, .22); border-top-color: currentColor; }
.nf-loading-line { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 0; color: var(--nf-text-faint); font-size: 12px; }
.nf-loading-line .nf-spin { border-color: rgba(120, 180, 240, .25); border-top-color: var(--nf-gold); }

/* ---------- toast ---------- */
.nf-toast-root {
  position: fixed; left: 50%; bottom: calc(30px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(var(--nf-max), 100vw);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none; z-index: 80; padding: 0 24px;
}
.nf-toast {
  max-width: 100%;
  padding: 10px 18px; border-radius: var(--nf-radius-pill);
  background: rgba(6, 20, 34, .96);
  border: 1px solid var(--nf-line-strong);
  color: var(--nf-text);
  font-size: 12.5px; text-align: center; line-height: 1.5;
  box-shadow: var(--nf-shadow-2);
  opacity: 0; transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease;
}
.nf-toast.on { opacity: 1; transform: none; }
.nf-toast.ok { border-color: rgba(127, 227, 161, .55); color: #d3ffe4; }
.nf-toast.bad { border-color: rgba(224, 90, 103, .6); color: #ffd3d6; }

/* ---------- 页脚 ---------- */
.nf-footer {
  padding: 22px 16px 6px; text-align: center;
  color: var(--nf-text-faint);
}
.nf-footer span {
  display: block; font-family: var(--nf-serif);
  font-size: 13px; letter-spacing: 4px; color: rgba(255, 215, 130, .5);
}
.nf-footer small { display: block; margin-top: 4px; font-size: 10.5px; letter-spacing: 2px; }

/* ---------- 登录 / 注册 页 ---------- */
.nf-auth-hero { padding: 26px 8px 18px; text-align: center; }
.nf-crest {
  width: 82px; height: 82px; margin: 0 auto 14px; position: relative;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 245, 210, .78), rgba(233, 182, 74, .22) 46%, rgba(10, 26, 44, .9) 72%);
  border: 1px solid rgba(255, 215, 130, .55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 26px rgba(233, 182, 74, .18), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.nf-crest::before, .nf-crest::after {
  content: ''; position: absolute; border-radius: 50%;
  border: 1px solid rgba(255, 215, 130, .22);
}
.nf-crest::before { inset: -7px; }
.nf-crest::after { inset: -14px; border-color: rgba(255, 215, 130, .1); }
.nf-crest b {
  font-family: var(--nf-serif); font-size: 21px; letter-spacing: 1px;
  color: #3a2500; text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}
.nf-auth-title { font-size: 22px; font-weight: 800; letter-spacing: 3px; }
.nf-auth-sub { margin-top: 6px; font-size: 11.5px; letter-spacing: 2px; color: var(--nf-text-faint); }
.nf-auth-switch { margin-top: 16px; text-align: center; font-size: 12.5px; color: var(--nf-text-faint); }
.nf-auth-switch a, .nf-auth-switch button { color: var(--nf-gold); font-size: 12.5px; margin-left: 4px; }
.nf-session-card { display: flex; align-items: center; gap: 12px; }
.nf-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--nf-serif); font-size: 17px; font-weight: 800; color: #2a1a00;
  background: var(--nf-gold-grad);
  border: 1px solid rgba(255, 240, 200, .75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 12px rgba(0, 0, 0, .4);
  overflow: hidden;
}
.nf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nf-avatar.lg { width: 62px; height: 62px; font-size: 22px; }

/* ---------- 分段 tabs ---------- */
.nf-tabs {
  display: flex; gap: 6px;
  padding: 5px;
  border-radius: var(--nf-radius-pill);
  background: rgba(5, 16, 28, .72);
  border: 1px solid var(--nf-line);
}
.nf-tabs button {
  flex: 1; height: 36px; border: 0; border-radius: var(--nf-radius-pill);
  background: transparent; color: var(--nf-text-dim);
  font-size: 13px; letter-spacing: .5px; cursor: pointer;
  transition: all .16s ease;
}
.nf-tabs button.on {
  background: linear-gradient(180deg, rgba(255, 230, 168, .2), rgba(233, 182, 74, .1));
  color: var(--nf-gold); font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 215, 130, .45);
}
.nf-tabs-fixed { position: sticky; top: calc(var(--nf-top-h) + 8px); z-index: 20; backdrop-filter: blur(10px); }

/* ---------- 德州入口页 ---------- */
.nf-hero {
  position: relative; overflow: hidden;
  padding: 18px;
  border-radius: var(--nf-radius-lg);
  background:
    radial-gradient(ellipse 90% 120% at 88% 0%, rgba(255, 215, 130, .15), transparent 55%),
    linear-gradient(150deg, #17405f 0%, #0d2740 52%, #071628 100%);
  border: 1px solid rgba(255, 215, 130, .26);
  box-shadow: var(--nf-shadow-2), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.nf-hero .suit { position: absolute; right: 12px; top: -12px; font-size: 92px; line-height: 1; color: rgba(255, 215, 130, .07); font-family: var(--nf-serif); }
.nf-hero h1 { margin: 0; font-size: 21px; letter-spacing: 2px; }
.nf-hero p { margin: 6px 0 0; font-size: 11.5px; color: var(--nf-text-dim); letter-spacing: .5px; }
.nf-hero .stats { display: flex; gap: 18px; margin-top: 14px; }
.nf-hero .stats div b { display: block; font-family: var(--nf-serif); font-size: 19px; color: var(--nf-gold); }
.nf-hero .stats div small { font-size: 10.5px; color: var(--nf-text-faint); letter-spacing: 1px; }
.nf-variant-strip { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
.nf-variant-strip::-webkit-scrollbar { display: none; }
.nf-variant-strip span {
  flex: none; padding: 4px 11px; border-radius: var(--nf-radius-pill);
  font-size: 11px; color: var(--nf-text-dim);
  background: rgba(10, 30, 50, .7); border: 1px solid var(--nf-line);
}
.nf-game-group { margin-top: 16px; }
.nf-group-head { display: flex; align-items: center; gap: 8px; margin: 0 2px 8px; }
.nf-group-head b { font-size: 14px; letter-spacing: .8px; }
.nf-group-head .nf-tag { transform: translateY(-1px); }
.nf-group-head small { margin-left: auto; font-size: 11px; color: var(--nf-text-faint); }
.nf-table-card {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; margin-bottom: 10px;
  border-radius: var(--nf-radius);
  background: linear-gradient(160deg, rgba(20, 48, 74, .85), rgba(8, 22, 38, .9));
  border: 1px solid var(--nf-line);
  box-shadow: var(--nf-inset);
  cursor: pointer;
  transition: transform .12s ease, border-color .15s ease;
}
.nf-table-card:active { transform: scale(.988); border-color: rgba(255, 215, 130, .45); }
.nf-table-ico {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--nf-gold);
  background: radial-gradient(circle at 34% 26%, rgba(255, 215, 130, .2), rgba(8, 22, 38, .9));
  border: 1px solid rgba(255, 215, 130, .32);
}
.nf-table-body { flex: 1; min-width: 0; }
.nf-table-body b { display: block; font-size: 13.5px; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nf-table-body small { display: block; margin-top: 3px; font-size: 11px; color: var(--nf-text-faint); }
.nf-table-meta { flex: none; text-align: right; }
.nf-table-meta .seats { font-size: 11.5px; color: var(--nf-win); font-weight: 700; }
.nf-table-meta .blinds { margin-top: 3px; font-size: 10.5px; color: var(--nf-text-faint); }
.nf-table-go {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--nf-gold); background: rgba(255, 215, 130, .1);
  border: 1px solid rgba(255, 215, 130, .35);
}
.nf-login-cta {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; margin-bottom: 14px;
  border-radius: var(--nf-radius);
  background: linear-gradient(150deg, rgba(42, 125, 212, .22), rgba(8, 22, 38, .9));
  border: 1px solid rgba(127, 196, 255, .4);
}
.nf-login-cta .ico { font-size: 20px; color: var(--nf-accent-2); flex: none; }
.nf-login-cta b { display: block; font-size: 13px; }
.nf-login-cta small { display: block; margin-top: 2px; font-size: 11px; color: var(--nf-text-faint); }
.nf-login-cta .nf-btn { flex: none; margin-left: auto; }

/* ---------- 我的 ---------- */
.nf-profile {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  border-radius: var(--nf-radius-lg);
  background:
    radial-gradient(ellipse 90% 130% at 88% 0%, rgba(255, 215, 130, .14), transparent 55%),
    linear-gradient(150deg, #17405f 0%, #0d2740 55%, #071628 100%);
  border: 1px solid rgba(255, 215, 130, .24);
  box-shadow: var(--nf-shadow-2), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.nf-profile .p-body { flex: 1; min-width: 0; }
.nf-profile .p-name { display: flex; align-items: center; gap: 8px; }
.nf-profile .p-name b { font-size: 17px; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nf-profile .p-sub { margin-top: 4px; font-size: 11.5px; color: var(--nf-text-dim); letter-spacing: .5px; }
.nf-profile .p-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.nf-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.nf-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.nf-shortcut {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 13px 6px 11px;
  border-radius: var(--nf-radius);
  background: rgba(10, 28, 46, .7);
  border: 1px solid var(--nf-line);
  cursor: pointer;
  transition: all .14s ease;
}
.nf-shortcut:active { transform: scale(.96); border-color: rgba(255, 215, 130, .45); }
.nf-shortcut .ico {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--nf-gold);
  background: radial-gradient(circle at 34% 26%, rgba(255, 215, 130, .18), rgba(8, 22, 38, .9));
  border: 1px solid rgba(255, 215, 130, .28);
}
.nf-shortcut span { font-size: 11.5px; color: var(--nf-text-dim); }
.nf-sec-form { margin-top: 12px; padding-top: 4px; }
.nf-sec-form .nf-form { gap: 11px; }

/* ---------- 动画 ---------- */
@keyframes nf-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes nf-shimmer { to { background-position: -220% 0; } }
@keyframes nf-rotate { to { transform: rotate(360deg); } }
@keyframes nf-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.nf-fade-up { animation: nf-fade .3s ease both; }

/* ---------- 大屏适配 ---------- */
@media (min-width: 560px) {
  body { background-attachment: fixed; }
  .nf-app { box-shadow: 0 0 60px rgba(0, 0, 0, .5); }
}
@media (max-width: 359px) {
  .nf-page { padding: 12px 12px 6px; }
  .nf-balance .amount { font-size: 29px; }
  .nf-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .nf-shortcut { padding: 10px 4px 9px; }
  .nf-shortcut span { font-size: 10.5px; }
  .nf-top { padding: 0 10px; }
  .nf-top-mid b { font-size: 15px; }
}
