/* =============================================================================
 *  Binex · 全局样式系统  common.css
 *  ---------------------------------------------------------------------------
 *  1. 变量   2. 重置   3. 排版   4. 布局   5. 导航
 *  6. 按钮   7. 表单   8. 卡片   9. 表格  10. 标签页
 *  11. 徽标/状态  12. 弹窗  13. 提示条  14. 分页
 *  15. 骨架屏  16. 进度条  17. 工具类  18. 响应式  19. RTL
 *  依赖：无。所有页面在 head 中第一个引入本文件。
 * ========================================================================== */

/* ---------------------------------------------------------------- 1. 变量 */
:root {
  /* 品牌色 */
  --c-primary:        #2f6bff;
  --c-primary-hover:  #1d55e0;
  --c-primary-active: #1646bd;
  --c-primary-weak:   rgba(47, 107, 255, 0.10);

  /* 功能色 */
  --c-success:  #0ecb81;   /* 涨 / 成功 */
  --c-success-hover: #0bb372;
  --c-danger:   #f6465d;   /* 跌 / 危险 */
  --c-danger-hover: #dc3a50;
  --c-warning:  #f0b90b;
  --c-info:     #1e9bff;

  --c-up:    var(--c-success);
  --c-down:  var(--c-danger);

  /* 中性色 */
  --c-bg:        #f5f7fa;
  --c-bg-deep:   #eef1f6;
  --c-card:      #ffffff;
  --c-border:    #e6e9ef;
  --c-border-strong: #d3d8e2;
  --c-text:      #1a1d26;
  --c-text-sub:  #4b5563;
  --c-text-muted:#8a93a6;
  --c-text-invert:#ffffff;

  /* 深色区域（页脚、下单区） */
  --c-dark:      #12151f;
  --c-dark-soft: #1b1f2b;

  /* 圆角 / 阴影 */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-md: 0 4px 12px rgba(16, 24, 40, .08);
  --sh-lg: 0 12px 32px rgba(16, 24, 40, .14);
  --sh-focus: 0 0 0 3px rgba(47, 107, 255, .18);

  /* 间距 */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;

  /* 字体 */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Noto Sans SC", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  /* 字号 */
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-3xl: 34px;

  /* 层级 */
  --z-nav: 900;
  --z-dropdown: 950;
  --z-mask: 1000;
  --z-toast: 1100;

  /* 布局 */
  --container: 1280px;
  --nav-h: 60px;
}

/* ---------------------------------------------------------------- 2. 重置 */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 移动端点击不出现灰色高亮块 */
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg, video, canvas {
  max-width: 100%;
  display: block;
  border: 0;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--c-primary-hover); }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  margin: 0;
}
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }

/* 数字统一使用等宽字形，表格对齐更整齐 */
.num, .table td.num, .price, .amount { font-variant-numeric: tabular-nums; }

/* 选中态 */
::selection { background: var(--c-primary); color: #fff; }

/* 滚动条（WebKit） */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #c9cfdb;
  border-radius: var(--r-pill);
}
::-webkit-scrollbar-thumb:hover { background: #aab2c2; }

/* 键盘可访问性 */
:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- 3. 排版 */
h1 { font-size: var(--fs-3xl); font-weight: 700; line-height: 1.25; }
h2 { font-size: var(--fs-2xl); font-weight: 700; line-height: 1.3; }
h3 { font-size: var(--fs-xl);  font-weight: 600; line-height: 1.35; }
h4 { font-size: var(--fs-lg);  font-weight: 600; line-height: 1.4; }
h5 { font-size: var(--fs-md);  font-weight: 600; line-height: 1.45; }
h6 { font-size: var(--fs-base);font-weight: 600; line-height: 1.5; }

small, .text-sm   { font-size: var(--fs-sm); }
.text-xs          { font-size: var(--fs-xs); }
.text-md          { font-size: var(--fs-md); }
.text-lg          { font-size: var(--fs-lg); }
.text-muted       { color: var(--c-text-muted); }
.text-sub         { color: var(--c-text-sub); }
.text-up          { color: var(--c-up) !important; }
.text-down        { color: var(--c-down) !important; }
.text-primary     { color: var(--c-primary) !important; }
.text-success     { color: var(--c-success) !important; }
.text-warning     { color: var(--c-warning) !important; }
.text-danger      { color: var(--c-danger) !important; }
.text-center      { text-align: center; }
.text-right       { text-align: right; }
.text-nowrap      { white-space: nowrap; }
.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

/* ---------------------------------------------------------------- 4. 布局 */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.container-narrow { max-width: 480px; }

.page { padding: var(--sp-6) 0 var(--sp-10); }

/* 页面主标题区 */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-5);
}
.page-title { font-size: var(--fs-xl); font-weight: 700; }
.page-desc  { color: var(--c-text-muted); font-size: var(--fs-sm); margin-top: 2px; }

