/* ============================================================
 * Free For Every AI · 样式表
 * 深色主题 / 无外部字体与图标依赖
 * ==========================================================*/

:root {
  --bg: #0a0d18;
  --bg-soft: #0f1425;
  --surface: #151c33;
  --surface-2: #1b2440;
  --surface-3: #222d50;
  --line: #27325c;
  --line-soft: #1e2748;
  --text: #e8edfa;
  --text-2: #94a3c9;
  --text-3: #5f6f9d;
  --brand: #6c8cff;
  --brand-2: #a5b9ff;
  --brand-glow: rgba(108, 140, 255, .28);
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --gold: #fbbf24;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --ease: .28s cubic-bezier(.4, 0, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 45% at 12% 8%, rgba(108, 140, 255, .10), transparent 70%),
    radial-gradient(ellipse 50% 40% at 88% 4%, rgba(165, 185, 255, .07), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(74, 222, 128, .05), transparent 70%);
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

.wrap { position: relative; z-index: 1; max-width: 1360px; margin: 0 auto; padding: 0 24px; }

/* ---------- 图标 ---------- */
.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.13em;
  flex: none;
}
.icon.fill { fill: currentColor; stroke: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--ease);
  box-shadow: 0 6px 22px var(--brand-glow);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px var(--brand-glow); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .icon { font-size: 15px; }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text-2);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--text); background: var(--surface); box-shadow: none; }

