.border-top-default {
  border-top: 0.8px solid var(--color-border-light);
}

.account_user-container {
  padding-top: 3.3rem;
  height: calc(100vh - 8.7rem);
  /* The container scrolls so the profile/cover card travels with the tab content. */
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.account_user-container::-webkit-scrollbar {
  width: 8px;
}

.account_user-container::-webkit-scrollbar-track {
  background: transparent;
}

.account_user-container::-webkit-scrollbar-thumb {
  background-color: var(--color-surface-alt);
  border-radius: 4px;
}

.account_user-container::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-surface-alt);
}

.account_wrapper {
  width: 100%;
  height: auto;
  overflow: visible;
  position: relative;
}

.account_wrapper-innerdiv {
  width: 104rem;
}

.account_wrapper::-webkit-scrollbar {
  width: 8px;
}

.account_wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.account_wrapper::-webkit-scrollbar-thumb {
  background-color: var(--color-surface-alt);
  border-radius: 4px;
}

.account_wrapper::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-border);
}

.account_conflict-user-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(from var(--dark-black) r g b / 50%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.OTP-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(from var(--dark-black) r g b / 50%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.conflict-user-popup-container {
  background-color: var(--color-surface);
  width: 48.1rem;
  min-height: 24rem;
  max-height: fit-content;
  border-radius: 0.4rem;
  padding: 2.4rem;
}

.account_conflict-header {
  font-weight: 700;
  font-size: var(--font-size-15);
  line-height: 1.9rem;
  text-align: center;
  color: var(--color-text-primary);
  position: relative;
}

#editemail {
  background-color: var(--color-background);
  cursor: not-allowed;
}

.account_conflict-close-icon {
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
}

.account_conflict-heading {
  font-weight: 500;
  font-size: var(--font-size-15);
  line-height: 2.2rem;
}

.account_conflict-user-details-container {
  height: 26rem;
  overflow: auto;
}

.account_conflict-user-details {
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.account_conflict-user-img {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 0.4rem;
  object-fit: cover;
}

.account_user-name {
  font-weight: 500;
  font-size: var(--font-size-15);
  line-height: 2rem;
  color: var(--color-text-primary);
  margin-bottom: 0.4rem !important;
}

.account_user-details {
  font-weight: 500;
  font-size: var(--font-size-15);
  line-height: 2rem;
  color: var(--brown);
  margin-bottom: 0;
}

.account_conflict-btn {
  width: 5.9rem;
  height: 4rem;
  border-radius: 0.4rem;
  background-color: var(--color-brand);
  font-weight: 600;
  font-size: var(--font-size-15);
  text-align: center;

  color: var(--color-text-inverse);
  border: none;
  margin-top: 2rem;
}

.logout-btn-container {
  width: 100%;
  padding: 1.2rem 1rem;
  border-top: 1px solid var(--color-border-light);
}

.logout-btn {
  width: 100%;
}

/* =========== Account Settings =========== */
.account_title {
  font-weight: 600;
  font-size: var(--font-size-15);
  line-height: 2rem;
  color: var(--color-text-primary);
  margin-bottom: 0.4rem;
}

.account_description {
  font-weight: 400;
  font-size: var(--font-size-15);
  line-height: 2rem;
  color: var(--brown);
  margin-bottom: 0;
}

.account_input {
  width: 33.6rem;
  height: 4rem;
  border-radius: 0.4rem;
  border: 1px solid var(--dark-gray);
  font-weight: 500;
  font-size: var(--font-size-15);
  color: var(--color-text-primary);
  padding: 1.1rem 1.4rem;
}

.account_password-container {
  width: 33.6rem;
  height: 4rem;
  border-radius: 0.4rem;
  border: 1px solid var(--dark-gray);
  font-weight: 500;
  font-size: var(--font-size-15);
  color: var(--color-text-primary);
  padding-left: 1.4rem;
  padding-right: 1.4rem;
}

.account_password-container input {
  width: 100%;
}


#uploadIcon {
  padding: 0 1rem;
}

.account_upload-container {
  position: relative;
  width: 33.6rem;
  height: 4rem;
  cursor: pointer;
}

.account_upload-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 0.4rem;
  border: 1px dashed var(--dark-gray);
  font-weight: 500;
  font-size: var(--font-size-15);
  color: var(--color-text-primary);
  padding-left: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-surface);
  transition: all 0.2s ease;
  cursor: pointer;
}

.account_upload:hover {
  border-color: var(--light-slate-brown-v1);
  background: var(--color-background);
}

.account_upload.dragover {
  border-color: var(--color-brand);
  background: var(--color-error-bg);
}

.account_upload.has-file {
  border: 1px solid var(--dark-gray);
  background: var(--color-info-bg);
}

.account_upload-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 1;
  top: 0;
  left: 0;
  pointer-events: none;
}

.account_upload-input.file-ready {
  pointer-events: auto;
  z-index: 2;
}

/* When file is uploaded, make input non-clickable */
.account_upload-wrapper.has-uploaded-file .account_upload-input {
  pointer-events: none;
  z-index: 1;
}

/* When no file is uploaded, allow clicking for upload */
.account_upload-wrapper:not(.has-uploaded-file) .account_upload-input {
  pointer-events: auto;
  z-index: 2;
}

.account_upload {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex: 1;
}

.account_upload-text {
  flex: 1;
  pointer-events: none;
  text-align: left;
}

.account_upload-icon {
  pointer-events: none;
  display: flex;
  align-items: center;
}

