.profile-header {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin-bottom: 20px;
  gap: 16px;
}

.profile-cover {
  position: relative;
  margin: 0 -10px;
  margin-bottom: 65px;
}

.profile-cover-image {
  width: 100%;
  height: auto;
  padding-top: 27%;
  object-fit: cover;
  background: rgba(155, 155, 155, 0.2);
  position: relative;
}

.profile-cover-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.profile-cover-edit-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.profile-cover-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}

.profile-cover-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.profile-cover-btn span {
  font-size: 20px;
}

.profile-cover-actions {
  display: flex;
  gap: 8px;
}

.profile-cover-btn.save-btn {
  background: var(--primary-color, #007bff);
}

.profile-cover-btn.save-btn:hover {
  background: var(--primary-color-dark, #0056b3);
}

.profile-cover-btn.cancel-btn {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}

.profile-cover-btn.cancel-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}

.profile-avatar {
  position: absolute;
  bottom: 0;
  left: 16px;
  transform: translateY(50%);
  pointer-events: none;
  border: 5px solid var(--background);
  border-radius: 50%;
}

.profile-avatar img {
  border-radius: 50%;
  width: 145px;
  height: 145px !important;
  object-fit: cover;
  background: var(--background);
}

.profile-info {
  padding: 0 10px;
}

.profile-sub-nav {
  padding: 0 10px;
}

.profile-name-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-name {
  font-size: 24px !important;
  font-weight: bold;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--body-deep);
}

.profile-handle {
  color: var(--body-gray);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 28px;
  height: 28px;
  overflow: hidden;
  margin-top: 12px;
}

.profile-headline {
  color: var(--body-deep);
  margin-top: 12px;
}

.profile-meta {
  margin-top: 12px;
}

.profile-meta span {
  margin-right: 15px;
  color: var(--body-gray);
  font-size: 13px;
}

.profile-stats {
  font-size: 13px;
  color: var(--body-gray);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px 8px;
  flex-wrap: wrap;
}

.profile-stats a {
  color: var(--body-gray) !important;
}

.profile-stats strong {
  font-size: 16px;
}

.profile-action-buttons {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  position: absolute;
  bottom: -52px;
  right: 16px;
}

.profile-action-buttons .primary-button,
.profile-action-buttons .secondary-button {
  height: 36px !important;
  line-height: 36px !important;
}

.profile-action-buttons .secondary-button {
  order: -1;
}

.profile-action-buttons .connect,
.profile-action-buttons .follow {
  background: var(--primary-button-bg);
  color: var(--on-primary-btn);
}

.profile-action-buttons .unfollow {
  color: var(--error);
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

span.user-profile-badges-item {
  /* background: #ffd70036; */
  background: gold;
  /* color: var(--body-deep); */
  color: black;
  display: inline-flex;
  gap: 4px;
  height: 28px;
  line-height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  /* border: 1px solid var(--input-border); */
}

span.user-profile-badges-item:before {
  font-family: "Material Symbols Rounded";
  font-size: 20px;
  font-weight: 500;
  direction: ltr;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

span.user-profile-badges-item.leader:before {
  content: "\f8e0";
}

span.user-profile-badges-item.cl-commenter-l1:before {
  content: "\e0ca";
}

span.user-profile-badges-item.cl-commenter-l2:before {
  content: "\e0bf";
}

span.user-profile-badges-item.cl-commenter-l3:before {
  content: "\f054";
}

span.user-profile-badges-item.profile-sharer:before {
  content: "\e7fe";
}


span.user-profile-badges-item.level:before {
  content: "\e9e0";
}

span.user-profile-badges-item.ambassador:before {
  content: "\f528";
}

span.user-profile-badges-item.evangelist:before {
  content: "\e296";
  line-height: 34px;
}

span.user-profile-badges-item.backer:before {
  content: "\e7af";
}

.qa-part-form-badges-list h2,
.qa-part-q-list h2,
.qa-main-heading {
  display: none !important;
}

.profile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.profile-meta span:before {
  font-family: "Material Symbols Rounded";
  font-size: 18px;
  font-weight: 500;
  direction: ltr;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.profile-meta .profile-website:before {
  content: "\e64c";
}

.profile-meta .profile-joined:before {
  content: "\ebcc";
}

.profile-meta .profile-location:before {
  content: "\e0c8";
}

div#blog-nav-subs {
  font-size: 14px;
  display: flex;
  gap: 12px;
  /* justify-content: center; */
  margin-bottom: 12px;
}

div#blog-nav-subs a {
  padding: 0;
  display: inline-block;
  line-height: 28px;
}

div#blog-nav-subs a:hover {
  color: var(--accent) !important;
}

