/* --- Profile Modal Centering and Layout --- */
#myPageModal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000; /* Optional: Add a semi-transparent background */
  z-index: 1000; /* Ensure it appears above other elements */
}

#myPageModal .tg-profile-popup {
   width: 100vw;
  height: 100vh;
  border-radius: none;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  padding: 0;
  text-align: center !important;
  overflow: auto;
  font-size: 1em;
}

#myPageModal .tg-profile-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 8px;
  margin-bottom: 12px;
}

#myPageModal .tg-profile-photo-wrap {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

#myPageModal .tg-profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

#myPageModal .tg-profile-fullname {
  font-size: 1.2em !important;
  font-weight: bold;
  color: #000;
  text-align: center !important;
  margin-top: 10px;
}

#myPageModal .tg-profile-username {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  color: #2196f3 !important;
  margin-bottom: 6px !important;
  font-size: 1em !important;
}

#myPageModal .tg-profile-id-status {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 2px;
}

#myPageModal .tg-profile-id {
  color: #2196f3 !important;
  font-size: 0.97em;
  text-align: center !important;
  word-break: break-all;
}

#myPageModal .tg-profile-status {
  color: #4caf50 !important;
  font-size: 0.95em;
  text-align: center !important;
  width: 100%;
}

.profile-divider {
  border: none;
  border-top: 1.5px solid #e0e0e0;
  margin: 0px 0 0px 0;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}