:root {
  color-scheme: dark;
  --bg: #080806;
  --surface: rgba(13, 13, 12, 0.94);
  --surface-2: rgba(20, 19, 17, 0.9);
  --surface-soft: rgba(255, 255, 255, 0.05);
  --line: rgba(236, 216, 176, 0.14);
  --line-strong: rgba(215, 180, 106, 0.42);
  --text: #f7f1e7;
  --muted: #a99f8f;
  --faint: #756d61;
  --green: #a6dd4c;
  --green-strong: #c5f06e;
  --gold: #d7b46a;
  --gold-strong: #f0d899;
  --red: #9f282d;
  --red-soft: #3a1114;
  --ink: #080806;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
  --display-font: "Space Grotesk", Inter, "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Devanagari", sans-serif;
  font-family: Inter, "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Devanagari", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(215, 180, 106, 0.09), transparent 360px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 80px),
    linear-gradient(135deg, #060604 0%, #11100e 48%, #1a1111 100%);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

a {
  color: inherit;
}

.app-shell {
  width: min(1540px, 100%);
  margin: 0 auto;
  padding: 18px 22px 28px;
}

.topbar {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(236, 216, 176, 0.1);
  border-radius: 8px;
  background: rgba(7, 7, 6, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(215, 180, 106, 0.6);
  box-shadow: 0 0 0 4px rgba(215, 180, 106, 0.06), 0 12px 26px rgba(0, 0, 0, 0.36);
}

.brand span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand strong {
  font-family: var(--display-font);
  font-size: 18px;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(236, 216, 176, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.desktop-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.desktop-nav a:hover {
  color: var(--text);
  border-color: rgba(215, 180, 106, 0.24);
  background: rgba(215, 180, 106, 0.08);
}

.wallet-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.language-control,
.wallet-control {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
  color: var(--muted);
  font-size: 12px;
}

.language-control select,
.wallet-control select {
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  min-width: 92px;
}

.wallet-control select {
  min-width: 116px;
}

.language-control option,
.wallet-control option {
  color: #111;
}

.status-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.34);
  font-size: 13px;
  font-weight: 700;
}

.button,
.icon-button {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(180deg, #f1d789 0%, #c79a43 100%);
  color: var(--ink);
  font-weight: 800;
  padding: 0 16px;
  box-shadow: 0 10px 26px rgba(199, 154, 67, 0.22);
}

.button-secondary {
  background: rgba(215, 180, 106, 0.08);
  color: var(--gold-strong);
  border: 1px solid rgba(215, 180, 106, 0.38);
  padding: 0 14px;
}

.button-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(236, 216, 176, 0.16);
  padding: 0 12px;
}

.icon-button {
  width: 40px;
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--line);
  font-size: 18px;
}

.collection-hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr) minmax(280px, 390px);
  gap: 30px;
  align-items: stretch;
  padding: 30px;
  border: 1px solid rgba(236, 216, 176, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(8, 8, 6, 0.98), rgba(20, 12, 12, 0.82)),
    url("https://anubis.origindefi.io/assets/claim-nft/red-gold.png") right 8% center / 430px auto no-repeat,
    #090a08;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.collection-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(215, 180, 106, 0.08), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 112px);
  opacity: 0.55;
}

.collection-media {
  position: relative;
  z-index: 1;
  min-height: 368px;
  border: 1px solid rgba(215, 180, 106, 0.45);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(28, 20, 14, 0.76), rgba(0, 0, 0, 0.68));
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.52), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.collection-media img {
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  margin: 14px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.38));
}

.collection-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.collection-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.verified-badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(215, 180, 106, 0.38);
  border-radius: 8px;
  color: var(--gold-strong);
  background: rgba(215, 180, 106, 0.09);
  text-transform: none;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-family: var(--display-font);
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.91;
  max-width: 820px;
  letter-spacing: 0;
}

h2 {
  font-family: var(--display-font);
  font-size: 22px;
  letter-spacing: 0;
}

h3 {
  font-size: 15px;
}