/* Flex 工具 */
.flex      { display: flex; }
.flex-col  { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.items-end    { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-1    { flex: 1 1 0%; min-width: 0; }
.gap-1 { gap: var(--sp-1); } .gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); } .gap-4 { gap: var(--sp-4); }
.gap-5 { gap: var(--sp-5); } .gap-6 { gap: var(--sp-6); }

/* Grid 工具 */
.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* 间距工具 */
.mt-0{margin-top:0} .mt-1{margin-top:var(--sp-1)} .mt-2{margin-top:var(--sp-2)}
.mt-3{margin-top:var(--sp-3)} .mt-4{margin-top:var(--sp-4)} .mt-5{margin-top:var(--sp-5)}
.mt-6{margin-top:var(--sp-6)} .mt-8{margin-top:var(--sp-8)}
.mb-0{margin-bottom:0} .mb-1{margin-bottom:var(--sp-1)} .mb-2{margin-bottom:var(--sp-2)}
.mb-3{margin-bottom:var(--sp-3)} .mb-4{margin-bottom:var(--sp-4)} .mb-5{margin-bottom:var(--sp-5)}
.mb-6{margin-bottom:var(--sp-6)} .mb-8{margin-bottom:var(--sp-8)}
.ml-auto{margin-left:auto} .mr-auto{margin-right:auto}
.p-0{padding:0} .p-3{padding:var(--sp-3)} .p-4{padding:var(--sp-4)}
.p-5{padding:var(--sp-5)} .p-6{padding:var(--sp-6)}

.w-full { width: 100%; }
.h-full { height: 100%; }
.hidden { display: none !important; }
.relative { position: relative; }

/* 分隔线 */
.divider { height: 1px; background: var(--c-border); margin: var(--sp-4) 0; }
.divider-v { width: 1px; align-self: stretch; background: var(--c-border); }

/* ---------------------------------------------------------------- 5. 导航 */
.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: -.4px;
  color: var(--c-text);
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--c-text); }
.nav-logo-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--c-primary), #6d3bff);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  height: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-menu::-webkit-scrollbar { display: none; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 var(--sp-3);
  color: var(--c-text-sub);
  font-size: var(--fs-base);
  font-weight: 500;
  white-space: nowrap;
  transition: color .15s ease;
}
.nav-link:hover { color: var(--c-text); }
.nav-link.active { color: var(--c-primary); font-weight: 600; }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: var(--sp-3); right: var(--sp-3); bottom: -1px;
  height: 2px;
  background: var(--c-primary);
  border-radius: 2px 2px 0 0;
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

/* 语言切换 */
.lang-switch { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  color: var(--c-text-sub);
  font-size: var(--fs-sm);
  transition: background .15s ease;
}
.lang-btn:hover { background: var(--c-bg-deep); color: var(--c-text); }
.lang-btn .caret { font-size: 10px; opacity: .6; }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  padding: 6px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--r-xs);
  font-size: var(--fs-sm);
  color: var(--c-text-sub);
  text-align: left;
  white-space: nowrap;
}
.dropdown-item:hover { background: var(--c-bg); color: var(--c-text); }
.dropdown-item.active { color: var(--c-primary); background: var(--c-primary-weak); }
.dropdown-sep { height: 1px; margin: 6px 4px; background: var(--c-border); }