div#blog-nav-subs a.active {
  background: var(--primary-button-bg);
  color: var(--on-primary-btn) !important;
  padding: 0 12px;
  border-radius: 6px;
}

.profile-sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  flex-grow: 1;
  order: 5;
  margin-top: 12px;
}

.profile-sub-nav a {
  color: var(--body-deep) !important;
  padding: 0 4px 8px 4px;
  border-bottom: 3px solid transparent;
  min-width: max-content;
}

.profile-sub-nav a.active {
  border-bottom: 3px solid var(--accent);
  font-weight: bold;
}

@media screen and (max-width: 899.9px) {
  .profile-cover {
    margin: 0 -16px;
    margin-bottom: 65px;
  }

  .profile-info {
    padding: 0;
  }

  .profile-sub-nav {
    padding: 0;
  }
}

/* Hide Unnecessary Profile Section */
#duration,
#userfield-4,
#userfield-27,
#userfield-20,
#userfield-21,
#userfield-22,
#userfield-23,
#userfield-24,
tr#message {
  display: none;
}

/* About Section */
.profile-about-section {
  margin-bottom: 20px;
  padding: 0 10px;
}

.profile-about-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 15px;
}

.profile-about-section-header h3 {
  margin: 0;
  color: var(--body-deep);
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile-about-section-header h3::before {
  font-family: "Material Symbols Rounded";
  font-size: 20px;
  font-weight: 600;
  direction: ltr;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  content: "\e7fd";
}

.profile-about-section-content {
  /* white-space: pre-wrap; */
  font-size: 14px;
}

/* Top Skills Section */
.profile-skills-section {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--item-separator);
  border-radius: 8px;
}

.profile-skills-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.profile-skills-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--body-deep);
}

.profile-skills-edit-btn {
  background: none;
  border: 1px solid var(--input-border);
  color: var(--body-deep);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-skills-edit-btn:hover {
  background: rgba(155, 155, 155, 0.1);
  border-color: var(--accent);
}

.profile-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}

.profile-skill-tag {
  /* background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.2); */
}

.profile-skills-empty {
  text-align: center;
  padding: 24px;
  color: var(--body-lite);
}

.profile-skills-empty p {
  margin: 0 0 16px;
  font-size: 14px;
}

.profile-skills-add-btn {
  background: var(--primary-button-bg);
  color: var(--on-primary-btn);
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.profile-skills-add-btn:hover {
  opacity: 0.9;
}

/* Skills Dialog */
.skills-dialog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skills-dialog-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.skills-dialog-content {
  position: relative;
  background: var(--popup-bg);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.skills-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--item-separator);
}

.skills-dialog-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--body-deep);
}

.skills-dialog-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--body-lite);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.skills-dialog-close:hover {
  background: rgba(155, 155, 155, 0.1);
  color: var(--body-deep);
}

.skills-dialog-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.skills-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.skills-input {
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--item-separator);
  border-radius: 6px;
  font-size: 14px;
  background: var(--background);
  color: var(--body-deep);
}

.skills-input:focus {
  outline: none;
  border-color: var(--accent);
}

.skills-add-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.skills-add-btn:hover {
  opacity: 0.9;
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skills-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(155, 155, 155, 0.1);
  border-radius: 6px;
  font-size: 14px;
  color: var(--body-deep);
}

.skills-list li button {
  background: none;
  border: none;
  color: var(--error);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
  margin-left: 4px;
}

.skills-list li button:hover {
  background: rgba(var(--error-rgb), 0.1);
}

.skills-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--item-separator);
}

.skills-cancel-btn,
.skills-save-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.skills-cancel-btn {
  background: rgba(155, 155, 155, 0.1);
  color: var(--body-deep);
}

.skills-cancel-btn:hover {
  background: rgba(155, 155, 155, 0.2);
}

