/* Stradagram Fragment storefront — fragment.com-compatible theme.
 * Design tokens mirror fragment.com auction.css :root; class names follow
 * the tm-* convention so markup stays structurally identical. */

:root {
  --text-color: #8794a1;
  --accent-color: #4db2ff;
  --accent-rgb: 77, 178, 255;
  --accent-bg-color: rgba(var(--accent-rgb), .1);
  --article-color: #fff;
  --header-color: #fff;
  --field-color: #fff;
  --field-bg-color: #242e38;
  --field-second-color: #8494a3;
  --field-placeholder-color: #8a98a6;
  --btn-primary-color: #fff;
  --btn-primary-bg-color: #248bda;
  --btn-primary-bg-hover-color: #207cc2;
  --btn-default-color: #fff;
  --btn-default-bg-color: #242e38;
  --btn-default-bg-hover-color: #293440;
  --btn-header-bg-color: #293440;
  --btn-header-bg-hover-color: #3f4e60;
  --table-bg-color: #212a33;
  --table-header-bg-color: #293440;
  --table-bg-hover-color: #293440;
  --table-text-color: #8c9aa9;
  --value-color: #fff;
  --header-height: 90px;
  --def-border-radius: 8px;
  --popup-border-radius: 12px;
  --bg-color: #1a2026;
  --header-bg-color: rgba(33, 42, 51, .9);
  --bg-hover-color: #212a33;
  --footer-bg-color: #111417;
  --footer-color: #6d8394;
  --header-tab-color: #cbd7e5;
  --header-tab-color-active: #fff;
  --danger-color: #ff5863;
  --warning-color: #ff9953;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Product Sans", "Google Sans", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  background: var(--footer-bg-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  font-variant-ligatures: none;
}
a { color: var(--accent-color); text-decoration: none; }
a:hover { text-decoration: none; }
.accent-color { color: var(--accent-color); }
.hide { display: none !important; }
.progress-bar { height: 2px; background: var(--accent-color); width: 0; transition: width .2s ease; }

/* ---------- header ---------- */
.tm-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  height: var(--header-height);
  padding: 0 16px;
  background: var(--header-bg-color);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.tm-header-logo { flex: 0 0 auto; }
