/* ==========================================================================
   Cosmic Cube Trading Platform · Design System
   黑色极简 / 高对比 / 数字等宽对齐
   ========================================================================== */

:root {
  --bg: #000000;
  --bg-soft: #070708;
  --panel: #0b0b0c;
  --panel-2: #101012;
  --input: #141416;
  --line: #1d1d20;
  --line-soft: rgba(255, 255, 255, 0.055);
  --line-strong: #2c2c31;

  --text: #ffffff;
  --text-2: #9b9b9f;
  --text-3: #656569;
  --text-4: #3d3d42;

  --up: #00b897;
  --up-soft: rgba(0, 184, 151, 0.12);
  --down: #f5485e;
  --down-soft: rgba(245, 72, 94, 0.12);
  --accent: #ffffff;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;

  --header-h: 64px;
  --max: 1280px;

  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, "Roboto Mono", monospace;

  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.65);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; }
img, svg { display: block; max-width: 100%; }
canvas { display: block; }
::selection { background: rgba(0, 184, 151, 0.35); color: #fff; }

/* 滚动条 */
* { scrollbar-width: thin; scrollbar-color: #2a2a2e transparent; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #2a2a2e; border-radius: 99px; }
*::-webkit-scrollbar-thumb:hover { background: #3a3a40; }

/* ------------------------------- 布局工具 ------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.center { justify-content: center; }
.items-center { align-items: center; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.flex-1 { flex: 1; min-width: 0; }
.hidden { display: none !important; }
.mono { font-family: var(--mono); letter-spacing: -0.01em; }
.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.tiny { font-size: 12px; }
.strong { font-weight: 700; }

/* --------------------------------- 顶栏 --------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner {
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #fff;
  flex-shrink: 0;
}
.brand-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.brand-mark svg { width: 23px; height: 23px; }
.brand .dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #fff;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.85;
}
.brand:hover { opacity: 0.85; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
  white-space: nowrap;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.055); }
.nav a.active { color: #fff; font-weight: 600; }

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

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--text-2);
  transition: 0.16s var(--ease);
}
.icon-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.icon-btn svg { width: 19px; height: 19px; }

.tb-link {
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 9px;
  white-space: nowrap;
}
.tb-link:hover { color: #fff; background: rgba(255, 255, 255, 0.055); }

.lang-select {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 9px;
  white-space: nowrap;
  flex-shrink: 0;
}
.lang-select:hover { color: #fff; background: rgba(255, 255, 255, 0.055); }

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2a2a2f, #141417);
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}
.user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 4px;
  border-radius: 99px;
  border: 1px solid transparent;
  transition: 0.16s var(--ease);
}
.user-trigger:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--line); }

.menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 250px;
  background: #0e0e10;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  animation: pop 0.14s var(--ease);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(-5px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.menu-head { padding: 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-head .u { font-weight: 650; font-size: 14px; }
.menu-head .uid { font-family: var(--mono); font-size: 12px; color: var(--text-3); margin-top: 3px; }
.menu a, .menu button.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--text-2);
  text-align: left;
}
.menu a:hover, .menu button.menu-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.menu .sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu svg { width: 16px; height: 16px; opacity: 0.75; }

/* --------------------------------- 按钮 --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s var(--ease), color 0.16s var(--ease),
    border-color 0.16s var(--ease), transform 0.1s var(--ease), opacity 0.16s;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn[disabled], .btn.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: #e6e6e6; }
.btn-ghost { color: #fff; border-color: var(--line-strong); background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: #4a4a50; }
.btn-soft { background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn-soft:hover { background: rgba(255, 255, 255, 0.13); }
.btn-buy { background: var(--up); color: #fff; }
.btn-buy:hover { background: #00a98b; }
.btn-sell { background: var(--down); color: #fff; }
.btn-sell:hover { background: #e03e52; }
.btn-danger { background: rgba(245, 72, 94, 0.14); color: var(--down); border-color: rgba(245, 72, 94, 0.25); }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-pill { border-radius: 999px; }

/* --------------------------------- 表单 --------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 12.5px; color: var(--text-2); }
.input, .select, .textarea {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.textarea { height: auto; padding: 12px 13px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
.input:hover, .select:hover { border-color: #333338; }
.input:focus, .select:focus, .textarea:focus { border-color: #5a5a62; background: #17171a; }
.input.invalid { border-color: var(--down); }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239b9b9f' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  cursor: pointer;
}
.select option { background: #141416; color: #fff; }

.input-group { position: relative; }
.input-group .suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12.5px;
  color: var(--text-2);
  pointer-events: none;
}
.input-group .prefix {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-3);
}
.input-group input { padding-left: 34px; }

.checkbox { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 12.5px; color: var(--text-2); line-height: 1.55; }
.checkbox input { appearance: none; width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; border: 1px solid #3a3a40; border-radius: 4px; background: #141416; cursor: pointer; transition: 0.15s; }
.checkbox input:checked { background: #fff; border-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2.4'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5'/%3E%3C/svg%3E"); background-size: 12px; background-position: center; background-repeat: no-repeat; }
.checkbox a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.hint { font-size: 12px; color: var(--text-3); line-height: 1.55; }
.error-text { font-size: 12.5px; color: var(--down); min-height: 18px; }

/* --------------------------------- 标签 --------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-2);
  white-space: nowrap;
}
.tag.up { background: var(--up-soft); color: var(--up); }
.tag.down { background: var(--down-soft); color: var(--down); }
.tag.solid { background: #fff; color: #000; }
.tag.outline { background: transparent; border: 1px solid var(--line-strong); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-2);
}

/* --------------------------------- 选项卡 --------------------------------- */
.tabs { display: flex; align-items: center; gap: 22px; border-bottom: 1px solid var(--line); }
.tab {
  position: relative;
  padding: 13px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s;
}
.tab:hover { color: #fff; }
.tab.active { color: #fff; font-weight: 600; }
.tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}
.tab .count { margin-left: 5px; font-size: 11px; color: var(--text-3); font-family: var(--mono); }
.seg {
  display: inline-flex;
  padding: 3px;
  background: #121214;
  border: 1px solid var(--line);
  border-radius: 9px;
  gap: 2px;
}
.seg button {
  height: 28px;
  padding: 0 11px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--text-2);
  font-weight: 500;
  transition: 0.14s;
}
.seg button:hover { color: #fff; }
.seg button.active { background: #2a2a2f; color: #fff; }

/* --------------------------------- 表格 --------------------------------- */
.table-wrap { overflow: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  text-align: left;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 13px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.table tbody tr { transition: background 0.13s; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.035); }
.table .right, .table th.right { text-align: right; }
.table.compact th { padding: 9px 12px; }
.table.compact td { padding: 10px 12px; }

/* --------------------------------- 卡片 --------------------------------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card-pad { padding: 20px; }
.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.panel-title { font-size: 13.5px; font-weight: 600; }

/* --------------------------------- Toast --------------------------------- */
.toast-host {
  position: fixed;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 16px;
  background: #17171a;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  font-size: 13.5px;
  color: #fff;
  animation: toast-in 0.22s var(--ease);
  max-width: 90vw;
}
.toast.out { animation: toast-out 0.2s var(--ease) forwards; }
.toast .ico { width: 18px; height: 18px; flex-shrink: 0; }
.toast.ok .ico { color: var(--up); }
.toast.err .ico { color: var(--down); }
.toast.info .ico { color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-6px) scale(0.98); } }

/* --------------------------------- 弹窗 --------------------------------- */
.modal-host {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}
.modal-host.show { display: flex; }
.modal {
  width: 100%;
  max-width: 440px;
  background: #0d0d0f;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  animation: pop 0.18s var(--ease);
  overflow: hidden;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 0; }
.modal-title { font-size: 16px; font-weight: 650; }
.modal-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; max-height: min(68vh, 620px); overflow-y: auto; }
.modal-foot { display: flex; gap: 10px; padding: 0 20px 20px; }
.modal-close { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--text-2); }
.modal-close:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* --------------------------------- 状态 --------------------------------- */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 54px 20px;
  color: var(--text-3);
  text-align: center;
}
.empty svg { width: 42px; height: 42px; opacity: 0.4; }
.empty .t { font-size: 13.5px; color: var(--text-2); }
.empty .s { font-size: 12px; }
.skeleton {
  background: linear-gradient(90deg, #141416 25%, #1d1d21 37%, #141416 63%);
  background-size: 400% 100%;
  animation: sk 1.4s ease infinite;
  border-radius: 6px;
}
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------- 提示条 --------------------------------- */
.auth-footnote {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(0, 184, 151, 0.07);
  border: 1px solid rgba(0, 184, 151, 0.18);
  font-size: 12px;
  color: #9cebda;
  line-height: 1.6;
}
.auth-footnote svg { width: 15px; height: 15px; flex-shrink: 0; }
.search-field { position: relative; display: flex; align-items: center; }
.search-field > svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-3);
  pointer-events: none;
}
.search-field input { padding-left: 36px; }

