:root {
  --bg: #0e1722;
  --panel: #18283a;
  --panel-2: #22364b;
  --line: #37516b;
  --text: #f2f8ff;
  --text: #f2f8ff;
  --accent: #58a7e6;
  --accent-2: #93cef7;
  --muted: #a8b8c8;
  --danger: #d66d6d;
  --good: #74c69d;
  --shadow: rgba(3, 10, 19, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(88, 167, 230, 0.16), transparent 34%),
    linear-gradient(180deg, #0d1621 0%, #14263a 46%, #0e1722 100%);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

a,
button {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.topbar {
  height: 64px;
  margin-top: 18px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(20, 34, 49, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px var(--shadow), inset 0 1px 0 rgba(147, 206, 247, 0.06);
}

.brand {
  width: 118px;
  height: 40px;
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
  font-size: 22px;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a,
.nav-button {
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover,
.nav-button:hover {
  color: var(--text);
  background: rgba(55, 81, 107, 0.72);
}

.nav-group {
  position: relative;
}

.nav-menu {
  position: absolute;
  top: 38px;
  left: 0;
  width: 190px;
  padding: 8px;
  background: #17283a;
  border: 1px solid var(--line);
  box-shadow: 0 16px 30px var(--shadow);
  display: none;
  z-index: 10;
}

.nav-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}

.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu {
  display: block;
}

.nav-menu a {
  width: 100%;
  justify-content: flex-start;
}

.page {
  display: none;
  padding: 42px 0;
}

.page.active {
  display: block;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 104px);
  display: none;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  overflow: hidden;
}

.hero::before {
  content: "RTV";
  position: absolute;
  z-index: -1;
  right: -32px;
  top: 42%;
  transform: translateY(-50%);
  color: rgba(147, 206, 247, 0.055);
  font-size: clamp(190px, 28vw, 380px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: 0;
  pointer-events: none;
  text-shadow: 0 0 40px rgba(88, 167, 230, 0.08);
}

.hero.active {
  display: grid;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0;
}

.title-row h2 {
  overflow-wrap: anywhere;
  margin: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 22px;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.title-row h2 {
  overflow-wrap: anywhere;
  margin: 0;
}

.detail-acronym-inline {
  color: var(--muted);
  font-size: 1em;
  line-height: 1.2;
  font-weight: 400;
  margin: 0;
}

.detail-rarity-badge {
  width: 1em;
  height: 1em;
  display: none;
  align-items: center;
  justify-content: center;
}

.detail-rarity-badge.visible {
  display: inline-flex;
}

.detail-rarity-badge img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.roblox-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-left: 4px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none;
}

.roblox-link:hover,
.roblox-link:focus,
.roblox-link:active {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none;
}

.roblox-link img {
  height: 1em;
  width: auto;
  display: block;
}

.hidden {
  display: none;
}

.hero-copy {
  max-width: 620px;
  color: #bfd0df;
  font-size: 18px;
  line-height: 1.6;
}

.hero-notes {
  margin-top: 14px;
  padding: 14px 16px;
  border: none;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(46, 88, 124, 0.66), rgba(26, 44, 64, 0.92)),
    rgba(13, 20, 32, 0.55);
  box-shadow: inset 0 1px 0 rgba(147, 206, 247, 0.08), 0 18px 30px rgba(3, 10, 19, 0.16);
}

.hero-notes-panel {
  overflow: hidden;
}

.hero-notes p {
  margin: 0 0 8px;
  color: #d5e2ee;
  line-height: 1.45;
}

.hero-notes p:last-child {
  margin-bottom: 0;
}

.hero-notes strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.primary-action,
.secondary-action,
.back-button,
.add-user-button {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  text-decoration: none;
}

.primary-action {
  border-color: #73bdf2;
  background: #2f75aa;
}

.market-card,
.item-card,
.chart-card,
.search-panel,
.empty-state {
  background: rgba(24, 40, 58, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px var(--shadow), inset 0 1px 0 rgba(147, 206, 247, 0.055);
}

.market-card {
  backdrop-filter: blur(8px);
  padding: 22px;
}

.card-label {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.metric-row span,
.muted {
  color: var(--muted);
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.page-heading.compact {
  margin-bottom: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.catalog-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-input {
  width: 220px;
  height: 38px;
  padding: 0 12px;
  background: #0c1825;
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
}

.filter-wrap {
  position: relative;
}

.filter-button {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
}

.filter-menu {
  position: absolute;
  top: 44px;
  right: 0;
  width: 190px;
  padding: 8px;
  display: none;
  background: #17283a;
  border: 1px solid var(--line);
  box-shadow: 0 16px 30px var(--shadow);
  z-index: 15;
}

.filter-menu.active {
  display: block;
}

.filter-menu button {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.filter-menu button:hover,
.filter-menu button.active {
  color: var(--text);
  background: var(--panel-2);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.item-card {
  position: relative;
  min-height: 244px;
  padding: 12px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.item-card:hover {
  border-color: #73bdf2;
}

.item-name {
  height: 22px;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-weight: 750;
  line-height: 1.25;
}

.item-image {
  position: relative;
  height: 116px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  background: #0c1825;
  border: 1px solid var(--line);
}

.item-image .item-image-placeholder {
  width: 54px;
  height: 54px;
  display: block;
  background: linear-gradient(135deg, #7bbff0, #d9e9f5);
  transform: rotate(45deg);
}

.item-image.has-image {
  background: #102235;
}

.item-image img {
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  max-width: 112px;
  max-height: 112px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.item-quantity-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  min-width: 26px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  background: rgba(12, 24, 37, 0.9);
  border: 1px solid var(--line);
  z-index: 2;
}

.item-rarity-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  width: 18px;
  height: 18px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  z-index: 2;
}

.item-rarity-badge img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.item-stat {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.item-card .item-stat strong {
  color: var(--text) !important;
  font-weight: 400 !important;
}

.item-copy-stat strong {
  max-width: 58%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-page-button {
  width: 100%;
  min-height: 30px;
  margin-top: 10px;
  color: #ccecff;
  background: rgba(73, 158, 214, 0.16);
  border: 0;
  font-size: 12px;
  font-weight: 700;
}

.copy-page-button:hover,
.copy-page-button:focus-visible {
  color: #f1f9ff;
  background: rgba(73, 158, 214, 0.3);
}

.item-card.copy-popover-active {
  z-index: 12;
}

.copy-popover-wrap {
  position: relative;
}

.copy-popover {
  position: absolute;
  right: 0;
  bottom: 38px;
  left: 0;
  z-index: 20;
  max-height: 270px;
  padding: 10px;
  display: none;
  overflow-y: auto;
  background: #152638;
  border: 1px solid #496b88;
  box-shadow: 0 18px 38px rgba(2, 9, 17, 0.55);
}

.copy-popover.open {
  display: grid;
  gap: 7px;
}

.copy-popover-heading {
  padding: 2px 3px 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.copy-popover-empty {
  padding: 10px;
  color: var(--muted);
  background: #0e1d2c;
  font-size: 11px;
  line-height: 1.45;
}

.copy-popover-entry {
  min-width: 0;
  padding: 9px 10px;
  display: grid;
  gap: 3px;
  text-align: left;
  color: var(--text);
  background: #0e1d2c;
  border: 0;
}

.copy-popover-entry:hover,
.copy-popover-entry:focus-visible {
  background: #203b52;
}

.copy-popover-entry:disabled {
  cursor: default;
  opacity: 0.6;
}

.copy-popover-entry strong,
.copy-popover-entry span,
.copy-popover-entry small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-popover-entry strong {
  font-size: 12px;
}

.copy-popover-entry span {
  color: #bce4ff;
  font-size: 11px;
}

.copy-popover-entry small {
  color: var(--muted);
  font-size: 10px;
}

.trade-heading {
  margin-bottom: 18px;
}

.trade-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.trade-side,
.trade-picker {
  background: rgba(24, 40, 58, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px var(--shadow);
}

.trade-side {
  padding: 16px;
}

.trade-side h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.trade-divider {
  min-height: 178px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.trade-divider span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #0c1825;
  border: 1px solid var(--line);
}

.trade-slot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.trade-slot {
  position: relative;
  min-width: 0;
  aspect-ratio: 1 / 1.08;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  color: var(--muted);
  background: #0c1825;
  border: 1px dashed #45647f;
}

.trade-slot:hover,
.trade-slot.filled:hover {
  color: var(--text);
  border-color: var(--accent);
}

.trade-slot.filled {
  justify-content: flex-start;
  color: var(--text);
  background: #102235;
  border-style: solid;
}

.trade-slot-plus {
  font-size: 1.45rem;
  font-weight: 300;
  line-height: 1;
}

.trade-slot-empty {
  font-size: 0.72rem;
}

.trade-slot-remove {
  position: absolute;
  top: 5px;
  right: 6px;
  z-index: 2;
  color: #ffaaa0;
  font-size: 0.68rem;
  font-weight: 800;
}

.trade-slot-image {
  width: 100%;
  min-height: 58px;
  flex: 1;
  display: grid;
  place-items: center;
}

.trade-slot-image img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.trade-slot strong,
.trade-slot-value {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.trade-slot strong {
  font-size: 0.76rem;
}

.trade-slot-value {
  color: var(--muted);
  font-size: 0.68rem;
}

.trade-adjustments {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.trade-adjustment {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
  background: #0c1825;
  border: 1px solid var(--line);
}

.trade-adjustment > span {
  padding-left: 9px;
  color: var(--muted);
  font-size: 0.82rem;
}

.trade-adjustment input {
  width: 92px;
  height: 34px;
  padding: 0 8px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
}

.trade-ratio {
  align-self: flex-start;
  margin: 3px 6px 0 -4px;
  color: var(--accent-2);
  font-size: 0.58rem;
  font-weight: 600;
  white-space: nowrap;
}

.trade-totals {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.trade-totals > div {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(55, 81, 107, 0.62);
}

.trade-totals span {
  color: var(--muted);
  font-size: 0.82rem;
}

.trade-totals strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.trade-picker {
  margin-top: 24px;
  padding: 16px;
}

.trade-options-wrap {
  position: relative;
  width: max-content;
  margin-bottom: 12px;
}

.trade-options-button {
  height: 36px;
  padding: 0 12px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.trade-options-panel {
  position: absolute;
  top: 42px;
  left: 0;
  z-index: 20;
  width: 230px;
  padding: 12px;
  display: none;
  gap: 10px;
  background: #17283a;
  border: 1px solid var(--line);
  box-shadow: 0 16px 30px var(--shadow);
}

.trade-options-panel.active {
  display: grid;
}

.trade-options-panel label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.trade-options-panel input {
  width: 76px;
  height: 32px;
  padding: 0 8px;
  color: var(--text);
  background: #0c1825;
  border: 1px solid var(--line);
  font: inherit;
}

.trade-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.trade-target-tabs {
  display: flex;
  gap: 6px;
}

.trade-search {
  width: min(380px, 100%);
}

.trade-picker-message {
  min-height: 20px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.trade-picker-message.error {
  color: #ffaaa0;
}

.trade-search-results {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.trade-result-card {
  min-width: 0;
  min-height: 244px;
  padding: 12px;
  display: block;
  text-align: left;
  font: inherit;
}

.trade-result-card:hover {
  border-color: var(--accent);
}

.pager {
  flex-wrap: wrap;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.pager button,
.pager span,
.tab,
.icon-button {
  min-height: 36px;
  min-width: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
}

.pager button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: transparent;
  background: transparent;
}

.pager-jump input {
  width: 74px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #73bdf2;
  background: #0c1825;
  color: var(--text);
  font: inherit;
}

.pager button.active,
.tab.active {
  background: #2f75aa;
  border-color: #73bdf2;
  color: var(--text);
}

.leaderboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.players-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.leader-row,
.change-row,
.search-result {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 150px 150px;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
}

.leader-row:first-child,
.change-row:first-child {
  border-top: 0;
}

.leader-row button,
.search-result button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent-2);
  text-align: left;
}

.player-card {
  min-height: 312px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(24, 40, 58, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px var(--shadow), inset 0 1px 0 rgba(147, 206, 247, 0.055);
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.player-card:hover,
.player-card:focus-visible {
  transform: translateY(-2px);
  border-color: #73bdf2;
  box-shadow: 0 20px 38px rgba(3, 10, 19, 0.42), inset 0 1px 0 rgba(147, 206, 247, 0.08);
}

.player-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.player-rank-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(47, 117, 170, 0.2);
  border: 1px solid rgba(115, 189, 242, 0.45);
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.player-avatar {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #102336, #0a1522);
  border: 1px solid var(--line);
}

.player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: block;
  background:
    radial-gradient(circle at 50% 30%, rgba(115, 189, 242, 0.12), transparent 32%),
    linear-gradient(145deg, #102336, #0a1522);
}

.player-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.player-name {
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.player-display-name {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.player-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.player-stat {
  min-height: 74px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  background: #0c1825;
  border: 1px solid var(--line);
}

.player-stat span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.player-stat strong {
  line-height: 1.15;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 20px;
}

.profile-account-banner {
  width: 100%;
  margin-top: 18px;
  padding: 13px 16px;
  color: #dbe7f1;
  background: rgba(102, 119, 136, 0.26);
  border-left: 4px solid #7f95a8;
  font-size: 14px;
  font-weight: 650;
}

.profile-account-banner.terminated {
  color: #fff0d3;
  background: rgba(212, 126, 54, 0.2);
  border-left-color: #e8974f;
}

.profile-account-banner.hidden {
  display: none;
}

.profile-overview,
.profile-inventory-section {
  min-width: 0;
}

.profile-actions {
  min-height: 58px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(24, 40, 58, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px var(--shadow);
}

.profile-action-button {
  min-height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #eaf7ff;
  background: #2f75aa;
  border: 1px solid #73bdf2;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.profile-action-button.hidden,
.profile-timestamp-search.hidden,
.timestamp-only.hidden {
  display: none;
}

.profile-action-button:hover,
.profile-action-button:focus-visible {
  background: #3b86bd;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.scan-pill {
  padding: 7px 11px;
  background: rgba(116, 198, 157, 0.14);
  color: var(--good);
  border: 1px solid rgba(116, 198, 157, 0.32);
  font-size: 13px;
}

.profile-main {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 18px;
}

.avatar-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.avatar-frame {
  height: 330px;
  display: grid;
  place-items: center;
  background: #0c1825;
  border: 1px solid var(--line);
}

.avatar-frame img {
  max-width: 100%;
  max-height: 318px;
  object-fit: contain;
}

.avatar-stand {
  width: 112px;
  height: 230px;
  background: linear-gradient(180deg, #d7e0e7, #7292b1);
  clip-path: polygon(36% 0, 64% 0, 74% 28%, 100% 38%, 82% 55%, 72% 100%, 28% 100%, 18% 55%, 0 38%, 26% 28%);
}

.profile-stat-bar {
  display: grid;
  gap: 8px;
}

.profile-stat-bar.timestamp-mode {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-stat-bar div {
  min-height: 46px;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  background: rgba(24, 40, 58, 0.9);
  border: 1px solid var(--line);
}

.profile-stat-bar span {
  color: var(--muted);
  font-size: 13px;
}

.profile-stat-bar strong {
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.chart-card {
  min-height: 360px;
  padding: 18px;
  overflow: hidden;
}

.private-inventory-message {
  margin: 0 0 12px;
  padding: 10px 12px;
  color: #ffe3c2;
  background: rgba(214, 109, 109, 0.16);
  border: 1px solid rgba(214, 109, 109, 0.34);
}

.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.profile-chart-range {
  margin: -2px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.profile-chart-range button {
  min-width: 34px;
  min-height: 26px;
  padding: 0 8px;
  color: var(--muted);
  background: #102235;
  border: 1px solid rgba(55, 81, 107, 0.76);
  font-size: 11px;
}

.profile-chart-range button:hover,
.profile-chart-range button.active {
  color: #f3f9ff;
  background: #285f8b;
  border-color: #67b5eb;
}

.profile-timestamp-search {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.profile-timestamp-search input,
.profile-timestamp-search button {
  min-height: 36px;
  padding: 7px 10px;
  color: var(--text);
  background: #102235;
  border: 1px solid var(--line);
}

.profile-timestamp-search button {
  cursor: pointer;
}

.profile-timestamp-search button:hover,
.profile-timestamp-search button:focus-visible {
  border-color: var(--accent);
}

.item-chart-hit {
  cursor: pointer;
}

.chart-head > div:first-child {
  display: grid;
  gap: 5px;
}

.chart-kicker {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chart-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.82rem;
}

.chart-summary span {
  color: var(--text);
  white-space: nowrap;
}

.chart-summary span::before {
  width: 7px;
  height: 7px;
  margin-right: 6px;
  display: inline-block;
  content: "";
  background: var(--metric-color);
}

.chart-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: #0c1825;
  border: 1px solid var(--line);
}

.chart-tabs button {
  min-height: 30px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 0.75rem;
}

.chart-tabs button:hover,
.chart-tabs button.active {
  color: var(--text);
  background: var(--panel-2);
}

.chart {
  position: relative;
  height: 268px;
  background:
    linear-gradient(180deg, rgba(88, 167, 230, 0.045), transparent 65%),
    #0c1825;
  border: 1px solid rgba(55, 81, 107, 0.78);
}

.chart svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.chart-grid-line {
  stroke: rgba(147, 206, 247, 0.11);
  stroke-width: 1;
}

.chart-axis-label,
.chart-date-label {
  fill: var(--muted);
  font-size: 11px;
}

.chart-axis-series-label {
  font-size: 10px;
  font-weight: 700;
}

.chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(88, 167, 230, 0.28));
}

.chart-point {
  stroke: #0c1825;
  stroke-width: 3;
  cursor: crosshair;
  transition: r 120ms ease;
}

.chart-point:hover,
.chart-point:focus {
  r: 6;
  outline: none;
}

.chart-tooltip {
  position: absolute;
  z-index: 4;
  min-width: 170px;
  padding: 8px 10px;
  display: none;
  gap: 3px;
  pointer-events: none;
  color: var(--text);
  background: #17283a;
  border: 1px solid #547795;
  box-shadow: 0 10px 24px rgba(3, 10, 19, 0.42);
  transform: translate(-50%, calc(-100% - 12px));
}

.chart-tooltip.visible {
  display: grid;
}

.chart-tooltip strong {
  font-size: 0.78rem;
}

.chart-tooltip span {
  color: var(--muted);
  font-size: 0.68rem;
}

.chart-empty {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.inventory-search {
  width: 220px;
}

.empty-inventory {
  grid-column: 1 / -1;
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(24, 40, 58, 0.9);
  border: 1px solid var(--line);
}

.item-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  margin-top: 18px;
}

.item-detail-header {
  margin-top: 34px;
  margin-bottom: 8px;
}

.item-detail-header .title-row {
  margin-top: 10px;
  font-size: clamp(24px, 2.4vw, 28px);
}

.item-detail-header .title-row h2 {
  font-size: 1em;
}

.item-detail-main,
.detail-panel {
  background: rgba(24, 40, 58, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px var(--shadow), inset 0 1px 0 rgba(147, 206, 247, 0.055);
}

.item-detail-main {
  min-height: 360px;
  padding: 24px;
}

.item-detail-product {
  display: grid;
  grid-template-columns: minmax(400px, 440px) minmax(0, 1fr);
  gap: 30px;
}

.detail-image {
  width: 100%;
  min-height: 280px;
  display: grid;
  place-items: center;
  background: #0c1825;
  border: 1px solid var(--line);
}

.detail-image img {
  max-width: 270px;
  max-height: 270px;
  object-fit: contain;
}

.detail-image span {
  width: 96px;
  height: 96px;
  display: block;
  background: linear-gradient(135deg, #7bbff0, #d9e9f5);
  transform: rotate(45deg);
}

.item-market-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.item-market-strip > div {
  min-width: 0;
  padding: 10px 11px;
  display: grid;
  gap: 3px;
  background: #102235;
  border-top: 2px solid #58a7e6;
}

.item-market-strip span,
.item-meta-block span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.item-market-strip strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 13px;
}

.item-detail-metadata {
  padding: 8px 4px;
}

.item-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 30px;
}

.item-meta-block {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.item-meta-block strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: clamp(16px, 1.65vw, 21px);
  font-weight: 600;
  line-height: 1.15;
}

.detail-panel {
  padding: 18px;
}

.detail-panel-section-label {
  padding: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-stat {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.detail-stat:first-child {
  border-top: 0;
}

.detail-stat span {
  color: var(--muted);
}

.item-chart-card {
  margin-top: 24px;
  padding: 0;
  background: rgba(24, 40, 58, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px var(--shadow), inset 0 1px 0 rgba(147, 206, 247, 0.05);
}

.item-chart-heading {
  min-height: 54px;
  padding: 15px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.item-chart-heading h3 {
  font-size: 19px;
  font-weight: 650;
}

.item-chart-period {
  color: var(--muted);
  font-size: 12px;
}

.item-chart-range {
  padding: 8px 14px;
  display: flex;
  gap: 6px;
  background: #132538;
  border-top: 1px solid rgba(55, 81, 107, 0.7);
  border-bottom: 1px solid rgba(55, 81, 107, 0.7);
}

.item-chart-range button {
  min-width: 34px;
  min-height: 25px;
  padding: 0 8px;
  color: #a8b8c8;
  background: #0e1d2c;
  border: 1px solid transparent;
  font-size: 11px;
}

.item-chart-range button:hover,
.item-chart-range button.active {
  color: #fff;
  background: #2f75aa;
  border-color: #73bdf2;
}

.item-chart-tabs {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 0 14px;
  justify-content: center;
  gap: 22px;
  background: #132538;
  border: 0;
  border-top: 1px solid rgba(55, 81, 107, 0.7);
}

.item-chart-tabs button {
  position: relative;
  min-height: 45px;
  padding: 0 4px 0 22px;
  color: #717d87;
  background: transparent;
  font-size: 12px;
  font-weight: 650;
}

.item-chart-tabs button::before {
  position: absolute;
  left: 2px;
  top: 50%;
  width: 14px;
  height: 2px;
  content: "";
  background: #68737c;
  transform: translateY(-50%);
}

.item-chart-tabs button[data-item-chart-metric="value"]::before {
  background: #00b8ef;
}

.item-chart-tabs button[data-item-chart-metric="usd"]::before {
  background: #f0a24a;
}

.item-chart-tabs button[data-item-chart-metric="rap"]::before {
  background: #4f9d75;
}

.item-chart-tabs button:hover,
.item-chart-tabs button.active {
  color: #fff;
  background: transparent;
}

.item-note-bar {
  margin-top: 14px;
  padding: 12px 15px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  color: var(--text);
  background: rgba(19, 37, 53, 0.94);
  border-left: 3px solid #18aeea;
}

.item-note-bar span {
  color: #68c8f0;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.item-note-bar p {
  margin: 0;
  color: #c4d0da;
  font-size: 13px;
  line-height: 1.5;
}

#itemChart.chart {
  height: 390px;
  background:
    linear-gradient(180deg, rgba(88, 167, 230, 0.055), transparent 62%),
    #0c1825;
  border: 0;
}

.item-chart-grid-line {
  stroke: rgba(147, 206, 247, 0.13);
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.item-chart-grid-line.vertical {
  stroke: rgba(147, 206, 247, 0.055);
}

.item-chart-axis-label,
.item-chart-date-label {
  fill: #9fb2c3;
  font-size: 11px;
}

.item-chart-axis-label.usd {
  fill: #e5a55e;
}

.item-chart-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}

.item-chart-line.value {
  stroke-width: 2.4;
}

.item-chart-line.usd,
.item-chart-line.rap {
  opacity: 0.82;
}

.item-chart-hit {
  cursor: crosshair;
}

.item-chart-marker {
  pointer-events: none;
  stroke: #0b1723;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(147, 206, 247, 0.72));
  transition: opacity 80ms ease;
}

.owner-lists {
  margin-top: 24px;
  padding: 18px;
  background: rgba(24, 40, 58, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px var(--shadow), inset 0 1px 0 rgba(147, 206, 247, 0.055);
}

.owner-lists-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.owner-lists-head h3 {
  margin: 6px 0 0;
}

.owner-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.owner-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.owner-show {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.owner-show select {
  min-height: 36px;
  padding: 0 10px;
  color: var(--text);
  background: rgba(16, 28, 42, 0.95);
  border: 1px solid var(--line);
}

.owner-search {
  min-width: 220px;
}

.owner-table {
  border: 1px solid var(--line);
  background: rgba(16, 28, 42, 0.85);
}

.owner-table-head,
.owner-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 96px 150px 170px 90px 96px;
  gap: 12px;
  align-items: center;
}

.owner-table-head {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}

.owner-row {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.owner-row:last-child {
  border-bottom: 0;
}

.owner-player {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.owner-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: #0c1825;
  border: 1px solid var(--line);
}

.owner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.owner-avatar.hidden {
  display: grid;
  place-items: center;
  color: #ffcf66;
  font-size: 16px;
}

.owner-avatar.hidden img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.owner-name {
  min-width: 0;
}

.owner-name strong,
.owner-name span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.owner-name span {
  color: var(--muted);
  font-size: 12px;
}

.owner-copy-link {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  color: var(--accent-2);
  font: inherit;
  line-height: inherit;
  display: inline;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.owner-copy-link:hover {
  text-decoration: underline;
}

.owner-copy-link:focus-visible {
  outline: none;
  text-decoration: underline;
}

.owner-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
}

.owner-pill.yes {
  color: #8ee39e;
}

.owner-pill.no {
  color: #ff9f9f;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.change-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.change-empty {
  grid-column: 1 / -1;
}

.uaid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 18px;
}

.uaid-main,
.uaid-current-owner-panel,
.uaid-history-panel {
  background: rgba(24, 40, 58, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px var(--shadow), inset 0 1px 0 rgba(147, 206, 247, 0.055);
}

.uaid-main {
  min-height: 320px;
  padding: 24px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
}

.uaid-image {
  width: 100%;
  min-height: 260px;
  display: grid;
  place-items: center;
  background: #0c1825;
  border: 1px solid var(--line);
}

.uaid-image img {
  max-width: 220px;
  max-height: 220px;
  object-fit: contain;
}

.uaid-image span {
  width: 100px;
  height: 100px;
  display: block;
  background: linear-gradient(135deg, #7bbff0, #d9e9f5);
  transform: rotate(45deg);
}

.uaid-copy-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.uaid-stat {
  min-height: 46px;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  background: rgba(16, 28, 42, 0.95);
  border: 1px solid var(--line);
}

.uaid-stat span {
  color: var(--muted);
  font-size: 13px;
}

.uaid-stat strong {
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
  font-weight: 400;
}

.uaid-current-owner-panel,
.uaid-history-panel {
  padding: 18px;
}

.uaid-history {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.uaid-current-owner-panel .page-heading,
.uaid-history-panel .page-heading {
  margin-bottom: 14px;
}

#uaidCurrentOwner {
  display: grid;
  grid-template-columns: minmax(250px, 360px);
}

.uaid-owner-card {
  appearance: none;
  width: 100%;
  min-width: 0;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 7px;
  color: var(--text);
  text-align: left;
  font: inherit;
  background: rgba(16, 28, 42, 0.95);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

button.uaid-owner-card {
  cursor: pointer;
}

button.uaid-owner-card:hover,
button.uaid-owner-card:focus-visible {
  border-color: #73bdf2;
  outline: none;
}

.uaid-owner-card.current {
  grid-template-columns: 132px minmax(0, 1fr);
  grid-template-rows: auto auto auto auto;
  column-gap: 16px;
  min-height: 164px;
}

.uaid-owner-card-avatar {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0c1825;
  border: 1px solid var(--line);
}

.uaid-owner-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uaid-owner-card.hidden-owner .uaid-owner-card-avatar img {
  width: 54%;
  height: 54%;
  object-fit: contain;
}

.uaid-owner-card.current .uaid-owner-card-avatar {
  grid-row: 1 / -1;
}

.uaid-owner-card-name {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uaid-owner-card.current .uaid-owner-card-name {
  align-self: end;
  font-size: 22px;
}

.uaid-owner-event-label,
.uaid-owner-exact {
  color: var(--muted);
  font-size: 12px;
}

.uaid-owner-relative {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.uaid-owner-exact {
  line-height: 1.35;
}

.uaid-owner-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 4px 0;
  background: transparent;
  border: 0;
}

.uaid-owner-row .owner-player {
  min-width: 0;
}

.uaid-owner-row .owner-avatar {
  border-radius: 0;
}

.uaid-owner-row span:last-child {
  color: var(--muted);
  text-align: right;
  font-size: 13px;
}

.uaid-owner-row.hidden-owner .owner-avatar.hidden {
  width: 52px;
  height: 52px;
  padding: 0;
  color: transparent;
  border-color: rgba(255, 213, 111, 0.22);
}

.uaid-owner-row.hidden-owner .owner-name strong {
  font-size: 1rem;
  line-height: 1;
  font-weight: 400;
  color: #ffe0a4;
}

.uaid-owner-row.hidden-owner .owner-name span {
  font-size: 13px;
}

.uaid-owner-row .owner-name button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  color: inherit;
  font: inherit;
  font-weight: 400;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.owner-name button {
  all: unset;
  color: inherit;
  font: inherit;
  font-weight: 400;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  display: inline;
}

.owner-name button:hover,
.owner-name button:focus-visible {
  outline: none;
  text-decoration: underline;
}

.uaid-owner-row .owner-name button:hover {
  text-decoration: underline;
}

.uaid-owner-row .owner-name button:focus-visible {
  outline: none;
  text-decoration: underline;
}

.hidden-owner-mark {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.uaid-last-owner-x img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#uaidValue,
#uaidCiid {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 1rem;
  letter-spacing: 0.02em;
  word-break: break-all;
}

#uaidValue.is-empty,
#uaidCiid.is-empty {
  color: var(--muted);
}

.uaid-last-owner-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0;
  border: 0;
  color: transparent;
  font-size: 0;
  line-height: 1;
}

#uaidLastOwner.uaid-last-owner-x {
  font-size: 0;
  min-height: 64px;
}

#uaidLastOwner.uaid-last-owner-x img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.change-row {
  grid-template-columns: minmax(0, 1fr) 130px 130px 130px;
}

.change-card {
  min-height: 320px;
  padding: 12px;
  background: rgba(24, 40, 58, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px var(--shadow), inset 0 1px 0 rgba(147, 206, 247, 0.055);
}

.change-card.is-clickable {
  cursor: pointer;
}

.change-card.is-clickable:hover,
.change-card.is-clickable:focus-visible {
  border-color: #73bdf2;
}

.change-card-name {
  min-height: 38px;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.change-card-type {
  margin-top: 6px;
  font-weight: 700;
}

.change-card-split {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.change-card-split > div {
  padding: 8px;
  border: 1px solid var(--line);
  background: #0c1825;
}

.change-card-split span {
  display: block;
  margin-bottom: 4px;
}

.change-card-split strong {
  overflow-wrap: anywhere;
}

.change-card-time {
  margin-top: 10px;
  font-size: 13px;
}

.change-card-exact {
  margin-top: 4px;
  font-size: 12px;
}

.admin-shell {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #28435a;
  background:
    linear-gradient(180deg, rgba(7, 15, 23, 0.985), rgba(3, 8, 14, 0.985)),
    radial-gradient(circle at top right, rgba(77, 201, 140, 0.08), transparent 36%);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(134, 196, 255, 0.05);
}

.admin-shell-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-shell-head h2 {
  margin: 6px 0 0;
}

.admin-shell-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 14px;
}

.admin-panel {
  border: 1px solid rgba(120, 160, 192, 0.18);
  background: rgba(8, 16, 24, 0.92);
  box-shadow: inset 0 1px 0 rgba(134, 196, 255, 0.04);
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(120, 160, 192, 0.18);
  background: rgba(13, 24, 36, 0.88);
}

.admin-panel-head strong {
  font-family: "Consolas", "SFMono-Regular", "Cascadia Code", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ee6ba;
}

.admin-panel-controls {
  display: grid;
}

.admin-token-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(120, 160, 192, 0.1);
}

.admin-token-prompt {
  font-family: "Consolas", "SFMono-Regular", "Cascadia Code", monospace;
  color: #89e799;
  white-space: nowrap;
}

.admin-token-input {
  width: 100%;
  max-width: none;
  font-family: "Consolas", "SFMono-Regular", "Cascadia Code", monospace;
  background: rgba(3, 9, 14, 0.96);
  border-color: rgba(126, 167, 199, 0.24);
}

.admin-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px;
}

.admin-action-pair {
  display: inline-flex;
  align-items: stretch;
  gap: 6px;
}

.admin-tools .primary-action,
.admin-tools .secondary-action,
.admin-tools .danger-button {
  font-family: "Consolas", "SFMono-Regular", "Cascadia Code", monospace;
  letter-spacing: 0.02em;
}

.admin-stop-button {
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  color: #ffd4d4;
  background: rgba(111, 28, 38, 0.95);
  border: 1px solid #d85d6c;
  font-family: "Consolas", "SFMono-Regular", "Cascadia Code", monospace;
  font-size: 12px;
  cursor: pointer;
}

.admin-stop-button:hover {
  background: rgba(151, 39, 52, 0.98);
}

.admin-inline-status {
  margin: 0;
  padding: 0 14px 14px;
  color: #88a7bf;
  font-family: "Consolas", "SFMono-Regular", "Cascadia Code", monospace;
  font-size: 12px;
}

.admin-console-body {
  min-height: 180px;
  max-height: 420px;
  overflow: auto;
  padding: 12px 14px;
  font-family: "Consolas", "SFMono-Regular", "Cascadia Code", monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #cbe8ff;
}

.admin-console-line {
  display: grid;
  grid-template-columns: 92px 56px 118px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 3px 0;
  border-bottom: 1px dotted rgba(103, 148, 185, 0.12);
}

.admin-console-line:last-child {
  border-bottom: 0;
}

.admin-console-time {
  color: #88a7bf;
}

.admin-console-level {
  font-weight: 700;
  letter-spacing: 0.05em;
}

.admin-console-source {
  color: #7cc7ff;
  text-transform: lowercase;
}

.admin-console-message {
  min-width: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-console-line.info .admin-console-level {
  color: #8fd2ff;
}

.admin-console-line.success .admin-console-level {
  color: #89e799;
}

.admin-console-line.warning .admin-console-level {
  color: #ffd36c;
}

.admin-console-line.error .admin-console-level {
  color: #ff8f8f;
}

.admin-panel-changes {
  display: grid;
}

.admin-change-list {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.admin-change-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1.2fr) 118px 132px 132px auto;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px 10px;
  background: rgba(24, 40, 58, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 10px 20px var(--shadow), inset 0 1px 0 rgba(147, 206, 247, 0.055);
}

.admin-change-thumb {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #0c1825;
  border: 1px solid var(--line);
}

.admin-change-thumb span {
  width: 18px;
  height: 18px;
  display: block;
  background: linear-gradient(135deg, #7bbff0, #d9e9f5);
  transform: rotate(45deg);
}

.admin-change-thumb img {
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
}

.admin-change-row strong,
.admin-change-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.danger-button {
  min-height: 30px;
  padding: 0 10px;
  color: #ffe8e8;
  background: #8f2633;
  border: 1px solid #d85d6c;
  cursor: pointer;
}

.danger-button:hover {
  background: #a63240;
}

.change-up {
  color: var(--good);
}

.change-down {
  color: var(--danger);
}

.empty-state {
  padding: 40px;
  text-align: center;
}

.notfound-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 14px;
  padding: 48px 16px;
}

.notfound-logo {
  width: min(320px, 72vw);
  height: auto;
  margin-bottom: 8px;
}

.notfound-wrap h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.notfound-wrap p {
  margin: 0;
  color: var(--muted);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 90px 18px 18px;
  background: rgba(4, 8, 14, 0.72);
  z-index: 30;
}

.modal-backdrop.active {
  display: flex;
}

.search-panel {
  width: min(720px, 100%);
  padding: 18px;
}

.search-head,
.search-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.search-tabs {
  justify-content: flex-start;
  margin: 18px 0 12px;
}

.tab {
  padding: 0 14px;
}

.search-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: #0c1825;
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
}

.add-user-button {
  width: 100%;
  margin-top: 18px;
  display: none;
  justify-content: center;
  align-items: center;
}

.add-user-button.visible {
  display: inline-flex;
}

.add-player-form {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.add-player-form.hidden {
  display: none;
}

.add-player-form p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.add-player-submit {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #73bdf2;
  background: #2f75aa;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.add-player-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.add-player-message.error {
  color: #ffb4a6;
}

.search-results {
  margin-top: 14px;
}

.search-tabs.hidden,
.search-input.hidden,
.search-results.hidden {
  display: none;
}

.search-result {
  grid-template-columns: minmax(0, 1fr) 130px;
  min-height: 52px;
  padding: 0;
}

.crypto-heading {
  margin-bottom: 18px;
}

.crypto-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.crypto-stat-card {
  min-height: 112px;
  padding: 16px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  background:
    linear-gradient(145deg, rgba(88, 167, 230, 0.1), transparent 58%),
    rgba(24, 40, 58, 0.94);
  border-top: 2px solid #4f9bd4;
  box-shadow: 0 12px 28px var(--shadow);
}

.crypto-stat-card span,
.crypto-stat-card small {
  color: var(--muted);
}

.crypto-stat-card span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.crypto-stat-card strong {
  font-size: clamp(19px, 2vw, 25px);
}

.crypto-stat-card small {
  font-size: 11px;
}

.change-positive {
  color: #74c69d !important;
}

.change-negative {
  color: #ee8d82 !important;
}

.crypto-converter {
  margin-top: 18px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) repeat(2, minmax(220px, 1fr)) minmax(130px, 0.6fr);
  align-items: end;
  gap: 14px;
  background: rgba(24, 40, 58, 0.92);
  border: 1px solid var(--line);
}

.crypto-converter h3,
.crypto-markets-head h3,
.crypto-chart-head h3 {
  margin: 0;
}

.crypto-converter label,
.crypto-fiat-label {
  display: grid;
  gap: 7px;
}

.crypto-converter label > span,
.crypto-fiat-label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.crypto-converter-input,
.crypto-converter-output {
  min-height: 42px;
  display: flex;
  align-items: center;
  background: #0c1825;
  border: 1px solid var(--line);
}

.crypto-converter-input input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
}

.crypto-converter-input select {
  height: 40px;
  padding: 0 10px;
  color: var(--text);
  background: #17283a;
  border: 0;
  border-left: 1px solid var(--line);
}

.crypto-converter-output {
  justify-content: space-between;
  gap: 10px;
  padding: 0 11px;
}

.crypto-converter-output span {
  color: var(--muted);
  font-size: 12px;
}

.crypto-fiat-label strong {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  background: #102235;
  border: 1px solid var(--line);
  font-size: 13px;
}

.crypto-markets-panel {
  margin-top: 18px;
  background: rgba(24, 40, 58, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px var(--shadow);
}

.crypto-markets-head {
  padding: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.crypto-table-wrap {
  overflow-x: auto;
}

.crypto-table {
  min-width: 1120px;
  display: grid;
  grid-template-columns: 42px minmax(180px, 1.35fr) 110px repeat(3, 72px) 112px 104px 124px 132px;
  align-items: center;
  gap: 10px;
}

.crypto-table-head {
  min-height: 42px;
  padding: 0 14px;
  color: var(--muted);
  background: #102235;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.crypto-market-row {
  width: 100%;
  min-height: 66px;
  padding: 8px 14px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(55, 81, 107, 0.62);
  text-align: right;
}

.crypto-market-row:hover,
.crypto-market-row:focus-visible {
  background: rgba(55, 93, 127, 0.34);
  outline: 0;
}

.crypto-market-row > span:first-child {
  color: var(--muted);
  text-align: left;
}

.crypto-coin-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.crypto-coin-cell > img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.crypto-coin-cell > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.crypto-coin-cell strong,
.crypto-coin-cell small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crypto-coin-cell small {
  color: var(--muted);
  font-size: 10px;
}

.crypto-sparkline-cell {
  display: grid;
  place-items: center;
}

.crypto-sparkline {
  width: 120px;
  height: 36px;
}

.crypto-sparkline polyline {
  fill: none;
  stroke: #74c69d;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.crypto-sparkline.negative polyline {
  stroke: #ee8d82;
}

.crypto-sparkline-empty {
  color: var(--muted);
}

.crypto-footer-line {
  min-height: 48px;
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  background: #102235;
  font-size: 11px;
}

.crypto-footer-line strong {
  color: var(--text);
}

.crypto-footer-line a {
  color: #9fd4f7;
  text-decoration: none;
}

.crypto-footer-line a:hover {
  color: #fff;
  text-decoration: underline;
}

.crypto-coin-header {
  margin-top: 28px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background:
    linear-gradient(135deg, rgba(88, 167, 230, 0.11), transparent 55%),
    rgba(24, 40, 58, 0.94);
  border: 1px solid var(--line);
}

.crypto-coin-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.crypto-coin-identity img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.crypto-coin-price {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.crypto-coin-price strong {
  font-size: clamp(25px, 3vw, 38px);
}

.crypto-coin-price span {
  font-size: 13px;
  font-weight: 700;
}

.crypto-coin-stats {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.crypto-coin-stats > div {
  min-height: 76px;
  padding: 13px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  background: rgba(24, 40, 58, 0.9);
  border-top: 2px solid #3f83b7;
}

.crypto-coin-stats span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.crypto-coin-chart-card {
  margin-top: 18px;
  background: rgba(24, 40, 58, 0.94);
  border: 1px solid var(--line);
}

.crypto-chart-head {
  min-height: 68px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.crypto-detail-chart {
  height: 430px;
  background:
    linear-gradient(180deg, rgba(88, 167, 230, 0.07), transparent 62%),
    #0c1825;
  border: 0;
  border-top: 1px solid var(--line);
}

.crypto-chart-line {
  fill: none;
  stroke: #58a7e6;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.crypto-chart-area {
  fill: rgba(88, 167, 230, 0.12);
}

@media (max-width: 960px) {
  .topbar {
    height: auto;
    padding: 12px;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero.active,
  .profile-layout,
  .profile-main,
  .uaid-layout,
  .uaid-main,
  .item-detail-layout,
  .item-detail-main,
  .item-detail-product {
    grid-template-columns: 1fr;
  }

  .hero::before {
    right: -18px;
    top: 132px;
    transform: none;
    font-size: clamp(150px, 42vw, 250px);
    color: rgba(147, 206, 247, 0.045);
  }

  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .leaderboard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .inventory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .change-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trade-workspace {
    grid-template-columns: 1fr;
  }

  .trade-divider {
    min-height: 34px;
  }

  .trade-search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crypto-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .crypto-converter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crypto-coin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-change-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-console-head,
  .admin-console-line {
    grid-template-columns: 1fr;
  }

  .uaid-owner-row {
    grid-template-columns: 1fr;
  }

  .uaid-owner-row span:last-child {
    text-align: left;
  }

  .uaid-history {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .profile-stat-bar.timestamp-mode {
    grid-template-columns: 1fr;
  }

  .profile-timestamp-search {
    align-items: stretch;
    flex-direction: column;
  }
  .shell {
    width: min(100vw - 20px, 1180px);
  }

  .uaid-history,
  #uaidCurrentOwner {
    grid-template-columns: 1fr;
  }

  .uaid-owner-card.current {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 128px;
  }

  .item-meta-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .item-market-strip {
    grid-template-columns: 1fr;
  }

  .item-market-strip > div {
    border-right: 0;
  }

  .topbar,
  .page-heading,
  .catalog-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar-input {
    width: 100%;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    gap: 26px;
  }

  .hero::before {
    right: -22px;
    top: 104px;
    font-size: 148px;
    color: rgba(147, 206, 247, 0.038);
  }

  .catalog-grid,
  .inventory-grid,
  .snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trade-search-head {
    align-items: stretch;
    flex-direction: column;
  }

  .trade-search {
    width: 100%;
  }

  .inventory-search {
    width: 100%;
  }

  .change-list {
    grid-template-columns: 1fr;
  }

  .trade-slot-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .trade-search-results {
    grid-template-columns: 1fr;
  }

  .crypto-overview,
  .crypto-converter,
  .crypto-coin-stats {
    grid-template-columns: 1fr;
  }

  .crypto-markets-head,
  .crypto-coin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .crypto-coin-price {
    justify-items: start;
  }

  .admin-change-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-shell-head,
  .admin-tools {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-shell-meta {
    justify-items: start;
    text-align: left;
  }

  .admin-console-head {
    align-items: flex-start;
  }

  .admin-token-row {
    grid-template-columns: 1fr;
  }

  .leaderboard {
    grid-template-columns: 1fr;
  }

  .player-stat-grid {
    grid-template-columns: 1fr;
  }

  .player-card {
    min-height: unset;
  }

  .leader-row,
  .change-row {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 12px;
  }

  .leader-row span:nth-child(3),
  .leader-row span:nth-child(4),
  .change-row span:nth-child(3),
  .change-row span:nth-child(4) {
    grid-column: 2;
  }

  .uaid-main {
    padding: 18px;
  }

  .uaid-stat {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .uaid-stat strong {
    text-align: left;
    font-size: 0.98rem;
  }

  .uaid-image {
    min-height: 220px;
  }

  #uaidValue,
  #uaidCiid {
    font-size: 0.95rem;
  }

  #uaidLastOwner.uaid-last-owner-x {
    font-size: 2.1rem;
    min-height: 34px;
  }
}

@media (max-width: 1400px) {
  .leaderboard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .leaderboard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .leaderboard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .shell {
    width: min(100vw - 14px, 1180px);
  }

  .hero,
  .page-heading {
    gap: 14px;
  }

  .uaid-main {
    padding: 14px;
  }

  .uaid-image {
    min-height: 180px;
  }

  .uaid-owner-row {
    padding: 10px;
  }

  .owner-copy-link {
    font-size: 0.95rem;
  }
}
.owner-index-message {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(240, 162, 74, 0.35);
  border-radius: 10px;
  color: #f4c27f;
  background: rgba(240, 162, 74, 0.08);
}

.detail-owner-index-message {
  margin: 12px 0;
  font-size: 0.82rem;
  line-height: 1.45;
}