.collection-copy p {
  margin-top: 18px;
  max-width: 690px;
  color: #d8cdbd;
  font-size: 16px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.collection-stats {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-width: 0;
}

.collection-stats div {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(236, 216, 176, 0.15);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.collection-stats span,
.contract-chip span,
.collection-strip span,
.account-card span {
  color: var(--muted);
  font-size: 12px;
}

.collection-stats strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--display-font);
  font-size: 26px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.notice {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(159, 40, 45, 0.46);
  border-radius: 8px;
  background: rgba(58, 17, 20, 0.58);
  color: #f2c7bf;
  line-height: 1.55;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.hidden {
  display: none !important;
}

.market-layout {
  display: grid;
  grid-template-columns: minmax(310px, 392px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}

.panel {
  border: 1px solid rgba(236, 216, 176, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 90px),
    var(--surface);
  box-shadow: var(--shadow);
}

.seller-panel {
  position: sticky;
  top: 14px;
  padding: 20px;
}

.market-column {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.market-header-panel,
.activity-panel {
  padding: 20px;
}

.market-header-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.market-controls {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.contract-chip {
  min-width: 168px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(236, 216, 176, 0.13);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.contract-chip strong,
.collection-strip strong,
.account-card strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(130px, 0.5fr) minmax(140px, 0.6fr);
  gap: 12px;
}

.collection-strip div {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(236, 216, 176, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(215, 180, 106, 0.05), transparent),
    var(--surface-2);
}

.panel-heading,
.section-title,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-heading {
  margin-top: 6px;
}

.count-label {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(236, 216, 176, 0.14);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.34);
  font-size: 13px;
}

.account-card {
  margin: 18px 0;
  display: grid;
  gap: 4px;
  padding: 16px 14px;
  border: 1px solid rgba(236, 216, 176, 0.12);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.account-card small {
  color: var(--muted);
}

.form-stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

input {
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid rgba(236, 216, 176, 0.13);
  background: rgba(0, 0, 0, 0.38);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

input:focus {
  border-color: rgba(215, 180, 106, 0.58);
  box-shadow: 0 0 0 3px rgba(215, 180, 106, 0.08);
}

.input-with-suffix {
  position: relative;
}

.input-with-suffix input {
  padding-right: 72px;
}

.input-with-suffix em {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-strong);
  font-style: normal;
  font-size: 13px;
}

.approval-state {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(236, 216, 176, 0.1);
  background: rgba(0, 0, 0, 0.22);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.owned-section {
  margin-top: 24px;
}

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

.owned-token {
  min-height: 44px;
  border: 1px solid rgba(236, 216, 176, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 800;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.nft-card {
  min-width: 0;
  display: grid;
  border: 1px solid rgba(236, 216, 176, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 100px),
    rgba(10, 10, 9, 0.9);
  overflow: hidden;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nft-card:hover {
  transform: translateY(-3px);
  border-color: rgba(215, 180, 106, 0.45);
  background:
    linear-gradient(180deg, rgba(215, 180, 106, 0.07), transparent 110px),
    rgba(14, 13, 12, 0.96);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
}

.nft-art {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(180deg, rgba(58, 17, 20, 0.4), rgba(0, 0, 0, 0.72)),
    #080806;
  overflow: hidden;
  margin: 10px 10px 0;
  border: 1px solid rgba(236, 216, 176, 0.12);
  border-radius: 8px;
}

.nft-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 10px;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.38));
}

.nft-id-chip,
.nft-status-chip {
  position: absolute;
  top: 10px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.nft-id-chip {
  left: 10px;
  color: var(--text);
}

.nft-status-chip {
  right: 10px;
  color: var(--gold-strong);
}

.nft-status-chip.preview {
  color: var(--muted);
}

.nft-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.nft-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.nft-title strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--display-font);
  font-size: 15px;
}

.nft-title span {
  color: var(--gold-strong);
  font-weight: 800;
  white-space: nowrap;
}

.split-line {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.card-actions.single {
  grid-template-columns: 1fr;
}

.price-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.price-edit input {
  min-height: 40px;
}

.preview-note {
  grid-column: 1 / -1;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(215, 180, 106, 0.18);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.3);
}

.preview-note strong {
  color: var(--text);
}

.activity-panel {
  margin-top: 18px;
}

.activity-log {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.activity-log a {
  color: var(--green-strong);
}

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

  .desktop-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .wallet-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .collection-hero,
  .market-layout {
    grid-template-columns: 1fr;
  }

  .collection-media {
    display: none;
  }

  .seller-panel {
    position: static;
  }

  .market-header-panel {
    grid-template-columns: 1fr;
  }

  .market-controls {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .contract-chip {
    flex: 1 1 190px;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 14px;
  }

  .collection-hero {
    min-height: auto;
    padding: 22px 18px;
    background:
      linear-gradient(180deg, rgba(5, 6, 5, 0.82), rgba(5, 6, 5, 0.95)),
      url("https://anubis.origindefi.io/assets/claim-nft/red-gold.png") right -24px bottom -28px / 210px auto no-repeat,
      #090a08;
  }

  .collection-stats,
  .collection-strip {
    grid-template-columns: 1fr 1fr;
  }

  .wallet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .language-control,
  .wallet-control,
  .status-pill,
  .wallet-actions .button {
    width: 100%;
  }

  .wallet-actions .button {
    grid-column: 1 / -1;
  }

  h1 {
    font-size: 42px;
  }
}

@media (max-width: 520px) {
  .brand strong {
    font-size: 15px;
  }

  .collection-stats,
  .collection-strip,
  .button-row,
  .card-actions,
  .price-edit {
    grid-template-columns: 1fr;
  }

  .owned-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .nft-body {
    padding: 10px;
  }

  .nft-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  h1 {
    font-size: 34px;
  }
}
