/* ==========================================================================
   Fragment XTG — design system
   Palette is taken 1:1 from the reference layout:
   bg #1a2026 · surface #212a33 · surface-2 #293440 · field #242e38
   accent #4db2ff · primary #248bda · text #8794a1 · value #fff · danger #ff5863
   ========================================================================== */

:root {
  --bg-rgb: 26, 32, 38;
  --header-rgb: 33, 42, 51;
  --table-rgb: 33, 42, 51;

  --bg-color: rgb(var(--bg-rgb));
  --header-bg-color: rgba(var(--header-rgb), .92);
  --surface: rgb(var(--table-rgb));
  --surface-2: #293440;
  --surface-3: #2e3a47;
  --surface-hover: #212a33;

  --text-color: #8794a1;
  --text-dim: #6d7d8c;
  --value-color: #fff;
  --header-color: #fff;

  --field-bg: #242e38;
  --field-text: #fff;
  --field-placeholder: #8a98a6;
  --field-focus: #248bda;

  --accent-color: #4db2ff;
  --primary: #248bda;
  --primary-hover: #207cc2;
  --primary-disabled: #a6d8ff;
  --primary-disabled-bg: rgba(36, 139, 218, .35);

  --default-btn: #242e38;
  --default-btn-hover: #293440;

  --star: linear-gradient(135deg, #ffd951 0%, #ffb222 100%);
  --danger: #ff5863;
  --warning: #ff9953;
  --success: #5aec8c;
  --purple: #b983ff;

  --radius: 10px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --header-h: 60px;

  --shadow: 0 8px 28px rgba(0, 0, 0, .45);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }

/* Author-level `display` rules (e.g. .btn { display:inline-flex }) outrank the
   UA stylesheet's [hidden] rule, so the attribute has to be enforced here. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

body { min-height: 100vh; padding-bottom: 72px; }
body.no-scroll { overflow: hidden; }

a { color: var(--accent-color); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }

.icon { width: 18px; height: 18px; flex: 0 0 auto; display: block; }

/* ── Header ─────────────────────────────────────────────────────────────── */

.tm-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.tm-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
}

.tm-header-logo { flex: 0 0 auto; }

.tm-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.tm-logo:hover { text-decoration: none; }

.tm-logo-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 800; letter-spacing: .3px;
  color: #0d1116;
  background: linear-gradient(135deg, var(--accent-color), var(--purple));
}

.tm-logo-text { color: var(--header-color); font-weight: 600; font-size: 17px; letter-spacing: -.2px; }
.tm-logo-accent { color: var(--accent-color); margin-left: 3px; font-weight: 700; }

.tm-header-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tm-header-tabs::-webkit-scrollbar { display: none; }

.tm-header-tab {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-color);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.tm-header-tab:hover { color: var(--value-color); background: rgba(255, 255, 255, .04); text-decoration: none; }
.tm-header-tab.active { color: var(--value-color); font-weight: 600; }
.tm-header-tab.active::after {
  content: '';
  position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 2px; border-radius: 2px; background: var(--accent-color);
}
.tm-header-tab .tab-count {
  margin-left: 6px; font-size: 11px; color: var(--text-dim);
  background: rgba(255, 255, 255, .06); padding: 1px 6px; border-radius: 20px;
}

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

.icon-btn {
  display: none;
  width: 38px; height: 38px;
  border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-color);
  align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--default-btn); color: var(--value-color); }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  height: 38px;
  border: 0;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--value-color);
  background: var(--default-btn);
  transition: background .15s, opacity .15s, transform .1s;
  white-space: nowrap;
}
.btn:hover { background: var(--default-btn-hover); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; }