/* 快捷金额 */
.quick-amounts { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-amounts button {
  flex: 1;
  min-width: 58px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #121215;
  color: var(--text-2);
  font-size: 11.5px;
  white-space: nowrap;
}
.quick-amounts button:hover { color: #fff; border-color: #3a3a42; }

/* --------------------------------- 币种图标 --------------------------------- */
.coin-ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: #26262b;
  flex-shrink: 0;
  overflow: hidden;
}

.live-pill { height: 24px; font-size: 11px; gap: 6px; color: #fff; background: rgba(0, 184, 151, 0.08); border-color: rgba(0, 184, 151, 0.25); }
.live-pill.sim {
  color: #f0b90b;
  background: rgba(240, 185, 11, 0.08);
  border-color: rgba(240, 185, 11, 0.35);
}
.live-pill.sim .dot-live {
  background: #f0b90b;
  box-shadow: 0 0 0 4px rgba(240, 185, 11, 0.12);
  animation: none;
}

/* --------------------------------- 页脚 --------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  background: #050506;
  padding: 56px 0 34px;
  margin-top: 90px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 34px;
}
.footer h5 { font-size: 12.5px; font-weight: 600; color: #fff; margin-bottom: 15px; letter-spacing: 0.02em; }
.footer li { margin-bottom: 11px; }
.footer a { font-size: 13px; color: var(--text-3); transition: color 0.15s; }
.footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.7;
}
.footer-brand p { margin-top: 12px; font-size: 13px; color: var(--text-3); max-width: 260px; line-height: 1.75; }

/* --------------------------------- 动画 --------------------------------- */
@keyframes flash-up { 0% { background: rgba(0, 184, 151, 0.22); } 100% { background: transparent; } }
@keyframes flash-down { 0% { background: rgba(245, 72, 94, 0.22); } 100% { background: transparent; } }
td.f-up, span.f-up { animation: flash-up 0.5s ease-out; }
td.f-down, span.f-down { animation: flash-down 0.5s ease-out; }

.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* 移动端底部导航 */
.mobile-tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: none;
  align-items: stretch;
  height: 56px;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(8, 8, 10, 0.94);
  backdrop-filter: blur(18px) saturate(150%);
  border-top: 1px solid var(--line);
}
.mobile-tabs a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  color: var(--text-3);
}
.mobile-tabs a.active { color: #fff; }
.mobile-tabs a svg { width: 19px; height: 19px; }
@media (max-width: 860px) {
  .mobile-tabs { display: flex; }
  body.has-mobile-tabs { padding-bottom: 62px; }
}

/* -------------------------------- 响应式 -------------------------------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; row-gap: 30px; }
}
@media (max-width: 860px) {
  :root { --header-h: 58px; }
  .wrap { padding: 0 18px; }
  .topbar-inner { padding: 0 14px; gap: 12px; }
  .nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer { padding: 40px 0 26px; margin-top: 60px; }
  .brand { font-size: 21px; }
  .lang-select { display: none; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .tb-hide-sm { display: none !important; }
}
