.profile-layout {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  border-left: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.profile-header {
  position: sticky;
  top: 0;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  gap: 20px;
}

.back-btn {
  background: none;
  border: none;
  
  color: var(--fg);
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
}


.header-info{
  margin-right: calc(100% - 10em);
  flex: 0 0 auto;
}
.header-info h2 {
  font-size: 19px;
  font-weight: 800;
}

.post-count {
  font-size: 13px;
  color: var(--muted2);
}

.profile-banner {
  height: 160px;
  background: var(--line2);
}

.profile-meta-wrap {
  padding: 0 16px;
  position: relative;
}

.profile-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: -45px;
  margin-bottom: 12px;
}

.profile-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--bg);
  object-fit: cover;
}

.edit-profile-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 8px 16px;
  border-radius: 99px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 12px;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.profile-name {
  font-size: 20px;
  font-weight: 800;
}

.profile-handle {
  color: var(--muted2);
  font-size: 15px;
  margin-top: -8px;
}

.profile-bio {
  font-size: 15px;
  margin: 8px 0;
}

.profile-details {
  display: flex;
  gap: 16px;
  color: var(--muted2);
  font-size: 14px;
}

.profile-details span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile-stats {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.profile-stats a {
  text-decoration: none;
  font-size: 14px;
  color: var(--muted2);
}

.profile-stats strong {
  color: var(--fg);
}

.profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}

.profile-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--muted2);
  font-size: 15px;
  font-weight: 700;
  padding: 16px;
  font-family: var(--font);
  cursor: pointer;
  position: relative;
}

.profile-tab:hover {
  background: var(--glass-bg-hover);
}

.profile-tab.active {
  color: var(--fg);
}

.profile-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: var(--accent);
  border-radius: 99px;
}

.empty-state {
  padding: 40px 20px;
  text-align: center;
  max-width: 320px;
  margin: 0 auto;
}

.empty-state h3 {
  font-size: 31px;
  font-weight: 800;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--muted2);
  font-size: 15px;
}