.account_upload-filename {
  font-size: var(--font-size-15);
  color: var(--light-slate-brown-v1);
  margin-right: 0.5rem;
  max-width: 20rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resume-download-delete {
  gap: 0.2rem;
  pointer-events: auto;
  z-index: 10;
  position: relative;
}

.resume-download-delete span {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  border-radius: 0.2rem;
  transition: background-color 0.2s ease;
  pointer-events: auto;
  z-index: 11;
  position: relative;
  width: 4rem;
}

.resume-download-delete span:hover {
  background-color: var(--light-slate-brown-v3);
}

.account_upload-remove {
  margin-left: 0.8rem;
  padding: 0.2rem;
  cursor: pointer;
  border-radius: 0.2rem;
  transition: background-color 0.2s ease;
}

.account_upload-remove:hover {
  background-color: rgb(from var(--color-brand) r g b / 10%);
}

.account_upload-remove svg {
  width: 1.6rem;
  height: 1.6rem;
}

/* File upload states */
.account_upload.error {
  border-color: var(--color-error);
  background: var(--color-error-bg);
}

.account_upload.success {
  border-color: var(--color-success);
  background: var(--color-success-bg);
}

/* File upload progress (for future enhancement) */
.account_upload-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 0.4rem;
  background: linear-gradient(90deg, var(--color-brand), var(--color-brand));
  border-radius: 0 0 0.4rem 0.4rem;
  transition: width 0.3s ease;
  width: 0%;
  box-shadow: 0 1px 3px rgb(from var(--color-brand) r g b / 30%);
  display: none;

}

.account_upload-progress.active {
  display: block;
  animation: progressPulse 2s ease-in-out infinite;
}

.account_upload-progress.completed {
  display: block;
  background: linear-gradient(90deg, var(--color-success), var(--color-success));
  animation: progressComplete 0.5s ease-in-out;
  box-shadow: 0 1px 3px rgb(from var(--color-success) r g b / 40%);
}

.account_upload-progress.processing {
  display: block;
  background: linear-gradient(90deg, var(--color-warning), var(--color-warning));
  animation: progressPulse 1s ease-in-out infinite;
  box-shadow: 0 1px 3px rgb(from var(--color-warning) r g b / 40%);
}

@keyframes progressComplete {
  0% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.2);
  }
  100% {
    transform: scaleY(1);
  }
}

@keyframes progressPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.account_upload.uploading .account_upload-progress {
  animation: uploadProgress 2s ease-in-out;
}

@keyframes uploadProgress {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

/* Enhanced uploading state styling */
.account_upload-container.uploading .account_upload-wrapper {
  border-color: var(--color-brand);
  background: rgb(from var(--color-brand) r g b / 5%);
}

.account_upload-container.uploading .account_upload-progress {
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .account_upload-container {
    width: 100%;
  }

  .account_upload-wrapper {
    width: 100%;
  }

  .account_upload-filename {
    max-width: 15rem;
  }
}

/* Dark mode support (if needed) */
.darkmode .account_upload-wrapper {
  background: var(--popup);
  color: var(--color-text-inverse);
  border-color: var(--dropdown);
}

.darkmode .account_upload:hover {
  background: var(--popup);
  border-color: var(--slate-gray);
}

.darkmode .account_upload.has-file {
  background: var(--color-info);
}

.darkmode .account_upload-filename {
  color: var(--color-text-secondary);
}

.account_language-dropdown-btn {
  width: 33.6rem;
  height: 4rem;
  border-radius: 0.4rem;
  border: 1px solid var(--dark-gray);
  font-weight: 500;
  font-size: var(--font-size-15);
  color: var(--color-text-primary);
  padding: 0 1.4rem;
  /* Transition for smooth interactions */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.account_language-dropdown-btn:hover {
  border-color: var(--light-slate-brown-v1);
}

.account_language-list {
  width: 100%;
  list-style: none;
  background-color: var(--white);
  left: 0;
  top: 110%;
  border: 1px solid var(--dark-gray);
  border-radius: 0.4rem;
  max-height: 15rem;
  overflow-y: auto;
}

/* The entrance animation uses transform, which gives each row its own stacking
   context. This parent must outrank the following Time Zone row (z-30), since
   a child dropdown cannot escape its parent's stacking context. */
.account-preferences-language-row {
  z-index: 40 !important;
}

.account-preferences-language-row .account_language-list {
  z-index: 1;
}

.account_language-list li {
  border-radius: 0.4rem;
  padding: 1.1rem 1.4rem;
}

.account_language-list li:hover {
  background-color: var(--color-background);
  cursor: pointer;
}

.account_detail {
  height: 10.8rem;
}

.account_password {
  margin-top: 1.8rem;
}

.account_confirm {
  margin-top: 2.6rem;
}

.account_location-input {
  height: 4rem;
  border: 1px solid var(--dark-gray);
  border-radius: 0.4rem;
  font-size: var(--font-size-15);
  padding: 0 1.4rem;
  width: 100%;
}

.account_commonDropNewDown {
  width: 100% !important;
}

.account_location-dropdown {
  width: 100%;
}

.account_location-dropdown ul {
  list-style: none;
  border: 1px solid var(--gray);
  box-shadow: 0px 4px 10px rgb(from var(--color-text-primary) r g b / 10%);
  border-radius: 3px;
  height: 20rem;
  overflow: auto;
  z-index: 9999 !important;
  position: relative;
  background-color: var(--color-surface);

}

.account_location-dropdown ul li {
  font-size: var(--font-size-15);
  line-height: 2.6rem;
  display: flex;
  align-items: center;
  color: var(--slate-gray);
  padding: 0.6rem 1em;
  border-bottom: 1px solid var(--gray);
}

/* =========== Members Settings =========== */
.account_account-header {
  padding: 2rem 0;
  width: 104rem;
}
.account_header-left img {
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 0.8rem;
  /* margin-right: 1.2rem; */
  object-fit: cover;
}
.account_invite-btn {
  background-color: var(--color-brand);
  color: var(--color-text-inverse);
  border: none;
  padding: 0.8rem 1.4rem;
  border-radius: 0.4rem;
  font-size: var(--font-size-15);
  cursor: pointer;
  font-weight: 500;
  margin-right: 1rem;
}

.account_email-invite-btn {
  background-color: var(--dark-slate-gray);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-light);
  padding: 0.8rem 1.4rem;
  border-radius: 0.4rem;
  font-size: var(--font-size-15);
  cursor: pointer;
  font-weight: 500;
}

.account_titles .account_name {
  font-size: var(--font-size-23);
  font-weight: 700;
}
.account_titles .account_role {
  font-size: var(--font-size-15);
  color: var(--color-text-primary);
  font-weight: 500;
}
.account_stats {
  font-size: var(--font-size-15);
  color: var(--color-text-primary);
  margin-right: 2rem;
  line-height: 1.6rem;
  font-weight: 500;
}

.account_stats-number {
  font-size: var(--font-size-15);
  font-weight: 600;
  line-height: 1.5rem;
  color: var(--color-text-primary);
}
.account_table-wrapper {
  height: calc(100vh - 32rem);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 0.8rem;
  margin-top: 2rem;
  background-color: var(--color-surface);
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-light) transparent;
}

