/* ══════════════════════════════════════════════════════════════
   fragment888 / 视觉还原 v3
   所有数值来自真实站 computed style 实测（420x900 viewport）
   实测报告：data/style-diff.txt
   ══════════════════════════════════════════════════════════════ */

:root {
  /* 实测：body bg = rgb(17,20,23) */
  --bg-color: #111417;
  --text-color: #8794a1;
  --accent-color: #4db2ff;
  --accent-rgb: 77, 178, 255;
  --accent-bg-color: rgba(var(--accent-rgb), .1);

  --header-bg-color: rgba(17, 20, 23, .9);
  --header-color: #fff;
  --header-height: 48px;
  /* Telegram 顶部安全区（Mini App 的悬浮条会压住顶部，boot() 里动态写入） */
  --tg-safe-top: env(safe-area-inset-top, 0px);

  /* 实测：卡片 bg = rgb(33,42,51)，表头 = rgb(41,52,64) */
  --table-bg-color: rgb(33, 42, 51);
  --table-header-bg-color: rgb(41, 52, 64);
  --table-text-color: rgb(140, 154, 169);
  --table-bg-hover-color: rgb(41, 52, 64);

  --value-color: #fff;
  --article-color: #fff;

  --btn-primary-color: #fff;
  --btn-primary-bg-color: rgb(36, 139, 218);
  --btn-primary-bg-hover-color: #207cc2;

  --btn-default-color: #fff;
  --btn-default-bg-color: #242e38;
  --btn-default-bg-hover-color: #293440;

  --field-color: #fff;
  --field-bg-color: #242e38;
  --field-placeholder-color: #8a98a6;

  --danger-color-rgb: 255, 88, 99;
  --danger-text-color: rgb(var(--danger-color-rgb));
  --danger-bg-color: rgba(var(--danger-color-rgb), .14);

  --warning-color-rgb: 255, 153, 83;
  --warning-text-color: rgb(var(--warning-color-rgb));
  --warning-bg-color: rgba(var(--warning-color-rgb), .14);

  --unavail-color-rgb: 255, 88, 99;
  --unavail-color: rgb(var(--unavail-color-rgb));

  --footer-bg-color: #111417;
  --footer-color: #8794a1;

  --def-border-radius: 8px;
  --def-transition-duration: .2s;
  --def-transition: var(--def-transition-duration) ease;
}

html[data-theme="light"] {
  --bg-color: #ffffff;
  --text-color: #707579;
  --header-bg-color: rgba(255, 255, 255, .9);
  --header-color: #000;
  --table-bg-color: #f4f4f5;
  --table-header-bg-color: #e9e9eb;
  --table-text-color: #707579;
  --value-color: #000;
  --article-color: #000;
  --btn-default-color: #000;
  --btn-default-bg-color: #f1f1f1;
  --field-color: #000;
  --field-bg-color: #f1f1f1;
  --field-placeholder-color: #999;
  --footer-bg-color: #ffffff;
  --footer-color: #707579;
}

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

html {
  margin: 0; padding: 0;
  height: 100%;
  background: var(--bg-color);
  -webkit-text-size-adjust: 100%;
}

/* 实测：body font-size 12px, line-height 17.14px, bg #111417, display block */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: ProductSans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  line-height: 17.1429px;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  position: relative;
}

a { color: var(--accent-color); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--header-color); }
table { border-collapse: collapse; width: 100%; }
button { font-family: inherit; }

/* ── header（48px fixed）───────────────────────────────────── */
.tm-header {
  display: flex;
  margin: 0 auto;
  position: fixed;
  left: 0; right: 0; top: var(--tg-safe-top, 0px);
  z-index: 100;
  background-color: rgba(33, 42, 51, .9);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  height: var(--header-height);
  padding: 0 14px;
  align-items: center;
  box-sizing: border-box;
}
html[data-theme="light"] .tm-header { background-color: rgba(255, 255, 255, .9); }

.tm-header-logo {
  display: block;
  flex: 0 0 123px;
  width: 123px;
  height: 48px;
}
@media (min-width: 768px) { .tm-header-logo { width: 123px; } }

.tm-logo {
  display: flex;
  align-items: center;
  height: 48px;
  color: var(--accent-color);
  line-height: 0;
}

.tm-logo-icon, .tm-logo-text {
  display: inline-block;
  vertical-align: top;
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
}

/* 实测：logo-icon 18x18（移动）/ 24x24（桌面） */
.tm-logo-icon {
  width: 18px; height: 18px;
  margin-right: 10px;
  background-size: contain;
  background-position: center;
  background-image: url("/assets/logo-icon.svg");
}
.tm-logo-text {
  width: 77px; height: 18px;
  background-image: url("/assets/logo-text.svg");
  background-position: left center;
  background-size: contain;
}
.tm-header-logo { width: auto; flex: 0 0 auto; }

@media (min-width: 768px) {
  .tm-logo-icon { width: 24px; height: 24px; margin-right: 12px; }
  .tm-logo-text { width: 101px; height: 24px; }
}

/* 移动端：搜索框居中，桌面：更宽 */
.tm-header-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  padding: 0 12px;
}

.tm-header-search-form { margin: 0; width: 100%; max-width: 480px; }
.tm-field { position: relative; display: block; }

.tm-input {
  width: 100%;
  height: 30px;
  padding: 0 10px 0 32px;
  border: 0;
  border-radius: var(--def-border-radius);
  background: var(--field-bg-color);
  color: var(--field-color);
  font-size: 12px;
  font-family: inherit;
  outline: none;
}
.tm-input::placeholder { color: var(--field-placeholder-color); }