.btn-primary { background: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled {
  /* Nothing sells yet — make "unavailable" read as unavailable, not as a
     half-broken primary action. */
  background: rgba(255, 255, 255, .06);
  color: var(--text-dim);
  opacity: 1;
}

.btn-danger { background: rgba(255, 88, 99, .14); color: var(--danger); }
.btn-danger:hover { background: rgba(255, 88, 99, .22); }

.btn-ghost { background: transparent; color: var(--text-color); }
.btn-ghost:hover { background: rgba(255, 255, 255, .05); color: var(--value-color); }

.btn-block { width: 100%; }
.btn-lg { height: 46px; font-size: 15px; font-weight: 600; }
.btn-sm { height: 32px; font-size: 13px; padding: 0 12px; }

.btn .spin {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-loading { pointer-events: none; opacity: .75; }

/* ── Mobile menu ────────────────────────────────────────────────────────── */

.tm-mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 35;
  background: var(--bg-color);
  overflow-y: auto;
  animation: fade-in .18s ease;
}
.tm-mobile-menu-body { padding: 20px; display: flex; flex-direction: column; gap: 4px; }

.tm-menu-subheader {
  margin: 0 0 8px; font-size: 12px; text-transform: uppercase;
  letter-spacing: .8px; color: var(--text-dim); font-weight: 600;
}
.tm-menu-link {
  padding: 12px 14px; border-radius: var(--radius-sm);
  color: var(--value-color); font-size: 15px; text-decoration: none;
}
.tm-menu-link:hover { background: var(--default-btn); text-decoration: none; }
.tm-header-menu-footer { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .07); display: grid; gap: 10px; }
.tm-header-menu-footer-text { font-size: 13px; color: var(--text-dim); margin-bottom: 4px; }

/* ── Main layout ────────────────────────────────────────────────────────── */

.tm-main { max-width: 1180px; margin: 0 auto; padding: 0 20px 60px; }

.tm-main-intro { padding: 44px 0 30px; max-width: 720px; }
.tm-main-intro-header {
  margin: 0 0 12px;
  font-size: 32px; line-height: 1.2; font-weight: 700;
  color: var(--value-color); letter-spacing: -.6px;
}
.tm-main-intro-text { margin: 0; font-size: 16px; color: var(--text-color); }
.tm-main-intro-text b { color: var(--value-color); font-weight: 600; }

/* ── Search ─────────────────────────────────────────────────────────────── */

.tm-search-form { margin-bottom: 26px; }
.tm-field { position: relative; display: flex; align-items: center; }
.tm-field .icon-search {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--field-placeholder); pointer-events: none;
}
.tm-input {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 46px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--field-bg);
  color: var(--field-text);
  font-size: 15px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.tm-input::placeholder { color: var(--field-placeholder); }
.tm-input:focus { border-color: var(--field-focus); }
.tm-search-clear {
  position: absolute; right: 12px; width: 24px; height: 24px;
  border: 0; border-radius: 50%; background: transparent;
  color: var(--text-dim); display: none; align-items: center; justify-content: center;
}
.tm-search-clear.visible { display: flex; }
.tm-search-clear:hover { color: var(--value-color); }

/* ── Section ────────────────────────────────────────────────────────────── */

.tm-section { margin-bottom: 26px; }

.tm-section-header {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 14px;
}
.tm-section-header-text { margin: 0; font-size: 20px; font-weight: 600; color: var(--value-color); flex: 1 1 auto; }
.tm-section-header-text .count { color: var(--text-dim); font-weight: 400; font-size: 15px; margin-left: 6px; }

.tm-dropdown { position: relative; }
.tm-dropdown > .dropdown-toggle { display: inline-flex; align-items: center; gap: 7px; }
.dropdown-toggle::after {
  content: ''; width: 0; height: 0;
  border: 4px solid transparent; border-top-color: currentColor; margin-top: 2px;
}
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 20;
  min-width: 190px; margin: 0; padding: 6px;
  list-style: none;
  background: var(--surface-3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .14s, transform .14s, visibility .14s;
}
.tm-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu-item {
  display: block; padding: 9px 12px; border-radius: var(--radius-sm);
  color: #fff; font-size: 14px; white-space: nowrap; text-decoration: none;
}
.dropdown-menu-item:hover { background: var(--surface-hover); text-decoration: none; }
.dropdown-menu-item.selected { color: var(--accent-color); }

/* ── Table ──────────────────────────────────────────────────────────────── */

.tm-table-wrap {
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .03);
}

.tm-table { width: 100%; border-collapse: collapse; table-layout: fixed; }

.tm-table thead th {
  padding: 12px 16px;
  background: var(--surface-2);
  text-align: left;
  font-size: 13px; font-weight: 500; color: var(--text-color);
  white-space: nowrap;
}
.tm-table thead th.col-username { width: 36%; }
.tm-table thead th.col-value { width: 32%; }
.tm-table thead th.col-time { width: 32%; }

.tm-table tbody td { padding: 0; border-top: 1px solid rgba(255, 255, 255, .04); vertical-align: top; }
.tm-table tbody tr:first-child td { border-top: 0; }
.tm-table tbody tr:hover { background: var(--surface-2); }

.tm-row-link { display: block; padding: 14px 16px; color: inherit; text-decoration: none; }
.tm-row-link:hover { text-decoration: none; }