/* 用户头像菜单 */
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), #6d3bff);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: var(--fs-sm);
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
}
.user-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  height: 38px;
  padding: 0 8px 0 6px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  color: var(--c-text-sub);
}
.user-btn:hover { background: var(--c-bg-deep); }

/* 移动端汉堡 */
.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  color: var(--c-text-sub);
  place-items: center;
}
.nav-toggle:hover { background: var(--c-bg-deep); }

/* ---------------------------------------------------------------- 6. 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--c-bg-deep);
  color: var(--c-text);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease,
              border-color .16s ease, box-shadow .16s ease, opacity .16s ease;
  user-select: none;
}
.btn:hover  { background: #e3e8f0; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--c-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--c-primary-hover); }
.btn-primary:active { background: var(--c-primary-active); }

.btn-success { background: var(--c-success); color: #fff; }
.btn-success:hover { background: var(--c-success-hover); }

.btn-danger { background: var(--c-danger); color: #fff; }
.btn-danger:hover { background: var(--c-danger-hover); }

.btn-outline {
  background: transparent;
  border-color: var(--c-border-strong);
  color: var(--c-text-sub);
}
.btn-outline:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: var(--c-primary-weak);
}

.btn-ghost {
  background: transparent;
  color: var(--c-text-sub);
}
.btn-ghost:hover { background: var(--c-bg-deep); color: var(--c-text); }

.btn-link {
  height: auto;
  padding: 0;
  background: none;
  color: var(--c-primary);
  font-weight: 500;
}
.btn-link:hover { background: none; color: var(--c-primary-hover); text-decoration: underline; }

/* 尺寸 */
.btn-sm { height: 32px; padding: 0 12px; font-size: var(--fs-sm); border-radius: var(--r-xs); }
.btn-lg { height: 48px; padding: 0 26px; font-size: var(--fs-md); }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }

/* 禁用 */
.btn:disabled,
.btn.disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}
.btn:disabled:hover { background: var(--c-bg-deep); }
.btn-primary:disabled:hover { background: var(--c-primary); }
.btn-success:disabled:hover { background: var(--c-success); }
.btn-danger:disabled:hover  { background: var(--c-danger); }

/* 加载态：文字隐藏，显示转圈 */
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn-outline.loading::after,
.btn-ghost.loading::after,
.btn.loading.dark-spin::after {
  border-color: rgba(47, 107, 255, .25);
  border-top-color: var(--c-primary);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* 独立转圈 */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(47, 107, 255, .2);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: -3px;
}

/* ---------------------------------------------------------------- 7. 表单 */
.form-group { margin-bottom: var(--sp-4); }
.form-row { display: flex; gap: var(--sp-3); }
.form-row > .form-group { flex: 1; min-width: 0; }

.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text-sub);
}
.form-label .req { color: var(--c-danger); }
.form-label .optional { color: var(--c-text-muted); font-weight: 400; }

.input,
.select,
.textarea {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  background: var(--c-card);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  color: var(--c-text);
  font-size: var(--fs-base);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
  appearance: none;
}
.textarea {
  height: auto;
  min-height: 110px;
  padding: 10px 12px;
  line-height: 1.6;
  resize: vertical;
}
.input::placeholder,
.textarea::placeholder { color: var(--c-text-muted); }

.input:hover, .select:hover, .textarea:hover { border-color: #b9c1d0; }
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: var(--sh-focus);
}
.input:disabled,
.select:disabled,
.textarea:disabled {
  background: var(--c-bg-deep);
  color: var(--c-text-muted);
  cursor: not-allowed;
}

/* 错误态 */
.input.is-error,
.select.is-error,
.textarea.is-error { border-color: var(--c-danger); }
.input.is-error:focus { box-shadow: 0 0 0 3px rgba(246, 70, 93, .16); }

