.profile-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  background: linear-gradient(160deg, #0a0f1e 0%, #0d1e35 55%, #0a1e32 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.profile-bg-frame {
  position: fixed;
  inset: 0;
  z-index: 0;
  border: none;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.profile-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.loader-ring {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(6, 182, 212, 0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.profile-not-found {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

.not-found-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.not-found-code {
  font-size: 5rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  opacity: 0.5;
}

.not-found-text {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.profile-card {
  background: rgba(10, 18, 35, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(6, 182, 212, 0.12);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 480px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.profile-avatar-wrap {
  margin-bottom: 1.1rem;
  display: flex;
  justify-content: center;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(6, 182, 212, 0.3);
  display: block;
}

.profile-avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-dark), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid rgba(6, 182, 212, 0.3);
}

.profile-name-wrap {
  margin-bottom: 1rem;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.profile-alias-tag {
  display: block;
  font-size: 0.82rem;
  color: var(--cyan);
  opacity: 0.8;
}

.profile-bio {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  word-break: break-word;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.profile-stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 0.15rem;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.profile-link-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: all var(--transition);
}

.profile-link-btn:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.35);
  color: var(--cyan);
  transform: translateY(-1px);
}

.profile-custom-html {
  width: 100%;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  margin-bottom: 1rem;
}

.profile-rating-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.stars-row {
  display: flex;
  gap: 0.2rem;
}

.star-btn {
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  color: rgba(255,255,255,0.18);
  transition: color var(--transition), transform var(--transition);
  padding: 0;
}

.star-btn:hover,
.star-btn.lit {
  color: #fbbf24;
}

.star-btn:hover { transform: scale(1.15); }

.rating-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.profile-footer-link {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.profile-brand-link {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color var(--transition);
}

.profile-brand-link:hover { color: var(--cyan); }

@media (max-width: 500px) {
  .profile-card { padding: 1.75rem 1.25rem; border-radius: 16px; }
  .profile-avatar, .profile-avatar-placeholder { width: 80px; height: 80px; }
}