.skills-save-btn {
  background: var(--primary-button-bg);
  color: var(--on-primary-btn);
  border: none;
}

.skills-save-btn:hover {
  opacity: 0.9;
}

/* Open to Work Section */
.open-to-work-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.open-to-work-content {
  flex-grow: 1;
}

.profile-work-edit-btn {
  background: none;
  border: 1px solid rgba(0, 128, 0, 0.3);
  color: var(--body-deep);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.profile-work-edit-btn:hover {
  background: rgba(0, 128, 0, 0.1);
  border-color: var(--body-deep);
}

.profile-work-empty {
  background: var(--background);
  border: 1px solid var(--item-separator);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  margin: 0 10px;
  margin-bottom: 20px;
}

.profile-work-empty .material-symbols-rounded {
  font-size: 48px;
  color: var(--body-lite);
  margin-bottom: 12px;
}

.profile-work-empty p {
  color: var(--body-lite);
  margin: 0 0 16px;
  font-size: 14px;
}

.profile-work-setup-btn {
  background: var(--primary-button-bg);
  color: var(--on-primary-btn);
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.profile-work-setup-btn:hover {
  opacity: 0.9;
}

.work-field {
  margin-bottom: 20px;
}

.work-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--body-deep);
}

.work-cv-current {
  margin-top: 8px;
  font-size: 13px;
  color: var(--body-lite);
}

.work-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.work-helper-text {
  font-size: 12px;
  color: var(--body-lite);
  margin: 4px 0 0 28px;
}

/* Education, Experience, Projects and Licenses Section */
.profile-education-section,
.profile-experience-section,
.profile-project-section,
.profile-license-section {
  margin-bottom: 20px;
  padding: 0 10px;
}

.profile-education-section,
.profile-project-section,
.profile-license-section {
  margin-top: 32px;
}

.profile-education-section-header,
.profile-experience-section-header,
.profile-project-section-header,
.profile-license-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 15px;
}

.profile-education-section-header h3,
.profile-experience-section-header h3,
.profile-project-section-header h3,
.profile-license-section-header h3 {
  margin: 0;
  color: var(--body-deep);
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile-education-section-header h3::before,
.profile-experience-section-header h3::before,
.profile-project-section-header h3::before,
.profile-license-section-header h3::before {
  font-family: "Material Symbols Rounded";
  font-size: 20px;
  font-weight: 600;
  direction: ltr;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.profile-experience-section-header h3::before {
  content: "\e8f9";
}

.profile-education-section-header h3::before {
  content: "\e80c";
}

.profile-project-section-header h3::before {
  content: "\f720";
}

.profile-license-section-header h3::before {
  content: "\e8a3";
  /* verified_user */
}

.profile-experience-add-btn,
.profile-education-add-btn,
.profile-project-add-btn,
.profile-license-add-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 14px;
  text-decoration: none;
  color: var(--body-deep) !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.profile-experience-add-btn:hover,
.profile-education-add-btn:hover,
.profile-project-add-btn:hover,
.profile-license-add-btn:hover {
  opacity: 0.8;
  background: rgba(155, 155, 155, 0.2);
}

.profile-experience-add-btn::before,
.profile-education-add-btn::before,
.profile-project-add-btn::before,
.profile-license-add-btn::before {
  font-family: "Material Symbols Rounded";
  font-size: 18px;
  font-weight: 500;
  direction: ltr;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  content: "\e145";
}

.profile-experience-empty,
.profile-education-empty,
.profile-project-empty,
.profile-license-empty {
  color: var(--body-lite);
  font-size: 14px;
  font-style: italic;
  margin: 0;
}

.profile-experience-entry,
.profile-education-entry,
.profile-project-entry,
.profile-license-entry {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
}

.profile-experience-entry:last-child,
.profile-education-entry:last-child,
.profile-project-entry:last-child,
.profile-license-entry:last-child {
  margin-bottom: 0;
}

.profile-experience-entry-logo,
.profile-education-entry-logo,
.profile-project-entry-logo,
.profile-license-entry-logo {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.profile-experience-logo-placeholder,
.profile-education-logo-placeholder,
.profile-project-logo-placeholder,
.profile-license-logo-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(155, 155, 155, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--body-lite);
  border-radius: 4px;
}

.profile-experience-logo-image,
.profile-education-logo-image,
.profile-project-logo-image,
.profile-license-logo-image {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.profile-experience-entry-details,
.profile-education-entry-details,
.profile-project-entry-details,
.profile-license-entry-details {
  flex-grow: 1;
}

.profile-experience-entry-details h4,
.profile-education-entry-details h4,
.profile-project-entry-details h4,
.profile-license-entry-details h4 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 600;
  color: var(--body-deep);
  line-height: 1.3;
}

.profile-experience-entry-details h5,
.profile-education-entry-details h5,
.profile-project-entry-details h5,
.profile-license-entry-details h5 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 400;
  color: var(--body-deep);
  line-height: 1.3;
}

.profile-project-entry-details h5 a {
  color: var(--accent);
}

.profile-project-link-btn,
.profile-license-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 500;
  margin-bottom: 6px;
  transition: all 0.2s;
  background: rgba(var(--accent-rgb), 0.05);
}