/* 成功态 */
.input.is-ok { border-color: var(--c-success); }

/* 下拉箭头 */
.select {
  padding-right: 34px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a93a6' d='M6 8.5 2 4.5h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* 输入组：输入框 + 右侧按钮 */
.input-group { display: flex; }
.input-group .input { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.input-group .btn {
  height: 44px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  flex-shrink: 0;
}
.input-group .btn.btn-code {
  min-width: 116px;
  border: 1px solid var(--c-border-strong);
  border-left: 0;
  background: var(--c-card);
  color: var(--c-primary);
  font-size: var(--fs-sm);
}
.input-group .btn.btn-code:disabled {
  color: var(--c-text-muted);
  background: var(--c-bg-deep);
}

/* 带图标的输入框 */
.input-icon { position: relative; }
.input-icon .input { padding-right: 44px; }
.input-icon .icon-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--r-xs);
  color: var(--c-text-muted);
}
.input-icon .icon-btn:hover { background: var(--c-bg-deep); color: var(--c-text-sub); }

/* 辅助文字 / 错误提示 */
.form-hint {
  margin-top: 6px;
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  line-height: 1.5;
}
.form-error {
  margin-top: 6px;
  font-size: var(--fs-xs);
  color: var(--c-danger);
  min-height: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.form-error:empty { display: none; }

/* 复选框 / 单选框 */
.checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--c-text-sub);
  cursor: pointer;
  user-select: none;
  line-height: 1.5;
}
.checkbox input {
  width: 16px; height: 16px;
  margin: 2px 0 0;
  accent-color: var(--c-primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* 密码强度条 */
.pwd-strength { margin-top: 8px; }
.pwd-bars { display: flex; gap: 4px; }
.pwd-bars i {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--c-border);
  transition: background .2s ease;
}
.pwd-level-1 .pwd-bars i:nth-child(1) { background: var(--c-danger); }
.pwd-level-2 .pwd-bars i:nth-child(-n+2) { background: var(--c-warning); }
.pwd-level-3 .pwd-bars i:nth-child(-n+3) { background: #61c454; }
.pwd-level-4 .pwd-bars i { background: var(--c-success); }
.pwd-text { margin-top: 5px; font-size: var(--fs-xs); color: var(--c-text-muted); }

/* 数量快捷比例按钮 */
.pct-group { display: flex; gap: 6px; margin-top: 8px; }
.pct-group .pct {
  flex: 1;
  height: 28px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-xs);
  background: var(--c-card);
  font-size: var(--fs-xs);
  color: var(--c-text-sub);
  font-variant-numeric: tabular-nums;
}
.pct-group .pct:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pct-group .pct.active {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: var(--c-primary-weak);
}

/* ---------------------------------------------------------------- 8. 卡片 */
.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
}
.card + .card { margin-top: var(--sp-4); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--c-border);
}
.card-title {
  font-size: var(--fs-md);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-body { padding: var(--sp-5); }
.card-body.tight { padding: var(--sp-4); }
.card-footer {
  padding: var(--sp-3) var(--sp-5);
  border-top: 1px solid var(--c-border);
  background: #fbfcfe;
  border-radius: 0 0 var(--r-md) var(--r-md);
}

/* 数据统计卡 */
.stat-card {
  padding: var(--sp-5);
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
}
.stat-label {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-value {
  margin-top: 6px;
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}
.stat-sub {
  margin-top: 4px;
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}

/* 资产概览大卡（深色） */
.hero-card {
  position: relative;
  overflow: hidden;
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #1b2130 0%, #10131c 55%, #1a1f3a 100%);
  color: #fff;
  box-shadow: var(--sh-md);
}
.hero-card::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,107,255,.45), transparent 70%);
  pointer-events: none;
}
.hero-label { font-size: var(--fs-sm); color: rgba(255,255,255,.65); }
.hero-value {
  margin-top: 6px;
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.hero-sub { margin-top: 2px; font-size: var(--fs-sm); color: rgba(255,255,255,.55); }
.hero-grid {
  margin-top: var(--sp-5);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-item-label { font-size: var(--fs-xs); color: rgba(255,255,255,.55); }
.hero-item-value {
  margin-top: 3px;
  font-size: var(--fs-lg);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* 快捷入口 */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
}
.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: var(--sp-4) var(--sp-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-card);
  color: var(--c-text-sub);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: all .18s ease;
}
.quick-item:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.quick-icon {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--c-primary-weak);
  color: var(--c-primary);
  font-size: var(--fs-lg);
}

