:root {
      --bg-0: #050505;
      --bg-1: #0a0a0a;
      --panel: rgba(15, 15, 15, 0.88);
      --panel-soft: rgba(20, 20, 20, 0.7);
      --stroke: rgba(255, 255, 255, 0.16);
      --text: #ececec;
      --muted: #a0a0a0;
      --accent: #d8d8d8;
      --mp-accent: #c44f63;
      --mp-accent-mid: #8f3545;
      --mp-accent-deep: #5c242f;
      --mp-card-head: #6d2a36;
    }

    * { box-sizing: border-box; }

    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
    html, body { margin: 0; padding: 0; }

    @media (prefers-reduced-motion: no-preference) {
      html {
        scroll-behavior: smooth;
      }
    }

    .section[id],
    #your-mint {
      scroll-margin-top: 1.5rem;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      color: var(--text);
      background:
        radial-gradient(900px 520px at 33% 0%, rgba(255, 255, 255, 0.06), transparent 70%),
        radial-gradient(760px 420px at 68% 5%, rgba(255, 255, 255, 0.03), transparent 74%),
        linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
      min-height: 100vh;
      position: relative;
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        repeating-linear-gradient(
          0deg,
          rgba(255, 255, 255, 0.018),
          rgba(255, 255, 255, 0.018) 1px,
          transparent 1px,
          transparent 4px
        );
      background-size: 60px 60px, 60px 60px, auto;
      opacity: 0.42;
      z-index: 0;
    }

    body::after {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background: radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.08), transparent 55%);
      z-index: 0;
    }

    .container {
      width: min(1060px, 92vw);
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }

    .topbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 0 12px;
      border-bottom: 1px solid rgba(133, 168, 200, 0.1);
    }

    .brand {
      font-weight: 800;
      letter-spacing: 0.06em;
      font-size: 1.2rem;
      color: var(--text);
      text-shadow: none;
    }

    .badge {
      font-size: 0.68rem;
      color: var(--muted);
      padding: 7px 11px;
      border: 1px solid var(--stroke);
      border-radius: 999px;
      background: var(--panel-soft);
      backdrop-filter: blur(4px);
    }

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

    .nav a {
      color: var(--muted);
      text-decoration: none;
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      transition: color 0.2s ease;
    }

    .nav a:hover { color: var(--text); }

    .hero {
      display: grid;
      grid-template-columns: 0.9fr 1.1fr;
      gap: 26px;
      align-items: center;
      min-height: calc(82vh - 80px);
      padding: 18px 0 56px;
    }

    .eyebrow {
      display: inline-block;
      color: var(--muted);
      font-size: 2rem;
      letter-spacing: 0.03em;
      font-family: "Times New Roman", serif;
      font-style: italic;
      text-transform: uppercase;
      margin-bottom: 10px;
    }

    .hero h1 {
      margin: 0 0 12px;
      font-size: clamp(3.8rem, 10vw, 7rem);
      line-height: 0.92;
      letter-spacing: 0.01em;
      text-transform: uppercase;
    }

    .gradient-text {
      color: var(--text);
    }

    .hero p {
      color: var(--muted);
      max-width: 54ch;
      margin: 0 0 18px;
      line-height: 1.35;
      font-size: 0.72rem;
      font-family: Consolas, monospace;
    }

    .btn {
      text-decoration: none;
      border: 1px solid var(--stroke);
      padding: 9px 13px;
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text);
      background: var(--panel-soft);
      transition: 0.2s ease;
    }

    .btn:hover {
      border-color: rgba(255, 255, 255, 0.52);
      color: var(--text);
    }

    .btn-primary {
      background: rgba(255, 255, 255, 0.11);
      border-color: rgba(255, 255, 255, 0.5);
      color: var(--text);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    }

    button.btn:disabled {
      opacity: 0.45;
      cursor: not-allowed;
      pointer-events: none;
    }

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

    .pill {
      border: 1px solid var(--stroke);
      background: var(--panel-soft);
      border-radius: 0;
      padding: 10px 12px;
      font-size: 0.74rem;
      text-align: center;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .card {
      border: 1px solid var(--stroke);
      background: linear-gradient(170deg, rgba(18, 18, 18, 0.96), rgba(10, 10, 10, 0.95));
      border-radius: 0;
      backdrop-filter: blur(7px);
      box-shadow: 0 14px 42px rgba(0, 0, 0, 0.42);
    }

    .mint-card {
      margin-top: 10px;
      padding: 15px;
    }

    .mint-card strong {
      font-size: 0.8rem;
      letter-spacing: 0.01em;
      text-transform: uppercase;
      color: #d6d6d6;
    }

    .mint-card code {
      display: block;
      margin: 9px 0 8px;
      color: var(--text);
      font-size: 0.78rem;
      word-break: break-all;
    }

    .mint-card p {
      margin: 0;
      color: var(--muted);
      font-size: 0.78rem;
      line-height: 1.55;
    }

    .mint-card-divider {
      border: none;
      border-top: 1px solid var(--stroke);
      margin: 14px 0 12px;
    }

    .gallery-feature {
      padding: 0;
      display: block;
      min-height: 320px;
      overflow: hidden;
      position: relative;
    }

    .gallery-feature img {
      width: 100%;
      height: 320px;
      object-fit: cover;
      object-position: center;
      filter: none;
      display: block;
    }

    .gallery-feature::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.48));
      pointer-events: none;
    }

    .gallery-grid img {
      width: 100%;
      height: 100%;
      display: block;
      border-radius: 0;
      border: 1px solid rgba(255, 255, 255, 0.2);
      object-fit: contain;
      object-position: center;
      filter: none;
      transition: transform 0.25s ease, border-color 0.25s ease;
      background: #050505;
      image-rendering: pixelated;
    }

    .gallery-feature img:hover,
    .gallery-grid img:hover {
      transform: translateY(-2px);
      border-color: rgba(255, 255, 255, 0.6);
    }

    .mint-progress {
      border-top: 1px solid rgba(133, 168, 200, 0.13);
      border-bottom: 1px solid rgba(133, 168, 200, 0.13);
      padding: 18px 0;
      margin: 4px 0 0;
    }

    .mint-progress-head {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 12px;
      margin-bottom: 10px;
      font-family: Consolas, monospace;
      color: var(--muted);
      font-size: 0.78rem;
    }

    .mint-progress-strong {
      color: var(--text);
      font-weight: 700;
      font-size: 0.84rem;
    }

    .mint-progress-track {
      height: 12px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      background: rgba(10, 10, 10, 0.8);
      position: relative;
      overflow: hidden;
    }

    .mint-progress-fill {
      height: 100%;
      width: 30.64%;
      background: linear-gradient(90deg, #4f46e5, #7c3aed);
      box-shadow: 0 0 18px rgba(124, 58, 237, 0.35);
    }

    .wallet-mint {
      margin-top: 20px;
      padding: 18px 16px;
      max-width: 100%;
    }

    .wallet-mint h3 {
      margin: 6px 0 8px;
      font-size: 1.05rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .wallet-mint .kicker {
      margin: 0 0 14px;
      font-size: 0.78rem;
      color: var(--muted);
      line-height: 1.5;
    }

    .wallet-mint-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }

    .wallet-mint-row input {
      flex: 1 1 220px;
      min-width: 0;
      padding: 10px 12px;
      font-family: Consolas, ui-monospace, monospace;
      font-size: 0.78rem;
      color: var(--text);
      background: rgba(8, 8, 8, 0.9);
      border: 1px solid var(--stroke);
      border-radius: 0;
    }

    .wallet-mint-row input::placeholder {
      color: var(--muted);
    }

    .wallet-mint-row input:focus {
      outline: 1px solid rgba(255, 255, 255, 0.25);
      outline-offset: 1px;
    }

    .wallet-mint-result {
      margin: 14px 0 0;
      font-size: 0.8rem;
      color: var(--muted);
      line-height: 1.55;
    }

    .wallet-mint-result strong {
      color: var(--text);
    }

    .wallet-mint-result a {
      color: var(--accent);
      text-decoration: none;
      border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    }

    .wallet-mint-result a:hover {
      color: var(--text);
      border-bottom-color: var(--text);
    }

    .wallet-mint-thumbs {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 14px;
      align-items: flex-start;
    }

    .wallet-mint-thumbs[hidden] {
      display: none !important;
    }

    .wallet-mint-thumb-wrap {
      position: relative;
      width: 76px;
      flex: 0 0 auto;
      border: 1px solid var(--stroke);
      background: rgba(8, 8, 8, 0.85);
      overflow: hidden;
      aspect-ratio: 1;
    }

    .wallet-mint-thumb-wrap img.wallet-mint-thumb {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .wallet-mint-thumb-fallback {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      min-height: 76px;
      font-family: Consolas, ui-monospace, monospace;
      font-size: 0.72rem;
      font-weight: 600;
      color: var(--muted);
      background: linear-gradient(145deg, rgba(79, 70, 229, 0.2), rgba(124, 58, 237, 0.12));
    }

    .wallet-mint-thumb-label {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      padding: 3px 4px;
      font-size: 0.62rem;
      font-family: Consolas, ui-monospace, monospace;
      color: rgba(255, 255, 255, 0.92);
      background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
      text-align: center;
      pointer-events: none;
    }

    .section {
      padding: 50px 0;
      border-top: 1px solid rgba(133, 168, 200, 0.13);
    }

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

    .section-tag {
      font-size: 0.64rem;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.22em;
      margin-bottom: 8px;
      display: inline-block;
    }

    .section h2 {
      margin: 0 0 8px;
      font-size: clamp(1.8rem, 3.1vw, 2.35rem);
      letter-spacing: -0.01em;
    }

    .kicker {
      margin: 0;
      color: var(--muted);
      font-size: 0.93rem;
    }

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

    .step {
      border: 1px solid var(--stroke);
      background: var(--panel);
      border-radius: 0;
      padding: 16px;
      position: relative;
    }

    .step::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      width: 3px;
      height: 100%;
      background: linear-gradient(var(--accent), transparent);
      opacity: 0.65;
    }

    .step strong {
      display: inline-block;
      margin-bottom: 8px;
      color: var(--text);
      font-size: 0.9rem;
    }

    .step p {
      margin: 0;
      color: var(--muted);
      line-height: 1.56;
      font-size: 0.9rem;
    }

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

    .gallery-item {
      border: 1px solid rgba(255, 255, 255, 0.16);
      background: #050505;
      aspect-ratio: 1 / 1;
      padding: 10px;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .faq details {
      border: 1px solid var(--stroke);
      border-radius: 0;
      background: var(--panel);
      padding: 14px 16px;
      margin-bottom: 10px;
    }

    .faq summary {
      cursor: pointer;
      font-weight: 600;
      font-size: 0.95rem;
    }

    .faq p {
      color: var(--muted);
      margin: 10px 0 0;
      line-height: 1.62;
      font-size: 0.9rem;
    }

    footer {
      border-top: 1px solid rgba(133, 168, 200, 0.16);
      padding: 24px 0 40px;
      color: var(--muted);
      font-size: 0.85rem;
      text-align: center;
    }

    @media (max-width: 980px) {
      .hero { grid-template-columns: 1fr; }
      .stats { grid-template-columns: 1fr 1fr; }
      .steps { grid-template-columns: 1fr; }
      .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .nav { display: none; }
      .section-head { flex-direction: column; align-items: flex-start; }
      .gallery-feature,
      .gallery-feature img { height: 240px; min-height: 240px; }
    }

    @media (max-width: 600px) {
      .stats { grid-template-columns: 1fr; }
    }

    /* marketplace page (/marketplace) */
    a.brand {
      text-decoration: none;
      color: inherit;
    }

    button.btn {
      font: inherit;
      cursor: pointer;
    }

    .wallet-mint-result.msg-ok {
      color: #86efac;
    }

    .wallet-mint-result.msg-err {
      color: #fca5a5;
    }

    .mp-page {
      margin-top: 10px;
      padding-bottom: 48px;
    }

    .topbar.mp-topbar {
      flex-wrap: wrap;
      row-gap: 12px;
      column-gap: 14px;
      align-items: center;
      padding-bottom: 14px;
    }

    .mp-topbar .mp-topbar-nav {
      flex: 1 1 200px;
      justify-content: center;
      min-width: 0;
    }

    .mp-wallet-cluster {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }

    .mp-wallet-cluster.is-connected .mp-btn-connect {
      display: none;
    }

    .mp-wallet-cluster:not(.is-connected) .mp-btn-disconnect {
      display: none;
    }

    .mp-btn-disconnect {
      appearance: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin: 0;
      padding: 8px 14px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      background: transparent;
      color: var(--muted);
      font-family: Inter, Segoe UI, Arial, sans-serif;
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      cursor: pointer;
      flex-shrink: 0;
      transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    }

    .mp-btn-disconnect:hover {
      color: var(--text);
      border-color: rgba(255, 255, 255, 0.32);
      background: rgba(255, 255, 255, 0.06);
    }

    .mp-btn-disconnect:focus-visible {
      outline: 2px solid var(--mp-accent);
      outline-offset: 2px;
    }

    .mp-wallet-address {
      margin: 0;
      display: flex;
      align-items: center;
      min-height: 40px;
      max-width: min(280px, 42vw);
      font-size: 0.75rem;
      line-height: 1.35;
    }

    .mp-wallet-address:empty:not(.mp-wallet-address--err) {
      display: none;
    }

    .mp-wallet-address--live {
      max-width: none;
    }

    .wallet-addr-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 16px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.14);
      color: var(--text);
      text-decoration: none;
      font-family: Consolas, ui-monospace, monospace;
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    }

    .wallet-addr-link:hover {
      border-color: rgba(196, 79, 99, 0.55);
      background: rgba(196, 79, 99, 0.14);
      box-shadow: 0 0 0 1px rgba(196, 79, 99, 0.2);
    }

    .mp-wallet-address--err {
      color: #fca5a5;
      font-size: 0.7rem;
      max-width: 260px;
    }

    .mp-btn-connect {
      appearance: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin: 0;
      border: 1px solid rgba(196, 79, 99, 0.35);
      background: linear-gradient(165deg, #6b2e32 0%, #4a1f22 100%);
      color: #fff;
      font-family: Inter, Segoe UI, Arial, sans-serif;
      font-size: 0.76rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 10px 22px;
      border-radius: 999px;
      cursor: pointer;
      line-height: 1.2;
      transition: filter 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
      flex-shrink: 0;
      box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    }

    .mp-btn-connect:disabled {
      opacity: 0.65;
      cursor: wait;
    }

    .mp-btn-connect-icon {
      font-size: 0.62rem;
      opacity: 0.85;
      line-height: 1;
    }

    .mp-btn-connect:hover:not(:disabled) {
      filter: brightness(1.08);
      border-color: rgba(196, 79, 99, 0.55);
    }

    .mp-btn-connect:active:not(:disabled) {
      transform: scale(0.98);
    }

    .mp-btn-connect:focus-visible {
      outline: 2px solid var(--mp-accent);
      outline-offset: 3px;
    }

    @media (max-width: 820px) {
      .topbar.mp-topbar .mp-wallet-cluster {
        order: 4;
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
      }
    }

    .mp-tabs {
      display: flex;
      justify-content: center;
      gap: 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mp-tab {
      background: transparent;
      border: none;
      color: var(--muted);
      padding: 16px 32px;
      font-size: 0.72rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      cursor: pointer;
      border-bottom: 2px solid transparent;
      margin-bottom: -1px;
      font-weight: 600;
    }

    .mp-tab:hover {
      color: var(--text);
    }

    .mp-tab.is-active {
      color: var(--mp-accent);
      border-bottom-color: var(--mp-accent);
    }

    .mp-stats {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px 28px;
      padding: 20px 10px 18px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(0, 0, 0, 0.28);
    }

    .mp-stat {
      text-align: center;
      min-width: 76px;
    }

    .mp-stat-label {
      display: block;
      font-size: 0.58rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .mp-stat-val {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      margin-top: 6px;
      font-size: 1rem;
      font-weight: 700;
      color: var(--text);
      font-family: Consolas, ui-monospace, monospace;
    }

    .mp-stat-unit {
      font-size: 0.62rem;
      font-weight: 600;
      color: var(--mp-accent);
      letter-spacing: 0.06em;
    }

    .mp-toolbar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 16px 0 18px;
    }

    .mp-subtabs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 22px;
    }

    .mp-subtab {
      background: none;
      border: none;
      color: var(--muted);
      font-size: 0.68rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      cursor: pointer;
      padding: 0 2px 6px;
      border-bottom: 2px solid transparent;
      font-weight: 600;
    }

    .mp-subtab:hover:not(:disabled) {
      color: var(--text);
    }

    .mp-subtab.is-active {
      color: var(--mp-accent);
      border-bottom-color: var(--mp-accent);
    }

    .mp-subtab:disabled {
      opacity: 0.32;
      cursor: not-allowed;
    }

    .mp-cta {
      border: 1px solid rgba(255, 255, 255, 0.22);
      background: rgba(255, 255, 255, 0.05);
      color: var(--text);
      padding: 10px 18px;
      font-size: 0.68rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      cursor: pointer;
      font-weight: 600;
    }

    .mp-cta:hover {
      border-color: var(--mp-accent);
      color: var(--mp-accent);
    }

    .mp-panel {
      display: none;
    }

    .mp-panel.is-visible {
      display: block;
    }

    .mp-subpanel {
      display: none;
    }

    .mp-subpanel.is-visible {
      display: block;
    }

    .mp-sweep {
      margin: 0 0 18px;
      padding: 14px 16px 12px;
      border-radius: 10px;
      border: 1px solid rgba(196, 79, 99, 0.25);
      background: linear-gradient(145deg, rgba(92, 36, 51, 0.28), rgba(8, 8, 10, 0.96));
      box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
    }

    .mp-sweep-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
    }

    .mp-sweep-title {
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: rgba(240, 190, 200, 0.92);
    }

    .mp-sweep-meta {
      font-size: 0.72rem;
      color: var(--muted);
      font-family: Consolas, ui-monospace, monospace;
      text-align: right;
    }

    .mp-sweep-controls {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .mp-sweep-slider {
      flex: 1 1 auto;
      min-width: 0;
      height: 6px;
      border-radius: 999px;
      appearance: none;
      background: rgba(255, 255, 255, 0.08);
      outline: none;
    }

    .mp-sweep-slider::-webkit-slider-runnable-track {
      height: 6px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.08);
    }

    .mp-sweep-slider::-webkit-slider-thumb {
      appearance: none;
      width: 16px;
      height: 16px;
      margin-top: -5px;
      border-radius: 50%;
      background: linear-gradient(180deg, var(--mp-accent), var(--mp-accent-mid));
      box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.45), 0 0 14px rgba(196, 79, 99, 0.5);
      cursor: pointer;
    }

    .mp-sweep-slider::-moz-range-thumb {
      width: 16px;
      height: 16px;
      border-radius: 50%;
      border: none;
      background: linear-gradient(180deg, var(--mp-accent), var(--mp-accent-mid));
      box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.45), 0 0 14px rgba(196, 79, 99, 0.5);
      cursor: pointer;
    }

    .mp-sweep-slider::-moz-range-track {
      height: 6px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.08);
    }

    .mp-sweep-btn {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border: none;
      border-radius: 8px;
      padding: 10px 16px;
      font-size: 0.68rem;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      cursor: pointer;
      color: #fff;
      font-family: Inter, Segoe UI, Arial, sans-serif;
      background: linear-gradient(180deg, var(--mp-accent) 0%, var(--mp-accent-mid) 100%);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
      transition: filter 0.15s ease, transform 0.12s ease;
    }

    .mp-sweep-btn:hover:not(:disabled) {
      filter: brightness(1.08);
    }

    .mp-sweep-btn:active:not(:disabled) {
      transform: scale(0.98);
    }

    .mp-sweep-btn:disabled {
      opacity: 0.5;
      cursor: wait;
    }

    .mp-sweep-btn:focus-visible {
      outline: 2px solid var(--mp-accent);
      outline-offset: 2px;
    }

    .mp-sweep-icon {
      flex-shrink: 0;
      opacity: 0.95;
    }

    .mp-sweep-hint {
      margin: 10px 0 0;
      font-size: 0.62rem;
      line-height: 1.45;
      color: var(--muted);
    }

    @media (max-width: 560px) {
      .mp-sweep-controls {
        flex-direction: column;
        align-items: stretch;
      }

      .mp-sweep-btn {
        width: 100%;
      }
    }

    .mp-refresh-row {
      margin-bottom: 14px;
    }

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

    @media (max-width: 1100px) {
      .mp-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
    }

    @media (max-width: 720px) {
      .mp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    .mp-card {
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: #080808;
      display: flex;
      flex-direction: column;
      box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    }

    .mp-card-head {
      background: linear-gradient(165deg, var(--mp-card-head) 0%, var(--mp-accent-deep) 100%);
      padding: 11px 12px;
      font-size: 0.65rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.94);
      font-weight: 700;
    }

    .mp-card-img {
      position: relative;
      background: #050505;
    }

    .mp-card-img img {
      width: 100%;
      aspect-ratio: 1;
      object-fit: cover;
      display: block;
      image-rendering: pixelated;
    }

    .mp-card-price-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 12px 10px;
      background: linear-gradient(180deg, rgba(12, 10, 11, 0.98), rgba(6, 6, 8, 1));
      border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .mp-pusd {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      font-weight: 700;
      font-size: 0.95rem;
      color: var(--text);
      font-family: Consolas, ui-monospace, monospace;
    }

    .mp-pusd-icon {
      display: block;
      width: 0.85rem;
      height: 0.85rem;
      object-fit: contain;
      flex-shrink: 0;
      /* Full white glyph on dark UI (shape from pusd.png, color forced to #fff) */
      filter: brightness(0) invert(1);
    }

    .mp-fiat-note {
      font-size: 0.68rem;
      color: var(--muted);
      letter-spacing: 0.04em;
    }

    .mp-card-actions {
      padding: 0 0 12px;
      background: rgba(6, 6, 8, 1);
    }

    .mp-btn-buy {
      width: calc(100% - 24px);
      margin: 0 12px;
      border: none;
      border-radius: 6px;
      background: linear-gradient(180deg, var(--mp-accent) 0%, var(--mp-accent-mid) 100%);
      color: #fff;
      padding: 12px 14px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      font-size: 0.68rem;
      cursor: pointer;
    }

    .mp-btn-buy:hover {
      filter: brightness(1.07);
    }

    .mp-btn-cancel {
      width: calc(100% - 24px);
      margin: 8px 12px 0;
      border: 1px solid var(--stroke);
      background: transparent;
      color: var(--muted);
      padding: 8px 10px;
      font-size: 0.62rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      cursor: pointer;
    }

    .mp-btn-cancel:hover {
      color: var(--text);
      border-color: rgba(255, 255, 255, 0.28);
    }

    .mp-placeholder {
      border: 1px dashed rgba(196, 79, 99, 0.35);
      background: rgba(92, 36, 51, 0.12);
      padding: 36px 20px;
      text-align: center;
      color: var(--muted);
      font-size: 0.82rem;
      line-height: 1.55;
      margin-top: 8px;
    }

    .mp-placeholder strong {
      color: var(--mp-accent);
      font-size: 0.72rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .mp-event-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 12px;
    }

    .mp-event-row {
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: rgba(8, 8, 10, 0.95);
      padding: 12px 14px;
      font-size: 0.78rem;
      line-height: 1.45;
    }

    .mp-event-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 6px;
    }

    .mp-event-kind {
      font-size: 0.62rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .mp-event-kind--listed {
      color: #7eb8ff;
    }

    .mp-event-kind--sold {
      color: #8fd99b;
    }

    .mp-event-kind--cancelled {
      color: #c9a227;
    }

    .mp-event-main {
      color: var(--text);
      word-break: break-word;
    }

    .mp-event-meta {
      margin-top: 8px;
      font-size: 0.65rem;
      color: var(--muted);
      font-family: Consolas, ui-monospace, monospace;
    }

    .mp-event-tx {
      flex-shrink: 0;
      font-size: 0.62rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--mp-accent);
      text-decoration: none;
    }

    .mp-event-tx:hover {
      text-decoration: underline;
    }

    .mp-sold-feed {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 12px;
    }

    .mp-sold-row {
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: #0c0c0e;
      overflow: hidden;
    }

    .mp-sold-row-link {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 10px 14px;
      text-decoration: none;
      color: inherit;
      min-height: 64px;
    }

    .mp-sold-row-link:hover {
      background: rgba(196, 79, 99, 0.07);
    }

    .mp-sold-left {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 12px;
      min-width: 0;
      flex: 1;
    }

    .mp-sold-thumb {
      width: 48px;
      height: 48px;
      border-radius: 8px;
      overflow: hidden;
      flex-shrink: 0;
      background: #050505;
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mp-sold-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      image-rendering: pixelated;
    }

    .mp-sold-info {
      display: flex;
      flex-direction: column;
      gap: 4px;
      min-width: 0;
    }

    .mp-sold-badges {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px;
    }

    .mp-sold-badge {
      display: inline-block;
      padding: 3px 8px;
      border-radius: 999px;
      font-size: 0.58rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .mp-sold-badge--sell {
      background: rgba(120, 40, 55, 0.92);
      color: #f0a8b8;
      border: 1px solid rgba(196, 79, 99, 0.45);
    }

    .mp-sold-badge--list {
      background: rgba(45, 75, 120, 0.92);
      color: #a8c8f0;
      border: 1px solid rgba(100, 140, 200, 0.45);
    }

    .mp-sold-badge--cancel {
      background: rgba(95, 75, 30, 0.92);
      color: #e8d090;
      border: 1px solid rgba(200, 170, 80, 0.4);
    }

    .mp-sold-badge--collection {
      background: rgba(38, 38, 42, 0.96);
      color: rgba(255, 255, 255, 0.9);
      border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .mp-sold-token {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--text);
      letter-spacing: 0.02em;
    }

    .mp-sold-right {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      justify-content: center;
      gap: 6px;
      flex-shrink: 0;
      text-align: right;
    }

    .mp-sold-flow {
      font-size: 0.72rem;
      color: var(--muted);
      font-family: Consolas, ui-monospace, monospace;
      letter-spacing: 0.02em;
    }

    .mp-sold-price-row {
      display: flex;
      flex-direction: row;
      align-items: baseline;
      gap: 10px;
    }

    .mp-sold-price {
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--text);
    }

    .mp-sold-age {
      font-size: 0.72rem;
      color: var(--muted);
    }

    @media (max-width: 520px) {
      .mp-sold-row-link {
        flex-direction: column;
        align-items: stretch;
      }

      .mp-sold-right {
        align-items: flex-start;
        text-align: left;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
      }
    }

    .mp-pick-grid {
      margin-top: 12px;
    }

    .mp-pick-tile {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      padding: 0;
      margin: 0;
      border: 2px solid rgba(255, 255, 255, 0.12);
      border-radius: 10px;
      overflow: hidden;
      background: #0a0a0a;
      cursor: pointer;
      text-align: left;
      font: inherit;
      color: inherit;
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .mp-pick-tile:hover:not(:disabled) {
      border-color: rgba(196, 79, 99, 0.55);
    }

    .mp-pick-tile.is-selected {
      border-color: var(--mp-accent);
      box-shadow: 0 0 0 1px var(--mp-accent);
    }

    .mp-pick-tile:disabled {
      cursor: not-allowed;
      opacity: 0.5;
    }

    .mp-pick-tile .mp-pick-img {
      width: 100%;
      aspect-ratio: 1;
      object-fit: cover;
      display: block;
      background: #050505;
      image-rendering: pixelated;
    }

    .mp-pick-tile .mp-pick-foot {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 6px;
      padding: 8px 10px;
      font-size: 0.65rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
      background: rgba(0, 0, 0, 0.45);
    }

    .mp-pick-foot-top {
      text-transform: none;
      letter-spacing: 0.04em;
      font-weight: 700;
      font-size: 0.82rem;
      color: rgba(255, 255, 255, 0.92);
    }

    .mp-pick-tile--listed {
      cursor: default;
    }

    .mp-pick-tile--noxfer {
      opacity: 0.58;
      cursor: not-allowed;
    }

    .sell-toolbar {
      padding-bottom: 8px;
    }

    .sell-mode-block {
      margin-bottom: 18px;
    }

    .sell-pick-meta {
      margin-top: 8px;
    }

    .mp-pick-tile--listed:hover {
      border-color: rgba(255, 255, 255, 0.12);
    }

    .mp-pick-tile--listed .mp-pick-img {
      opacity: 0.52;
    }

    .mp-pick-cancel {
      margin: 0;
      width: 100%;
      border: 1px solid rgba(196, 79, 99, 0.45);
      border-radius: 6px;
      background: rgba(90, 32, 44, 0.55);
      color: #f0b8c4;
      padding: 7px 8px;
      font-size: 0.58rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      cursor: pointer;
      font: inherit;
    }

    .mp-pick-cancel:hover {
      background: rgba(120, 45, 60, 0.75);
      border-color: rgba(196, 79, 99, 0.65);
      color: #fff;
    }

    .mp-pick-tile .mp-pick-badge {
      font-size: 0.58rem;
      color: var(--mp-accent);
      margin-top: 2px;
    }
