:root {
  color-scheme: dark;
  --bg: #050711;
  --panel: rgba(22, 25, 34, 0.84);
  --panel-soft: rgba(31, 34, 46, 0.82);
  --ink: #f7f8ff;
  --muted: #a7adbf;
  --subtle: #73798c;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --black: #7c5cff;
  --purple: #7c5cff;
  --cyan: #58c7f5;
  --gold: #f0c875;
  --green: #70d69f;
  --amber: #f0c875;
  --blue: #58c7f5;
  --red: #ff8f8f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(124, 92, 255, 0.25), transparent 34%),
    radial-gradient(circle at 82% 8%, rgba(88, 199, 245, 0.2), transparent 32%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 72px 72px, 72px 72px, auto;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.metaverse-login-page {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 22% 26%, rgba(124, 92, 255, 0.32), transparent 34%),
    radial-gradient(circle at 78% 26%, rgba(88, 199, 245, 0.22), transparent 34%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #050711;
  background-size: auto, auto, 72px 72px, 72px 72px, auto;
}

.login-stage {
  width: min(980px, 100%);
}

.login-card {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 48px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(31, 34, 46, 0.9), rgba(15, 17, 25, 0.9));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-identity {
  position: absolute;
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.wordmark {
  color: var(--ink);
  font-weight: 900;
}

.divider {
  width: 1px;
  height: 14px;
  background: var(--line-strong);
}

.login-copy p,
.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-copy h1 {
  max-width: 560px;
  margin: 0;
  font-size: 64px;
  line-height: 0.98;
}

.metaverse-login-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 9, 18, 0.42);
}

.metaverse-login-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.metaverse-login-form input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  outline: none;
}

.metaverse-login-form input:focus {
  border-color: rgba(88, 199, 245, 0.72);
  box-shadow: 0 0 0 3px rgba(88, 199, 245, 0.14);
}

.metaverse-login-form button,
.ghost-button,
.primary-link {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 0 13px;
  background: linear-gradient(100deg, var(--purple), var(--cyan));
  color: #ffffff;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
}

.metaverse-login-form button {
  height: 46px;
}

.form-error {
  min-height: 18px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: rgba(7, 9, 18, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 14px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 4px;
}

.nav a {
  min-height: 34px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.09);
}

.side-note {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.side-note span,
.side-note strong {
  display: block;
}

.side-note span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.side-note strong {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.25;
}

.content {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 28px;
}

.topbar,
.detail-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.topbar {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.topbar h1,
.detail-hero h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.02;
}

.subtitle {
  max-width: 700px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.ghost-button {
  flex: 0 0 auto;
  justify-self: start;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.ghost-button:hover,
.primary-link:hover,
.text-link:hover {
  border-color: rgba(88, 199, 245, 0.5);
  background: rgba(88, 199, 245, 0.1);
  color: var(--ink);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.stats-row article,
.profile-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(14px);
}

.stats-row article {
  min-height: 104px;
  display: grid;
  align-content: space-between;
  padding: 16px;
}

.stats-row span,
.summary-stack span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.stats-row strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-top: 28px;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.vic-card {
  min-height: 260px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.12), transparent 44%),
    var(--panel);
  text-decoration: none;
}

.vic-card:hover {
  border-color: rgba(88, 199, 245, 0.5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.vic-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.meta-name {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status-pill,
.type-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.type-pill {
  min-height: 28px;
  padding: 4px 12px;
  letter-spacing: 0;
}

.type-psa {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(100deg, rgba(221, 36, 48, 0.28), rgba(36, 94, 184, 0.3)),
    rgba(255, 255, 255, 0.045);
  color: #eef5ff;
  box-shadow: inset 3px 0 0 rgba(221, 36, 48, 0.9), inset -3px 0 0 rgba(36, 94, 184, 0.9);
}

.type-bgs {
  border-color: rgba(240, 200, 117, 0.55);
  background:
    linear-gradient(100deg, rgba(8, 8, 9, 0.94), rgba(240, 200, 117, 0.2)),
    rgba(255, 255, 255, 0.035);
  color: #ffe6a8;
  box-shadow: inset 0 0 0 1px rgba(240, 200, 117, 0.18);
}

.type-lynca {
  border-color: rgba(124, 92, 255, 0.42);
  background: rgba(124, 92, 255, 0.14);
  color: #d9d2ff;
}

.status-active,
.status-certified {
  border-color: rgba(112, 214, 159, 0.3);
  background: rgba(112, 214, 159, 0.12);
  color: var(--green);
}

.status-pending,
.status-info {
  border-color: rgba(240, 200, 117, 0.34);
  background: rgba(240, 200, 117, 0.12);
  color: var(--amber);
}

.status-grading {
  border-color: rgba(88, 199, 245, 0.28);
  background: rgba(88, 199, 245, 0.11);
  color: var(--blue);
}

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

.card-metrics div {
  min-height: 74px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: var(--panel-soft);
}

.card-metrics span,
.profile-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.card-metrics strong {
  font-size: 24px;
}

.account-line {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.account-line span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-line strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.card-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.detail-topbar {
  align-items: center;
  margin-bottom: 18px;
}

.text-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}

.detail-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(124, 92, 255, 0.16), transparent 46%),
    linear-gradient(280deg, rgba(88, 199, 245, 0.13), transparent 42%),
    var(--panel);
  backdrop-filter: blur(14px);
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
  margin-top: 12px;
}

.profile-panel {
  padding: 18px;
}

.profile-panel h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.profile-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.profile-list div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.profile-list dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.summary-stack {
  display: grid;
  gap: 10px;
}

.summary-stack div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-soft);
}

.summary-stack strong {
  font-size: 24px;
}

.assets-head {
  margin-top: 26px;
}

.asset-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.asset-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) 130px 130px 120px 100px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.asset-row:first-child {
  border-top: 0;
}

.asset-header {
  min-height: 42px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--subtle);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.asset-name {
  min-width: 0;
  color: var(--ink);
  font-weight: 750;
}

.asset-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.row-link {
  justify-self: start;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.row-link:hover,
.profile-list a:hover {
  text-decoration: underline;
}

.not-found {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

@media (max-width: 1040px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
  }

  .nav {
    margin-left: auto;
  }

  .side-note {
    display: none;
  }

  .content {
    padding: 22px 16px;
  }

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

  .profile-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .login-card {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 24px;
  }

  .login-identity {
    position: static;
  }

  .login-copy h1 {
    font-size: 46px;
  }

  .topbar,
  .detail-hero {
    display: grid;
  }

  .topbar h1,
  .detail-hero h1 {
    font-size: 34px;
  }

  .stats-row,
  .vic-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .nav {
    margin-left: 0;
  }

  .profile-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .asset-table {
    border: 0;
    background: transparent;
  }

  .asset-header {
    display: none;
  }

  .asset-row {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
  }
}