.profile-project-link-btn:hover,
.profile-license-link-btn:hover {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: var(--accent);
}

.profile-project-link-btn .material-symbols-rounded,
.profile-license-link-btn .material-symbols-rounded {
  font-size: 14px;
}

.profile-experience-entry-date,
.profile-education-entry-date,
.profile-project-entry-date,
.profile-license-entry-date {
  display: block;
  font-size: 13px;
  color: var(--body-gray);
  margin-bottom: 8px;
}

.profile-license-credential {
  font-size: 13px;
  color: var(--body-deep);
  margin-bottom: 8px;
}

.profile-experience-entry-details p,
.profile-education-entry-details p,
.profile-project-entry-details p,
.profile-license-entry-details p {
  margin: 0;
  font-size: 14px;
  color: var(--body-deep);
  line-height: 1.5;
  /* white-space: pre-wrap; */
}

.profile-entry-visibility {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--body-gray);
  background: rgba(155, 155, 155, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.profile-experience-entry-actions,
.profile-education-entry-actions,
.profile-project-entry-actions,
.profile-license-entry-actions {
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s;
}

.profile-experience-entry:hover .profile-experience-entry-actions,
.profile-education-entry:hover .profile-education-entry-actions,
.profile-project-entry:hover .profile-project-entry-actions,
.profile-license-entry:hover .profile-license-entry-actions {
  opacity: 1;
}

.profile-experience-entry-actions a,
.profile-education-entry-actions a,
.profile-project-entry-actions a,
.profile-license-entry-actions a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--body-gray);
}

.profile-experience-entry-actions a:hover,
.profile-education-entry-actions a:hover,
.profile-project-entry-actions a:hover,
.profile-license-entry-actions a:hover {
  background: rgba(155, 155, 155, 0.1);
  color: var(--body-deep);
}

.profile-experience-entry-actions a span,
.profile-education-entry-actions a span,
.profile-project-entry-actions a span,
.profile-license-entry-actions a span {
  font-size: 20px;
}

/* Profile Action Dropdown */
.profile-action-dropdown {
  position: relative;
  display: inline-block;
  order: -1;
}

.profile-action-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  padding: 0 !important;
  font-family: "Material Symbols Rounded";
  font-size: 20px;
  cursor: pointer;
}

.profile-action-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--popup-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  display: none;
  z-index: 1000;
  min-width: 180px;
  overflow: hidden;
  flex-direction: column;
  padding: 8px 0;
}

.profile-action-dropdown-menu.show {
  display: flex;
}

.profile-action-dropdown-menu .secondary-button,
.profile-action-dropdown-menu .primary-button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  border-radius: 0;
  margin: 0;
  height: auto !important;
  line-height: 1.5 !important;
  padding: 10px 16px !important;
  font-weight: normal;
  color: var(--body-deep) !important;
  box-shadow: none;
}

.profile-action-dropdown-menu .secondary-button:hover,
.profile-action-dropdown-menu .primary-button:hover {
  background: rgba(155, 155, 155, 0.2);
  color: var(--body-deep);
}

/* Ensure wrappers in dropdown behave correctly */
.profile-action-dropdown-menu>span {
  display: block;
  width: 100%;
}

/* Hire Me Section */
#hire_me td:last-child {
  display: block;
}