/* 放大镜（仅顶栏搜索框用；列表页搜索框用自己的 .tm-search-icon） */
.tm-header-search-form .tm-search-field::before {
  content: "";
  position: absolute;
  left: 11px; top: 50%;
  width: 12px; height: 12px;
  transform: translateY(-50%);
  border: 2px solid var(--field-placeholder-color);
  border-radius: 50%;
  opacity: .8;
  z-index: 1;
}
.tm-header-search-form .tm-search-field::after {
  content: "";
  position: absolute;
  left: 21px; top: 18px;
  width: 5px; height: 2px;
  background: var(--field-placeholder-color);
  transform: rotate(45deg);
  opacity: .8;
  z-index: 1;
}

.tm-header-actions { display: flex; gap: 9px; flex: 0 0 auto; align-items: center; }

/* 移动端也显示 Connect TON（原版就是这个行为），只把 Connect Telegram 藏起来 */
@media (max-width: 767px) {
  .tm-header-actions-wide { display: flex; }
  .tm-header-actions-wide #btnConnectTg { display: none; }
  .tm-header-actions-wide .tm-header-button { height: 32px; padding: 0 12px; font-size: 13px; }
}

/* 汉堡菜单按钮（移动端） */
.tm-header-menu-button {
  display: none;
  width: 24px; height: 48px;
  flex: 0 0 auto;
  position: relative;
  cursor: pointer;
}
@media (max-width: 767px) {
  .tm-header-menu-button { display: block; }
  .tm-header-menu-button::before,
  .tm-header-menu-button::after {
    content: "";
    position: absolute;
    left: 2px; right: 2px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
  }
  .tm-header-menu-button::before { top: 18px; }
  .tm-header-menu-button::after { top: 28px; }
  html[data-theme="light"] .tm-header-menu-button::before,
  html[data-theme="light"] .tm-header-menu-button::after { background: #000; }
}

.tm-header-button {
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--def-border-radius);
}

/* ── 按钮 ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--def-border-radius);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--def-transition);
  white-space: nowrap;
  color: var(--btn-default-color);
  background: var(--btn-default-bg-color);
  padding: 12px 15px;
  font-size: 13px;
  line-height: 18px;
}

.btn-primary { color: var(--btn-primary-color); background: var(--btn-primary-bg-color); }
.btn-primary:hover { background: var(--btn-primary-bg-hover-color); }
.btn-default:hover { background: var(--btn-default-bg-hover-color); }

.btn-link {
  background: none; border: 0; padding: 0;
  font: inherit; font-size: 13px;
  color: var(--accent-color);
  cursor: pointer;
}

/* ── 主容器 ───────────────────────────────────────────────── */
/* 实测：main 从 header 下开始，无左右 padding，section 自己带 10px */
.tm-main {
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  padding-top: calc(var(--header-height) + var(--tg-safe-top, 0px));
  padding-bottom: 70px;
  box-sizing: border-box;
  flex: 1 0 auto;
}

@media (min-width: 768px) {
  .tm-main {
    width: 720px;
    box-sizing: content-box;
  }
}

/* ── section（实测：padding 0 10px 5px）──────────────────── */
.tm-section {
  padding: 0 10px 5px;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .tm-section { padding: 0 0 5px; }
}

/* ── section header（实测：width 100%，text 居中 22px nowrap）── */
.tm-section-header {
  display: flex;
  padding: 18px 0 9px;
  width: 100%;
  align-items: flex-start;
}

