.hero-dots {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 10px;
  display: flex;
  gap: 5px;
}
.hero-dots button {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: #ffffff80;
}
.hero-dots button.active { background: #fff; }
.wallet-connect {
  min-height: 58px;
  padding: 8px 2px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  font-weight: 750;
}
.payment-method { grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); }
.deposit-address { display: inline-block; overflow-wrap: anywhere; user-select: all; font-family: ui-monospace, monospace; margin: 6px 0; }
.deposit-detail { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }

:root { --ink: #141519; --muted: #777b84; --line: #edf0f3; --panel: #f3f4f6; --blue: #3065ed; }
html, body { background: #f3f6fc; }
html, body, .market-detail-body, .filter-sheet-body, #language-dialog, #deposit-dialog { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, .market-detail-body::-webkit-scrollbar, .filter-sheet-body::-webkit-scrollbar, #language-dialog::-webkit-scrollbar, #deposit-dialog::-webkit-scrollbar { display: none; }
.app { --bottom-safe-area: env(safe-area-inset-bottom); padding-bottom: calc(84px + var(--bottom-safe-area)); }
.telegram-fullscreen .app { --bottom-safe-area: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px)); padding-top: calc(var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px)) + var(--tg-content-safe-area-inset-top, 0px)); }
.bottom-nav { height: calc(70px + var(--bottom-safe-area)); padding-bottom: var(--bottom-safe-area); }
.bottom-nav a { gap: 4px; }
.bottom-nav a svg { display: block; width: 24px; height: 24px; flex: none; }
.bottom-nav a b { line-height: 16px; }
.app { box-shadow: 0 7px 45px rgba(29, 38, 63, .07); }
.topbar { height: 76px; padding: 0 20px; border-bottom: 0; }
.topbar-actions { gap: 10px; }
.brand { font-size: 19px; font-weight: 850; }
.brand-mark, .brand-mark.small { background: #111318; border-radius: 8px; }
.topbar .round-button { width: 42px; height: 42px; font-size: 24px; }
.topbar .balance-button { display: none; }
.header-wallet { flex: none; border: 0; border-radius: 8px; height: 44px; padding: 0 16px; background: var(--blue); color: #fff; font-weight: 800; white-space: nowrap; cursor: pointer; }
.header-menu { font-size: 20px !important; }
.discovery-nav { display: flex; gap: 10px; overflow-x: auto; margin: 0 -20px; padding: 5px 20px 16px; scrollbar-width: none; background: #fff; }
.discovery-nav::-webkit-scrollbar, .collection-rail::-webkit-scrollbar { display: none; }
.discovery-nav a { flex: none; height: 43px; display: inline-flex; align-items: center; gap: 8px; padding: 0 17px; border: 1px solid #e5e8ec; border-radius: 24px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 800; white-space: nowrap; }
.discovery-nav a span { font-size: 21px; line-height: 1; }
.discovery-nav a.active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.collection-art { font-size: 34px; font-weight: 850; }
.market-art small { max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-meta > span { display: flex; align-items: center; min-width: 0; gap: 5px; }
#market-source { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#market-clear-collection { width: 26px; height: 26px; flex: none; border: 0; background: transparent; font-size: 22px; color: var(--ink); cursor: pointer; }
.market-load-more { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 48px; margin: 26px 0 8px; padding: 10px 16px; border: 1px solid #dce4ef; border-radius: 7px; background: #f5f8fd; color: #245cc9; font-size: 14px; font-weight: 800; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, transform .18s ease; }
.market-load-more:hover { background: #edf3ff; border-color: #bed1f5; }
.market-load-more:active { transform: scale(.99); }
.market-load-more:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.market-load-more[aria-busy=true] { background: #edf3ff; cursor: progress; }
.market-more-icon { font-size: 18px; font-weight: 500; line-height: 1; }
.market-more-spinner { width: 17px; height: 17px; flex: none; border-width: 2px; border-color: #7fa7f2 transparent #7fa7f2 #7fa7f2; }
.market-just-added { animation: market-item-enter .36s ease-out both; }
@keyframes market-item-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .market-load-more { transition: none; } .market-just-added { animation: none; } }
.detail-facts strong { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.market-checkout-note { margin: 12px 0 0; padding: 12px; border-radius: 6px; background: var(--panel); color: var(--muted); font-size: 13px; }
.detail-art img { width: 100%; height: 100%; display: block; object-fit: contain; }
.view { padding: 6px 20px 36px; }
.hero-feature { width: 100%; min-width: 0; }
.hero { width: 100%; height: auto; max-height: 440px; aspect-ratio: 1.07; position: relative; border-radius: 8px; background: #dbc0ef; overflow: hidden; }
.hero::after { display: none; }
.hero img { position: static; width: 100%; height: 100%; display: block; opacity: 1; object-fit: cover; object-position: center; }
.hero-copy { position: static; z-index: auto; width: 100%; color: var(--ink); display: flex; flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 14px; padding-top: 16px; }
.hero-copy > div { min-width: 0; }
.hero-badge { display: none; }
.hero-copy h1 { margin: 0 0 5px; font-size: 23px; line-height: 1.15; font-weight: 850; overflow-wrap: anywhere; }
.hero-copy p { margin: 0; color: #696e77; font-size: 14px; line-height: 1.45; }
.hero-copy button { flex: none; height: 34px; margin-top: 0; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--blue); font-size: 12px; font-weight: 800; cursor: pointer; }
.hero-dots { position: static; justify-content: center; padding: 13px 0 0; gap: 7px; min-height: 20px; }
.hero-dots button { width: 7px; height: 7px; background: #b8bdc5; }
.hero-dots button.active { width: 20px; border-radius: 5px; background: #17191f; }
.home-section { padding-top: 34px; }
.section-title { margin-bottom: 16px; }
.section-title h2 { font-size: 25px; line-height: 1.15; font-weight: 850; }
.text-button { color: var(--ink); font-size: 13px; }
.collection-rail { grid-auto-columns: minmax(160px, 46%); gap: 13px; margin: 0 -20px; padding: 0 20px 7px; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; }
.collection-card { scroll-snap-align: start; }
.collection-art { height: auto; aspect-ratio: 1; border-radius: 8px; font-size: 70px; }
.collection-art { position: relative; }
.collection-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.collection-art.has-image .collection-initials { display: none; }
.collection-card strong { font-size: 15px; font-weight: 800; }
.collection-card small { font-size: 12px; }
.services-section { scroll-margin-top: 88px; }
.category-tabs, .market-tabs { margin: 0 -20px; padding: 0 20px 12px; }
.category-tabs button, .market-tabs button { height: 41px; background: #fff; border: 1px solid #e5e8ec; color: var(--ink); }
.category-tabs button.active, .market-tabs button.selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.product-list { margin: 0 -20px; padding: 0 20px 5px; scroll-padding-inline: 20px; }
.product-option { min-height: 96px; }
.purchase-panel { margin: 28px -20px 0; padding: 26px 20px 30px; border-radius: 0; background: #f7f8fa; }
#quantity { appearance: textfield; -moz-appearance: textfield; }
#quantity::-webkit-inner-spin-button, #quantity::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.primary, .balance-band button { background: var(--blue); }
.market-grid { gap: 20px 12px; }
.market-art { background: var(--accent, #f2f4f7); }
.market-art img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; opacity: 0; }
.market-art.has-image img { opacity: 1; }
.market-art.is-loading { animation: market-pulse 1.25s ease-in-out infinite alternate; }
.market-art .market-image-fallback { padding: 12px; color: #777b84; font-size: 13px; text-align: center; }
.market-art.has-image small { display: none; }
.market-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 66px; color: var(--muted); font-size: 14px; }
.market-loading[hidden] { display: none; }
.market-spinner { width: 32px; height: 32px; border: 3px solid #dbe2ec; border-top-color: var(--blue); border-radius: 50%; animation: market-spin .8s linear infinite; }
.market-skeleton { min-width: 0; }
.market-skeleton-art { width: 100%; aspect-ratio: 1; border-radius: 8px; background: #e9edf2; }
.market-skeleton-line { height: 14px; margin-top: 12px; border-radius: 4px; background: #e9edf2; }
.market-skeleton-line.short { width: 60%; height: 12px; margin-top: 8px; }
.market-skeleton-art, .market-skeleton-line { animation: market-pulse 1.25s ease-in-out infinite alternate; }
.detail-art { font-size: 14px; color: var(--muted); }
.market-detail-dialog { width: min(460px,calc(100% - 24px)); max-height: min(90dvh,800px); overflow: hidden; }
.market-detail-dialog form { display: flex; flex-direction: column; max-height: min(90dvh,800px); padding: 0; }
.market-detail-dialog .dialog-head { flex: none; align-items: flex-start; gap: 16px; margin: 0; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.market-detail-dialog .dialog-head > div { min-width: 0; }
.market-detail-dialog .dialog-head h2 { font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.market-detail-dialog .dialog-head button { flex: none; width: 34px; height: 34px; border-radius: 6px; font-size: 22px; }
.market-detail-body { min-height: 0; overflow-y: auto; padding: 18px 20px 20px; }
.market-detail-dialog .detail-art { position: relative; width: 100%; height: min(50vw,240px); min-height: 180px; overflow: hidden; aspect-ratio: auto; background: #f0f3f7; }
.market-detail-dialog .detail-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.market-detail-dialog .detail-facts { display: block; margin: 18px 0 0; }
.detail-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.detail-price-row span { color: var(--muted); font-size: 13px; }
.detail-price-row strong { color: var(--ink); font-size: 20px; text-align: right; }
.detail-fact-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.45; }
.detail-fact-row span { color: var(--muted); }
.detail-fact-row strong { min-width: 0; font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.detail-fact-row:has(> [hidden]) { display: none; }
.detail-fact-row:has(#market-detail-seller), .detail-fact-row:has(#market-detail-address) { display: block; }
.detail-fact-row #market-detail-seller, .detail-fact-row #market-detail-address { display: block; margin-top: 6px; color: #555b65; font-family: ui-monospace, monospace; font-size: 11px; font-weight: 500; text-align: left; }
.market-detail-dialog .market-checkout-note { margin-top: 16px; line-height: 1.45; }
@keyframes market-spin { to { transform: rotate(360deg); } }
@keyframes market-pulse { to { background: #f4f6f8; } }
@media (prefers-reduced-motion: reduce) { .market-spinner, .market-art.is-loading, .market-skeleton-art, .market-skeleton-line { animation: none; } }
.market-card h3 { font-size: 15px; }
.market-price { align-items: flex-start; }
.market-price strong { font-size: 12px; white-space: nowrap; }
.bottom-nav { width: min(560px, 100%); }
@media (max-width: 390px) {
  .topbar { padding: 0 15px; }
  .topbar-actions { gap: 6px; }
  .brand strong { display: none; }
  .header-wallet { padding: 0 12px; font-size: 13px; }
  .hero-copy h1 { font-size: 20px; }
  .hero-copy button { max-width: 105px; white-space: normal; height: auto; min-height: 34px; line-height: 1.2; }
}

/* Market navigation and listing layouts */
.market-view { padding-top: 8px; }
.market-mode { display: flex; gap: 8px; padding: 9px 0 20px; }
.market-mode button { height: 42px; min-width: 105px; padding: 0 16px; background: #f4f5f7; border: 1px solid transparent; border-radius: 8px; color: #505661; font-weight: 800; cursor: pointer; }
.market-mode button.selected { background: #fff; border-color: #17191e; box-shadow: inset 0 0 0 1px #17191e; color: #17191e; }
.market-tabs { gap: 0; margin-bottom: 16px; border-bottom: 1px solid #e6e8eb; padding-bottom: 0; }
.market-tabs button, .market-tabs button.selected { flex: none; height: 46px; padding: 0 20px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: #fff; color: #888d96; font-size: 15px; font-weight: 750; }
.market-tabs button.selected { border-bottom-color: #17191e; color: #17191e; }
.market-tools { grid-template-columns: minmax(0,1fr) 44px auto; align-items: center; gap: 8px; margin-bottom: 10px; }
.market-tools .search { height: 44px; border-radius: 7px; background: #f3f4f6; }
.market-tools .search input { min-width: 0; height: 44px; font-size: 14px; }
.market-tools .round-button { width: 44px; height: 44px; border-radius: 7px; background: #f3f4f6; }
.market-tools .round-button.active { color: #3065ed; }
.market-filter-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 76px; height: 44px; padding: 0 10px; border: 1px solid transparent; border-radius: 7px; background: #f3f4f6; color: #20242b; font-size: 13px; font-weight: 750; cursor: pointer; }
.market-filter-button span:first-child { font-size: 20px; line-height: 1; }
.market-filter-button.active { border-color: #b7cdfc; background: #ecf3ff; color: #245cc9; }
.market-filter-button:disabled { opacity: .55; cursor: default; }
.market-filter-button b { display: grid; place-items: center; min-width: 18px; height: 18px; border-radius: 50%; background: #3065ed; color: #fff; font-size: 11px; }
.market-active-filters { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 10px; scrollbar-width: none; }
.market-active-filters[hidden] { display: none; }
.market-active-filters button { flex: none; max-width: 190px; height: 30px; overflow: hidden; padding: 0 10px; border: 1px solid #cbd9f8; border-radius: 6px; background: #f2f6ff; color: #245cc9; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.market-meta { height: 39px; border-top: 1px solid #eff0f2; }
.market-meta strong { color: #373b42; }
.market-grid { gap: 18px 12px; }
.market-art { border-radius: 8px; }
.market-art em { position: absolute; left: 7px; bottom: 8px; max-width: calc(100% - 14px); padding: 4px 6px; border-radius: 4px; background: #202329a6; color: #fff; font-size: 10px; font-style: normal; font-weight: 750; }
.market-art.has-image em { z-index: 1; }
.market-card h3 { margin: 8px 0 8px; font-size: 14px; }
.market-card-facts { display: flex; justify-content: space-between; gap: 5px; color: #7a7e86; font-size: 11px; }
.market-card-facts span { min-width: 0; }
.market-card-facts strong { display: block; margin-top: 3px; overflow: hidden; color: #17191e; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.market-list { display: block; border-top: 1px solid #e4e6e8; }
.market-list-head { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(90px,1fr); gap: 10px; padding: 9px 2px; color: #8a8f98; font-size: 11px; font-weight: 800; }
.market-list-head.rental-row { grid-template-columns: minmax(0,1.2fr) minmax(78px,.9fr) minmax(72px,.8fr); }
.market-list-head span:not(:first-child) { text-align: right; }
.market-row { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(90px,1fr); align-items: center; width: 100%; min-height: 72px; gap: 10px; padding: 9px 2px; border: 0; border-bottom: 1px solid #e4e6e8; background: #fff; color: #17191e; text-align: left; cursor: pointer; }
.market-row.rental-row { grid-template-columns: minmax(0,1.2fr) minmax(78px,.9fr) minmax(72px,.8fr); }
.market-row-name, .market-row-price { min-width: 0; }
.market-row-name strong, .market-row-price strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.market-row-name small, .market-row-price small { display: block; margin-top: 5px; color: #7c818b; font-size: 11px; }
.market-row-name small { width: fit-content; padding: 2px 5px; border-radius: 3px; background: #e8f6ee; color: #20985c; }
.market-row-price { text-align: right; }
.market-row-duration { overflow: hidden; font-size: 12px; font-weight: 750; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.market-list-head { grid-template-columns: minmax(0,1.3fr) minmax(0,.9fr) minmax(0,.9fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid #e4e6e8; }
.market-row, .market-row.rental-row { grid-template-columns: minmax(0,1.3fr) minmax(0,.9fr) minmax(0,.9fr); min-height: 82px; gap: 12px; padding: 13px 0; }
.market-list-head.sale-row, .market-row.sale-row { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); }
.market-row-name strong { font-size: 14px; }
.market-row-name small { margin-top: 7px; padding: 3px 6px; font-size: 10px; font-weight: 750; }
.market-row-price small, .market-row-extra small { display: block; margin-bottom: 5px; color: #898e97; font-size: 11px; font-weight: 650; }
.market-row-price strong, .market-row-extra strong { display: block; overflow: hidden; color: #20242b; font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.market-row-extra { min-width: 0; text-align: right; }
.market-row:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
@media (min-width: 481px) {
  .market-row-price small, .market-row-extra small { display: none; }
}
.market-list .market-skeleton { display: none; }
.market-empty { padding: 50px 20px; border-top: 1px solid #e8eaed; }
.market-empty > span { font-size: 34px; }
.market-empty h2 { max-width: 340px; margin: 12px auto 0; line-height: 1.3; }
.market-empty p { max-width: 380px; margin: 9px auto 0; color: #6f7580; font-size: 13px; line-height: 1.55; }
.market-empty button { min-height: 40px; margin-top: 20px; padding: 0 20px; border: 0; border-radius: 7px; background: #3065ed; color: #fff; font-weight: 750; cursor: pointer; }
.market-filter-dialog { position: fixed; inset: auto 0 0; width: min(560px,100%); max-width: 100%; max-height: min(85dvh,780px); margin: 0 auto; border: 0; border-radius: 8px 8px 0 0; background: #fff; box-shadow: 0 -12px 40px #11182730; }
.market-filter-dialog[open] { display: flex; flex-direction: column; }
.market-filter-dialog::backdrop { background: #10152073; }
.filter-sheet-head { display: flex; align-items: center; justify-content: space-between; flex: none; padding: 20px 20px 15px; border-bottom: 1px solid #e9ebef; }
.filter-sheet-head h2 { margin: 4px 0 0; font-size: 21px; line-height: 1.2; }
.filter-sheet-head button { width: 34px; height: 34px; border: 0; border-radius: 6px; background: #f0f1f3; color: #22252b; font-size: 24px; line-height: 1; cursor: pointer; }
.filter-sheet-body { min-height: 0; overflow-y: auto; padding: 18px 20px 24px; scroll-padding-bottom: 24px; }
.filter-section { padding: 0 0 20px; }
.filter-section + .filter-section { padding-top: 20px; border-top: 1px solid #e9ebef; }
.filter-section:last-child { padding-bottom: 0; }
.filter-section h3, .filter-trait-group > span { display: block; margin: 0 0 10px; color: #333941; font-size: 14px; font-weight: 800; }
.filter-section select, .filter-trait-group input { width: 100%; height: 43px; border: 1px solid #e0e4ea; border-radius: 7px; background: #f7f8fa; color: #2e3440; padding: 0 12px; outline: none; }
.filter-section select:focus, .filter-trait-group input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #2861e926; }
.filter-price-range { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.filter-price-range label { margin: 0; color: #858b95; font-size: 12px; font-weight: 700; }
.filter-price-range input { height: 43px; margin-top: 6px; background: #f7f8fa; appearance: textfield; -moz-appearance: textfield; }
.filter-price-range input::-webkit-inner-spin-button, .filter-price-range input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.filter-trait-group { margin: 0; }
.filter-trait-group + .filter-trait-group { margin-top: 16px; }
.filter-sheet-actions { display: grid; grid-template-columns: minmax(96px,.35fr) minmax(0,1fr); gap: 10px; flex: none; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #e9ebef; background: #fff; }
.filter-sheet-actions button { min-height: 46px; border: 1px solid #e0e4ea; border-radius: 7px; background: #fff; color: #333941; font-weight: 800; cursor: pointer; }
.filter-sheet-actions button:last-child { border-color: #3065ed; background: #3065ed; color: #fff; }
@media (max-width: 390px) {
  .market-mode button { min-width: 100px; }
  .market-tabs button, .market-tabs button.selected { padding: 0 16px; font-size: 14px; }
  .market-tools { grid-template-columns: 44px minmax(0,1fr); }
  .market-tools .search { grid-column: 1 / -1; }
  .market-filter-button { width: 100%; }
  .market-tools.no-filter { grid-template-columns: minmax(0,1fr) 44px; }
  .market-tools.no-filter .search { grid-column: 1; }
  .market-tools.no-filter #market-sort { grid-column: 2; }
  .market-tools.no-actions { grid-template-columns: minmax(0,1fr); }
  .market-tools.no-actions .search { grid-column: 1; }
}
.market-tools.no-filter { grid-template-columns: minmax(0,1fr) 44px; }
.market-tools.no-actions { grid-template-columns: minmax(0,1fr); }
@media (max-width: 480px) {
  .market-list-head { display: none; }
  .market-row, .market-row.rental-row { grid-template-columns: minmax(0,1fr) minmax(110px,auto); gap: 9px 12px; min-height: 100px; }
  .market-row.sale-row { grid-template-columns: minmax(0,1fr) minmax(110px,auto); min-height: 76px; }
  .market-row-price { align-self: start; }
  .market-row-extra { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 9px; border-top: 1px solid #f0f1f3; text-align: left; }
  .market-row-extra small { flex: none; margin: 0; }
  .market-row-extra strong { max-width: 72%; text-align: right; }
}

/* Shared interaction and spacing refinements */
:root { --line: #e7eaf0; --panel: #f4f6f9; --blue: #2861e9; }
body, button, input { line-height: 1.4; }
button { transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease; }
button:active:not(:disabled) { transform: scale(.98); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
button:disabled { cursor: not-allowed; }
.app { background: #fff; }
.topbar { height: 68px; }
.header-wallet { height: 42px; font-size: 13px; }
.discovery-nav { padding-bottom: 12px; }
.discovery-nav a { height: 40px; font-size: 13px; }
.view { padding-top: 4px; }
.hero { max-height: 340px; aspect-ratio: 1.35; background: #e8e5fa; }
.hero-copy { align-items: center; padding-top: 15px; }
.hero-copy h1 { font-size: 22px; line-height: 1.2; }
.hero-copy button { min-height: 40px; height: auto; max-width: 124px; padding: 7px 12px; line-height: 1.2; }
.home-section { padding-top: 29px; }
.section-title h2 { font-size: 22px; line-height: 1.2; }
.collection-rail { grid-auto-columns: minmax(148px,43%); }
.collection-art { font-size: 34px; }
.collection-card strong { margin-top: 10px; white-space: normal; line-height: 1.25; }
.collection-card small { line-height: 1.4; }
.category-tabs { padding-bottom: 15px; }
.category-tabs button { min-height: 42px; padding: 0 16px; }
.product-list { grid-auto-columns: minmax(245px,74%); gap: 10px; }
.product-option { min-height: 122px; padding: 15px; flex-direction: column; align-items: stretch; justify-content: space-between; background: #fff; }
.product-option.selected { background: #f7faff; }
.product-option strong:first-child { display: -webkit-box; overflow: hidden; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.3; }
.product-option small { max-width: 100%; line-height: 1.35; }
.product-option > strong:last-child { align-self: flex-end; font-size: 15px; }
.purchase-panel { margin-top: 25px; padding-top: 23px; background: #fff; border-top: 8px solid #f2f4f8; }
.order-summary { margin-bottom: 16px; }
.order-summary strong { font-size: 23px; line-height: 1.2; }
.purchase-panel label { margin-top: 17px; color: #3d434d; }
.purchase-panel input { background: #fff; }
.payment-method { min-height: 47px; grid-template-columns: repeat(auto-fit,minmax(104px,1fr)); gap: 4px; background: #edf0f5; }
.payment-method button { min-width: 0; height: auto; min-height: 39px; padding: 7px 10px; white-space: normal; line-height: 1.2; }
.payment-method button:disabled { opacity: .55; }
.payment-method button.selected:disabled { background: #fff; color: #767d89; opacity: 1; }
.quantity-row { align-items: center; margin: 18px 0; }
.quantity-row label { margin: 0; }
.stepper { grid-template-columns: 40px 64px 40px; gap: 6px; }
.stepper .round-button:disabled { opacity: .4; }
.primary { min-height: 50px; height: auto; padding: 12px 16px; font-size: 15px; }
.primary:disabled { background: #e9edf4; color: #7b8492; opacity: 1; }
.market-mode { padding-bottom: 15px; }
.market-tools .search, .market-tools .round-button, .market-filter-button { background: #f4f6f9; }
.market-card { text-align: left; }
.market-card h3 { display: -webkit-box; min-height: 36px; overflow: hidden; white-space: normal; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.market-card-facts strong { font-size: 14px; }
.profile-head { padding-top: 17px; }
.balance-band { margin-bottom: 19px; }
.wallet-connect { margin-bottom: 15px; }
.profile-view .section-title h2 { font-size: 21px; }
.profile-view .home-section { padding-top: 23px; }
.orders-list .empty-state { padding: 15px 0 22px; text-align: left; }
.orders-list .empty-state p { margin: 0; font-size: 13px; }
.profile-links { margin-top: 10px; }
.profile-links a, .profile-links button { min-height: 52px; align-items: center; }
.language-grid button.selected { border-color: var(--blue); background: #eef4ff; color: #1c54cc; font-weight: 800; }
#language-dialog, #deposit-dialog { max-height: min(85dvh,720px); overflow-y: auto; }
#deposit-dialog .channel { border-radius: 7px; }
.toast { width: max-content; line-height: 1.4; text-align: center; }
input:disabled { background: #f4f6f9; color: #8a909b; }
.market-list { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; border-top: 0; }
.market-list::-webkit-scrollbar { display: none; }
.market-list-head.rental-row, .market-row.rental-row { display: grid; width: max-content; min-width: 100%; grid-template-columns: 145px 108px 112px 160px; gap: 0; }
.market-list-head.rental-row > span, .market-row.rental-row > span { min-width: 0; padding: 0 9px; }
.market-list-head.rental-row > span:first-child, .market-row.rental-row > span:first-child { position: sticky; left: 0; z-index: 1; padding-left: 0; background: inherit; box-shadow: none; }
html[dir=rtl] .market-list-head.rental-row > span:first-child, html[dir=rtl] .market-row.rental-row > span:first-child { left: auto; right: 0; }
.market-list-head.rental-row > span:not(:first-child), .market-row.rental-row > span:not(:first-child) { text-align: right; }
.market-list-head.rental-row { min-height: 35px; align-items: center; padding: 8px 0; border: 0; border-radius: 6px; background: #f4f6f9; }
.market-row.rental-row { min-height: 72px; margin-top: 2px; padding: 11px 0; border: 0; background: #fff; }
.market-row.rental-row:nth-of-type(even) { background: #f8fafc; }
.market-row.rental-row .market-row-price small, .market-row.rental-row .market-row-extra small { display: none; }
.market-row.rental-row .market-row-extra { display: block; grid-column: auto; padding: 0 9px; border: 0; }
.market-row.rental-row .market-row-extra strong { max-width: none; font-size: 12px; white-space: normal; text-align: right; }
.market-row-owner { min-width: 0; }
.market-row-owner strong { display: block; overflow: hidden; color: #20242b; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.market-row.rental-row .market-row-name strong { font-size: 12px; }
.market-row.rental-row .market-row-name small { margin-top: 5px; }
.number-restricted-badge { display: inline-flex; width: fit-content; align-items: center; min-height: 20px; margin-top: 6px; padding: 2px 7px; border: 1px solid #eab7ad; border-radius: 4px; background: #fff0ed; color: #ad3424; font-size: 10px; font-weight: 800; line-height: 1.2; }
.number-restricted-badge[hidden] { display: none; }
.market-row-name .number-restricted-badge { margin-left: 5px; vertical-align: middle; }
.market-detail-dialog .number-restricted-badge { margin-top: 9px; font-size: 11px; }
@media (max-width: 390px) {
  .hero-copy { align-items: flex-start; flex-direction: column; gap: 10px; }
  .hero-copy button { max-width: none; white-space: nowrap; }
  .product-list { grid-auto-columns: minmax(230px,79%); }
}
@media (max-width: 360px) {
  .header-wallet { padding: 0 10px; font-size: 12px; }
  .topbar-actions { gap: 5px; }
  .topbar .round-button { width: 38px; height: 38px; }
  .balance-band { grid-template-columns: minmax(0,1fr); }
  .balance-band strong { font-size: 22px; white-space: nowrap; }
  .balance-band button { grid-row: 3; grid-column: 1; justify-self: start; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
}