/* 币种图标占位 */
.coin-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  background: #64748b;
  text-transform: uppercase;
}
.coin-icon.sm { width: 22px; height: 22px; font-size: 9px; }
.coin-icon.lg { width: 36px; height: 36px; font-size: 13px; }

/* ---------------------------------------------------------------- 9. 表格 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--fs-sm);
}
.table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px var(--sp-3);
  background: #fafbfd;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.table td {
  padding: 12px var(--sp-3);
  border-bottom: 1px solid #f0f2f6;
  color: var(--c-text-sub);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s ease; }
.table tbody tr:hover td { background: #f8fafd; }
.table .td-right, .table th.td-right { text-align: right; }
.table .td-center, .table th.td-center { text-align: center; }
.table td.strong { color: var(--c-text); font-weight: 600; }

/* 可排序表头 */
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--c-text-sub); }
.table th.sortable .arrow { opacity: .35; font-size: 9px; margin-left: 3px; }
.table th.sortable.asc  .arrow,
.table th.sortable.desc .arrow { opacity: 1; color: var(--c-primary); }

/* 空状态 */
.empty {
  padding: var(--sp-8) var(--sp-4);
  text-align: center;
  color: var(--c-text-muted);
}
.empty-icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--sp-3);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-bg-deep);
  font-size: 24px;
  opacity: .7;
}
.empty-title { font-size: var(--fs-base); color: var(--c-text-sub); font-weight: 500; }
.empty-desc { margin-top: 4px; font-size: var(--fs-sm); }

/* --------------------------------------------------------------- 10. 标签页 */
.tabs {
  display: flex;
  gap: var(--sp-1);
  border-bottom: 1px solid var(--c-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  padding: 10px var(--sp-4);
  color: var(--c-text-muted);
  font-size: var(--fs-base);
  font-weight: 600;
  white-space: nowrap;
  transition: color .15s ease;
}
.tab:hover { color: var(--c-text-sub); }
.tab.active { color: var(--c-primary); }
.tab.active::after {
  content: "";
  position: absolute;
  left: var(--sp-4); right: var(--sp-4); bottom: -1px;
  height: 2px;
  background: var(--c-primary);
  border-radius: 2px 2px 0 0;
}

/* 药丸型分段控件 */
.segmented {
  display: inline-flex;
  padding: 3px;
  background: var(--c-bg-deep);
  border-radius: var(--r-sm);
  gap: 2px;
}
.segmented .seg {
  padding: 6px 14px;
  border-radius: var(--r-xs);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text-muted);
  transition: all .15s ease;
}
.segmented .seg:hover { color: var(--c-text-sub); }
.segmented .seg.active {
  background: var(--c-card);
  color: var(--c-text);
  box-shadow: var(--sh-sm);
}

/* 过滤器条 */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.filter-bar .select,
.filter-bar .input { width: auto; min-width: 130px; height: 36px; font-size: var(--fs-sm); }