.account_table-wrapper::-webkit-scrollbar {
  width: 6px;
}

.account_table-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.account_table-wrapper::-webkit-scrollbar-thumb {
  background-color: var(--color-surface-alt);
  border-radius: 3px;
}

.account_table-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-border);
}

.account_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  display: table;
  border-collapse: collapse;
}

/* Fixed table header */
.account_table thead {
  display: table-header-group;
  position: sticky;
  top: 0;
  background-color: var(--color-surface);
  z-index: 20;
  border-bottom: 2px solid var(--color-border);
}

/* Scrollable table body */
.account_table tbody {
  display: table-row-group;
  overflow-y: auto;
  max-height: calc(100vh - 28rem); /* Adjust to fit within wrapper */
}

.columInviteScreen.inviteMemberBtn {
  padding: 1rem;
}

/* For browsers that support it, create internal scroll within tbody */
@supports (overflow-y: auto) {
  .account_table-wrapper {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .account_table tbody {
    display: table-row-group;
    max-height: none;
  }
}

.account_table th,
.account_table td {
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  padding: 1.6rem 0;
}

.account_table th {
  color: var(--color-text-secondary);
  font-size: var(--font-size-15);
  background-color: var(--color-surface);
  position: sticky;
  top: 0;
}

.account_table-header th {
  font-weight: 500;
  font-size: var(--font-size-15);
  line-height: 1.6rem;
  color: var(--brown);
  padding-bottom: 0.9rem;
}

.account_user-row {
  font-weight: 500;
  font-size: var(--font-size-15);
  line-height: 2rem;
  color: var(--color-text-primary);
  border-top: 0.8px solid var(--color-border-light);
  height: 6.8rem;
  min-height: 6.8rem;
}

.account_user-row td {
  vertical-align: middle;
  height: 6.8rem;
  padding: 1.6rem 0;
  white-space: nowrap;
}
.account_user-cell {
  font-weight: 600;
}
.account_user-cell img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.6rem;
  margin-right: 1.2rem;
  object-fit: cover;
}
.account_dropdown {
  background-color: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  padding: 0.6rem 1.2rem;
  font-size: var(--font-size-15);
  cursor: pointer;
  width: 11.2rem;
  height: 3.6rem;
  border-radius: 0.8rem;
  position: relative;
}

.account_dropdown svg {
  width: 1.8rem;
  height: 1.8rem;
  margin-left: 0.8rem;
}

/* Role dropdown menu */
.account_dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.8rem;
  box-shadow: 0 4px 12px rgb(from var(--color-text-primary) r g b / 10%);
  z-index: 9999;
  margin-top: 0.4rem;
  min-width: 11.2rem;

}

/* Role dropdown items */
.account_dropdown-item {
  padding: 0.8rem 1.2rem;
  font-size: var(--font-size-15);
  color: var(--color-text-primary);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  display: block;
}

.account_actions {
  color: var(--color-text-secondary);
  cursor: pointer;
  height: 100%;
  padding: 1.6rem;
  position: relative;
}

.account_actions span {
  border-radius: 0.8rem;
  height: 3.6rem;
}

.account_actions span.active {
  background-color: var(--color-surface-alt);
}

/* Actions dropdown menu */
.account_actions-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.8rem;
  box-shadow: 0 4px 12px rgb(from var(--color-text-primary) r g b / 10%);
  z-index: 9999;
  margin-top: 0.4rem;
  min-width: 10rem;

}

/* Actions dropdown items */
.account_actions-item {
  padding: 0.8rem 1.2rem;
  font-size: var(--font-size-15);
  color: var(--color-text-primary);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  display: block;
}

.account_actions-item:hover {
  background-color: var(--light-slate-brown-v3);
}

.account_actions-item {
  border-radius: 0.8rem;
  border: 1px solid var(--color-border-light);
}

/* Icon spacing in actions items */
.account_actions-item svg {
  width: 1.6rem;
  height: 1.6rem;
  margin-right: 0.8rem;
}

/* User indicator styling */
.account_user-indicator {
  color: var(--light-slate-brown-v1);
  font-size: var(--font-size-13);
  margin-left: 0.8rem;
  font-weight: 400;
}

/* =========== Phone Number Component =========== */
.account_phone-container {
  position: relative;
  border: 1px solid var(--dark-gray);
  border-radius: 0.4rem;
}

.account_phone-wrapper {
  display: flex;
  border-left: 1px solid var(--dark-gray);
  overflow: hidden;
  height: 4rem;
  justify-content: center;
  align-items: center;
}

.account_country-section {
  position: relative;
  flex-shrink: 0;
  border-right: 1px solid var(--color-background);
  height: 4rem;
}

