/* ─────────────────────────────────────────────────────────────
   Buddy 积分服务 · 客户门户样式
   设计令牌与组件规格取自参考站 app.css 的 :root 与各 scoped 规则，
   去掉 Vue scoped 标记后按「全局 + BEM 近似类名」重排。
   ───────────────────────────────────────────────────────────── */

:root {
  --brand: #5bc5a3;
  --brand-600: #3fa888;
  --brand-50: #eaf7f2;
  --brand-100: #cfeede;
  --bg: #f5f7fa;
  --surface: #fff;
  --surface-2: #f9fafb;
  --sidebar: #fff;
  --text: #181818;
  --text-2: #555;
  --text-3: #8a8a8a;
  --border: #ecefef;
  --border-2: #e2e6eb;
  --danger: #d54941;
  --warning: #e8a027;
  --success: #00a870;
  --shadow-sm: 0 1px 2px #0000000a;
  --shadow: 0 4px 16px #0000000f;
  --shadow-lg: 0 16px 48px #0000001a;
  --r-sm: 6px;
  --r: 9px;
  --r-lg: 14px;
  --r-pill: 999px;
  --font: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, monospace;
}

*,
:before,
:after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body, #app { height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  line-height: 1.55;
}

#app {
  text-align: left;
  border: 0;
  width: 100%;
  max-width: none;
  min-height: 100svh;
  display: block;
}

button { cursor: pointer; color: inherit; background: 0 0; border: 0; font-family: inherit; }
input, textarea { font-family: inherit; font-size: 14px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--text); letter-spacing: -.01em; font-weight: 600; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ── 基础组件 ─────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}
.card-head { justify-content: space-between; align-items: center; margin-bottom: 16px; display: flex; }
.card-head h3 { font-size: 15px; }
.muted { color: var(--text-3); font-size: 13px; }
.muted.sm { font-size: 12px; }
.mono { font-family: var(--mono); }

.btn {
  border-radius: var(--r-sm);
  background: var(--brand);
  color: #fff;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
}
.btn:hover { background: var(--brand-600); }
.btn:disabled { background: var(--border-2); color: var(--text-3); cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--surface); border: 1px solid var(--border-2); color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); border-color: var(--brand); color: var(--brand); }
.btn.sm { padding: 5px 14px; font-size: 12px; }

input, textarea {
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  width: 100%;
  padding: 9px 12px;
  transition: all .15s;
}
input:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-50);
  outline: none;
}

.row { align-items: center; gap: 8px; display: flex; }
.row > input { flex: 1; width: auto; min-width: 0; }
.row > button { white-space: nowrap; flex-shrink: 0; }
.grid-2 { grid-template-columns: 1fr 1fr; gap: 16px; display: grid; }

.tbl-wrap { overflow-x: auto; }
.tbl { border-collapse: collapse; width: 100%; font-size: 13px; }
.tbl th {
  text-align: left; color: var(--text-3); border-bottom: 1px solid var(--border);
  white-space: nowrap; padding: 10px 12px; font-weight: 500;
}
.tbl td { border-bottom: 1px solid var(--border); padding: 11px 12px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: var(--surface-2); }