/* ------------------------------------------------------ 11. 徽标 / 状态 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: var(--c-bg-deep);
  color: var(--c-text-sub);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}
.badge-dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-success { background: rgba(14, 203, 129, .12); color: #0a9d64; }
.badge-danger  { background: rgba(246, 70, 93, .12);  color: #d9364c; }
.badge-warning { background: rgba(240, 185, 11, .16); color: #b98200; }
.badge-info    { background: rgba(30, 155, 255, .12); color: #0d7ed8; }
.badge-primary { background: var(--c-primary-weak);   color: var(--c-primary); }
.badge-muted   { background: var(--c-bg-deep);        color: var(--c-text-muted); }

/* VIP 等级徽标 */
.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: var(--r-xs);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .3px;
  background: linear-gradient(135deg, #f7d774, #e0a800);
  color: #4a3400;
}
.vip-badge.v2 { background: linear-gradient(135deg, #d7e3ff, #7ea2ff); color: #10265c; }
.vip-badge.v3 { background: linear-gradient(135deg, #ffd7e0, #ff6b8b); color: #5c0f22; }

/* ------------------------------------------------------------ 12. 弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: var(--z-mask);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  background: rgba(16, 20, 30, .55);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s;
}
.modal-mask.open { opacity: 1; visibility: visible; }

.modal {
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: var(--c-card);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  transform: translateY(12px) scale(.98);
  transition: transform .2s cubic-bezier(.2, .9, .3, 1.2);
}
.modal-mask.open .modal { transform: translateY(0) scale(1); }

.modal-sm { max-width: 360px; }
.modal-lg { max-width: 620px; }
.modal-xl { max-width: 860px; }

.modal-header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--c-border);
}
.modal-title { font-size: var(--fs-md); font-weight: 700; flex: 1; }
.modal-close {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--r-xs);
  color: var(--c-text-muted);
  font-size: 18px;
  line-height: 1;
}
.modal-close:hover { background: var(--c-bg-deep); color: var(--c-text); }

.modal-body {
  padding: var(--sp-5);
  overflow-y: auto;
  color: var(--c-text-sub);
  font-size: var(--fs-base);
  line-height: 1.65;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--c-border);
}

/* 确认框内容 */
.confirm-icon {
  width: 44px; height: 44px;
  margin: 0 auto var(--sp-3);
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 22px;
  background: var(--c-primary-weak);
  color: var(--c-primary);
}
.confirm-icon.danger  { background: rgba(246,70,93,.12); color: var(--c-danger); }
.confirm-icon.warning { background: rgba(240,185,11,.16); color: #b98200; }
.confirm-title { font-size: var(--fs-md); font-weight: 700; text-align: center; margin-bottom: 6px; color: var(--c-text); }
.confirm-text { text-align: center; color: var(--c-text-sub); word-break: break-word; }

/* 弹窗内信息行 */
.kv-list { display: flex; flex-direction: column; gap: 10px; }
.kv-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: var(--fs-sm);
}
.kv-row .k { color: var(--c-text-muted); flex-shrink: 0; }
.kv-row .v { color: var(--c-text); font-weight: 600; text-align: right; word-break: break-all; }

/* ---------------------------------------------------------- 13. 提示条 */
/* 顶部横幅（警告 / 公告） */
.banner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 10px var(--sp-4);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.banner-warning { background: #fff8e1; border: 1px solid #ffe58f; color: #8a6100; }
.banner-danger  { background: #fff1f2; border: 1px solid #ffc9d0; color: #b42318; }
.banner-info    { background: #eef6ff; border: 1px solid #bcdcff; color: #0a5ea8; }
.banner-success { background: #eafaf1; border: 1px solid #b7ebd0; color: #0a7d4d; }
.banner .banner-icon { font-size: var(--fs-md); flex-shrink: 0; }
.banner .banner-close {
  margin-left: auto;
  color: inherit;
  opacity: .5;
  font-size: 16px;
  padding: 0 2px;
}
.banner .banner-close:hover { opacity: 1; }

/* 公告滚动 */
.notice-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  height: 38px;
  padding: 0 var(--sp-4);
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  overflow: hidden;
  font-size: var(--fs-sm);
  color: var(--c-text-sub);
}
.notice-bar .tag {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: var(--r-xs);
  background: var(--c-warning);
  color: #4a3400;
  font-size: 10px;
  font-weight: 800;
}
.notice-track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}
.notice-track span {
  display: inline-block;
  padding-left: 100%;
  animation: notice-scroll 22s linear infinite;
}
.notice-bar:hover .notice-track span { animation-play-state: paused; }
@keyframes notice-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* Toast 浮层 */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: min(380px, calc(100vw - 40px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-info);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-lg);
  font-size: var(--fs-sm);
  color: var(--c-text-sub);
  pointer-events: auto;
  animation: toast-in .22s cubic-bezier(.2, .9, .3, 1.2);
}
.toast.hiding { animation: toast-out .18s ease forwards; }
.toast-icon { flex-shrink: 0; font-size: var(--fs-md); line-height: 1.4; }
.toast-msg { flex: 1; word-break: break-word; line-height: 1.5; }
.toast-close {
  flex-shrink: 0;
  color: var(--c-text-muted);
  font-size: 15px;
  line-height: 1;
  padding: 2px;
}
.toast-close:hover { color: var(--c-text); }
.toast.success { border-left-color: var(--c-success); }
.toast.success .toast-icon { color: var(--c-success); }
.toast.error   { border-left-color: var(--c-danger); }
.toast.error .toast-icon { color: var(--c-danger); }
.toast.warn    { border-left-color: var(--c-warning); }
.toast.warn .toast-icon { color: var(--c-warning); }
.toast.info    { border-left-color: var(--c-info); }
.toast.info .toast-icon { color: var(--c-info); }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(24px); }
}

/* ------------------------------------------------------------ 14. 分页 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: var(--sp-4) 0;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xs);
  background: var(--c-card);
  color: var(--c-text-sub);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  transition: all .15s ease;
}
.page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.page-btn.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  font-weight: 600;
}
.page-btn:disabled { opacity: .4; cursor: not-allowed; }
.page-ellipsis { color: var(--c-text-muted); padding: 0 2px; }
.page-info {
  margin-left: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}

/* ---------------------------------------------------------- 15. 骨架屏 */
.skeleton {
  background: linear-gradient(90deg, #eef1f6 25%, #e4e9f1 37%, #eef1f6 63%);
  background-size: 400% 100%;
  animation: skeleton-load 1.4s ease infinite;
  border-radius: var(--r-xs);
}
@keyframes skeleton-load {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
.skeleton-text { height: 12px; margin: 8px 0; }
.skeleton-text.w-60 { width: 60%; }
.skeleton-text.w-40 { width: 40%; }
.skeleton-row { height: 44px; margin-bottom: 8px; }
.skeleton-card { height: 120px; }

/* ------------------------------------------------------------ 16. 进度条 */
.progress {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--c-bg-deep);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--c-primary), #6d3bff);
  transition: width .35s ease;
}
.progress-sm { height: 5px; }

/* ------------------------------------------------------------ 17. 工具类 */
.link-sub { color: var(--c-text-muted); }
.link-sub:hover { color: var(--c-primary); }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.overflow-hidden { overflow: hidden; }
.break-all { word-break: break-all; }
.mono { font-family: var(--font-mono); font-size: var(--fs-xs); }

/* 地址 / TXID 复制行 */
.copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--c-bg);
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--c-text-sub);
  word-break: break-all;
}
.copy-row .addr { flex: 1; line-height: 1.6; }
.copy-row .btn-copy {
  flex-shrink: 0;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--r-xs);
  background: var(--c-card);
  border: 1px solid var(--c-border-strong);
  color: var(--c-primary);
  font-size: var(--fs-xs);
  font-family: var(--font-sans);
  font-weight: 600;
}
.copy-row .btn-copy:hover { border-color: var(--c-primary); background: var(--c-primary-weak); }