.account_country-dropdown {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  height: 100%;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.account_country-dropdown:hover {
  background-color: var(--color-background);
}

.account_country-flag {
  margin-right: 0.8rem;
}

.account_flag-image {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.account_country-code {
  font-weight: 700;
  font-size: var(--font-size-15);
  color: var(--color-text-primary);
  margin-right: 0.5rem;
  margin-left: 1rem;
  display: flex;
  line-height: normal !important;
}

.account_dropdown-arrow {
  display: flex;
  align-items: center;
}

.account_arrow-icon {
  width: 1.2rem;
  height: 1.2rem;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.account_country-dropdown.active .account_arrow-icon {
  transform: rotate(180deg);
}

.account_country-list {
  position: absolute;
  left: 0;
  background-color: var(--color-surface);
  border: 1px solid var(--dark-gray);
  border-radius: 0 0 0.4rem 0.4rem;
  overflow-y: auto;
  z-index: 9999 !important;
  box-shadow: 0 4px 6px rgb(from var(--color-text-primary) r g b / 10%);
}

.account_country-search {
  width: 100%;
  padding: 1rem;
  border: none;
  border-bottom: 1px solid var(--color-background);
  font-size: var(--font-size-15);
  outline: none;
  background-color: var(--color-background);
}

.account_country-search::placeholder {
  color: var(--color-text-secondary);
}

.account_country-options {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 16rem;
  overflow-y: auto;
}

.account_country-option {
  display: flex;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--color-background);
  transition: background-color 0.2s ease;
}

.account_country-option:hover {
  background-color: var(--color-background);
  transform: translateY(-1px);
}

.account_country-option:last-child {
  border-bottom: none;
}

.account_option-flag {
  width: 2.4rem;
  height: 1.8rem;
  object-fit: cover;
  border-radius: 0.2rem;
  border: 1px solid var(--color-border-light);
  margin-right: 1rem;
}

.account_option-code {
  font-weight: 500;
  color: var(--color-text-primary);
  margin-right: 1rem !important;
  min-width: 4rem;
}

.account_option-name {
  color: var(--light-slate-brown-v1);
  font-size: var(--font-size-15);
}

.account_phone-input-section {
  flex: 1;
  display: flex;
  align-items: center;
}

.account_phone-input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  padding: 0 0.5rem;
  font-size: var(--font-size-15);
  font-weight: 500;
  color: var(--color-text-primary);
  background-color: transparent;
}

.account_phone-input::placeholder {
  color: var(--color-text-secondary);
  font-weight: 400;
}

.account_verify-section {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-right: 6px;
}

.account_verify-section button {
  height: 80% !important;
}

.account_verify-btn {
  background-color: var(--color-brand);
  color: var(--color-text-inverse);
  border: none;
  padding: 0 0.8rem;
  font-size: var(--font-size-15);
  font-weight: 600;
  cursor: pointer;
  min-width: 6.5rem;
  height: 2.8rem;
  border-radius: 0.4rem;
}

.account_verify-btn:hover {
  background-color: var(--color-brand-hover);
}

.account_verify-btn:disabled {
  background-color: var(--color-surface-alt);
  color: var(--light-slate-brown-v1);
  cursor: not-allowed;
  opacity: 0.6;
}

.account_loading_spinner {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  border: 0.2rem solid var(--white);
  border-radius: 50%;
  border-top-color: transparent;
  animation: account-spin 1s ease-in-out infinite;
  margin-right: 0.5rem;
}

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

.account_verified-status {
  display: flex;
  align-items: center;
  color: var(--color-success);
  font-size: var(--font-size-13);
  font-weight: 500;
  animation: account-slideIn 0.3s ease-out;
}

@keyframes account-slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.account_phone-input.verified {
  background-color: var(--color-background);
  border-color: var(--color-success);
}

/* Animation for dropdown */
.account_country-list {
  animation: account-fadeIn 0.3s ease-out;
}

@keyframes account-fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Error state styling (for future use) */
.account_phone-input.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 0.2rem rgb(from var(--color-error) r g b / 25%);
}

.account_error-message {
  color: var(--color-error);
  font-size: var(--font-size-15);
  margin-top: 0.5rem;
  display: block;
}

/* =============== End Additional Phone Component Styles =============== */

/* Hide class utility */
.hideCls {
  display: none !important;
}

/* Show class utility */
.showCls {
  display: block !important;
}

/* ============= Profile Page ===========  */

.text-area_wrapper {
  border: 1px solid var(--dark-gray);
  padding: 1.2rem 1.2rem 3.8rem 1.2rem;
  border-radius: 0.4rem; overflow: hidden;
}

textarea {
  width: 100%;
  height: 17.2rem;
  font-size: var(--font-size-15);
}

.account_textarea p {
  font-weight: 500;
  font-size: var(--font-size-15);
  line-height: 1.6rem;
  color: var(--brown);
  bottom: 0;
  left: 1rem;
}

/* =========== Toggle Switch Component =========== */
.toggle-switch-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.toggle-switch-input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-switch-slider {
  position: relative;
  display: block;
  width: 44px;
  height: 24px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.toggle-switch-slider:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-color: var(--color-text-secondary);
  border-radius: 50%;
  transition: all 0.3s ease;
}

/* Toggle switch ON state */
.toggle-switch-input:checked + .toggle-switch-slider {
  background-color: var(--color-brand);
  border-color: var(--color-brand);
}

.toggle-switch-input:checked + .toggle-switch-slider:before {
  transform: translateY(-50%) translateX(20px);
  background-color: var(--color-surface);
}

/* Hover state */
.toggle-switch:hover .toggle-switch-slider {
  border-color: var(--color-text-muted);
}

.toggle-switch:hover .toggle-switch-input:checked + .toggle-switch-slider {
  border-color: var(--color-brand);
}

/* =========== End Toggle Switch Component =========== */

/* =========== New Dropdown Components (Preferences Settings) =========== */

/* Main dropdown wrapper */
.account_dropdown-wrapper {
  position: relative;
  display: block;
  width: 100%;
  max-width: 33.6rem;
  z-index: 10;

}

