/* === layout container === */
.numdtls {
  position: relative;
  max-width: 2220px;
  width: 95%;
  margin: 6vh auto 6vh;
  padding: 3.5rem clamp(1.2rem, 5vw, 4rem);
  background: radial-gradient(ellipse at top, #26262d 0%, #1f1f25 100%);
  color: #f2f2f2;
  font-family: 'Segoe UI', sans-serif;
  border-radius: 20px;
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.4);
  overflow: visible;
}

/* === top section (number + name) === */
.numhd section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.numhd h1 {
  font-size: 3.2rem;
  font-weight: 300;
  color: #ffde77;
  text-shadow: 0 0 2px rgba(255, 222, 119, 0.2);
}

.numhd h2 {
  font-size: 1.4rem;
  font-weight: 300;
  color: #d3d3d9;
  margin-top: 0.3rem;
}

/* === profile image === */
.imgbx {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.imgbx > img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 20px;
  border: 4px solid #ffffff10;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

/* === voting badge === */
.numvalbx {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 2rem;
  font-size: 1rem;
  background: #303038;
  border-radius: 100px;
  padding: 0.6rem 1.6rem;
  color: #cfcfcf;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  border: 1px solid #3c3c44;
  z-index: 10;
}

.nv {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nvdown a {
  color: #ff5f5f;
  font-weight: 600;
  text-decoration: none;
}

.nvup a {
  color: #60ffc5;
  font-weight: 600;
  text-decoration: none;
}

/* === user identity section === */
.usrbx {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  text-decoration: none;
}

.usrbx img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #333;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}

.uname {
  font-size: 1.2rem;
  font-weight: 500;
  color: #f4f4f4;
}

/* === description / tags === */
.descbx {
  max-width: 760px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  text-align: center;
  color: #c4c4cd;
  padding: 0 1rem;
  letter-spacing: 0.2px;
}

/* === qr code fixed (unchanged) === */
.nftbx {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 999;
  background: rgba(70, 70, 70, 0.75);
  backdrop-filter: blur(8px);
  padding: 8px 0 0 8px;
  border-radius: 16px 0 0 0;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.6);
}

.qrbx img {
  width: 180px;
  height: 180px;
  background: #fff;
  border-radius: 12px 0 0 0;
  padding: 0.6rem;
  box-shadow: 0 0 0 3px #fff, 0 0 12px rgba(255, 255, 255, 0.1);
}

/* === optional footer spacing === */
#inrnumbx,
.numdtls > div:last-child {
  margin-top: 3rem;
  border-top: 1px solid #2e2e34;
  padding-top: 2rem;
}

/* === responsive layout === */
@media (max-width: 768px) {
  .imgbx > img {
    width: 200px;
    height: 200px;
  }

  .usrbx img {
    width: 64px;
    height: 64px;
  }

  .qrbx img {
    width: 140px;
    height: 140px;
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.07);
  }

  .nftbx {
    position: static;
    margin: 3rem auto 0;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    display: flex;
    justify-content: center;
  }

  .numvalbx {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    gap: 1.6rem;
    font-size: 0.95rem;
    padding: 0.5rem 1.4rem;
  }

  .descbx {
    font-size: 1rem;
  }

  .numhd h1 {
    font-size: 2.2rem;
  }

  .numhd h2 {
    font-size: 1.15rem;
  }
}