.table-cell-value { color: var(--value-color); font-size: 15px; display: flex; align-items: center; gap: 7px; }
.table-cell-desc { color: var(--text-dim); font-size: 13px; margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.tm-value { font-weight: 500; }
.tm-nowrap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.accent-color { color: var(--accent-color); }
.thin-only { display: none; }

.tm-web3-address .subdomain { color: var(--accent-color); }
.tm-web3-address .domain { color: var(--text-dim); }

.table-cell-value .icon-ton { color: var(--accent-color); }
.table-cell-value .icon-star-ico { color: #ffb222; }

.badge {
  display: inline-block; padding: 1px 7px; border-radius: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: .2px;
}
.badge-resale { background: rgba(77, 178, 255, .14); color: var(--accent-color); }
.badge-sold { background: rgba(90, 236, 140, .14); color: var(--success); }
.badge-sale { background: rgba(255, 190, 79, .14); color: #ffbe4f; }
.badge-unavail { background: rgba(255, 88, 99, .14); color: var(--danger); }
.badge-soon { background: rgba(255, 153, 83, .14); color: var(--warning); }

.tm-timer-wrap { display: flex; flex-direction: column; gap: 2px; }
.tm-timer { color: var(--text-color); font-size: 13px; }
.tm-timer.urgent { color: var(--warning); }
.tm-timer-end { font-size: 12px; color: var(--text-dim); }

.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success); display: inline-block;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ── Empty state ────────────────────────────────────────────────────────── */

.tm-empty {
  padding: 60px 24px;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, .08);
}
.tm-empty-icon {
  width: 62px; height: 62px; margin: 0 auto 18px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(77, 178, 255, .16), rgba(185, 131, 255, .16));
  color: var(--accent-color);
}
.tm-empty-icon .icon { width: 28px; height: 28px; }
.tm-empty-title { margin: 0 0 8px; font-size: 19px; font-weight: 600; color: var(--value-color); }
.tm-empty-text { margin: 0 auto 22px; max-width: 430px; color: var(--text-dim); font-size: 14px; }
.tm-empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.tm-empty-points {
  margin: 26px auto 0; max-width: 560px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; text-align: left;
}
.tm-empty-point {
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .04);
}
.tm-empty-point b { display: block; color: var(--value-color); font-size: 14px; margin-bottom: 4px; font-weight: 600; }
.tm-empty-point span { font-size: 13px; color: var(--text-dim); line-height: 1.4; }

/* ── Cards (grid sections) ──────────────────────────────────────────────── */

.tm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }

.tm-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .04);
  border-radius: var(--radius);
  transition: border-color .15s, transform .15s;
  display: flex; flex-direction: column; gap: 8px;
}
.tm-card:hover { border-color: rgba(77, 178, 255, .3); transform: translateY(-2px); }
.tm-card-title { color: var(--value-color); font-size: 16px; font-weight: 600; }
.tm-card-sub { color: var(--text-dim); font-size: 13px; }
.tm-card-price { color: var(--value-color); font-size: 20px; font-weight: 700; margin-top: 4px; }
.tm-card-price .unit { color: var(--text-dim); font-size: 13px; font-weight: 400; margin-left: 4px; }
.tm-card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .05); }

/* ── Text pages (about/terms/privacy) ───────────────────────────────────── */

.tm-page { max-width: 760px; padding: 30px 0; }
.tm-page h1 { font-size: 27px; color: var(--value-color); margin: 10px 0 8px; font-weight: 700; letter-spacing: -.4px; }
.tm-page h2 { font-size: 18px; color: var(--value-color); margin: 30px 0 10px; font-weight: 600; }
.tm-page p { margin: 0 0 14px; }
.tm-page ul { margin: 0 0 16px; padding-left: 22px; }
.tm-page li { margin-bottom: 7px; }
.tm-page .lead { font-size: 16px; color: var(--value-color); }

/* ── Modal ──────────────────────────────────────────────────────────────── */

.tm-modal-root:empty { display: none; }

.tm-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fade-in .16s ease;
}