.tm-section-header-text {
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  color: var(--header-color);
  margin: 0;
  padding: 0 6px;
  flex-grow: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

/* 只有拍卖区标题居中；表格标题（h3）保持左对齐 */
.tm-auction-section .tm-section-header-text { justify-content: center; }

@media (min-width: 768px) {
  .tm-auction-section .tm-section-header-text { justify-content: flex-start; }
}

/* 表格标题（Bid History / Ownership History）：18px 左对齐 */
.tm-section.clearfix .tm-section-header-text,
.tm-section .tm-section-header h3.tm-section-header-text {
  font-size: 18px;
  line-height: 28px;
  justify-content: flex-start;
}

.tm-section-header-domain {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  font-size: 22px;
  line-height: 28px;
}

.tm-section-header-status {
  display: inline-block;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  padding: 3px 6px;
  margin: 5px 6px 1px;
  vertical-align: top;
  border-radius: 5px;
  white-space: nowrap;
  flex: 0 0 auto;
  color: #a5b8cc;
  background-color: rgba(165, 184, 204, .1);
}

@media (min-width: 768px) {
  .tm-section-header-status {
    font-size: 13px; line-height: 17px;
    padding: 3px 10px; margin: 9px 10px 4px;
    border-radius: 6px;
  }
}

.tm-status-avail { color: #5aec8c; background-color: rgba(90, 236, 140, .1); }
.tm-status-unavail { color: var(--unavail-color); background-color: rgba(var(--unavail-color-rgb), .1); }
.tm-status-banned { color: var(--danger-text-color); background-color: rgba(var(--danger-color-rgb), .1); }
.tm-status-taken, .tm-status-restricted { color: var(--warning-text-color); background-color: rgba(var(--warning-color-rgb), .1); }
.tm-status-auction { color: var(--warning-text-color); background-color: rgba(var(--warning-color-rgb), .1); }
.tm-status-sold { color: #a5b8cc; background-color: rgba(165, 184, 204, .1); }

/* ── 拍卖区布局 ───────────────────────────────────────────── */
.tm-auction-section {
  margin-bottom: -16px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 10px 5px;
}

.tm-auction-section .tm-section-header { padding: 18px 0 17px; width: 100%; flex: 0 0 100%; }

.tm-auction-section > .tm-section-box { width: 100%; margin-bottom: 16px; }

@media (min-width: 768px) {
  .tm-auction-section { padding: 0 0 5px; margin-bottom: -22px; }
  .tm-auction-section > .tm-section-box { width: calc(50% - 12px); margin-bottom: 22px; }
  .tm-auction-section .tm-section-header { order: 1; padding: 30px 0 19px; }
  .tm-auction-section .tm-section-bid-info { order: 3; }
  .tm-auction-section .tm-section-auction-info { order: 4; }
  .tm-auction-section .tm-section-buttons { order: 6; }
  .tm-auction-section .tm-section-countdown-wrap { order: 7; }
  .tm-auction-section .tm-section-header-domain { max-width: 400px; }
}

/* ── 通用卡片 ─────────────────────────────────────────────── */
.tm-section-box {
  border-radius: var(--def-border-radius);
  background-color: var(--table-bg-color);
  color: var(--table-text-color);
}

/* ── 价格区（实测：400x113）────────────────────────────────── */
.tm-section-bid-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--def-border-radius);
  background-color: var(--table-bg-color);
  color: var(--table-text-color);
  overflow: hidden;
}

.tm-section-bid-info .tm-table { table-layout: auto; }
.tm-section-bid-info .tm-table thead th {
  padding: 8px 16px 0;
  background: transparent;
  text-align: left;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--table-text-color);
  border-radius: 0;
}
.tm-section-bid-info .tm-table tbody td {
  padding: 2px 16px 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

/* 实测：bid-info-text 13px/19px */
.tm-bid-info-text {
  padding: 5px 16px 10px;
  font-size: 13px;
  line-height: 19px;
  color: var(--table-text-color);
}

/* 实测：.tm-section-bid-info .tm-value 是 26px/32px */
.tm-section-bid-info .tm-value {
  font-size: 26px;
  line-height: 32px;
  font-weight: 700;
  color: var(--value-color);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.table-cell { display: flex; align-items: center; min-width: 0; }
.table-cell-oneline { flex-wrap: wrap; align-items: baseline; gap: 0; }
.table-cell-value { color: var(--value-color); font-weight: 700; }

/* 实测：table-cell-desc 13px/16px, margin-left 7px */
.table-cell-desc {
  font-size: 13px;
  line-height: 16px;
  color: var(--table-text-color);
  margin-left: 7px;
  font-weight: 400;
}

/* TON 图标 */
.icon-ton::before {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  flex: 0 0 auto;
  background: var(--accent-color);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l8 12-8 8-8-8z' fill='black'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l8 12-8 8-8-8z' fill='black'/></svg>") center/contain no-repeat;
  vertical-align: -2px;
}

/* ── Collectible Number 卡（实测：400x78）──────────────────── */
.tm-list { padding: 0; }

.tm-list-item {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 8px 16px;
  gap: 0;
}

.tm-list-item-title {
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  color: var(--value-color);
  margin: 0;
  white-space: nowrap;
  flex: 0 0 auto;
}

.tm-list-item-value {
  margin: 0 0 0 30px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  color: var(--accent-color);
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
}

.tm-list-item-hint {
  padding: 0 16px 10px;
  font-size: 13px;
  line-height: 19px;
  color: var(--table-text-color);
  margin: 0;
}

.accent-color { color: var(--accent-color); }

/* ── 倒计时（实测：透明背景，居中，digit bg #212a33）──────── */
.tm-section-countdown-wrap {
  position: relative;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.tm-section-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  padding: 4px 0;
  font-size: 13px;
  line-height: 28px;
  color: var(--text-color);
}

.tm-countdown-label {
  font-size: 13px;
  line-height: 28px;
  color: var(--text-color);
  white-space: nowrap;
  margin-right: 15px;
}
/* 实测：真实站在移动和桌面都显示 "Ends in" */
.tm-countdown-label.short { display: inline; }
.tm-countdown-label.full { display: none; }

.tm-countdown-timer {
  font-size: 14px;
  font-weight: 700;
  line-height: 28px;
  color: #fff;
  display: flex;
  flex-direction: row;
  white-space: nowrap;
  padding: 0;
  margin: 0;
  align-items: center;
}
html[data-theme="light"] .tm-countdown-timer { color: #000; }

.tm-countdown-timer > .reel { display: block; }

.tm-countdown-timer > .reel + .reel {
  position: relative;
  margin-left: 17px;
}

/* 两个小圆点 */
.tm-countdown-timer > .reel + .reel::before {
  position: absolute;
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 7px;
  left: -10px;
  top: 10px;
  opacity: .5;
}

/* 实测：digit display inline-block, bg rgb(33,42,51), min-width 21, height 28 */
.tm-countdown-timer > .reel > .digit {
  display: inline-block;
  background-color: var(--table-bg-color);
  border-radius: 2px;
  text-align: center;
  min-width: 21px;
  height: 28px;
  line-height: 28px;
  font-size: 14px;
  font-weight: 700;
  color: var(--value-color);
  overflow: hidden;
}

.tm-countdown-timer > .reel > .digit.timer-d { padding: 0 7px; min-width: 0; }
.tm-countdown-timer > .reel > .digit + .digit { margin-left: 1px; }
.tm-countdown-timer > .reel > .digit:first-child { border-radius: 8px 0 0 8px; }
.tm-countdown-timer > .reel > .digit:last-child { border-radius: 0 8px 8px 0; }

.tm-section-countdown-end { display: none; }

/* ── 按钮区（实测：400x43，btn 13px/18px，padding 12 15）────── */
.tm-section-buttons {
  display: flex;
  flex-direction: row;
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.tm-section-buttons > .btn {
  flex-grow: 1;
  flex-shrink: 1;
  height: 43px;
  font-size: 13px;
  line-height: 18px;
  padding: 12px 15px;
}
.tm-section-buttons > .btn + .btn { margin-left: 12px; }
.tm-amount { display: inline-flex; align-items: center; gap: 5px; color: inherit; }
.tm-amount.icon-ton::before { background: #fff; }

/* ── 订阅：header 里的桌面显示；底部的移动端居中显示 ──────── */
.tm-section-subscribe {
  display: flex;
  gap: 14px;
  background: transparent;
  padding: 0;
  align-items: center;
}

/* header 里的：移动端隐藏 */
.tm-subscribe-header { display: none; justify-content: flex-end; }

/* 底部那个：移动端显示，居中，撑满整行 */
.tm-subscribe-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex: 0 0 100%;
  padding: 16px 0 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  text-align: center;
}

@media (min-width: 768px) {
  .tm-subscribe-header { display: flex; }
  .tm-subscribe-bottom { display: none !important; }
}

/* 默认只显示 subscribe，unsubscribe 隐藏 */
.unsubscribe-btn { display: none !important; }
.is-subscribed .subscribe-btn { display: none !important; }
.is-subscribed .unsubscribe-btn { display: inline !important; }

.js-unsubscribe-btn { display: none; }
.is-subscribed .js-subscribe-btn { display: none; }
.is-subscribed .js-unsubscribe-btn { display: inline; }

/* ── 表格（实测：wrap 透明，th bg #293440，td bg #212a33）──── */
.tm-table-wrap {
  background: transparent;
  border-radius: var(--def-border-radius);
  overflow: hidden;
}

.tm-table { width: 100%; font-size: 12px; line-height: 17.1429px; }
.tm-table-fixed { table-layout: fixed; }

.tm-table thead th {
  padding: 7px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  color: var(--table-text-color);
  background: var(--table-header-bg-color);
  white-space: nowrap;
  border-radius: 0;
}
.tm-table thead tr th:first-child { border-radius: 8px 0 0 0; }
.tm-table thead tr th:last-child { border-radius: 0 8px 0 0; }
.tm-table thead tr th:only-child { border-radius: 8px 8px 0 0; }

.tm-table tbody td {
  padding: 9px 16px;
  font-size: 13px;
  line-height: 16px;
  vertical-align: middle;
  color: var(--table-text-color);
  background: var(--table-bg-color);
  border: 0;
}
.tm-table tbody tr:last-child td:first-child { border-bottom-left-radius: 8px; }
.tm-table tbody tr:last-child td:last-child { border-bottom-right-radius: 8px; }

.tm-table .table-cell-value {
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
  color: var(--value-color);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tm-table .table-cell-value.icon-ton::before { width: 12px; height: 12px; }

/* ─── 批量确认弹层 ─────────────────────────────────────── */
.tm-sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, .62);
  opacity: 0;
  transition: opacity .2s ease;
}
.tm-sheet-mask.on { opacity: 1; }

.tm-sheet {
  width: 100%;
  max-width: 460px;
  background: #212a33;
  border-radius: 18px 18px 0 0;
  padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateY(24px);
  transition: transform .22s cubic-bezier(.2, .8, .3, 1);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .5);
}
.tm-sheet-mask.on .tm-sheet { transform: none; }

@media (min-width: 768px) {
  .tm-sheet-mask { align-items: center; }
  .tm-sheet { border-radius: 16px; max-width: 440px; }
}

.tm-sheet-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.tm-sheet-body {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary, #8b98a5);
  margin-bottom: 14px;
}
.tm-sheet-body b { color: #fff; font-weight: 600; }

.tm-sheet-list {
  background: #1a2026;
  border-radius: 10px;
  padding: 4px 12px;
  margin-bottom: 12px;
  max-height: 190px;
  overflow: auto;
}
.tm-sheet-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 12.5px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.tm-sheet-row:last-child { border-bottom: 0; }
.tm-sheet-ok { color: #5aec8c; font-size: 11px; }
.tm-sheet-tag {
  color: #4db2ff;
  font-size: 10px;
  font-weight: 600;
  background: rgba(77, 178, 255, .12);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .3px;
}
.tm-sheet-tag-token {
  color: #b48cff;
  background: rgba(180, 140, 255, .12);
}
.tm-sheet-more { color: var(--text-secondary, #8b98a5); font-size: 12px; justify-content: center; }

.tm-sheet-note {
  font-size: 11.5px;
  color: var(--text-secondary, #8b98a5);
  margin-bottom: 16px;
  text-align: center;
}
.tm-sheet-addr {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: #4db2ff;
  word-break: break-all;
  background: #1a2026;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 16px;
  text-align: center;
}

.tm-sheet-actions {
  display: flex;
  gap: 10px;
}
.tm-sheet-actions .btn {
  flex: 1;
  height: 42px;
  border-radius: 10px;
}

/* ─── 分类导航（对齐原版 fragment.com）────────────────── */
.tm-nav {
  position: sticky;
  top: calc(var(--header-height) + var(--tg-safe-top, 0px));
  z-index: 95;
  background: var(--bg, #111417);
  border-bottom: 1px solid var(--line, #212a33);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-top: var(--tg-safe-top, 0px);
}
.tm-nav::-webkit-scrollbar { display: none; }

.tm-nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  height: 44px;
  white-space: nowrap;
}

.tm-nav-link {
  position: relative;
  padding: 12px 10px;
  font-size: 14px;
  font-weight: 500;
  color: #7b8898;
  text-decoration: none;
  line-height: 20px;
}
.tm-nav-link:hover { color: #c9d4e0; }
.tm-nav-link.is-active {
  color: #fff;
  font-weight: 600;
}
.tm-nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  background: #4db2ff;
  border-radius: 2px 2px 0 0;
}

@media (min-width: 768px) {
  .tm-nav { top: calc(56px + var(--tg-safe-top, 0px)); }
  .tm-nav-inner { padding: 0 22px; height: 48px; gap: 8px; justify-content: center; }
  .tm-nav-link { font-size: 15px; padding: 14px 12px; }
  .tm-nav-link.is-active::after { left: 12px; right: 12px; }
}

/* ─── 列表页 intro（对齐原版 tm-main-intro）────────────── */
.tm-main-intro {
  padding: 18px 10px 6px;
  text-align: center;
}
.tm-main-intro-header {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 30px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}
.tm-main-intro-text {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 19px;
  color: #7b8898;
}
.tm-main-intro-note {
  margin: 0;
  font-size: 13px;
  line-height: 19px;
  color: #7b8898;
}
.tm-main-intro-more {
  color: #4db2ff;
  text-decoration: none;
  white-space: nowrap;
}
.tm-main-intro-more:hover { text-decoration: underline; }

@media (min-width: 768px) {
  .tm-main-intro { padding: 28px 20px 10px; }
  .tm-main-intro-header { font-size: 28px; line-height: 36px; }
  .tm-main-intro-text,
  .tm-main-intro-note { font-size: 14px; line-height: 20px; }
}

/* ─── 列表页搜索框（对齐原版 tm-main-search-form）────────── */
.tm-main-search-form {
  padding: 12px 10px 14px;
}
.tm-main-search-form .tm-search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 14px;
  background: #212a33;
  border-radius: 10px;
}
.tm-main-search-form .tm-search-icon {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  background: #7b8898;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M15.5 14h-.79l-.28-.27a6.5 6.5 0 1 0-.7.7l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0A4.5 4.5 0 1 1 14 9.5A4.5 4.5 0 0 1 9.5 14z'/></svg>") no-repeat center/contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M15.5 14h-.79l-.28-.27a6.5 6.5 0 1 0-.7.7l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0A4.5 4.5 0 1 1 14 9.5A4.5 4.5 0 0 1 9.5 14z'/></svg>") no-repeat center/contain;
}
.tm-main-search-form .tm-search-prefix {
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}
.tm-main-search-form .tm-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  color: #fff;
  font-size: 14px;
  outline: none;
}
.tm-main-search-form .tm-search-input::placeholder { color: #7b8898; }

@media (min-width: 768px) {
  .tm-main-search-form { padding: 14px 20px 18px; }
  .tm-main-search-form .tm-search-field { height: 48px; padding: 0 16px; }
}

/* ─── 列表页 header + 筛选器 ──────────────────────────── */
.tm-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px 12px;
}
.tm-section-header-text {
  margin: 0;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  color: #fff;
}

.tm-section-filters {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.tm-dropdown { position: relative; }

/* 下拉菜单 */
.tm-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 172px;
  padding: 5px;
  background: #212a33;
  border: 1px solid #2c3742;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .55);
}
.tm-dropdown.is-open .tm-dropdown-menu { display: block; }

.tm-dropdown-item {
  display: block;
  padding: 9px 11px;
  border-radius: 7px;
  font-size: 13px;
  color: #c9d4e0;
  text-decoration: none;
  white-space: nowrap;
}
.tm-dropdown-item:hover { background: #2b3641; color: #fff; }
.tm-dropdown-item.is-active { color: #4db2ff; font-weight: 600; }
.tm-dropdown-item.is-active::after {
  content: "✓";
  float: right;
  margin-left: 10px;
  font-size: 12px;
}
.tm-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: #212a33;
  color: #c9d4e0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.tm-dropdown-toggle:hover { background: #28323d; }

.tm-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #7b8898;
  margin-left: 1px;
}

.tm-sort-icon {
  width: 14px;
  height: 14px;
  background: currentColor;
  color: #7b8898;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z'/></svg>") no-repeat center/contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z'/></svg>") no-repeat center/contain;
}

@media (min-width: 768px) {
  .tm-section-header { padding: 14px 20px 16px; }
  .tm-section-header-text { font-size: 24px; line-height: 30px; }
  .tm-dropdown-toggle { height: 34px; font-size: 14px; padding: 0 13px; }
}

/* ─── 列表行：号码 + 状态标签 ─────────────────────────── */
.tm-inline-status {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
  white-space: nowrap;
}
.tm-inline-status.tm-status-avail { color: #5aec8c; background: rgba(90, 236, 140, .13); }
.tm-inline-status.tm-status-auction { color: #ff9953; background: rgba(255, 153, 83, .13); }
.tm-inline-status.tm-status-sold { color: #7b8898; background: rgba(123, 136, 152, .13); }

/* 号码 + 标签一行不换行 */
.tm-table td .table-cell-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 价格列：价格在上、剩余时间在下，纵向排列 */
.tm-table td .table-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.tm-table td .table-cell .table-cell-value {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}
.tm-table td .table-cell .table-cell-desc {
  font-size: 12px;
  line-height: 16px;
  color: #7b8898;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* 列表页两列宽度（号码 62% / 价格 38%） */
.tm-table th:first-child,
.tm-table td:first-child { width: 62%; }
.tm-table th:last-child,
.tm-table td:last-child { width: 38%; }

/* 行内箭头 */
.table-cell-arrow { position: relative; padding-right: 18px; }
.tm-arrow {
  position: absolute;
  right: 2px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-top: 2px solid #4a5663;
  border-right: 2px solid #4a5663;
  transform: rotate(45deg);
}

.tm-col-value { text-align: left; }

.tm-empty {
  padding: 40px 0;
  text-align: center;
  color: #7b8898;
  font-size: 13px;
}

/* 地址：三段式（DOM 里放完整 48 字符，靠 flex 收缩截断）*/
.tm-wallet {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  color: var(--accent-color);
  font-size: 13px;
  line-height: 16px;
  overflow: hidden;
  white-space: nowrap;
}
.tm-wallet .head {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.tm-wallet .middle {
  flex: 0 0 auto;
  color: var(--accent-color);
}
.tm-wallet .middle::before { content: "..."; }
.tm-wallet .tail {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  direction: rtl;
  text-align: left;
}
.tm-wallet .tail::before {
  content: "";
  display: inline-block;
}

.tm-datetime {
  font-size: 13px;
  line-height: 16px;
  color: var(--table-text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.tm-datetime .short { display: inline; }
.tm-datetime .wide-only { display: none; }

/* ── 弹窗 ─────────────────────────────────────────────────── */
.popup-container {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, .6);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.popup-container.hide { display: none; }
.popup {
  background: var(--table-bg-color);
  border-radius: 12px;
  max-width: 460px; width: 100%;
  max-height: 85vh; overflow: auto;
  padding: 20px;
}
.popup h2 { font-size: 20px; margin-bottom: 6px; color: var(--value-color); }
.popup-text { font-size: 12px; line-height: 17px; color: var(--table-text-color); }

/* ── 提示条 ───────────────────────────────────────────────── */
.tm-alert {
  display: flex; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--def-border-radius);
  font-size: 12px;
  line-height: 17px;
  margin-bottom: 10px;
}
.tm-alert-danger { background: var(--danger-bg-color); color: var(--danger-text-color); }
.tm-alert-info { background: var(--accent-bg-color); color: var(--accent-color); }

/* ── 页脚（实测：44px，bg #111417，block）──────────────────── */
/* 实测：height 44px, padding 0, 内容居中 */
.tm-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  height: 44px;
  padding: 0 16px;
  text-align: center;
  font-size: 12px;
  line-height: 17.1429px;
  color: var(--footer-color);
  background: var(--footer-bg-color);
  flex: 0 0 auto;
}
.tm-footer a { color: var(--footer-color); margin: 0 11px; display: inline-block; }
.tm-footer a:hover { color: var(--text-color); }

@media (min-width: 768px) {
  .tm-footer { height: 56px; }
}

/* ── 列表页 ───────────────────────────────────────────────── */
.tm-list-intro { padding: 24px 6px 12px; }
.tm-list-intro h1 {
  font-size: 26px; line-height: 32px;
  margin-bottom: 10px;
  color: var(--header-color);
}
.tm-list-intro p {
  font-size: 13px; line-height: 19px;
  color: var(--text-color);
  margin: 0;
}
.tm-list-intro b { color: var(--value-color); }

/* ── 骨架屏 ───────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.09) 37%, rgba(255,255,255,.04) 63%);
  background-size: 400% 100%;
  animation: sk 1.4s ease infinite;
  border-radius: 4px;
  color: transparent !important;
  display: inline-block;
}
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.hidden { display: none !important; }
.text-center { text-align: center; }

/* ══════════════════════════════════════════════════════════════
   桌面端（>=768px）—— 实测值
   header 56px / 标题 28px / 内边距 20px / 行高更大
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  :root { --header-height: 56px; }

  /* header：更高、更亮，logo 靠左，按钮靠右 */
  .tm-header {
    height: 56px;
    padding: 0;
    background-color: rgba(33, 42, 51, .9);
    justify-content: flex-start;
    gap: 0;
  }
  html[data-theme="light"] .tm-header { background-color: rgba(255, 255, 255, .9); }

  /* logo 容器固定 360px，靠左带 22px 内边距 */
  .tm-header-logo {
    width: 360px;
    height: 56px;
    display: flex;
    align-items: center;
    flex: 0 0 360px;
    padding-left: 22px;
    box-sizing: border-box;
  }
  .tm-logo { height: 56px; }
  .tm-logo-icon {
    width: 24px; height: 24px;
    padding: 10px;
    margin: -10px -11px -10px -9px;
  }
  .tm-logo-text {
    width: 101px; height: 24px;
    margin-left: 0;
  }

  /* 搜索区占剩余空间并居中 */
  .tm-header-body {
    flex: 1 1 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    min-width: 0;
  }
  .tm-header-search-form { width: 360px; max-width: 360px; }

  .tm-header-actions { gap: 10px; padding-right: 12px; flex: 0 0 auto; }
  .tm-header-button { height: 36px; padding: 0 16px; font-size: 13px; }
  .tm-header-button.btn-default { background: #293440; }
  html[data-theme="light"] .tm-header-button.btn-default { background: #f1f1f1; }

  /* 标题：28px / 36px */
  .tm-section-header-text { font-size: 28px; line-height: 36px; padding: 0 13px; }
  .tm-section-header-domain { font-size: 28px; line-height: 36px; }

  /* section 下边距 */
  .tm-section { padding-bottom: 10px; }

  /* 价格卡 */
  .tm-section-bid-info .tm-table thead th { padding: 14px 20px 6px; font-size: 13px; }
  .tm-section-bid-info .tm-table tbody td { padding: 0 20px 4px; }
  .tm-section-bid-info .tm-value { font-size: 30px; line-height: 36px; }
  .tm-bid-info-text { font-size: 13px; line-height: 19px; padding: 2px 20px 12px; }
  .table-cell-desc { font-size: 14px; line-height: 19px; }

  /* Collectible Number 卡 */
  .tm-list { font-size: 14px; line-height: 20px; }
  .tm-list-item { padding: 11px 20px; }
  .tm-list-item-title { font-size: 14px; line-height: 20px; }
  .tm-list-item-value { font-size: 15px; line-height: 20px; }
  .tm-list-item-hint { font-size: 13px; line-height: 19px; padding: 0 20px 12px; }

  /* 倒计时 */
  .tm-section-countdown { font-size: 14px; line-height: 30px; padding: 8px 0; }
  .tm-countdown-label { font-size: 14px; line-height: 30px; margin-right: 16px; }
  .tm-countdown-timer { font-size: 15px; line-height: 30px; }
  .tm-countdown-timer > .reel > .digit {
    height: 30px;
    min-width: 24px;
    line-height: 30px;
    font-size: 15px;
  }
  .tm-countdown-timer > .reel > .digit.timer-d { padding: 0 8px; }

  /* 按钮 */
  .tm-section-buttons > .btn { height: 48px; font-size: 15px; padding: 14px 20px; }

  /* 表格 */
  .tm-table thead th { padding: 11px 20px; font-size: 13px; line-height: 17px; }
  .tm-table tbody td { padding: 11px 20px; font-size: 14px; line-height: 17px; }
  .tm-table .table-cell-value { font-size: 14px; line-height: 17px; }
  .tm-wallet { font-size: 14px; line-height: 17px; }
  .tm-datetime { font-size: 14px; line-height: 17px; }
}

/* 浅色主题 logo 反色 */
html[data-theme="light"] .tm-logo-icon,
html[data-theme="light"] .tm-logo-text {
  filter: invert(1) brightness(0.15);
}

/* ══════════════════════════════════════════════════════════════
   目录页：Gifts 网格 / Usernames 列表 / Stars·Premium·Ads 功能卡
   ══════════════════════════════════════════════════════════════ */

/* 搜索行：输入框 + Collections */
.tm-search-row { display: flex; align-items: stretch; gap: 8px; }
.tm-search-row .tm-search-field { flex: 1 1 auto; min-width: 0; }
.tm-collections-dd { flex: 0 0 auto; }
.tm-collections-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  height: 100%; min-height: 44px; padding: 0 14px;
  background: var(--btn-default-bg-color); color: var(--btn-default-color);
  border: 0; border-radius: var(--def-border-radius);
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.tm-collections-toggle:hover { background: var(--btn-default-bg-hover-color); }
.tm-collections-menu { min-width: 200px; max-height: 320px; overflow-y: auto; }
.tm-dropdown-item.is-muted { opacity: .6; cursor: default; }

/* Gifts 网格 */
.tm-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 10px 24px;
}
.tm-grid-item {
  display: flex; flex-direction: column;
  background: var(--table-bg-color);
  border-radius: 10px; overflow: hidden; cursor: pointer;
  transition: background var(--def-transition);
}
.tm-grid-item:hover { background: var(--table-bg-hover-color); }
.tm-grid-item-thumb { position: relative; aspect-ratio: 1 / 1; background: #1b2229; overflow: hidden; }
.tm-grid-item-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tm-grid-item-num {
  position: absolute; left: 8px; bottom: 6px;
  font-size: 11px; line-height: 14px; color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}
.tm-grid-item-content { padding: 8px 10px 10px; }
.tm-grid-item-name {
  font-size: 13px; line-height: 17px; color: var(--value-color);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tm-grid-item-name .item-num { color: var(--table-text-color); }
.tm-grid-item-values { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.tm-grid-item-value { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--value-color); white-space: nowrap; }
.tm-grid-item-status { font-size: 11px; line-height: 16px; white-space: nowrap; }
.tm-grid-status-unavail { color: var(--unavail-color); }
.tm-grid-status-auction { color: var(--accent-color); }
.tm-grid-status-avail { color: var(--accent-color); }

/* 功能卡（Stars / Premium / Ads） */
.tm-feature-stack { display: flex; flex-direction: column; gap: 14px; padding: 14px 10px 32px; }
.tm-feature-card {
  position: relative; display: flex; flex-direction: column; align-items: center;
  text-align: center; background: var(--table-bg-color);
  border-radius: 16px; padding: 28px 24px 24px;
}
.tm-feature-icon {
  color: var(--accent-color); margin-bottom: 18px;
  filter: drop-shadow(0 6px 16px rgba(77, 178, 255, .25));
}
.tm-feature-title { margin: 0 0 10px; font-size: 22px; line-height: 28px; font-weight: 700; color: var(--value-color); }
.tm-feature-text { margin: 0 0 20px; max-width: 320px; font-size: 15px; line-height: 22px; color: var(--text-color); }
.tm-feature-btn {
  width: 100%; max-width: 400px; height: 44px;
  border: 0; border-radius: 10px;
  background: var(--btn-primary-bg-color); color: var(--btn-primary-color);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background var(--def-transition);
}
.tm-feature-btn:hover { background: var(--btn-primary-bg-hover-color); }
.tm-feature-badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--btn-primary-bg-color); color: #fff;
  font-size: 12px; line-height: 20px; font-weight: 600;
  padding: 0 8px; border-radius: 6px;
}

/* 桌面端 */
@media (min-width: 768px) {
  /* 桌面端也保留分类导航（官方就有这排） */

  .tm-catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding: 0 20px 32px;
  }
  .tm-grid-item-content { padding: 10px 12px 12px; }
  .tm-grid-item-num { display: none; }
  .tm-grid-item-value { font-size: 14px; }
  .tm-grid-item-status { font-size: 12px; }
  .tm-feature-stack { gap: 16px; padding: 20px 20px 40px; max-width: 760px; margin: 0 auto; }
  .tm-feature-card { padding: 32px 32px 28px; }
  .tm-feature-title { font-size: 26px; line-height: 32px; }
}

/* 浅色主题 */
html[data-theme="light"] .tm-grid-item-thumb { background: #eceff2; }
html[data-theme="light"] .tm-grid-item-num { color: #000; text-shadow: 0 1px 2px rgba(255, 255, 255, .8); }

/* 右上角菜单面板 */
.tm-menu-panel {
  position: fixed;
  top: 52px;
  right: 8px;
  z-index: 60;
  min-width: 180px;
  padding: 6px;
  background: var(--table-bg-color);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
  animation: tmMenuIn .12s ease-out;
}
@keyframes tmMenuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.tm-menu-panel a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--value-color);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}
.tm-menu-panel a:hover, .tm-menu-panel a:active { background: var(--table-bg-hover-color); }
.tm-menu-sep { height: 1px; margin: 6px 8px; background: rgba(255, 255, 255, .08); }
html[data-theme="light"] .tm-menu-sep { background: rgba(0, 0, 0, .08); }

/* 响应式显隐（对齐原版 thin-only / wide-only 语义，含表格单元格） */
.wide-only { display: none; }
@media (min-width: 768px) {
  .wide-only { display: revert; }
  .thin-only { display: none; }
}

/* 列表里的名字 + 角标 */
.table-cell-value-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.table-cell-status-thin {
  flex: 0 0 auto;
  font-size: 11px; line-height: 16px; font-weight: 600;
  color: #a9b6c3; background: rgba(255, 255, 255, .08);
  padding: 1px 6px; border-radius: 4px; white-space: nowrap;
}
html[data-theme="light"] .table-cell-status-thin { color: #5c6773; background: rgba(0, 0, 0, .06); }

/* 用户名 .t.me */
.tm-web3-address .subdomain { color: var(--accent-color); }
.tm-web3-address .domain { color: var(--accent-color); opacity: .6; }

/* 列表“加载更多” */
.tm-load-more-wrap { padding: 0 10px 28px; }
.tm-load-more {
  width: 100%; height: 44px; border: 0; border-radius: 10px;
  background: var(--btn-default-bg-color); color: var(--btn-default-color);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.tm-load-more:hover { background: var(--btn-default-bg-hover-color); }

/* Usernames 三列表格：覆盖号码列表的 62/38 两列宽度 */.tm-table.tm-table-usernames { table-layout: fixed; width: 100%; }
.tm-table.tm-table-usernames th:first-child,
.tm-table.tm-table-usernames td:first-child { width: 55%; }
.tm-table.tm-table-usernames th:nth-child(2),
.tm-table.tm-table-usernames td:nth-child(2) { width: 45%; }
@media (min-width: 768px) {
  .tm-table.tm-table-usernames th:first-child,
  .tm-table.tm-table-usernames td:first-child { width: 33%; }
  .tm-table.tm-table-usernames th:nth-child(2),
  .tm-table.tm-table-usernames td:nth-child(2) { width: 23%; }
  .tm-table.tm-table-usernames th:last-child,
  .tm-table.tm-table-usernames td:last-child { width: 44%; }
}

/* ══════════════════════════════════════════════════════════════
   详情页：礼物缩略图 / 稀有度 / 返回箭头
   ══════════════════════════════════════════════════════════════ */
.tm-section-header-back {
  display: inline-block; width: 9px; height: 9px; margin-right: 8px;
  border-left: 2px solid #4a5663; border-bottom: 2px solid #4a5663;
  transform: rotate(45deg);
}
.tm-section-header-back:hover { border-color: var(--accent-color); }
.tm-section-auction-thumb-column { width: 100%; flex: 0 0 100%; }
.tm-section-auction-thumb { padding: 0 10px 12px; }
.tm-section-auction-image {
  display: block; width: 100%;
  border-radius: 12px; overflow: hidden; background: #1b2229;
}
.tm-section-auction-image img { display: block; width: 100%; height: auto; }
.tm-rarity { display: inline-block; margin-left: 6px; font-size: 11px; color: #7b8898; }
.tm-gift-section .tm-section-buttons .btn[disabled] { opacity: .55; cursor: default; }

@media (min-width: 768px) {
  .tm-gift-section .tm-section-auction-thumb-column {
    order: 2;
    width: calc(42% - 6px);
    flex: 0 0 calc(42% - 6px);
  }
  .tm-gift-section .tm-section-auction-thumb { padding: 0 0 16px; }
  .tm-gift-section .tm-section-auction-info { order: 3; width: calc(58% - 12px); }
  .tm-gift-section .tm-section-buttons { order: 4; width: calc(58% - 12px); }
  .tm-gift-section .tm-section-header { order: 1; }
}