.developer-status {
  padding: 15px 20px;
  margin: 32px 10px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
}

.open-to-work-banner {
  background-color: rgba(var(--success-rgb), 0.1);
  border: 1px solid var(--success);
}

.developer-status .status {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 8px;
}

.developer-status .buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.open-to-work-banner strong {
  font-size: 1.3em;
  color: var(--success);
  margin-bottom: 5px;
  display: block;
}

.open-to-work-banner p {
  font-size: 0.95em;
  margin: 0;
  line-height: 1.4;
}

.open-to-work-icon {
  font-size: 28px;
  color: var(--success);
  line-height: 1;
}

.action-button {
  background-color: var(--success);
  color: var(--on-success) !important;
  padding: 0 12px;
  line-height: 32px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.action-button:hover {
  opacity: 0.8;
}

@media (max-width: 430px) {
  .qa-body-wrapper {
    padding: 0 12px;
  }

  div#blog-nav-subs {
    font-size: 12px;
    gap: 10px;
  }

  .profile-cover {
    margin-bottom: 50px;
  }

  .profile-avatar img {
    width: 100px;
    height: 100px !important;
  }
}

/* Resume Request Dialog */
.resume-request-dialog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resume-request-dialog-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.resume-request-dialog-content {
  position: relative;
  background: var(--popup-bg);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
}

.resume-request-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--item-separator);
}

.resume-request-dialog-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--body-deep);
}

.resume-request-dialog-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--body-lite);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.resume-request-dialog-close:hover {
  background: rgba(155, 155, 155, 0.1);
  color: var(--body-deep);
}

.resume-request-dialog-body {
  padding: 24px;
}

.resume-request-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid var(--item-separator);
  border-radius: 6px;
  font-size: 14px;
  background: var(--background);
  color: var(--body-deep);
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
}

.resume-request-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.resume-request-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--item-separator);
}

.resume-request-cancel-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  background: rgba(155, 155, 155, 0.1);
  color: var(--body-deep);
  border: none;
}

.resume-request-cancel-btn:hover {
  background: rgba(155, 155, 155, 0.2);
}

.resume-request-send-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  background: var(--primary-button-bg);
  color: var(--on-primary-btn);
  border: none;
}

.resume-request-send-btn:hover {
  opacity: 0.9;
}

/* Profile Completion Widget */
.profile-completion-widget {
  background: var(--background);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 20px;
  margin: 0 10px;
  margin-bottom: 24px;
}

.profile-completion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.profile-completion-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--body-deep);
}

.profile-completion-percentage {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  padding: 2px 8px;
  border-radius: 12px;
}

.profile-completion-bar-container {
  width: 100%;
  height: 8px;
  background: var(--item-separator);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.profile-completion-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.5s ease-out;
}

.profile-completion-missing p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--body-gray);
}

.profile-completion-missing ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-completion-missing li a {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  border: 1px dashed rgba(var(--accent-rgb), 0.4);
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  background: rgba(var(--accent-rgb), 0.02);
  transition: all 0.2s;
}

.profile-completion-missing li a:hover {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: var(--accent);
}

.profile-completion-done {
  display: inline-block;
  font-size: 12px;
  color: var(--body-gray);
  border: 1px solid var(--item-separator);
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--background-hover);
  cursor: default;
  opacity: 0.8;
}

/* Hiring Section */
.profile-hiring-section {
  margin-bottom: 30px;
  border-radius: 12px;
  margin-left: 10px;
  margin-right: 10px;
}

.profile-hiring-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.profile-hiring-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--body-deep);
}

.profile-hiring-jobs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-hiring-job-item {
  display: block;
  padding: 12px 16px;
  background: var(--background);
  border: 1px solid var(--item-separator);
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s;
}

.profile-hiring-job-item:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-hiring-job-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--body-deep);
  margin-bottom: 4px;
}

.profile-hiring-job-meta {
  font-size: 13px;
  color: var(--body-gray);
}

.profile-hiring-view-all {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent);
}