/* Fix stacking when dropdown is active */
.account_dropdown-wrapper:has(.account_dropdown-trigger.active) {
  z-index: 9999;
}

/* Dropdown trigger button */
.account_dropdown-trigger {
  width: 100%;
  height: 4rem;
  border-radius: 0.4rem;
  border: 1px solid var(--dark-gray);
  background-color: var(--color-surface);
  padding: 1.1rem 1.4rem;
  font-weight: 500;
  font-size: var(--font-size-15);
  color: var(--color-text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  position: relative;
  z-index: 11;
}

.account_dropdown-trigger:hover {
  border-color: var(--light-slate-brown-v1);
  background-color: var(--color-background);
}

.account_dropdown-trigger:focus {
  outline: none;
}

.account_dropdown-trigger.active {
  border-color: var(--color-brand);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Dropdown text content */
.account_dropdown-text {
  flex: 1;
  text-align: left;
  color: var(--color-text-primary);
  font-weight: 500;
  font-size: var(--font-size-15);
}


/* Dropdown icon */
.account_dropdown-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  transition: transform 0.2s ease;
}

.account_dropdown-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.account_dropdown-trigger.active .account_dropdown-icon {
  transform: rotate(180deg);
}

.account_language-dropdown-icon.account_language-dropdown-icon-active {
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}

/* Dropdown content container */
.account_dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-surface);
  border: 1px solid var(--dark-gray);
  border-top: none;
  border-radius: 0 0 0.4rem 0.4rem;
  box-shadow: 0 4px 12px rgb(from var(--color-text-primary) r g b / 15%);
  z-index: 9999;
  max-height: 300px;
  overflow-y: auto;

}

.account_dropdown-content.show {
  display: block;
  z-index: 9999;
}

/* Search input inside dropdown */
.account_dropdown-search {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--color-background);
  font-size: var(--font-size-15);
  font-weight: 500;
      border: 1px solid var(--color-border-light);
}

.settingTimeZone.dropdown-list-items {
  font-size: var(--font-size-15);
}

.settingTimeZone.dropdown-list-items:hover {
  background-color: var(--color-surface-alt);
}


.account_dropdown-search:focus {
  outline: none;
  background-color: var(--color-background);
}

.account_dropdown-search::placeholder {
  color: var(--color-text-secondary);
  font-weight: 400;
}

.account_dropdown-list li {
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--color-background);
}

.account_dropdown-list li:hover {
  background-color: var(--color-surface-alt);
  cursor: pointer;
}

/* Dropdown options list */
.account_dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
}

.account_dropdown-option {
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  font-size: var(--font-size-15);
  font-weight: 500;
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--light-slate-brown-v3);
  transition: background-color 0.2s ease;
}

.account_dropdown-option:hover {
  background-color: var(--color-background);
}

.account_dropdown-option:last-child {
  border-bottom: none;
}

.account_dropdown-option.selected {
  background-color: var(--color-error-bg);
  color: var(--color-brand);
  font-weight: 600;
}

/* Scrollbar styling for dropdown */
.account_dropdown-content::-webkit-scrollbar,
.account_dropdown-list::-webkit-scrollbar {
  width: 6px;
}

.account_dropdown-content::-webkit-scrollbar-track,
.account_dropdown-list::-webkit-scrollbar-track {
  background: var(--light-white);
}

.account_dropdown-content::-webkit-scrollbar-thumb,
.account_dropdown-list::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

.account_dropdown-content::-webkit-scrollbar-thumb:hover,
.account_dropdown-list::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .account_dropdown-wrapper {
    max-width: 100%;
  }

  .account_dropdown-trigger {
    font-size: var(--font-size-15);
    padding: 1rem 1.2rem;
  }

  .account_dropdown-search {
    font-size: var(--font-size-15);
    padding: 1rem 1.2rem 1rem 3.5rem;
    background-size: 1.4rem;
  }

  .account_dropdown-option {
    font-size: var(--font-size-15);
    padding: 1rem 1.2rem;
  }
}

/* Dark mode support */
.darkmode .account_dropdown-trigger {
  background-color: var(--popup);
  color: var(--color-text-inverse);
  border-color: var(--dropdown);
}

.darkmode .account_dropdown-trigger:hover {
  background-color: var(--popup);
  border-color: var(--slate-gray);
}

.darkmode .account_dropdown-content {
  background-color: var(--popup);
  border-color: var(--popup);
}

.darkmode .account_dropdown-search {
  background-color: var(--popup);
  color: var(--color-text-inverse);
  border-color: var(--dropdown);
}

.darkmode .account_dropdown-search:focus {
  background-color: var(--popup);
}

.darkmode .account_dropdown-option {
  color: var(--color-text-inverse);
  border-color: var(--dark-browm);
}

.darkmode .account_dropdown-option:hover {
  background-color: var(--popup);
}

.darkmode .account_dropdown-option.selected {
  background-color: rgb(from var(--color-brand) r g b / 25%);
  color: var(--color-brand);
}

/* =========== End New Dropdown Components =========== */

.account_price-details {
  font-weight: 500;
  font-size: var(--font-size-15);
  line-height: 2rem;
  color: var(--brown);
  margin: 1.2rem 0 2.4rem 0;
}

.account_price-plan {
  font-weight: 700;
  font-size: var(--font-size-37);
  line-height: 4rem;
  color: var(--color-text-primary);
}