.tag { border-radius: var(--r-pill); padding: 2px 9px; font-size: 12px; display: inline-block; }
.tag.paid, .tag.unused { background: var(--brand-50); color: var(--brand); }
.tag.pending { color: #d26a00; background: #fff1e6; }
.tag.expired { color: #6b5bd6; background: #f5f2ff; }
.tag.failed, .tag.used { color: var(--text-3); background: #f0f0f0; }
.empty { text-align: center; color: var(--text-3); padding: 28px 0; }

.page { max-width: 880px; margin: 0 auto; padding: 8px 0 60px; }
.page h2 { margin-bottom: 18px; font-size: 20px; }
.page > .card { margin-bottom: 16px; }

/* 移动端卡片列表（宽表在窄屏换成卡片） */
.m-cards { flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; display: none; }
.m-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 14px 16px;
}
.m-card .mc-main { justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; display: flex; }
.m-card .mc-title { font-size: 14px; font-weight: 600; }
.m-card .mc-pts { white-space: nowrap; font-weight: 650; }
.m-card .mc-pts.plus { color: var(--brand-600); }
.m-card .mc-pts.minus { color: var(--text-3); }
.m-card .mc-sub { color: var(--text-2); font-size: 13px; line-height: 1.6; }
.m-card .mc-meta { color: var(--text-3); margin-top: 4px; font-size: 12px; }
.m-card .mc-code { font-family: var(--mono); word-break: break-all; font-size: 13px; }

/* ── 登录 / 落地页 ────────────────────────────────────────── */

.auth {
  background:
    radial-gradient(1200px 600px at 50% -10%, var(--brand-50), transparent 60%),
    linear-gradient(180deg, #fff, var(--bg));
  justify-content: center; align-items: center; min-height: 100svh; padding: 24px; display: flex;
}
.auth-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); width: 100%; max-width: 400px;
  box-shadow: var(--shadow-lg); text-align: center; padding: 40px 36px;
}
.auth-card .logo {
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  color: #fff; border-radius: 17px; place-items: center;
  width: 60px; height: 60px; margin: 0 auto 18px; font-size: 30px; font-weight: 700;
  display: grid; box-shadow: 0 8px 24px #07c16059;
}
.auth-card h1 { margin-bottom: 6px; font-size: 21px; }
.auth-card .tagline { color: var(--text-2); margin-bottom: 24px; font-size: 13px; }
.divider { color: var(--text-3); align-items: center; gap: 14px; margin: 16px 0; font-size: 12px; display: flex; }
.divider:before, .divider:after { content: ''; background: var(--border); flex: 1; height: 1px; }
.acct { text-align: left; }
.acct input {
  border: 1px solid var(--border-2); border-radius: var(--r-sm);
  background: var(--surface); width: 100%; margin-bottom: 10px; padding: 11px 13px; transition: all .15s;
}
.acct input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); outline: none; }
.acct-tabs { background: var(--surface-2); border-radius: var(--r-sm); gap: 4px; margin-bottom: 12px; padding: 4px; display: flex; }
.acct-tabs button {
  color: var(--text-2); border-radius: 6px; flex: 1; padding: 8px;
  font-size: 13px; font-weight: 550; transition: all .15s;
}
.acct-tabs button.on { background: var(--brand); color: #fff; }
.agree {
  color: var(--text-2); cursor: pointer; -webkit-user-select: none; user-select: none;
  align-items: flex-start; gap: 8px; margin: 2px 0 12px; font-size: 12.5px; line-height: 1.55; display: flex;
}
.agree input {
  width: 15px; height: 15px; accent-color: var(--brand);
  cursor: pointer; flex: none; margin: 2px 0 0; padding: 0;
}
.agree a { color: var(--brand-600); font-weight: 550; }
.btn-acct {
  border-radius: var(--r-sm); color: #fff; background: #111827;
  width: 100%; padding: 12px; font-size: 14px; font-weight: 600; transition: all .15s;
}
.btn-acct:hover { background: #000; }
.btn-acct:disabled { opacity: .6; cursor: not-allowed; }
.switch-row { justify-content: center; margin-top: 14px; display: flex; }
.acct-toggle { color: var(--brand-600); flex: none; font-size: 13px; font-weight: 550; transition: color .15s; }
.acct-toggle:hover { color: var(--brand); }
.err { color: var(--danger); text-align: center; margin-top: 10px; font-size: 13px; min-height: 18px; }
.err.ok { color: var(--success); }

/* ── 控制台布局 ───────────────────────────────────────────── */

.layout { min-height: 100svh; display: flex; }

.sidebar {
  background: var(--sidebar); border-right: 1px solid var(--border);
  flex-direction: column; flex-shrink: 0; width: 224px; height: 100svh;
  padding: 22px 16px; display: flex; position: sticky; top: 0; overflow-y: auto;
}
.brand { white-space: nowrap; align-items: center; gap: 8px; padding: 0 6px 18px; font-size: 13px; font-weight: 650; display: flex; }
.logo {
  background: var(--brand); color: #fff; border-radius: 7px; place-items: center;
  width: 26px; height: 26px; font-size: 14px; font-weight: 700; display: grid;
}
.balance-box { background: var(--brand-50); border-radius: var(--r); margin-bottom: 18px; padding: 14px 16px; }
.balance-label { color: var(--text-3); font-size: 12px; }
.balance-num { color: var(--brand-600); letter-spacing: -.02em; font-size: 24px; font-weight: 700; }
.balance-cta {
  border-radius: var(--r-sm); background: var(--brand); color: #fff;
  justify-content: center; align-items: center; gap: 5px; width: 100%;
  margin-top: 10px; padding: 7px 0; font-size: 13px; font-weight: 550;
  transition: background .15s; display: flex;
}
.balance-cta:hover { background: var(--brand-600); }
.balance-cta .bic { width: 14px; height: 14px; }

.nav { flex-direction: column; flex: 1; gap: 2px; display: flex; }
.nav-sep { color: var(--text-3); padding: 16px 10px 6px; font-size: 11px; }
.nav > .nav-sep:first-child { padding-top: 2px; }
.nav-item {
  border-radius: var(--r-sm); color: var(--text-2); align-items: center;
  gap: 10px; padding: 9px 12px; font-size: 14px; transition: all .12s; display: flex;
}
.nav-item .ic { flex-shrink: 0; width: 18px; height: 18px; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.on { background: var(--brand-50); color: var(--brand-600); font-weight: 550; }

.logout { border-radius: var(--r-sm); color: var(--text-3); text-align: center; margin-top: 16px; padding: 9px 12px; font-size: 13px; }
.logout:hover { background: var(--surface-2); color: var(--danger); }

.cs-box { background: var(--surface-2); border-radius: var(--r); margin-bottom: 10px; padding: 12px 14px; }
.cs-label { color: var(--text-3); margin-bottom: 6px; font-size: 12px; }
.cs-row { justify-content: space-between; align-items: center; gap: 8px; display: flex; }
.cs-id { color: var(--brand-600); word-break: break-all; font-size: 14px; font-weight: 600; }
.cs-copy { border-radius: var(--r-sm); color: var(--brand-600); background: var(--brand-50); flex-shrink: 0; padding: 4px 10px; font-size: 12px; }
.cs-copy:hover { background: var(--brand); color: #fff; }

.bind-box { margin-bottom: 10px; }
.bind-btn {
  border-radius: var(--r-sm); background: var(--brand-50); width: 100%; color: var(--brand-600);
  justify-content: center; align-items: center; gap: 6px; padding: 8px 0;
  font-size: 13px; font-weight: 550; transition: all .15s; display: flex;
}
.bind-btn:hover { background: var(--brand); color: #fff; }
.bind-btn .ic { width: 16px; height: 16px; }
.bind-hint { text-align: center; color: var(--text-3); margin-top: 6px; font-size: 11px; }

.content { flex: 1; min-width: 0; padding: 32px 36px; overflow-x: auto; }

.m-topbar, .overlay { display: none; }

/* ── 首页 hero ────────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  color: #fff; border-radius: var(--r-lg); justify-content: space-between;
  align-items: center; gap: 16px; margin-bottom: 18px; padding: 26px 30px; display: flex;
}
.hero-main { min-width: 0; }
.hero-label { opacity: .85; margin-bottom: 6px; font-size: 13px; }
.hero-balance { letter-spacing: -.02em; font-size: 36px; font-weight: 700; }
.hero-balance span { opacity: .8; margin-left: 4px; font-size: 15px; font-weight: 400; }
.hero-cta {
  border-radius: var(--r-pill); color: var(--brand-600); background: #fff; flex-shrink: 0;
  align-items: center; gap: 6px; padding: 11px 22px; font-size: 15px; font-weight: 650;
  transition: transform .15s, box-shadow .15s, background .15s; display: inline-flex;
  box-shadow: 0 2px 10px #00000024;
}
.hero-cta:hover { background: var(--brand-50); transform: translateY(-1px); box-shadow: 0 5px 16px #0000002e; }
.hero-cta:active { transform: translateY(0); }

/* ── 教程 ────────────────────────────────────────────────── */

.tut-tabs {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r);
  gap: 4px; width: fit-content; margin-bottom: 16px; padding: 4px; display: flex;
}
.tut-tabs button {
  border-radius: var(--r-sm); color: var(--text-2); padding: 7px 16px;
  font-size: 13px; font-weight: 500; transition: all .12s;
}
.tut-tabs .tab-icon { fill: currentColor; vertical-align: -2px; width: 13px; height: 13px; margin-right: 6px; display: inline-block; }
.tut-tabs button:hover { background: var(--surface); }
.tut-tabs button.on { background: var(--brand); color: #fff; }

.steps-toggle {
  background: var(--surface-2); border: 1px dashed var(--border-2); border-radius: var(--r-sm);
  width: 100%; color: var(--text-2); cursor: pointer; margin-top: 4px; padding: 10px 0;
  font-size: 13px; font-weight: 500; transition: all .12s;
}
.steps-toggle:hover { border-color: var(--brand); color: var(--brand); }

.steps { flex-direction: column; gap: 12px; display: flex; }
.step { background: var(--surface-2); border-radius: var(--r-sm); gap: 14px; padding: 14px 16px; display: flex; }
.num {
  background: var(--brand); color: #fff; border-radius: 50%; flex-shrink: 0;
  place-items: center; width: 24px; height: 24px; font-size: 12px; font-weight: 600; display: grid;
}
.step-body { min-width: 0; }
.step-body h4 { margin-bottom: 5px; font-size: 14px; }
.step-body p { color: var(--text-2); font-size: 13px; }
.step-body p + p { margin-top: 6px; }
.step-body .warn { color: var(--danger); margin-top: 6px; font-weight: 500; }
.step-img { border-radius: var(--r-sm); border: 1px solid var(--border); width: 60%; max-width: 100%; height: auto; margin: 10px 0 0; display: block; }

.dl { color: var(--brand); text-decoration: underline; }

.code-box { border-radius: var(--r-sm); background: #1e1e2e; margin-top: 10px; padding: 14px 16px; position: relative; }
.code-box pre {
  color: #a6e3a1; font-family: var(--mono); white-space: pre-wrap;
  word-break: break-all; font-size: 12.5px; line-height: 1.6;
}
.code-box .copy {
  color: #fff; background: #ffffff1f; border-radius: 5px; padding: 4px 10px;
  font-size: 12px; position: absolute; top: 8px; right: 8px;
}
.code-box .copy:hover { background: #ffffff33; }

.kv-list { flex-direction: column; gap: 6px; margin-top: 10px; list-style: none; display: flex; }
.kv-list li { align-items: center; gap: 12px; font-size: 13px; display: flex; }
.kv-list li span { width: 70px; color: var(--text-3); flex-shrink: 0; }
.kv-list li code { font-family: var(--mono); background: var(--surface); color: var(--text); word-break: break-all; border-radius: 5px; padding: 3px 8px; }
.kv-list li.key-li code { flex: 1; min-width: 0; }

.key-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  align-items: center; gap: 8px; margin-top: 10px; padding: 8px 10px; display: flex;
}
.key-box code { word-break: break-all; flex: 1; min-width: 0; font-size: 12.5px; }
.copy-key { background: var(--brand); color: #fff; border-radius: 5px; flex-shrink: 0; padding: 4px 12px; font-size: 12px; }
.copy-key.sm { padding: 3px 8px; }

.desktop-warn, .notice-warn {
  background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--warning);
  border-radius: var(--r-sm); color: var(--text-2); margin-bottom: 18px; padding: 10px 14px; font-size: 13px;
}

/* 教程页里的模型表（TraeWork） */
.model-table { border: 1px solid var(--border); border-radius: var(--r-sm); margin-bottom: 10px; overflow: hidden; }
.model-row {
  grid-template-columns: minmax(165px, 1.2fr) minmax(150px, 1.4fr) 80px 72px;
  align-items: center; display: grid;
}
.model-row > div { border-bottom: 1px solid var(--border); overflow-wrap: anywhere; padding: 9px 12px; font-size: 13px; }
.model-row:last-child > div { border-bottom: none; }
.model-row-head > div { color: var(--text-2); white-space: nowrap; background: var(--surface); font-size: 12.5px; font-weight: 500; }
.model-row .cell-name { font-family: var(--mono); white-space: nowrap; font-weight: 600; }
.model-row .cell-num { white-space: nowrap; }
.model-row .cap { text-align: center; }
.model-row .cap.ok { color: var(--brand); font-weight: 600; }
.model-row .cap:not(.ok) { color: var(--text-3); }
.model-row > div:last-child { text-align: right; }

/* ── FAQ ─────────────────────────────────────────────────── */

.faq { flex-direction: column; gap: 8px; display: flex; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 0; font-size: 14px; font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:before { content: '+ '; color: var(--brand); margin-right: 4px; font-weight: 600; }
.faq details[open] summary:before { content: '− '; }
.faq details p { color: var(--text-2); padding: 0 0 14px; font-size: 13px; }
.faq .note { font-size: 12px; }
.faq code { font-family: var(--mono); background: var(--surface-2); color: var(--brand-600); border-radius: 5px; padding: 2px 7px; font-size: 12.5px; }
.faq .steps, .faq .codes { color: var(--text-2); margin: 0 0 14px; padding-left: 22px; font-size: 13px; }
.faq .steps li, .faq .codes li { padding: 3px 0; }
.faq .hl { color: var(--brand); font-weight: 600; }

.model-grid-wrap { margin: 4px 0 8px; overflow-x: auto; }
.model-grid { grid-template-columns: 180px minmax(110px, 1fr) 78px 78px 60px 60px 60px 86px; min-width: 762px; display: grid; }
.model-grid > div { border-bottom: 1px solid var(--border); overflow-wrap: anywhere; width: 100%; padding: 8px 10px; font-size: 12.5px; line-height: 1.4; }
.model-grid-head > div { color: var(--text-2); white-space: nowrap; font-weight: 500; }
.model-grid .cell-name { white-space: nowrap; font-weight: 600; }
.model-grid .cell-num { white-space: nowrap; }
.model-grid .cap { text-align: center; white-space: nowrap; }
.model-grid .cap.ok { color: var(--brand); font-weight: 600; }
.model-grid .cap:not(.ok) { color: var(--text-2); }

/* ── 分页 ────────────────────────────────────────────────── */

.pagination { flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; margin-top: 20px; display: flex; }
.pg-info { color: var(--text-3); font-size: 13px; }
.pg-jump { color: var(--text-3); align-items: center; gap: 6px; font-size: 13px; display: flex; }
.pg-jump input {
  text-align: center; border: 1px solid var(--border-2); border-radius: var(--r-sm);
  background: var(--surface); width: 56px; padding: 5px 8px; font-size: 13px;
}
.pg-jump input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); outline: none; }

/* ── 邀请 ────────────────────────────────────────────────── */

.stats { grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; display: grid; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; }
.stat-num { color: var(--brand-600); letter-spacing: -.02em; font-size: 26px; font-weight: 700; }
.stat-label { color: var(--text-3); margin-top: 4px; font-size: 13px; }
.invite-box { align-items: center; gap: 20px; display: flex; }
.invite-qr { border: 1px solid var(--border); border-radius: var(--r); flex-shrink: 0; width: 148px; height: 148px; }
.invite-main { flex: 1; min-width: 0; }
.invite-rule { color: var(--text-2); margin-bottom: 12px; font-size: 13.5px; line-height: 1.7; }
.invite-rule b { color: var(--brand-600); }
.link-row { align-items: center; gap: 8px; display: flex; }
.link-text {
  border: 1px solid var(--border-2); border-radius: var(--r-sm); min-width: 0;
  color: var(--text-2); text-overflow: ellipsis; white-space: nowrap;
  flex: 1; padding: 9px 12px; font-size: 12.5px; overflow: hidden;
}
.plus { color: var(--success); font-weight: 600; }
.empty-box { text-align: center; color: var(--text-3); padding: 36px 20px; font-size: 13.5px; }

/* ── 滚动条（参考站默认隐藏，这里保留细条以便长列表）──────── */

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d8dde3; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c3cad2; }
::-webkit-scrollbar-track { background: transparent; }

/* ── 响应式 ──────────────────────────────────────────────── */

@media (width <= 760px) {
  .page { padding: 8px 0 40px; }
  .card { padding: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .btn { padding: 11px 18px; }
  input, textarea { padding: 11px 12px; }

  .layout { flex-direction: column; }
  .m-topbar {
    z-index: 30; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border); background: #ffffffeb;
    justify-content: space-between; align-items: center; gap: 10px;
    padding: 10px 14px; display: flex; position: sticky; top: 0;
  }
  .burger { border-radius: var(--r-sm); width: 40px; height: 40px; color: var(--text); place-items: center; display: grid; }
  .burger:hover { background: var(--surface-2); }
  .m-brand { align-items: center; gap: 8px; font-size: 15px; font-weight: 650; display: flex; }
  .m-logout { border-radius: var(--r-sm); color: var(--text-3); padding: 8px 12px; font-size: 13px; }
  .m-logout:hover { background: var(--surface-2); color: var(--danger); }

  .sidebar {
    z-index: 40; width: 260px; max-width: 82vw; height: 100svh;
    box-shadow: var(--shadow-lg); transition: transform .22s;
    position: fixed; top: 0; bottom: 0; left: 0; transform: translate(-100%);
  }
  .drawer-open .sidebar { transform: translate(0); }
  .overlay {
    z-index: 35; opacity: 0; pointer-events: none; background: #0006;
    transition: opacity .22s; display: block; position: fixed; inset: 0;
  }
  .drawer-open .overlay { opacity: 1; pointer-events: auto; }
  .content { padding: 16px; }

  .hero { flex-wrap: wrap; padding: 20px 18px; }
  .hero-balance { font-size: 28px; }
  .hero-cta { flex-basis: 100%; justify-content: center; margin-top: 14px; }

  .tut-tabs { width: 100%; }
  .tut-tabs button { text-align: center; flex: 1; }

  .step { flex-direction: column; gap: 8px; }
  .step-img { width: 100%; }

  .model-row { grid-template-columns: minmax(135px, 1.2fr) 80px 72px; }
  .model-row > div:nth-child(2) { display: none; }

  .tbl-wrap { display: none; }
  .m-cards { display: flex; }
  .card-head { margin-bottom: 14px; }
  .btn.sm { padding: 5px 11px; font-size: 12px; }

  .pagination { gap: 10px; }

  .stats { gap: 10px; }
  .stat { padding: 14px 16px; }
  .stat-num { font-size: 21px; }
  .invite-box { flex-direction: column; align-items: stretch; }
  .invite-qr { margin: 0 auto; }

  .faq details { padding: 0 14px; }
}