.tm-logo { display: flex; align-items: center; gap: 9px; }
.tm-logo-icon { width: 30px; height: 30px; }
.tm-logo-text { color: var(--header-color); font-size: 19px; font-weight: 600; white-space: nowrap; }
.tm-logo-text b { font-weight: 400; color: var(--text-color); }
.tm-header-body { flex: 1 1 auto; min-width: 0; }
.tm-header-tabs-wrap { overflow-x: auto; scrollbar-width: none; }
.tm-header-tabs-wrap::-webkit-scrollbar { display: none; }
.tm-header-tabs { display: flex; gap: 4px; }
.tm-header-tab {
  color: var(--header-tab-color); font-size: 15px; font-weight: 500;
  padding: 8px 13px; border-radius: var(--def-border-radius); white-space: nowrap;
}
.tm-header-tab:hover { color: var(--header-tab-color-active); background: rgba(255,255,255,.05); }
.tm-header-tab.tab-active { color: var(--header-tab-color-active); background: rgba(255,255,255,.09); }
.tm-header-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.tm-header-actions-thin { display: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 0; border-radius: var(--def-border-radius);
  padding: 9px 16px; font-size: 14.5px; font-weight: 600; cursor: pointer;
  color: var(--btn-default-color); background: var(--btn-default-bg-color);
  transition: background-color .2s ease;
}
.btn:hover { background: var(--btn-default-bg-hover-color); }
.btn-primary { color: var(--btn-primary-color); background: var(--btn-primary-bg-color); }
.btn-primary:hover { background: var(--btn-primary-bg-hover-color); }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.tm-header-button { background: var(--btn-header-bg-color); }
.tm-header-button:hover { background: var(--btn-header-bg-hover-color); }
.tm-header-button.btn-primary { background: var(--btn-primary-bg-color); }
.tm-header-button.btn-primary:hover { background: var(--btn-primary-bg-hover-color); }
.tm-header-menu-button {
  display: none; width: 36px; height: 36px; cursor: pointer; flex: 0 0 auto;
  background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%23cbd7e5' stroke-width='2' fill='none'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E");
}
.tm-header-menu { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.55); }
.tm-header-menu-window {
  position: absolute; top: 0; right: 0; bottom: 0; width: 300px;
  background: var(--table-bg-color); padding: 20px; overflow-y: auto;
}
.tm-header-menu-close-button {
  width: 30px; height: 30px; cursor: pointer; margin-left: auto;
  background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%238794a1' stroke-width='2' fill='none'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}
.tm-menu-subheader { color: var(--text-color); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 8px; }
.tm-menu-links { display: flex; flex-direction: column; }
.tm-menu-link { color: var(--article-color); padding: 10px 4px; font-size: 15.5px; border-bottom: 1px solid rgba(255,255,255,.06); }
.tm-header-menu-footer { margin-top: 22px; }
.tm-header-menu-footer-text { color: var(--text-color); font-size: 13.5px; margin-bottom: 12px; line-height: 1.5; }
.tm-menu-button { margin-bottom: 10px; }

/* ---------- main / sections ---------- */
.tm-main { max-width: 960px; margin: 0 auto; padding: 26px 16px 40px; min-height: 70vh; }
.tm-main-intro-header { color: var(--article-color); font-size: 30px; margin: 6px 0 10px; font-weight: 700; }
.tm-main-intro-text { font-size: 15.5px; line-height: 1.55; margin: 0 0 18px; }
.tm-main-intro-text b { color: var(--article-color); font-weight: 600; }
.tm-main-intro-text a::after { content: " ›"; }
.tm-section { margin-bottom: 26px; }
.tm-section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.tm-section-header-text { color: var(--article-color); font-size: 20px; margin: 0; font-weight: 700; flex: 1 1 auto; }
.thin-only { display: none; }
.tm-section-header-domain { color: var(--article-color); }
.tm-web3-address .subdomain { color: var(--accent-color); }
.tm-web3-address .domain { color: var(--text-color); }
.tm-section-header-status { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.tm-status-avail { color: #5aec8c; background: rgba(90,236,140,.1); }
.tm-status-sold { color: var(--text-color); background: rgba(255,255,255,.07); }
.tm-section-box {
  background: var(--table-bg-color); border-radius: var(--def-border-radius);
  padding: 16px; margin-bottom: 14px;
}

/* ---------- search / dropdowns ---------- */
.tm-search-field { position: relative; margin-bottom: 20px; }
.tm-search-input {
  width: 100%; background: var(--field-bg-color); border: 0; border-radius: var(--def-border-radius);
  color: var(--field-color); font-size: 15px; padding: 12px 40px 12px 40px; outline: none;
}
.tm-search-input::placeholder { color: var(--field-placeholder-color); }
.tm-search-field::before {
  content: ""; position: absolute; left: 13px; top: 13px; width: 18px; height: 18px;
  background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%238a98a6' stroke-width='2' fill='none'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
}
.btn-group.tm-dropdown { position: relative; }
.tm-dropdown-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; min-width: 210px;
  background: #2e3a47; border-radius: var(--def-border-radius); padding: 6px;
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
}
.tm-dropdown-menu a {
  display: block; color: #dde4eb; padding: 9px 12px; border-radius: 6px; font-size: 14.5px;
}
.tm-dropdown-menu a:hover { background: #384553; }
.tm-dropdown-menu li.selected a { color: var(--accent-color); }
.tm-dropdown-menu { list-style: none; margin: 0; }

/* ---------- table ---------- */
.tm-table-wrap { overflow-x: auto; border-radius: var(--def-border-radius); }
table.tm-table { width: 100%; border-collapse: collapse; background: var(--table-bg-color); }
.tm-table thead th {
  background: var(--table-header-bg-color); color: var(--table-text-color);
  font-size: 13px; font-weight: 600; text-align: left; padding: 11px 16px; white-space: nowrap;
}
.tm-table thead th:first-child { border-radius: var(--def-border-radius) 0 0 0; }
.tm-table thead th:last-child { border-radius: 0 var(--def-border-radius) 0 0; }
.tm-table tbody td { padding: 13px 16px; border-top: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
.tm-table tbody tr.tm-row-selectable { cursor: pointer; }
.tm-table tbody tr.tm-row-selectable { transition: background-color .15s ease; }
.tm-table tbody tr.tm-row-selectable:hover { background: var(--table-bg-hover-color); }
.table-cell { display: block; }
.table-cell-value-row { display: flex; align-items: center; gap: 8px; }
.table-cell-value.tm-value { color: var(--value-color); font-size: 16.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.table-cell-status-thin {
  display: none; font-size: 12px; color: var(--text-color);
  background: rgba(255,255,255,.07); border-radius: 5px; padding: 2px 7px;
}
.table-cell-desc { color: var(--text-color); font-size: 13.5px; margin-top: 3px; }
.tm-nowrap { white-space: nowrap; }
.icon-ton { width: 17px; height: 17px; color: var(--accent-color); flex: 0 0 auto; }
.tm-timer { color: var(--value-color); font-size: 14.5px; }
.tm-timer-end { color: var(--text-color); font-size: 12.5px; margin-top: 2px; }
.tm-wallet { color: var(--accent-color); font-size: 14.5px; }
.tm-datetime { color: var(--text-color); font-size: 14px; }

/* ---------- lot page ---------- */
.tm-list { padding: 4px 16px; }
.tm-list-item { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; margin: 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.tm-list-item:last-child { border-bottom: 0; }
.tm-list-item-title { color: var(--text-color); font-size: 14.5px; }
.tm-list-item-value { color: var(--value-color); font-size: 14.5px; text-align: right; }
.tm-section-countdown-wrap { text-align: center; padding: 20px 16px; }
.tm-countdown-label { color: var(--text-color); font-size: 14px; margin-right: 8px; }
.tm-countdown-label.full { display: inline; }
.tm-countdown-label.short { display: none; }
.tm-countdown-timer { color: var(--value-color); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.tm-countdown-timer .reel {
  display: inline-block; border-radius: 6px; padding: 4px 9px; margin: 0 3px;
  background: linear-gradient(180deg, #2a3542, #212a33);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 1px 2px rgba(0,0,0,.35);
}
.tm-countdown-timer .dim { color: var(--text-color); font-size: 15px; font-weight: 400; margin: 0 1px; }
.tm-section-countdown-end { margin-top: 8px; }
.tm-section-buttons { display: flex; gap: 10px; }
.tm-section-buttons .btn { flex: 1; padding: 13px; font-size: 16px; }
.tm-bid-info-text { margin-top: 10px; font-size: 13.5px; }
.tm-bid-box { display: flex; gap: 10px; margin-top: 12px; }
.tm-bid-box input {
  flex: 1; background: var(--field-bg-color); border: 1px solid transparent; border-radius: var(--def-border-radius);
  color: var(--field-color); font-size: 16px; padding: 11px 13px; outline: none; min-width: 0;
}
.tm-bid-box input:focus { border-color: var(--accent-color); }
.tm-bid-msg { margin-top: 9px; font-size: 13.5px; min-height: 18px; }
.tm-bid-msg.err { color: var(--danger-color); }
.tm-bid-msg.ok { color: #5aec8c; }
.tm-outbid-note { font-size: 13px; color: var(--text-color); margin-top: 8px; }

/* ---------- popup / login ---------- */
.popup-container {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.popup { width: 100%; max-width: 400px; }
.popup-body { background: var(--table-bg-color); border-radius: var(--popup-border-radius); padding: 24px; }
.popup-body h4 { color: var(--article-color); margin: 0 0 6px; font-size: 19px; }
.popup-text { font-size: 14px; line-height: 1.55; }
.popup-body input {
  width: 100%; background: var(--field-bg-color); border: 1px solid transparent; border-radius: var(--def-border-radius);
  color: var(--field-color); font-size: 16px; padding: 11px 13px; outline: none; margin: 10px 0;
}
.popup-body input:focus { border-color: var(--accent-color); }
.popup-msg { font-size: 13.5px; min-height: 18px; margin-top: 6px; }
.popup-msg.err { color: var(--danger-color); }
.popup-msg.ok { color: #5aec8c; }

/* ---------- footer ---------- */
.tm-footer { background: var(--footer-bg-color); padding: 26px 16px 40px; }
.tm-footer-links { max-width: 960px; margin: 0 auto; display: flex; gap: 22px; flex-wrap: wrap; }
.tm-footer-link { color: var(--footer-color); font-size: 14.5px; }
.tm-footer-link:hover { color: var(--article-color); }

/* ---------- misc ---------- */
.muted { color: var(--text-color); font-size: 13.5px; }
.empty-state { padding: 26px 10px; text-align: center; color: var(--text-color); }
.status-line { margin: 4px 0 14px; font-size: 14px; min-height: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .tm-header-actions-wide { display: none; }
  .tm-header-actions-thin { display: flex; }
  .tm-header-menu-button { display: block; }
  .tm-header-body { display: none; }
  :root { --header-height: 56px; }
  .tm-header { height: 56px; }
}
@media (max-width: 720px) {
  .thin-only { display: inline; }
  .wide-only { display: none !important; }
  .table-cell-status-thin { display: inline-block; }
  .tm-main-intro-header { font-size: 23px; }
  td.thin-last-col { padding-right: 12px; }
  .tm-countdown-label.full { display: none; }
  .tm-countdown-label.short { display: inline; }
  .tm-countdown-timer { font-size: 21px; }
}
@media (min-width: 721px) {
  th.thin-last-col, td.thin-last-col { width: auto; }
}
