.card-page {
  padding: 130px 24px 100px;
  min-height: 70vh;
}

.card-shell {
  max-width: 760px;
  margin: 0 auto;
}

.user-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: var(--shadow-medium);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.card-head {
  display: flex;
  gap: 26px;
  align-items: center;
  padding: 30px 30px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ava-ring {
  position: relative;
  width: 132px;
  height: 132px;
  flex-shrink: 0;
}

.ava-ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.ava-ring .track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.09);
  stroke-width: 5;
}

.ava-ring .fill {
  fill: none;
  stroke: var(--primary-yellow);
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(255, 204, 51, 0.45));
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ava {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-size: 46px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  user-select: none;
}

.lvl-badge {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--gradient-primary);
  color: #1e2439;
  font-family: "Exo 2", sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(251, 86, 7, 0.35);
}

.ident {
  min-width: 0;
}

.nick {
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 6px;
  word-break: break-word;
}

.handle {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.handle-copy {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 7px 13px;
  font: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.handle-copy:hover {
  background: rgba(79, 168, 255, 0.13);
  border-color: rgba(79, 168, 255, 0.35);
  color: var(--primary-cyan);
}

.handle-copy i {
  font-size: 12px;
  opacity: 0.65;
  transition: var(--transition-smooth);
}

.handle-copy:hover i {
  opacity: 1;
}

.handle-copy.copied {
  background: rgba(76, 217, 123, 0.14);
  border-color: rgba(76, 217, 123, 0.4);
  color: #7fe6a5;
}

.handle-copy.copied i {
  opacity: 1;
}

.handle-copy.copied i::before {
  content: "\f00c";
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-secondary);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
}

.tag.on {
  background: rgba(76, 217, 123, 0.14);
  border-color: rgba(76, 217, 123, 0.35);
  color: #7fe6a5;
}

.tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4cd97b;
  box-shadow: 0 0 8px rgba(76, 217, 123, 0.8);
}

.tag.muted {
  color: var(--text-tertiary);
}

.tag.pro {
  background: rgba(255, 204, 51, 0.14);
  border-color: rgba(255, 204, 51, 0.4);
  color: var(--primary-yellow);
  font-weight: 700;
}

.tag.vip {
  background: rgba(251, 86, 7, 0.16);
  border-color: rgba(251, 86, 7, 0.42);
  color: #ff9257;
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.stat {
  background: var(--bg-secondary);
  padding: 18px 16px;
  text-align: center;
}

.stat dt {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 7px;
}

.stat dd {
  margin: 0;
  font-family: "Exo 2", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat dd.small {
  font-size: 16px;
  font-weight: 600;
}

.stat.rating dd {
  color: var(--primary-yellow);
}

.stat.done dd {
  color: var(--primary-cyan);
  font-size: 17px;
}

.block {
  padding: 24px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.block:last-child {
  border-bottom: none;
}

.block h2 {
  font-family: "Exo 2", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin: 0 0 14px;
}

.about {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
  white-space: pre-line;
  word-break: break-word;
}

.fam {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.member {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 9px 14px 9px 9px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.member:hover {
  background: rgba(79, 168, 255, 0.12);
  border-color: rgba(79, 168, 255, 0.35);
  transform: translateY(-2px);
}

.mini-ava {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.member .rel {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  color: var(--text-tertiary);
}

.member .who {
  display: block;
  font-family: "Exo 2", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.nick-history {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.old-nick {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
}

.socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.soc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79, 168, 255, 0.12);
  border: 1px solid rgba(79, 168, 255, 0.3);
  border-radius: 12px;
  padding: 10px 16px;
  font-family: "Exo 2", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-cyan);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.soc:hover {
  background: rgba(79, 168, 255, 0.2);
  transform: translateY(-2px);
}

.card-state {
  text-align: center;
  padding: 70px 30px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  backdrop-filter: blur(14px);
}

.card-state h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.card-state p {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: var(--text-tertiary);
  margin: 0;
  line-height: 1.6;
}

.card-state .back {
  display: inline-block;
  margin-top: 22px;
  background: var(--gradient-blue);
  color: #16203a;
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  text-decoration: none;
  padding: 11px 26px;
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.card-state .back:hover {
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
}

@media (max-width: 620px) {
  .card-page {
    padding: 100px 16px 70px;
  }

  .card-head {
    flex-direction: column;
    text-align: center;
    padding: 26px 20px 22px;
    gap: 22px;
  }

  .handle,
  .tags {
    justify-content: center;
  }

  .nick {
    font-size: 26px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .block {
    padding: 20px;
  }

  .fam {
    justify-content: center;
  }
}

.owner-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(79, 168, 255, 0.1);
  border: 1px solid rgba(79, 168, 255, 0.28);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 16px;
}

.owner-bar .fa-eye {
  color: var(--primary-cyan);
}

.owner-note {
  flex: 1;
  min-width: 180px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
}

.owner-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 16px;
  font-family: "Exo 2", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.owner-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.owner-btn.primary {
  background: var(--gradient-blue);
  border-color: transparent;
  color: #16203a;
}

.owner-btn.primary:hover {
  box-shadow: var(--glow-blue);
}

.hidden-note {
  background: rgba(255, 204, 51, 0.06);
  border-left: 3px solid rgba(255, 204, 51, 0.55);
}

.hidden-note p {
  margin: 0 0 8px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--text-tertiary);
}

.hidden-note-link {
  font-family: "Exo 2", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-yellow);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 204, 51, 0.5);
}

.hidden-note-link:hover {
  color: #ffd966;
}