/* 登录/注册页 */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6) var(--sp-4);
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(47,107,255,.13), transparent 60%),
    radial-gradient(700px 420px at 95% 105%, rgba(109,59,255,.12), transparent 60%),
    var(--c-bg);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: var(--sp-8) var(--sp-6);
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: var(--sp-5);
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -.5px;
}
.auth-title { font-size: var(--fs-xl); font-weight: 700; text-align: center; }
.auth-desc {
  margin: 6px 0 var(--sp-6);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.auth-footer {
  margin-top: var(--sp-5);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

/* 步骤指示器 */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--sp-6);
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.step-idx {
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-bg-deep);
  font-size: var(--fs-xs);
  font-weight: 700;
  transition: all .2s ease;
}
.step.active { color: var(--c-primary); font-weight: 600; }
.step.active .step-idx { background: var(--c-primary); color: #fff; }
.step.done .step-idx { background: var(--c-success); color: #fff; }
.step-line {
  width: 42px; height: 1px;
  margin: 0 10px;
  background: var(--c-border-strong);
}

/* ------------------------------------------------------------ 18. 响应式 */
@media (max-width: 1200px) {
  :root { --container: 1080px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 992px) {
  :root { --container: 100%; }
  .container { padding: 0 var(--sp-4); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-value { font-size: var(--fs-2xl); }
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-2);
    background: var(--c-card);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--sh-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: all .18s ease;
    z-index: var(--z-dropdown);
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-link {
    height: 44px;
    padding: 0 var(--sp-3);
    border-radius: var(--r-sm);
  }
  .nav-link.active::after { display: none; }
  .nav-link.active { background: var(--c-primary-weak); }
  .nav-toggle { display: grid; }
  .page { padding: var(--sp-4) 0 var(--sp-8); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-value { font-size: var(--fs-xl); }
  .form-row { flex-direction: column; gap: 0; }
  .page-title { font-size: var(--fs-lg); }
  .card-body { padding: var(--sp-4); }
  .card-header { padding: var(--sp-3) var(--sp-4); }
  .auth-card { padding: var(--sp-6) var(--sp-4); border-radius: var(--r-md); }
  .modal { max-height: calc(100vh - 24px); }
  .modal-body { padding: var(--sp-4); }
  .modal-footer { padding: var(--sp-3) var(--sp-4); }
  .toast-container { top: 12px; right: 12px; left: 12px; max-width: none; }
  .table th, .table td { padding: 10px 8px; }
  .pagination { gap: 4px; }
  .page-btn { min-width: 30px; height: 30px; padding: 0 8px; }
}

@media (max-width: 420px) {
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-2); }
  .btn { padding: 0 14px; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------------------------------------------------------------- 19. RTL */
/* 阿拉伯语：<html dir="rtl"> 时整体镜像，Latin 内容保持 LTR 方向 */
[dir="rtl"] body { direction: rtl; text-align: right; }
[dir="rtl"] .nav-link.active::after { left: auto; right: var(--sp-3); }
[dir="rtl"] .form-label .req { order: -1; }
[dir="rtl"] .table th,
[dir="rtl"] .table td { text-align: right; }
[dir="rtl"] .table .td-right { text-align: left; }
[dir="rtl"] .input-icon .input { padding-right: 12px; padding-left: 44px; }
[dir="rtl"] .input-icon .icon-btn { right: auto; left: 4px; }
[dir="rtl"] .select {
  padding-right: 12px;
  padding-left: 34px;
  background-position: left 12px center;
}
[dir="rtl"] .toast { border-left: 0; border-right: 3px solid var(--c-info); }
[dir="rtl"] .toast.success { border-right-color: var(--c-success); }
[dir="rtl"] .toast.error   { border-right-color: var(--c-danger); }
[dir="rtl"] .toast.warn    { border-right-color: var(--c-warning); }
[dir="rtl"] .toast-container { right: auto; left: 20px; }
[dir="rtl"] .toast { animation-name: toast-in-rtl; }
@keyframes toast-in-rtl {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
[dir="rtl"] .dropdown { right: auto; left: 0; }
[dir="rtl"] .hero-card::after { right: auto; left: -60px; }
[dir="rtl"] .page-btn { direction: rtl; }
[dir="rtl"] .mono,
[dir="rtl"] .copy-row .addr { direction: ltr; text-align: left; unicode-bidi: plaintext; }