.account_price-license-wrapper {
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.account_price-license-description {
  margin-left: 0.4rem;
  font-weight: 500;
  font-size: var(--font-size-15);
  line-height: 1.6rem;
  color: var(--red);
  margin-bottom: 0;
  cursor: pointer;
}

.account_price-license {
  font-weight: 400;
  font-size: var(--font-size-15);
  line-height: 2.4rem;
  color: var(--color-text-primary);
  margin: 0rem;
}

.account_price-license span {
  font-weight: 500;
  font-size: var(--font-size-15);
  line-height: 2.4rem;
  color: var(--color-text-primary);
}

.account_preffbuttons {
  display: flex;
  gap: 1.6rem;
  flex-direction: column;
}

.account_billing-btn {
  width: 22.1rem;
  height: 3.8rem;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: var(--font-size-15);
  line-height: 2rem;
  text-align: center;
}

.account_manage-billing-btn {
  border: 1px solid var(--color-border-light);
  background-color: var(--dark-slate-gray);
  color: var(--color-text-primary);
}

.account_manage-billing-btn:hover {
  background-color: var(--color-surface-alt);
  border-color: var(--color-border-light);
}

.account_change-plan-btn {
  border: 1px solid var(--color-brand);
  color: var(--color-text-inverse);
  background-color: var(--color-brand);
}

.account_change-plan-btn:hover {
  background-color: var(--color-brand-hover);
  border-color: var(--color-brand);
}

.account_delete-title {
  font-weight: 600;
  font-size: var(--font-size-15);
  line-height: 2rem;
  color: var(--color-text-primary);
  margin-bottom: 0.4rem;
}

.account_privacy_detail{
      height: 6.8rem;
}

.account_delete-description {
  font-weight: 400;
    font-size: var(--font-size-15);
    line-height: 2rem;
    color: var(--brown);
    margin-bottom: 0;
}

.account_delete-confirmation {
  font-weight: 500;
  font-size: var(--font-size-15);
  line-height: 2.1rem;
  color: var(--color-text-primary);
  margin-bottom: 2.6rem;
}

.account_delete-confirmation span {
  font-weight: 600;
}

.account_delete-btn {
  width: 15.5rem;
  height: 4rem;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: var(--font-size-15);
  line-height: 2rem;
  text-align: center;
  background-color: var(--color-error);
  color: var(--color-text-inverse);
  border: none;
}

.account_delete-btn:hover {
  background-color: var(--color-brand-hover);
  border-color: var(--color-brand);
}

.account_deactivation-link {
  color: darkblue;
  font-weight: 600;
  text-decoration: underline;
}

.account_deactivation-link:hover {
  color: darkblue;
}

.account_deactivation-description {
  white-space: normal;
  word-break: break-word;
}

.account_delete-btn-disabled,
.account_delete-btn-disabled:hover {
  cursor: not-allowed;
  opacity: 0.6;
  background-color: var(--color-error);
  border-color: var(--color-error);
}

.account_privacy-security {
  margin-top: 0;
  width: 104rem;
}

.account_privacy-header {
  padding-bottom: 2.8rem;
}

.account_privacy-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 2.9rem 0;
}

.account_privacy-item > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.account_privacy-item .toggle-switch-wrapper {
  flex: 0 0 auto;
}

.account_privacy-item:first-of-type {
  border-top: 0;
}

.account_privacy-item-title {
  font-size: var(--font-size-15);
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 0.4rem;
  word-break: break-word;
}

.account_privacy-item-desc {
    font-weight: 400;
    font-size: var(--font-size-15);
    line-height: 2rem;
    color: var(--brown);
    margin-bottom: 0;
  }

.account_privacy-item-danger {
  align-items: flex-end;
}

.account_privacy-action-wrap {
  display: flex;
  gap: 0.8rem;
}

.account_privacy-action-btn {
  min-width: 8.8rem;
  height: 3.6rem;
  border-radius: 0.4rem;
  border: 1px solid var(--color-border-light);
  background: var(--dark-slate-gray);
  color: var(--color-text-primary);
  font-size: var(--font-size-15);
  font-weight: 600;
  padding: 0 1.2rem;
}

.account_privacy-action-btn:hover {
  background: var(--color-background);
}

.account_privacy-action-btn-secondary {
  background: var(--color-surface);
}

.account_delete-warning-modal {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: rgb(from var(--dark-black) r g b / 45%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
}

.account_delete-warning-card {
  width: min(56rem, 100%);
  background: var(--color-surface);
  border-radius: 1rem;
  padding: 3rem 3.2rem;
  box-shadow: 0 10px 30px rgb(from var(--color-text-primary) r g b / 20%);
  max-height: 86vh;
  overflow-y: auto;

}

/* Hosted by the Modal component (openDeactivateAccountModal), the card IS the dialog
   body: the component owns the surface, radius, padding, scrolling and elevation, so
   the standalone card chrome above would draw a second card inside the first. The
   rules stay for the no-component fallback path. */
.mui-modal__body .account_delete-warning-card {
  width: 100%;
  background: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;

  max-height: none;
  overflow-y: visible;

}

/* Last block has its own margin from .account_delete-warning-input-wrap; the modal
   footer supplies the gap below it. */
.mui-modal__body .account_delete-warning-card > :last-child {
  margin-bottom: 0;
}

.account_delete-warning-title {
  margin: 0;
  color: var(--color-text-primary);
  font-size: var(--font-size-21);
  font-weight: 700;
}

.account_delete-warning-subtitle {
  margin: 1.2rem 0 1.8rem;
  color: var(--color-text-secondary);
  font-size: var(--font-size-15);
  line-height: 2.2rem;
}

.account_delete-warning-list {
  margin: 0 0 2rem;
  padding-left: 2.2rem;
}

.account_delete-warning-list li {
  margin-bottom: 0.9rem;
  color: var(--color-text-primary);
  font-size: var(--font-size-15);
  line-height: 2.1rem;
}

.account_delete-warning-check {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.8rem;
  font-size: var(--font-size-15);
  color: var(--color-text-primary);
  line-height: 2rem;
}

.account_delete-warning-check input {
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: 0.2rem;
  accent-color: var(--color-error);
}

.account_delete-warning-check-text {
  flex: 1 1 auto;
}

.account_delete-warning-input-wrap {
  margin-top: 1.6rem;
}

.account_delete-warning-input-wrap label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--color-text-primary);
  font-size: var(--font-size-15);
}