.btn-ok { background: var(--ok); color: #06210f; box-shadow: 0 6px 22px rgba(74, 222, 128, .22); }
.btn-ok:hover { box-shadow: 0 10px 26px rgba(74, 222, 128, .3); }
.btn-bad { background: var(--bad); color: #2a0707; box-shadow: 0 6px 22px rgba(248, 113, 113, .22); }
.btn-sm { padding: 6px 13px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  background: rgba(10, 13, 24, .82);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-in {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 66px;
}

.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #8f7bff);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 6px 20px var(--brand-glow);
}
.brand-text { background: linear-gradient(135deg, #c3d0ff, var(--brand)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.navlinks { display: flex; gap: 4px; margin-left: 10px; }
.navlinks a {
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--ease);
}
.navlinks a:hover { color: var(--text); background: var(--surface); }

.topbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.live-chip {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px;
  color: var(--text-2);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* ---------- Hero ---------- */
.hero { padding: 62px 0 34px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px; color: var(--text-2);
}
.hero-badge .icon { color: var(--brand-2); }
.hero h1 {
  font-size: clamp(32px, 5.4vw, 56px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -1.4px;
  margin-bottom: 16px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #a5b9ff, #6c8cff 45%, #7ee0a8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { max-width: 660px; margin: 0 auto 26px; color: var(--text-2); font-size: 16px; }
.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- 区块通用 ---------- */
.section { padding: 44px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.sec-head h2 { font-size: 24px; font-weight: 750; letter-spacing: -.5px; display: flex; align-items: center; gap: 10px; }
.sec-head h2 .icon { color: var(--brand); font-size: 22px; }
.sec-head p { color: var(--text-3); font-size: 13.5px; margin-top: 4px; }

/* ---------- 统计 ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  transition: var(--ease);
}
.stat:hover { border-color: var(--brand); transform: translateY(-2px); }
.stat-ic {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--brand);
  font-size: 20px;
}
.stat-ic.ok { color: var(--ok); }
.stat-ic.warn { color: var(--warn); }
.stat-ic.gold { color: var(--gold); }
.stat-tx h4 { font-size: 11.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--text-3); }
.stat-tx .num { font-size: 25px; font-weight: 780; letter-spacing: -.8px; line-height: 1.25; }

/* ---------- 提示条 ---------- */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 18px;
  border: 1px solid rgba(251, 191, 36, .26);
  background: rgba(251, 191, 36, .07);
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: 13.5px;
}
.notice .icon { color: var(--warn); font-size: 17px; margin-top: 2px; }
.notice b { color: var(--text); }

/* ---------- 智能面板 ---------- */
.insight {
  position: relative; overflow: hidden;
  padding: 22px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--surface), var(--bg-soft));
  box-shadow: var(--shadow);
}
.insight::after {
  content: ''; position: absolute; right: -70px; top: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 140, 255, .16), transparent 70%);
  pointer-events: none;
}
.insight-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.insight-head .icon { font-size: 21px; color: var(--brand-2); }
.insight-head h3 { font-size: 17.5px; font-weight: 700; }
.insight-head .tag {
  padding: 3px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 11.5px; color: var(--text-3);
}
.insight-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.insight-card {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
}
.insight-card .lbl { font-size: 11.5px; letter-spacing: .5px; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.insight-card .val { font-size: 14.5px; color: var(--text); font-weight: 600; }
.insight-card .sub { font-size: 12.5px; color: var(--text-3); margin-top: 5px; }
.insight-foot { margin-top: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--text-3); }

/* ---------- 过滤栏 ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  margin-bottom: 20px;
}
.tb-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tb-label { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.chip {
  padding: 6px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px; font-weight: 500; font-family: inherit;
  cursor: pointer;
  transition: var(--ease);
}
.chip:hover { border-color: var(--brand); color: var(--text); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 16px var(--brand-glow); }

.search {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto;
  padding: 0 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: var(--ease);
  min-width: 230px;
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(108, 140, 255, .13); }
.search input {
  flex: 1; min-width: 0;
  padding: 9px 0;
  background: transparent; border: none; outline: none;
  color: var(--text); font-size: 14px; font-family: inherit;
}
.search input::placeholder { color: var(--text-3); }
.search .icon { color: var(--text-3); font-size: 15px; }

/* ---------- 渠道卡片 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }

.card {
  display: flex; flex-direction: column;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  transition: var(--ease);
  position: relative;
}
.card:hover { border-color: var(--brand); background: var(--surface-2); transform: translateY(-3px); box-shadow: var(--shadow); }

.card-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.logo {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--surface-3), var(--surface));
  border: 1px solid var(--line);
  font-size: 17px; font-weight: 800; color: var(--brand-2);
  letter-spacing: -.5px;
}
.card-title { flex: 1; min-width: 0; }
.card-title h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -.2px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.card-title .vendor { font-size: 12.5px; color: var(--text-3); margin-top: 1px; }

.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .2px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
}
.pill.ok { background: rgba(74, 222, 128, .12); border-color: rgba(74, 222, 128, .3); color: var(--ok); }
.pill.warn { background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .3); color: var(--warn); }
.pill.brand { background: rgba(108, 140, 255, .13); border-color: rgba(108, 140, 255, .32); color: var(--brand-2); }

.quota {
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  margin-bottom: 14px;
}
.quota .q-lbl { font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--text-3); }
.quota .q-val { font-size: 15px; font-weight: 700; color: var(--text); margin-top: 2px; }

.metalines { display: grid; gap: 7px; margin-bottom: 14px; }
.metaline { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-2); }
.metaline .icon { font-size: 14px; color: var(--text-3); margin-top: 4px; }
.metaline b { color: var(--text); font-weight: 600; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag-sm {
  padding: 2px 9px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  font-size: 11.5px; color: var(--text-3);
}

.card-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.rating { display: flex; align-items: center; gap: 3px; margin-left: auto; font-size: 13px; color: var(--text-2); }
.rating .icon { font-size: 14px; color: var(--text-3); }
.rating .icon.fill { color: var(--gold); }

/* ---------- 排行榜 ---------- */
.table-wrap {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  text-align: left;
  padding: 13px 16px;
  background: var(--bg-soft);
  color: var(--text-3);
  font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); color: var(--text-2); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface-2); }
tbody td.rank { width: 46px; }
.rank-n {
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 8px; background: var(--surface-3);
  font-size: 12.5px; font-weight: 700; color: var(--text-2);
}
.rank-n.top { background: linear-gradient(135deg, var(--brand), #8f7bff); color: #fff; }
td .nm { color: var(--text); font-weight: 600; }
.bar { position: relative; height: 6px; width: 100%; min-width: 90px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--brand), #7ee0a8); border-radius: 999px; }

/* ---------- 保管箱 ---------- */
.vault-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.vault-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  transition: var(--ease);
}
.vault-card:hover { border-color: var(--brand); }
.vault-card.danger { border-color: rgba(248, 113, 113, .4); }
.vault-card.warn { border-color: rgba(251, 191, 36, .35); }
.vk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.vk-head h4 { font-size: 15.5px; font-weight: 700; }
.vk-head .plat { font-size: 12.5px; color: var(--text-3); margin-top: 1px; }
.vk-key {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 12px;
}
.vk-key span { flex: 1; min-width: 0; word-break: break-all; }
.icon-btn {
  padding: 5px; border: none; background: transparent;
  color: var(--text-3); cursor: pointer; border-radius: 6px;
  font-size: 15px; display: grid; place-items: center;
  transition: var(--ease);
}
.icon-btn:hover { color: var(--brand); background: var(--surface-2); }
.icon-btn.danger:hover { color: var(--bad); }
.vk-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); }
.vk-foot .sp { margin-left: auto; }