.tm-modal {
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 40px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: modal-in .2s cubic-bezier(.2, .9, .3, 1);
}
.tm-modal-wide { max-width: 620px; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.tm-modal-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.tm-modal-title { margin: 0; font-size: 17px; font-weight: 600; color: var(--value-color); flex: 1 1 auto; }
.tm-modal-close {
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: transparent; color: var(--text-color);
  display: grid; place-items: center; flex: 0 0 auto;
}
.tm-modal-close:hover { background: rgba(255, 255, 255, .07); color: var(--value-color); }

.tm-modal-body { padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.tm-modal-foot {
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, .05);
  display: flex; gap: 10px;
}
.tm-modal-foot .btn { flex: 1 1 auto; }

.tm-modal-text { font-size: 14px; color: var(--text-color); margin: 0; }
.tm-modal-text b { color: var(--value-color); }

/* ── Forms ──────────────────────────────────────────────────────────────── */

.tm-form { display: flex; flex-direction: column; gap: 14px; }
.tm-form-row { display: flex; flex-direction: column; gap: 7px; }
.tm-label { font-size: 13px; color: var(--text-color); font-weight: 500; }
.tm-hint { font-size: 12px; color: var(--text-dim); }

.tm-text-input {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid transparent; border-radius: var(--radius);
  background: var(--field-bg); color: var(--field-text);
  font-size: 15px; outline: none;
  transition: border-color .15s;
}
.tm-text-input:focus { border-color: var(--field-focus); }
.tm-text-input::placeholder { color: var(--field-placeholder); }
.tm-text-input.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 14px; }

.tm-code-input {
  width: 100%; height: 62px;
  border: 1px solid transparent; border-radius: var(--radius);
  background: var(--field-bg); color: var(--value-color);
  font-size: 28px; font-weight: 700; letter-spacing: 12px; text-align: center;
  outline: none; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  transition: border-color .15s;
  padding-left: 12px;
}
.tm-code-input:focus { border-color: var(--field-focus); }

/* ── Steps / callouts ───────────────────────────────────────────────────── */

.tm-callout {
  display: flex; gap: 12px; padding: 14px 16px;
  border-radius: var(--radius); background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .05);
  font-size: 13px; color: var(--text-color); line-height: 1.45;
}
.tm-callout .icon { flex: 0 0 auto; margin-top: 1px; }
.tm-callout-info .icon { color: var(--accent-color); }
.tm-callout-warn { background: rgba(255, 153, 83, .1); border-color: rgba(255, 153, 83, .22); }
.tm-callout-warn .icon { color: var(--warning); }
.tm-callout-danger { background: rgba(255, 88, 99, .1); border-color: rgba(255, 88, 99, .22); }
.tm-callout-danger .icon { color: var(--danger); }
.tm-callout-success { background: rgba(90, 236, 140, .1); border-color: rgba(90, 236, 140, .22); }
.tm-callout-success .icon { color: var(--success); }

.tm-steps { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tm-step { display: flex; gap: 12px; align-items: flex-start; }
.tm-step-num {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  background: rgba(77, 178, 255, .15); color: var(--accent-color);
  font-size: 12px; font-weight: 700; margin-top: 1px;
}
.tm-step.done .tm-step-num { background: rgba(90, 236, 140, .15); color: var(--success); }
.tm-step-text { font-size: 13px; color: var(--text-color); line-height: 1.45; }
.tm-step-text b { color: var(--value-color); }

.tm-spinner-row { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 13px; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .15); border-top-color: var(--accent-color);
  animation: spin .7s linear infinite;
}

.tm-countdown { font-variant-numeric: tabular-nums; color: var(--warning); font-weight: 600; }

/* ── Balance / packages ─────────────────────────────────────────────────── */

.tm-balance-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(77, 178, 255, .12), rgba(185, 131, 255, .1));
  border: 1px solid rgba(77, 178, 255, .18);
}
.tm-balance-amount { font-size: 30px; font-weight: 700; color: var(--value-color); line-height: 1.1; }
.tm-balance-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .6px; }

.tm-packages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tm-package {
  padding: 14px; border-radius: var(--radius);
  background: var(--field-bg); border: 1px solid transparent;
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  transition: border-color .15s, background .15s;
  color: inherit;
}
.tm-package:hover:not(:disabled) { border-color: var(--field-focus); background: #293440; }
.tm-package.selected { border-color: var(--accent-color); background: rgba(77, 178, 255, .1); }
.tm-package:disabled { opacity: .4; }
.tm-package-xtg { font-size: 19px; font-weight: 700; color: var(--value-color); }
.tm-package-stars { font-size: 13px; color: #ffbe4f; display: flex; align-items: center; gap: 5px; }
.tm-package-stars .icon { width: 14px; height: 14px; }
.tm-package-rate { font-size: 11px; color: var(--text-dim); }

.tm-addr {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--field-bg);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12.5px; color: var(--value-color);
  word-break: break-all;
}
.tm-addr .icon { color: var(--text-dim); flex: 0 0 auto; }
.tm-addr .grow { flex: 1 1 auto; min-width: 0; }

.tm-kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: 14px; }
.tm-kv:last-child { border-bottom: 0; }
.tm-kv .k { color: var(--text-dim); }
.tm-kv .v { color: var(--value-color); font-weight: 500; text-align: right; }

