:root {
  color-scheme: dark;
  --bg: #0b1016;
  --panel: #111923;
  --panel-soft: #151f2b;
  --line: #243242;
  --text: #f4f8fc;
  --muted: #8fa1b4;
  --blue: #2c91ff;
  --cyan: #54dbff;
  --green: #72e2a7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(circle at 75% -10%, rgba(44,145,255,.16), transparent 32rem), var(--bg); }
body.dialog-open { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }

.development-banner { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 7px 20px; background: #12273a; border-bottom: 1px solid rgba(84,219,255,.24); color: #a8bbce; font-size: 11px; letter-spacing: .02em; text-align: center; }
.development-banner strong { color: var(--cyan); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }
.site-header { min-height: 76px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 0 max(24px, calc((100vw - 1260px) / 2)); border-bottom: 1px solid rgba(143,161,180,.14); background: rgba(11,16,22,.84); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 760; letter-spacing: -.03em; white-space: nowrap; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand b { color: var(--cyan); }
.nav-tabs { display: flex; align-items: stretch; align-self: stretch; justify-content: center; gap: 6px; }
.tab { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 0 12px; color: var(--muted); cursor: pointer; }
.tab:hover, .tab.active { color: var(--text); }
.tab.active { border-bottom-color: var(--blue); }
.back-link { color: var(--muted); justify-self: center; }
.connection-actions { display: flex; align-items: center; gap: 8px; }
.header-action { min-height: 40px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; color: #c4d1de; background: var(--panel); cursor: pointer; white-space: nowrap; font-size: 12px; font-weight: 750; }
.header-action.primary { border-color: rgba(44,145,255,.45); background: linear-gradient(135deg, #227ee7, #195be4); color: white; }
.ton-mark { display: inline-grid; place-items: center; margin-right: 5px; color: #cce8ff; }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero { padding: 88px 0 68px; max-width: 850px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .15em; margin: 0 0 18px; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(114,226,167,.11); }
h1 { font-size: clamp(44px, 6.6vw, 76px); line-height: 1.02; letter-spacing: -.055em; margin: 0; }
h1 em { font-style: normal; color: var(--muted); }
.hero-copy { color: var(--muted); font-size: 18px; line-height: 1.7; max-width: 700px; margin: 26px 0 30px; }
.search-form { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 12px; max-width: 720px; border: 1px solid var(--line); padding: 8px 9px 8px 18px; border-radius: 16px; background: var(--panel); box-shadow: 0 18px 60px rgba(0,0,0,.22); }
.search-form svg { width: 22px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search-form input { min-width: 0; height: 50px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; }
.search-form button, .primary-link, .primary-button { border: 0; border-radius: 11px; padding: 15px 22px; background: linear-gradient(135deg, var(--blue), #1768ff); color: white; font-weight: 760; cursor: pointer; box-shadow: 0 8px 24px rgba(44,145,255,.25); }
.secondary-button { border: 1px solid var(--line); border-radius: 11px; padding: 14px 21px; background: var(--panel-soft); color: var(--text); font-weight: 760; cursor: pointer; }
.trust-note { margin-top: 18px; color: #718499; font-size: 12px; line-height: 1.5; }
.trust-note strong { color: #9fb0c1; }

.market-section { padding: 10px 0 92px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading .eyebrow { margin-bottom: 8px; }
h2 { font-size: 34px; letter-spacing: -.04em; margin: 0; }
.market-meta { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.ghost-button { border: 1px solid var(--line); border-radius: 9px; background: var(--panel); padding: 9px 13px; cursor: pointer; }
.table-shell { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel); box-shadow: 0 22px 80px rgba(0,0,0,.22); }
.table-head, .listing-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(140px, .55fr) minmax(130px, .45fr); gap: 20px; align-items: center; }
.table-head { padding: 15px 22px; color: #718499; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; background: rgba(255,255,255,.018); }
.listing-row { min-height: 82px; padding: 14px 22px; border-top: 1px solid var(--line); transition: background .18s ease, transform .18s ease; }
.listing-row:hover { background: var(--panel-soft); }
.collectible-cell { display: flex; align-items: center; gap: 14px; min-width: 0; }
.collectible-avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; flex: 0 0 auto; background: linear-gradient(145deg, rgba(44,145,255,.24), rgba(84,219,255,.08)); border: 1px solid rgba(84,219,255,.2); color: var(--cyan); font-weight: 850; }
.collectible-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.collectible-cell span:last-child { min-width: 0; }
.collectible-cell strong, .collectible-cell small, .price-cell strong, .price-cell small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collectible-cell strong { font-size: 16px; }
.collectible-cell small, .price-cell small { color: var(--muted); margin-top: 5px; font-size: 12px; }
.price-cell strong { font-size: 15px; }
.price-cell i { color: var(--cyan); font-size: 10px; font-style: normal; letter-spacing: .08em; }
.closing-cell { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.closing-cell b { color: var(--blue); font-size: 27px; font-weight: 300; }
.listing-list.loading { opacity: .55; }
.empty-state { padding: 56px 22px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); }
.error-state { color: #ff9b9b; }
.status { color: #64778b; font-size: 12px; margin: 14px 4px 0; }

.service-section { padding: 4px 0 96px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card { position: relative; min-height: 300px; display: flex; flex-direction: column; align-items: flex-start; padding: 34px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: linear-gradient(145deg, rgba(44,145,255,.09), transparent 60%), var(--panel); }
.service-card::after { content: ""; position: absolute; width: 210px; height: 210px; right: -90px; top: -90px; border: 1px solid rgba(84,219,255,.11); border-radius: 50%; box-shadow: 0 0 0 30px rgba(84,219,255,.025), 0 0 0 60px rgba(84,219,255,.018); }
.service-number { color: var(--cyan); font-size: 12px; font-weight: 850; letter-spacing: .15em; }
.service-card h2 { margin: 56px 0 12px; font-size: 28px; }
.service-card p { min-height: 48px; margin: 0 0 28px; color: var(--muted); line-height: 1.6; }
.service-card .primary-button { margin-top: auto; position: relative; z-index: 1; }
.service-card .primary-button b { margin-left: 12px; }
.service-how { margin-top: 16px; padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: rgba(17,25,35,.72); }
.service-how h2 { margin-bottom: 10px; }
.service-how p:last-child { max-width: 780px; color: var(--muted); line-height: 1.7; }

.item-main { padding: 64px 0 100px; }
.item-card { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(360px, 1.1fr); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--panel); min-height: 590px; }
.item-image-wrap { display: grid; place-items: center; min-height: 520px; padding: 36px; background: radial-gradient(circle, rgba(44,145,255,.16), transparent 58%), #0e151d; }
.item-image-wrap img { width: 100%; max-width: 440px; max-height: 500px; object-fit: contain; border-radius: 18px; }
.item-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 6vw, 78px); }
.item-content h1 { font-size: clamp(38px, 5vw, 64px); }
.item-description { color: var(--muted); line-height: 1.7; }
.item-price { margin: 28px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.item-price span, .item-price strong { display: block; }
.item-price span { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.item-price strong { font-size: 28px; }
.item-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.primary-link { display: inline-block; align-self: flex-start; margin-top: 16px; }
.skeleton-card { opacity: .68; }

.stub-dialog { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.stub-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(2,6,10,.78); backdrop-filter: blur(10px); cursor: default; }
.stub-card { position: relative; width: min(460px, 100%); padding: 36px; border: 1px solid #2f4154; border-radius: 22px; background: linear-gradient(145deg, #172433, #0f1720); box-shadow: 0 30px 120px rgba(0,0,0,.55); }
.stub-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 26px; border-radius: 17px; background: rgba(44,145,255,.14); color: var(--cyan); font-size: 30px; }
.stub-card h2 { margin-bottom: 12px; }
.stub-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.65; margin-bottom: 26px; }

footer { width: min(1180px, calc(100% - 40px)); min-height: 88px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(143,161,180,.14); color: #64778b; font-size: 12px; }
footer div { display: flex; gap: 22px; }
footer a:hover { color: var(--text); }
.legal { max-width: 760px; padding: 70px 0 120px; }
.legal h1 { font-size: 50px; }
.legal h2 { font-size: 24px; margin-top: 38px; }
.legal p, .legal li { color: var(--muted); line-height: 1.75; }

@media (max-width: 760px) {
  .development-banner { align-items: flex-start; flex-direction: column; gap: 2px; }
  .site-header { height: auto; min-height: 70px; grid-template-columns: 1fr auto; gap: 10px; padding: 14px 20px; top: 0; }
  .nav-tabs { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; justify-content: flex-start; margin: 0 -20px -14px; padding: 0 20px; }
  .tab { min-height: 46px; }
  .connection-actions .header-action:first-child { display: none; }
  .header-action { padding: 0 11px; }
  main { width: min(100% - 28px, 1180px); }
  .hero { padding: 58px 0 48px; }
  h1 { font-size: 45px; }
  .hero-copy { font-size: 16px; }
  .search-form { grid-template-columns: 22px 1fr; }
  .search-form button { grid-column: 1 / -1; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .table-head { display: none; }
  .listing-row { grid-template-columns: 1fr auto; gap: 10px; padding: 15px; }
  .price-cell { text-align: right; }
  .closing-cell { grid-column: 1 / -1; padding-left: 60px; }
  .item-card { grid-template-columns: 1fr; }
  .item-image-wrap { min-height: 360px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 260px; }
  footer { align-items: flex-start; flex-direction: column; padding: 24px 0; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .connection-actions .header-action:first-child { display: none; }
  .tab { padding: 0 7px; font-size: 12px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