.form-row { display: flex; flex-wrap: wrap; gap: 9px; }
.field { flex: 1 1 150px; min-width: 0; }
.field label { display: block; font-size: 11.5px; color: var(--text-3); margin-bottom: 5px; letter-spacing: .3px; }
input, select, textarea {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 13.5px; font-family: inherit;
  outline: none;
  transition: var(--ease);
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(108, 140, 255, .12); }
input::placeholder, textarea::placeholder { color: var(--text-3); }
select option { background: var(--surface); }

/* ---------- 指南 ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.guide-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  transition: var(--ease);
}
.guide-card:hover { border-color: var(--brand); transform: translateY(-3px); }
.guide-ic {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; background: var(--surface-2);
  color: var(--brand); font-size: 18px; margin-bottom: 12px;
}
.guide-card h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.guide-card p { font-size: 13.5px; color: var(--text-2); }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(5, 7, 14, .74);
  backdrop-filter: blur(6px);
}
.modal.open { display: flex; animation: fade .22s ease; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal-box {
  width: min(620px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  animation: rise .28s cubic-bezier(.2, .8, .2, 1);
}
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98) } to { opacity: 1; transform: none } }
.modal-head {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.modal-head h3 { font-size: 19px; font-weight: 750; }
.modal-head .sub { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.modal-body { padding: 20px 24px; }
.modal-foot { padding: 0 24px 22px; display: flex; gap: 10px; flex-wrap: wrap; }

.steps { list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li {
  counter-increment: s;
  display: flex; gap: 12px;
  font-size: 14px; color: var(--text-2);
}
.steps li::before {
  content: counter(s);
  flex: none;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--brand-2);
  font-size: 12.5px; font-weight: 700;
}

.codebox {
  position: relative;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12.5px;
  color: #b9c8f5;
  white-space: pre;
  overflow-x: auto;
  line-height: 1.75;
}
.codebox .copy {
  position: absolute; top: 8px; right: 8px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-2);
  font-family: inherit; font-size: 11.5px;
  cursor: pointer;
  transition: var(--ease);
}
.codebox .copy:hover { color: var(--text); border-color: var(--brand); }

/* ---------- Toast ---------- */
.toaster { position: fixed; right: 22px; bottom: 22px; z-index: 400; display: grid; gap: 9px; }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  font-size: 13.5px;
  animation: slideUp .3s ease;
  max-width: 380px;
}
.toast.ok .icon { color: var(--ok); }
.toast.bad .icon { color: var(--bad); }
.toast .icon { color: var(--brand); font-size: 17px; }
.toast.out { opacity: 0; transform: translateY(12px); transition: .3s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }

/* ---------- 空状态 ---------- */
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 20px;
  color: var(--text-3);
}
.empty .icon { font-size: 44px; margin-bottom: 12px; }
.empty h3 { color: var(--text); font-size: 17px; margin-bottom: 4px; }

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 30px;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-3);
  font-size: 13px;
}
.footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--text-2); text-decoration: none; }
.footer a:hover { color: var(--brand-2); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .navlinks { display: none; }
  .search { margin-left: 0; width: 100%; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 42px 0 26px; }
  .grid, .vault-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .topbar-in { height: 60px; gap: 10px; }
  .live-chip span { display: none; }
  .table-wrap { overflow-x: auto; }
  .brand { font-size: 16px; gap: 8px; }
  .brand-text { white-space: nowrap; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .brand { font-size: 14px; }
  .brand-mark { width: 30px; height: 30px; font-size: 15px; }
}

.hidden { display: none !important; }
