nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}
.page {
  display: none;
}

.page.active {
  display: block;
}
nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

nav a:hover,
nav a.active {
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #02111f;
  border-color: transparent;
}

@media (max-width: 700px) {
  nav {
    justify-content: flex-start;
  }

  nav a {
    font-size: 13px;
    padding: 8px 10px;
  }
}
    :root {
      --bg0: #020617;
      --bg1: #0b1224;
      --ink: #e5e7eb;
      --muted: #9ca3af;
      --line: rgba(148, 163, 184, 0.22);
      --glass: rgba(2, 6, 23, 0.72);
      --glass2: rgba(15, 23, 42, 0.55);
      --green: #22c55e;
      --green-ink: #022c22;
      --blue: #60a5fa;
      --purple: #a855f7;
      --pink: #fb7185;
      --amber: #fbbf24;
      --danger: #ef4444;
      --shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
      --radius: 22px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      min-height: 100vh;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
      color: var(--ink);
      background:
        radial-gradient(900px 500px at 15% 10%, rgba(96, 165, 250, 0.18), transparent 55%),
        radial-gradient(700px 520px at 85% 15%, rgba(168, 85, 247, 0.16), transparent 60%),
        radial-gradient(900px 650px at 55% 95%, rgba(34, 197, 94, 0.12), transparent 60%),
        linear-gradient(180deg, var(--bg1), var(--bg0) 40%, #020617 100%);
      overflow-x: hidden;
    }

    a {
      color: inherit;
    }

    img {
      display: block;
      max-width: 100%;
    }

    button,
    input,
    textarea {
      font: inherit;
    }

    .wrap {
      width: min(1200px, calc(100% - 32px));
      margin: 0 auto;
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 100;
      border-bottom: 1px solid var(--line);
      background: rgba(2, 6, 23, 0.86);
      backdrop-filter: blur(16px);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    }

    .topbar-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 14px 0;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 230px;
      color: var(--ink);
      background: transparent;
      border: 0;
      cursor: pointer;
      text-align: left;
      user-select: none;
    }

    .brand:focus-visible,
    .nav a:focus-visible,
    .btn:focus-visible,
    .gitem:focus-visible,
    .xbtn:focus-visible {
      outline: 3px solid rgba(96, 165, 250, 0.55);
      outline-offset: 3px;
    }

    .logo {
      display: grid;
      flex: 0 0 auto;
      width: 44px;
      height: 44px;
      place-items: center;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.06);
      box-shadow: var(--shadow);
    }

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

    .logo-fallback {
      font-size: 12px;
      font-weight: 900;
      color: rgba(229, 231, 235, 0.7);
    }

    .brand-name {
      display: flex;
      flex-direction: column;
      line-height: 1.1;
    }

    .brand-name b {
      font-size: 14px;
      letter-spacing: 0.5px;
    }

    .brand-name span {
      margin-top: 4px;
      color: var(--muted);
      font-size: 12px;
    }

    .nav {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: wrap;
    }

    .nav a {
      border: 1px solid transparent;
      border-radius: 999px;
      padding: 10px 12px;
      color: var(--ink);
      font-size: 13px;
      font-weight: 800;
      text-decoration: none;
      opacity: 0.95;
      white-space: nowrap;
    }

    .nav a:hover {
      border-color: var(--line);
      background: rgba(255, 255, 255, 0.04);
    }

    .nav a.active {
      border-color: rgba(34, 197, 94, 0.35);
      background: rgba(34, 197, 94, 0.1);
      color: #d1fae5;
    }

    @media (max-width: 900px) {
      .topbar-inner {
        align-items: stretch;
        flex-direction: column;
      }

      .brand {
        min-width: 0;
      }

      .nav {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
      }
    }

    main.wrap {
      padding-top: 24px;
      padding-bottom: 24px;
    }

    .page {
      display: none;
      opacity: 0;
      transform: translateY(8px);
    }

    .page.active {
      display: block;
      opacity: 1;
      transform: none;
      animation: pageIn 0.22s ease both;
    }

    @keyframes pageIn {
      from {
        opacity: 0;
        transform: translateY(8px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .hero {
      padding: 26px 0 12px;
    }

    .panel,
    .card {
      position: relative;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(2, 6, 23, 0.58));
      box-shadow: var(--shadow);
    }

    .pad {
      padding: 20px;
    }

    .title {
      max-width: 880px;
      margin-bottom: 12px;
      font-size: clamp(34px, 6vw, 56px);
      line-height: 1.02;
      letter-spacing: 0.3px;
    }

    .subtitle {
      max-width: 74ch;
      color: var(--muted);
      font-size: 15px;
      line-height: 1.7;
    }

    .status-strip {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-top: 18px;
    }

    @media (max-width: 800px) {
      .status-strip {
        grid-template-columns: 1fr;
      }
    }

    .mini-card {
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 14px;
      background: rgba(2, 6, 23, 0.48);
    }

    .mini-card b {
      display: block;
      margin-bottom: 5px;
      font-size: 14px;
    }

    .mini-card p {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 14px;
      margin-top: 14px;
    }

    .col-12 {
      grid-column: span 12;
    }

    .col-8 {
      grid-column: span 8;
    }

    .col-6 {
      grid-column: span 6;
    }

    .col-4 {
      grid-column: span 4;
    }

    @media (max-width: 900px) {
      .col-8,
      .col-6,
      .col-4 {
        grid-column: span 12;
      }
    }

    .card h2 {
      margin-bottom: 8px;
      font-size: 25px;
      line-height: 1.2;
    }

    .card h3 {
      margin-bottom: 8px;
      font-size: 18px;
      line-height: 1.3;
    }

    .card p,
    .card li {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.7;
    }

    .card ul {
      margin-top: 10px;
      padding-left: 18px;
    }

    .card li {
      margin: 6px 0;
    }

    .muted {
      color: var(--muted);
    }

    .small {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
    }

    .btnrow {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 12px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 42px;
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 11px 14px;
      background: rgba(255, 255, 255, 0.06);
      color: var(--ink);
      font-size: 13px;
      font-weight: 900;
      text-decoration: none;
      cursor: pointer;
      transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
      user-select: none;
    }

    .btn:hover:not(:disabled) {
      transform: translateY(-1px);
      background: rgba(255, 255, 255, 0.08);
    }

    .btn:disabled {
      cursor: not-allowed;
      opacity: 0.55;
    }

    .btn.primary {
      border-color: rgba(34, 197, 94, 0.25);
      background: linear-gradient(180deg, rgba(34, 197, 94, 1), rgba(34, 197, 94, 0.75));
      color: var(--green-ink);
    }

    .btn.primary:hover:not(:disabled) {
      background: linear-gradient(180deg, rgba(34, 197, 94, 1), rgba(34, 197, 94, 0.88));
    }

    .btn.blue {
      border-color: rgba(96, 165, 250, 0.35);
    }

    .btn.purple {
      border-color: rgba(168, 85, 247, 0.35);
    }

    .btn.pink {
      border-color: rgba(251, 113, 133, 0.35);
    }

    .btn.ghost {
      background: transparent;
    }

    .thumb {
      position: relative;
      height: 260px;
      overflow: hidden;
      border-bottom: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.05);
    }

    .thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: saturate(1.05) contrast(1.05);
      transform: scale(1.02);
    }

    .thumb .fade {
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.35) 55%, rgba(2, 6, 23, 0.75) 100%);
    }

    .market-grid,
    .auction-grid,
    .gallery {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-top: 12px;
    }

    @media (max-width: 900px) {
      .market-grid,
      .auction-grid,
      .gallery {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 560px) {
      .market-grid,
      .auction-grid,
      .gallery {
        grid-template-columns: 1fr;
      }
    }

    .item {
      position: relative;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: rgba(2, 6, 23, 0.55);
      min-height: 100%;
    }

    .item-img {
      display: grid;
      height: 180px;
      place-items: center;
      border-bottom: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.05);
      color: rgba(229, 231, 235, 0.65);
      font-size: 12px;
      font-weight: 800;
      text-align: center;
    }

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

    .item-body {
      padding: 13px;
    }

    .item-body b {
      display: block;
      margin-bottom: 6px;
      font-size: 14px;
    }

    .price {
      color: #d1fae5;
      font-weight: 900;
    }

    .badge {
      position: absolute;
      top: 10px;
      left: 10px;
      z-index: 2;
      border-radius: 999px;
      padding: 5px 9px;
      background: rgba(15, 23, 42, 0.9);
      border: 1px solid var(--line);
      color: var(--ink);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.2px;
      text-transform: uppercase;
    }

    .badge.sold,
    .badge.closed {
      border-color: rgba(239, 68, 68, 0.4);
      background: rgba(127, 29, 29, 0.9);
      color: #fee2e2;
    }

    .badge.live {
      border-color: rgba(34, 197, 94, 0.4);
      background: rgba(20, 83, 45, 0.92);
      color: #dcfce7;
    }

    .badge.upcoming {
      border-color: rgba(251, 191, 36, 0.4);
      background: rgba(113, 63, 18, 0.92);
      color: #fef3c7;
    }

    .gitem {
      display: block;
      width: 100%;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: rgba(2, 6, 23, 0.55);
      cursor: pointer;
      transition: transform 0.18s ease, border-color 0.18s ease;
    }

    .gitem:hover {
      transform: translateY(-2px);
      border-color: rgba(34, 197, 94, 0.28);
    }

    .gitem img {
      width: 100%;
      height: 205px;
      object-fit: cover;
    }

    .modal,
    .gate {
      position: fixed;
      inset: 0;
      z-index: 200;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 18px;
      background: rgba(0, 0, 0, 0.68);
      backdrop-filter: blur(10px);
    }

    .modal.show,
    .gate.show {
      display: flex;
    }

    .modalbox,
    .gatebox {
      width: min(980px, 96vw);
      overflow: hidden;
      border: 1px solid rgba(148, 163, 184, 0.25);
      border-radius: 22px;
      background: rgba(2, 6, 23, 0.92);
      box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    }

    .gatebox {
      width: min(460px, 96vw);
      padding: 18px;
    }

    .modalhead {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid rgba(148, 163, 184, 0.2);
      padding: 12px 14px;
    }

    .modalhead b {
      color: rgba(229, 231, 235, 0.92);
      font-size: 13px;
    }

    .xbtn {
      display: grid;
      width: 36px;
      height: 36px;
      place-items: center;
      border: 1px solid rgba(148, 163, 184, 0.25);
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.05);
      color: var(--ink);
      cursor: pointer;
      font-weight: 900;
    }

    .modalimg {
      display: grid;
      min-height: 260px;
      place-items: center;
      background: rgba(0, 0, 0, 0.25);
    }

    .modalimg img {
      width: 100%;
      max-height: 76vh;
      object-fit: contain;
    }

    .form-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }

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

    .field,
    .textarea {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.04);
      color: var(--ink);
      padding: 12px;
      outline: none;
    }

    .textarea {
      min-height: 120px;
      resize: vertical;
    }

    .field:focus,
    .textarea:focus,
    .admin-ta:focus {
      border-color: rgba(96, 165, 250, 0.45);
      box-shadow: 0 0 0 6px rgba(96, 165, 250, 0.1);
    }

    .check-row {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin-top: 12px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.5;
    }

    .check-row input {
      margin-top: 4px;
    }

    .admin-note {
      border-color: rgba(251, 191, 36, 0.25);
      background: rgba(251, 191, 36, 0.08);
    }

    .admin-ta {
      width: 100%;
      min-height: 280px;
      margin-top: 10px;
      border: 1px solid rgba(148, 163, 184, 0.25);
      border-radius: 14px;
      padding: 12px;
      background: rgba(255, 255, 255, 0.05);
      color: var(--ink);
      outline: none;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      font-size: 12px;
      line-height: 1.5;
      resize: vertical;
    }

    footer {
      margin-top: 20px;
      border-top: 1px solid var(--line);
      background: rgba(2, 6, 23, 0.65);
      padding: 18px 0 28px;
    }

    .footgrid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      align-items: start;
    }

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

    .footlinks {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 10px;
    }

    .footlinks a {
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 10px 12px;
      background: rgba(255, 255, 255, 0.04);
      color: rgba(229, 231, 235, 0.9);
      font-size: 12px;
      text-decoration: none;
    }

    .footlinks a:hover {
      border-color: rgba(34, 197, 94, 0.25);
      color: #d1fae5;
    }
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.payment-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price {
  font-size: 26px;
  font-weight: 900;
  color: var(--amber);
}

.payment-card .btn {
  margin-top: auto;
  text-align: center;
}

.work-progress-box {
  margin: 24px auto;
  padding: 22px;
  max-width: 950px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(251,191,36,0.14), rgba(34,197,94,0.10), rgba(96,165,250,0.10));
  box-shadow: 0 18px 45px rgba(0,0,0,0.28);
  text-align: center;
}

.work-progress-box .vendor-cta {
  display: inline-block;
  margin-top: 14px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #22c55e;
  color: #022c22;
  font-weight: 900;
  text-decoration: none;
}
