/* Backend-integration additions: tx dialog, offer panels, profile, banners. Loaded after style.css. */
.net-banner { position: sticky; top: var(--nav-h); z-index: 40; text-align: center; font-size: 12.5px; padding: 7px 14px; color: #dff; background: rgba(45, 226, 230, 0.12); border-bottom: 1px solid rgba(45, 226, 230, 0.25); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.net-banner code { background: rgba(255, 255, 255, 0.1); padding: 1px 6px; border-radius: 6px; }
.win-note { margin: 10px 0 0; padding: 9px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: var(--panel); }
.win-note.open { border-color: rgba(53, 224, 143, 0.45); color: var(--green); }
.win-note.closed { border-color: rgba(255, 198, 92, 0.45); color: var(--gold); }
.win-note[hidden] { display: none; }

.usd-sub { color: var(--muted); font-size: 12px; font-weight: 500; margin-left: 4px; }
.card .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }

/* status chips reuse .timer / .pill positions */
.timer.st-mint { color: var(--cyan); }
.timer.st-listed { color: var(--gold); }
.timer.st-minted { color: var(--green); }
.pill.st-mint { color: var(--cyan); border-color: rgba(45, 226, 230, 0.4); }
.pill.st-listed { color: var(--gold); border-color: rgba(255, 198, 92, 0.4); }
.pill.st-minted { color: var(--green); border-color: rgba(53, 224, 143, 0.4); }

/* transaction dialog */
.tx-steps { list-style: none; display: grid; gap: 10px; margin: 16px 0 14px; padding: 0; }
.tx-steps li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--muted); background: var(--panel); border: 1px solid var(--line); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.tx-steps li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.tx-steps li.on { color: #fff; border-color: rgba(255, 47, 122, 0.55); }
.tx-steps li.on::before { border-color: var(--pink); border-top-color: transparent; animation: txspin 0.8s linear infinite; }
.tx-steps li.done { color: #fff; }
.tx-steps li.done::before { border-color: var(--green); background: var(--green); }
.tx-steps li.bad { color: #ff9aa9; border-color: rgba(255, 92, 122, 0.55); }
.tx-steps li.bad::before { border-color: #ff5c7a; background: #ff5c7a; }
.modal .sub.ok { color: var(--green); }
.modal .sub.bad { color: #ff9aa9; }
@keyframes txspin { to { transform: rotate(360deg); } }

/* owner / buyer panels on the artwork page */
.offer-box { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.offer-box > label { font-size: 13px; font-weight: 700; display: block; margin-bottom: 8px; }
.own-offers { margin-top: 16px; display: grid; gap: 8px; }
.own-offers h4 { font-size: 14px; margin-bottom: 2px; }
.own-offer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 11px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; filter: grayscale(0.4); }
.like-inline { user-select: none; }
.skeleton { background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%); background-size: 200% 100%; animation: skel 1.2s linear infinite; border-radius: var(--radius); }
@keyframes skel { to { background-position: -200% 0; } }

/* profile */
.prof-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin: 22px 0 6px; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.prof-head .addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-all; }
.prof-tabs { overflow-x: auto; white-space: nowrap; margin-top: 14px; }
.prof-tabs button { flex: none; }
.cnt { font-style: normal; background: var(--pink); color: #fff; border-radius: 9px; font-size: 11px; padding: 1px 7px; margin-left: 4px; }
.cnt:empty { display: none; }
.prof-row { margin-bottom: 8px; }
.thumb-s { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.dot-new { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); margin-left: 4px; }
@media (max-width: 640px) { .net-banner { top: 0; position: static; } .own-offer { flex-direction: column; align-items: stretch; } .row-btns .btn { flex: 1; } }

/* unread dot on the avatar (the bell is hidden on phones) */
.avatar { position: relative; }
.avatar.has-unread::after { content: ''; position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--pink); border: 2px solid #0b0816; }

/* image placeholders so nothing looks broken while pictures load */
.card .thumb, .col-cover, .mini-row img, .era-chip img { background: linear-gradient(110deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 70%); }

/* ---- text safety: long names/addresses never push layouts around ---- */
h1, h2, h3, h4, p, .by, .muted, .sub, .hint, label, small, b { overflow-wrap: anywhere; }
.card-body h3, .mini-row h4 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body > div, .mini-row > div, .prof-row > div, .own-offer > div { min-width: 0; }
.prof-row, .own-offer { flex-wrap: wrap; gap: 8px 12px; }
.price-row, .price { min-width: 0; }
.btn { white-space: nowrap; }
img { max-width: 100%; }

/* ---- submit page ---- */
.cur { width: auto; height: auto; background: none; border-radius: 0; font-size: 17px; font-weight: 700; color: var(--muted); }
.views .add { font-size: 10.5px; line-height: 1.15; padding: 2px; word-break: keep-all; cursor: pointer; }
.panel { min-width: 0; }
@media (max-width: 560px) {
  .steps { gap: 6px; padding: 18px 0 6px; overflow: visible; justify-content: space-between; }
  .step { gap: 0; font-size: 13px; }
  .step:not(.on) { font-size: 0; }          /* only the current step shows its name */
  .step.on { gap: 8px; }
  .step i { width: 30px; height: 30px; font-size: 13px; }
  .step-line { min-width: 8px; }
  .views { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
}
@media (max-width: 560px) { .stat span { font-size: 10.5px; letter-spacing: .03em; white-space: nowrap; } .stat { padding: 12px 8px; text-align: center; } }

[hidden] { display: none !important; }

.txls { margin-top: 6px; font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.txl { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* no blue tap flash / text-selection flash on touch */
* { -webkit-tap-highlight-color: transparent; }
a, button, input, select, textarea, label, [role="button"], .card, .era-chip, .col-card, .like, .btn, .dock a, .chk { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a, button, [role="button"], .card, .era-chip, .col-card, .like, .btn, .dock a, .seg *, .tabs *, .chip, .step, .wallet-opt { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
a:focus, button:focus, [role="button"]:focus { outline: none; }
a:focus-visible, button:focus-visible { outline: 2px solid rgba(255, 47, 122, .7); outline-offset: 2px; }
.card img, .era-chip img, .col-cover img { -webkit-user-drag: none; user-drag: none; }

/* heads stay in frame: crop images from the upper part, not the middle */
.card .thumb img, .era-chip img, .col-cover img, .minis img, .mini-row img, .feat-main img, .gallery .main img { object-position: 50% 18%; }
.avatar svg { width: 24px; height: 24px; }

/* wallet logos: the real icon sits over the letter badge; if it fails to load the letter shows */
.wallet-opt .wi { position: relative; overflow: hidden; flex: none; }
.wallet-opt .wi img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #14102a; border-radius: 12px; }