.account_delete-warning-input-wrap input {
  width: 100%;
  border: 1px solid var(--color-border-light);
  border-radius: 0.4rem;
  height: 4.4rem;
  padding: 0 1.2rem;
  font-size: var(--font-size-15);
}

.account_delete-warning-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 2.4rem;
}

.account_delete-warning-actions .account_privacy-action-btn,
.account_delete-warning-actions .account_delete-btn {
  min-width: 14rem;
  height: 4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account_focus-highlight {
  box-shadow: inset 0 0 0 2px var(--color-brand);
  border-radius: 0.8rem;
  transition: box-shadow 0.2s ease;

}

.darkmode .account_delete-title,
.darkmode .account_privacy-item-title,
.darkmode .account_delete-warning-title {
  color: var(--color-text-inverse);
}

.darkmode .account_deactivation-link,
.darkmode .account_deactivation-link:hover {
  color: var(--color-error);
}

.darkmode .account_delete-description,
.darkmode .account_privacy-item-desc,
.darkmode .account_delete-warning-subtitle,
.darkmode .account_delete-warning-check,
.darkmode .account_delete-warning-list li,
.darkmode .account_deactivation-description {
  color: var(--dark-gray);
}


.darkmode .account_privacy-action-btn,
.darkmode .account_deactivation-link-btn {
  background: var(--light-slate-brown-v2);
  border-color: var(--brown);
  color: var(--color-text-inverse);
}

.darkmode .account_privacy-action-btn:hover,
.darkmode .account_deactivation-link-btn:hover {
  background: var(--dark-browm);
}

.darkmode .account_delete-warning-modal {
  background: rgb(from var(--dark-black) r g b / 65%);
}

.darkmode .account_delete-warning-card {
  background: var(--light-slate-brown-v2);
  border: 1px solid var(--dark-browm);
}

.darkmode .account_delete-warning-input-wrap label {
  color: var(--gray);
}

.darkmode .account_delete-warning-input-wrap input {
  background: var(--light-brown);
  border-color: var(--brown);
  color: var(--color-text-inverse);
}

@media (max-width: 1024px) {
  .account_privacy-item {
    flex-direction: column;
  }

  .account_delete-warning-actions {
    justify-content: stretch;
  }

  .account_delete-warning-actions .account_privacy-action-btn,
  .account_delete-warning-actions .account_delete-btn {
    flex: 1 1 100%;
    width: 100%;
  }
}

.limitcharacter-wrapper {
  bottom: 0;
  left: 0;
  padding-left: 1rem;
  width: 100%;
  height: 2.4rem;
  background-color: var(--color-surface);
}

/* =========== Profile Image Hover Popup =========== */
.account_profile-image-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.account_profile-image-container img {
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 0.8rem;
  /* margin-right: 1.2rem; */
  transition: all 0.3s ease;
  object-fit: cover;
}

.account_profile-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 6.4rem;
  height: 6.4rem;

  background: rgb(from var(--color-brand) r g b / 75%);
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
}

.account_profile-image-container:hover .account_profile-image-overlay {
  opacity: 1;
  visibility: visible;
}

.account_profile-upload-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: rgb(from var(--color-surface) r g b / 20%);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.account_profile-upload-icon:hover {
  background: rgb(from var(--color-surface) r g b / 30%);
  transform: scale(1.1);
}

.account_profile-upload-icon svg {
  width: 2.4rem;
  height: 2.4rem;
  filter: drop-shadow(0 2px 4px rgb(from var(--dark-black) r g b / 30%));
  pointer-events: none;
}

.account_profile-image-popup {
  position: absolute;
  top: 50%;
  left: 110%;
  transform: translateY(-50%);
  background: var(--color-surface);
  border-radius: 0.8rem;
  padding: 0.8rem 0;
  min-width: 16rem;
  box-shadow: 0 8px 32px rgb(from var(--color-text-primary) r g b / 40%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
  backdrop-filter: blur(10px);

}

.account_profile-image-popup::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.8rem;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.8rem 0.8rem 0.8rem 0;
  border-color: transparent var(--light-brown) transparent transparent;
}

.account_profile-image-container:hover .account_profile-image-popup {
  opacity: 1;
  visibility: visible;
}

.account_profile-popup-item {
  display: flex;
  align-items: center;
  padding: 1.2rem 1.6rem;
  color: var(--color-text-inverse);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: var(--font-size-15);
  font-weight: 500;
  border-left: 3px solid transparent;
}

.account_profile-popup-item:hover {
  background-color: var(--popup);
  border-left-color: var(--color-brand);
  padding-left: 1.8rem;
}

.account_profile-popup-item:first-child:hover {
  border-radius: 0.8rem 0.8rem 0 0;
}

.account_profile-popup-item:last-child:hover {
  border-radius: 0 0 0.8rem 0.8rem;
}

.account_profile-popup-item svg {
  margin-right: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.account_profile-popup-item:hover svg {
  transform: scale(1.1);
}

.account_profile-popup-remove:hover {
  background-color: var(--color-error);
  border-left-color: var(--light-red);
}

.account_profile-image-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 15;
}








/* Responsive adjustments */
@media (max-width: 768px) {
  .account_profile-image-popup {
    left: 50%;
    top: 110%;
    transform: translateX(-50%);
    min-width: 14rem;
  }

  .account_profile-image-popup::before {
    top: -0.8rem;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 0.8rem 0.8rem 0.8rem;
    border-color: transparent transparent var(--light-brown) transparent;
  }

  .account_profile-upload-icon {
    width: 3.2rem;
    height: 3.2rem;
  }

  .account_profile-upload-icon svg {
    width: 2rem;
    height: 2rem;
  }
}

/* Dark mode support */
.darkmode .account_profile-image-overlay {
  background: rgb(from var(--dark-black) r g b / 70%);
}