/* Hiring Toggle Button */
.profile-hiring-toggle-btn {
  background: none;
  border: 1px solid var(--input-border);
  color: var(--body-deep);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.profile-hiring-toggle-btn:hover {
  background: rgba(155, 155, 155, 0.1);
  border-color: var(--body-deep);
}

.profile-hiring-toggle-btn.primary {
  background: var(--primary-button-bg);
  color: var(--on-primary-btn);
  border-color: transparent;
}

.profile-hiring-toggle-btn.primary:hover {
  opacity: 0.9;
}

/* Hiring Disabled State */
.profile-hiring-section.hiring-disabled .profile-hiring-jobs {
  opacity: 0.4;
  pointer-events: none;
}

.profile-hiring-disabled-notice {
  font-size: 13px;
  color: var(--body-lite);
  padding: 8px 12px;
  background: rgba(155, 155, 155, 0.1);
  border-radius: 6px;
  margin-bottom: 12px;
}

/*Other Sections*/
.profile-section {
  margin-bottom: 30px;
  border-radius: 12px;
  padding: 0 10px;
}

.profile-section-content {
  font-size: 14px;
}

.profile-section-content p {
  margin: 16px 0 0 0 !important;
}

.profile-section-content p:first-child {
  margin-top: 0 !important;
}

.profile-section-header {
  font-size: 15px;
}

h3.profile-section-title {
  display: flex;
  gap: 4px;
  align-items: center;
}

h3.profile-section-title::before {
  content: "";
  font-family: "Material Symbols Rounded";
  font-size: 20px;
}

.language-tools .profile-section-title::before {
  content: "\e869";
}

.currently-exploring .profile-section-title::before {
  content: "\e87a";
}

.achievements .profile-section-title::before {
  content: "\ea23";

}

.fun-fact .profile-section-title::before {
  content: "\e7f2";
}

.random-dev-quote .profile-section-title::before {
  content: "\e625";
}

/* Premium Suggestion Banner */
.profile-premium-suggestion {
  background-color: #00ff801b;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 10px;
  margin-bottom: 10px;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.profile-premium-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-premium-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--body-deep);
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile-premium-title .verified-icon {
  font-size: 20px;
  color: var(--body-deep);
  /* Black icon */
}

.profile-premium-text {
  font-size: 15px;
  color: var(--body-deep);
  margin-bottom: 4px;
  line-height: 1.4;
}

.profile-premium-btn {
  background-color: var(--primary-button-bg);
  color: var(--on-primary-btn) !important;
  padding: 10px 20px;
  border-radius: 9999px;
  /* Pill shape */
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  width: fit-content;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.profile-premium-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--body-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.profile-premium-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.profile-premium-close .material-symbols-rounded {
  font-size: 20px;
}

@media screen and (max-width: 600px) {
  .profile-premium-suggestion {
    flex-direction: column;
  }

  .profile-premium-close {
    position: absolute;
    top: 12px;
    right: 12px;
  }
}

/* Profile Measurables Widget */
.profile-measurables-widget {
  background: var(--background);
  border: 1px solid var(--item-separator);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 10px 20px 10px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.measurable-stat {
  display: flex;
  flex-direction: column;
  min-width: 80px;
}

.measurable-count {
  font-size: 32px;
  font-weight: 800;
  color: var(--body-deep);
  line-height: 1;
  letter-spacing: -0.5px;
}

.measurable-label {
  font-size: 13px;
  color: var(--body-gray);
  font-weight: 600;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.measurable-label .period {
  font-weight: 400;
  color: var(--body-lite);
  background: rgba(0, 0, 0, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.measurable-divider {
  width: 1px;
  height: 40px;
  background: var(--item-separator);
}

.measurable-cta {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.measurable-cta p {
  margin: 0;
  font-size: 14px;
  color: var(--body-deep);
  font-weight: bold;
  line-height: 1.4;
}

.measurable-btn {
  background: var(--primary-button-bg);
  color: var(--on-primary-btn) !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s;
  border: none;
}

.measurable-btn:hover {
  opacity: 0.95;
  text-decoration: none;
}

.measurable-btn .material-symbols-rounded {
  font-size: 18px;
}

/* Mobile Responsiveness */
@media screen and (max-width: 600px) {
  .profile-measurables-widget {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 16px;
    text-align: center;
  }

  .measurable-stat {
    align-items: center;
  }

  .measurable-divider {
    width: 100%;
    height: 1px;
  }

  .measurable-cta {
    flex-direction: column;
    text-align: center;
  }
}