.tm-status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.tm-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); }
.tm-status.on .dot { background: var(--success); }
.tm-status.on { color: var(--success); }
.tm-status.off { color: var(--text-dim); }

/* ── Admin ──────────────────────────────────────────────────────────────── */

.tm-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.tm-stat {
  padding: 14px; border-radius: var(--radius);
  background: var(--field-bg); text-align: center;
}
.tm-stat-value { font-size: 22px; font-weight: 700; color: var(--value-color); }
.tm-stat-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }

.tm-list { display: flex; flex-direction: column; gap: 8px; }
.tm-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .04);
  font-size: 13.5px;
}
.tm-list-item .grow { flex: 1 1 auto; min-width: 0; }
.tm-list-item .tm-li-title { color: var(--value-color); font-weight: 500; }
.tm-list-item .tm-li-sub { color: var(--text-dim); font-size: 12px; }

.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
  background: linear-gradient(135deg, var(--accent-color), var(--purple)); color: #0d1116;
  overflow: hidden; object-fit: cover;
}

/* ── Toasts ─────────────────────────────────────────────────────────────── */

.tm-toasts {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 8px;
  width: min(420px, calc(100vw - 32px)); pointer-events: none;
}
.tm-toast {
  padding: 12px 16px; border-radius: var(--radius);
  background: var(--surface-3); color: var(--value-color);
  font-size: 13.5px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px;
  animation: toast-in .2s cubic-bezier(.2, .9, .3, 1);
  pointer-events: auto;
}
.tm-toast.ok { border-left: 3px solid var(--success); }
.tm-toast.err { border-left: 3px solid var(--danger); }
.tm-toast.info { border-left: 3px solid var(--accent-color); }
.tm-toast .icon { flex: 0 0 auto; }
.tm-toast.leaving { animation: toast-out .18s ease forwards; }

@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ── Progress bar ───────────────────────────────────────────────────────── */

.tm-progress {
  position: fixed; top: 0; left: 0; height: 2.5px; width: 0;
  background: var(--accent-color); z-index: 100;
  transition: width .25s ease, opacity .3s ease;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.tm-footer { border-top: 1px solid rgba(255, 255, 255, .05); background: #111417; }
.tm-footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 22px 20px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-dim);
}
.tm-footer-brand { color: var(--value-color); font-weight: 600; }
.tm-footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.tm-footer-links a { color: var(--text-dim); }
.tm-footer-links a:hover { color: var(--value-color); }
.tm-footer-note { margin-left: auto; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .tm-main-intro-header { font-size: 26px; }
  .wide-only { display: none; }
  .thin-only { display: inline; }
  .tm-table thead th.col-time { display: none; }
  .tm-table thead th.col-username { width: 52%; }
  .tm-table thead th.col-value { width: 48%; }
}

@media (max-width: 720px) {
  .tm-header-inner { padding: 0 14px; gap: 10px; }
  .tm-header-tabs { display: none; }
  .icon-btn { display: flex; }
  .tm-main { padding: 0 14px 40px; }
  .tm-main-intro { padding: 28px 0 22px; }
  .tm-main-intro-header { font-size: 23px; }
  .tm-main-intro-text { font-size: 15px; }

  #btn-connect-xirogram { display: none; }
  .tm-btn .tm-btn-label { display: none; }
  .tm-btn { width: 38px; padding: 0; }
  .tm-btn-balance { width: auto; padding: 0 12px; }
  .tm-btn-balance .tm-btn-label { display: inline; }

  .tm-section-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .tm-section-header-text { grid-column: 1 / -1; font-size: 18px; }
  .tm-dropdown { width: 100%; }
  .tm-dropdown > .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0 12px;
  }

  .tm-packages { grid-template-columns: 1fr; }
  .tm-backdrop { padding: 0; align-items: flex-end; }
  .tm-modal { max-width: none; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 92vh; }
  @keyframes modal-in { from { transform: translateY(100%); } to { transform: none; } }

  .tm-footer-note { margin-left: 0; width: 100%; }
}