.darkmode .account_profile-upload-icon {
  background: rgb(from var(--color-surface) r g b / 15%);
}

.darkmode .account_profile-upload-icon:hover {
  background: rgb(from var(--color-surface) r g b / 25%);
}

/* Smooth scrolling enhancement */
html {
  scroll-behavior: smooth;
}

/* Styling for the pricing container when scrolled to */
#pricing-container-scroll {
  scroll-margin-top: 20px;
  border-radius: 8px;
}

.darkmode .account_profile-image-popup {
  background: var(--popup);
  border: 1px solid var(--dark-browm);
}

.darkmode .account_profile-image-popup::before {
  border-color: transparent var(--popup) transparent transparent;
}

.darkmode .account_profile-popup-item:hover {
  background-color: var(--light-slate-brown-v2);
  border-left-color: var(--color-info);
}

.darkmode .account_profile-popup-remove:hover {
  background-color: var(--color-error);
  border-left-color: var(--light-red);
}

@media (max-width: 768px) {
  .darkmode .account_profile-image-popup::before {
    border-color: transparent transparent var(--popup) transparent;
  }
}

/* =========== End Profile Image Hover Popup =========== */

/* =========== Member Card List Styles =========== */
.account_member-card-list {
  height: calc(100vh - 18rem);
  overflow: auto;
  overflow-x: hidden;
  list-style: none;
  padding: 0 1.5rem;
  margin: 0;
}

.account_current-page {
  color: var(--red);
}

#account_setting-title {
  font-size: var(--font-size-15);
  line-height: 1.9rem;
  font-weight: 500;
}

.account_error-msg {
  font-size: var(--font-size-15) !important;
  font-weight: 500;
}

textarea {
  resize: none !important;
}

/* ==========================================================================
   Profile card: cover picture + shared header (visible across all tabs)
   ========================================================================== */

.account_profile-card {
  width: 104rem;
  background: var(--white, var(--color-surface));
  border-radius: 0.8rem;
  overflow: hidden;
  flex-shrink: 0;
  /* margin-bottom: 2.4rem; */
}

.account_cover {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 1;
  background: linear-gradient(135deg, var(--color-surface-alt) 0%, var(--color-surface-alt) 100%);
  overflow: hidden;
}

.account_cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.account_cover-input {
  display: none;
}

.account_cover-edit-btn {
  position: absolute;
  top: 1.6rem;
  right: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white, var(--color-surface));
  color: var(--color-text-primary);
  border: none;
  border-radius: 0.4rem;
  padding: 0.7rem 1.2rem;
  font-size: var(--font-size-15);
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 4px rgb(from var(--color-text-primary) r g b / 12%);
  transition: all 0.3s ease;

}

.account_cover-edit-btn:hover {
  background: var(--color-background);
}

.account_cover-edit-btn svg {
  pointer-events: none;
}

/* Header sits inside the card; only the avatar is lifted over the cover. */
.account_profile-card .account_account-header {
  width: 100%;
  box-sizing: border-box;
  padding: 1.6rem 2.4rem 2.2rem 2.4rem;
}

.account_profile-card .account_profile-image-container {
  align-self: flex-start;
  margin-top: -9.2rem;
}

.account_profile-card .account_profile-image-container img,
.account_profile-card .account_profile-image-overlay {
  width: 15.2rem;
  height: 15.2rem;
}

.account_profile-card .account_header-left img {
  width: 15.2rem;
  height: 15.2rem;
  border: 0.4rem solid var(--white);
}

/* Always-visible edit affordance on the profile picture */
.account_profile-edit-badge {
  position: absolute;
  bottom: -0.4rem;
  right: 0rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.4rem;
  background: var(--red, var(--color-brand));
  border: 0.2rem solid var(--white, var(--color-border-light));
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 11;
  transition: all 0.3s ease;
}

.account_profile-image-container:hover .account_profile-edit-badge {
  transform: scale(1.1);
}

.account_profile-edit-badge svg {
  pointer-events: none;
}

/* ==========================================================================
   Profile links
   ========================================================================== */

/* .account_detail pins every row to height: 10.8rem. Rows whose content can
   exceed that (the About Me textarea, and Links once a second row is added)
   overflowed and were overlapped by the row below. Let those two grow. */
.account_detail.account_detail-auto {
  height: auto;
  min-height: 10.8rem;
}

.account_link-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

/* Override the fixed .account_input width so the row can flex. */
.account_link-label-input {
  flex: 0 0 13rem;
  width: auto;
}

.account_link-url-input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.account_link-remove-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: var(--white, var(--color-surface));
  border: 1px solid var(--color-border-light);
  border-radius: 0.4rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.account_link-remove-btn:hover {
  border-color: var(--red, var(--color-brand));
  color: var(--red, var(--color-brand));
}

.account_link-remove-btn svg {
  pointer-events: none;
}

.account_link-add-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white, var(--color-surface));
  border: 1px solid var(--color-border-light);
  border-radius: 0.4rem;
  padding: 0.8rem 1.4rem;
  font-size: var(--font-size-15);
  font-weight: 600;
  color: var(--red, var(--color-brand));
  cursor: pointer;
  transition: all 0.3s ease;
}

.account_link-add-btn:hover {
  background: var(--color-background);
  border-color: var(--red, var(--color-brand));
}

.account_link-add-btn svg {
  pointer-events: none;
}

.darkmode .account_profile-card {
  background: var(--popup, var(--color-surface));
}

.darkmode .account_cover-edit-btn,
.darkmode .account_link-remove-btn,
.darkmode .account_link-add-btn {
  background: var(--popup, var(--color-surface));
  border-color: var(--color-success);
}

.darkmode .account_cover-edit-btn {
  color: var(--white, var(--color-text-inverse));
}

.darkmode .account_profile-edit-badge {
  border-color: var(--popup, var(--color-success));
}
